:root{
  --bg:#f6f7fb;
  --surface:#ffffff;
  --ink:#17233b;
  --muted:#66748d;
  --line:#dde4ef;
  --navy:#10284b;
  --blue:#234ea2;
  --blue2:#3b82f6;
  --soft:#eef4ff;
  --shadow:0 14px 40px rgba(16,40,75,.08);
  --radius:24px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic","Noto Sans JP",Meiryo,sans-serif;
  color:var(--ink);
  background:linear-gradient(180deg,#f7f9fc 0,#f4f6fa 100%);
  line-height:1.7;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.shell{width:min(1260px,calc(100% - 32px));margin:auto}
.eyebrow{margin:0 0 8px;font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--blue)}
.eyebrow.light{color:#dce8ff}
h1,h2,h3,p{margin:0}
.section{padding:34px 0}
.section-head{margin:0 auto 20px;display:flex;justify-content:space-between;align-items:end;gap:24px}
.section-head.center{display:block;text-align:center;max-width:780px}
.section-head h2{font-size:44px;line-height:1.2;letter-spacing:-.03em;margin-bottom:10px}
.section-head p:last-child{color:var(--muted);font-size:16px}
.site-header{position:sticky;top:0;z-index:30;padding:12px 0;background:rgba(247,249,252,.86);backdrop-filter:blur(14px);border-bottom:1px solid rgba(221,228,239,.7)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:18px}
.brand{display:flex;align-items:center;gap:10px;font-size:18px;color:var(--navy)}
.brand strong{letter-spacing:.03em}
.brand b{font-weight:500}
.brand-mark{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 34% 32%,#ffd76c 0 18%,#2d73ff 34%,#103c88 100%);color:#fff;box-shadow:inset 0 0 0 3px rgba(255,255,255,.38)}
.nav{display:flex;align-items:center;gap:28px;font-size:14px;color:#32405f}
.nav a{position:relative}
.nav a:not(.nav-contact)::after{content:"";position:absolute;left:0;bottom:-6px;width:0;height:2px;background:var(--blue);transition:.25s}
.nav a:hover::after,.nav a.active::after{width:100%}
.nav-contact{padding:12px 22px;border-radius:999px;background:var(--navy);color:#fff;font-weight:700;box-shadow:0 8px 18px rgba(16,40,75,.18)}
.menu-button{display:none;border:0;background:transparent;padding:6px;width:44px;height:44px}
.menu-button span{display:block;height:2px;background:var(--navy);margin:8px 4px;border-radius:3px}
.hero{padding:18px 0 22px}
.hero-panel{min-height:520px;border-radius:28px;background-size:cover;background-position:center;background-repeat:no-repeat;box-shadow:var(--shadow);padding:60px 64px;display:flex;align-items:center;overflow:hidden}
.hero-copy{max-width:540px}
.hero-copy h1{font-size:64px;line-height:1.18;letter-spacing:-.05em;margin-bottom:18px;color:#1b2b4b;text-shadow:0 1px 0 rgba(255,255,255,.35)}
.hero-copy .lead{font-size:22px;line-height:1.8;color:#263756;max-width:490px}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:28px}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 26px;border-radius:999px;border:1px solid transparent;font-weight:700;transition:.25s ease;font-size:15px}
.btn.primary{background:var(--navy);color:#fff;box-shadow:0 14px 22px rgba(16,40,75,.18)}
.btn.subtle{background:rgba(255,255,255,.75);border-color:#cfd8e8;color:var(--navy)}
.btn.light{background:#fff;color:var(--navy)}
.btn:hover{transform:translateY(-1px)}
.service-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:16px}
.service-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 10px 26px rgba(15,35,71,.05);transition:.25s ease;display:flex;flex-direction:column}
.service-card:hover,.work-tile:hover,.news-row:hover,.about-card:hover{transform:translateY(-3px)}
.service-image-wrap{aspect-ratio:4/3;overflow:hidden;background:#eef3fa}
.service-image-wrap img{width:100%;height:100%;object-fit:cover}
.service-body{padding:16px 15px 14px;text-align:center}
.service-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#f0f4ff;color:var(--blue);font-size:22px;margin:-36px auto 10px;border:6px solid #fff;box-shadow:0 5px 14px rgba(36,78,162,.12);position:relative}
.service-body h3{font-size:24px;letter-spacing:-.03em;line-height:1.3;margin-bottom:8px}
.service-body p{font-size:15px;color:var(--muted);line-height:1.7}
.service-body details{margin-top:12px;text-align:left;background:#f7f9fd;border:1px solid #e8edf5;border-radius:14px;padding:0 14px}
.service-body summary{cursor:pointer;list-style:none;padding:12px 0;font-weight:700;color:var(--navy)}
.service-body summary::-webkit-details-marker{display:none}
.service-body details div{padding:0 0 14px;color:#5a6680;font-size:14px}
.about-wrap{padding-top:22px}
.about-card{background:linear-gradient(90deg,#fff 0,#fff 42%,#f3f7fd 100%);border:1px solid var(--line);border-radius:28px;overflow:hidden;display:grid;grid-template-columns:1.1fr .95fr;align-items:stretch;box-shadow:var(--shadow)}
.about-image{min-height:360px}
.about-image img{width:100%;height:100%;object-fit:cover}
.about-copy{padding:42px 44px;display:flex;flex-direction:column;justify-content:center}
.about-copy h2{font-size:42px;line-height:1.25;letter-spacing:-.04em;margin-bottom:16px}
.about-copy p{color:var(--muted);font-size:16px}
.credentials{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 22px}
.credentials span{padding:10px 14px;border-radius:999px;background:#fff;border:1px solid #d9e3f3;color:#2c4168;font-size:13px;font-weight:700}
.works-grid.compact{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.work-tile{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 10px 24px rgba(16,40,75,.05);transition:.25s ease}
.work-image{aspect-ratio:1.65/1;overflow:hidden;background:#eef3fa}
.work-image img{width:100%;height:100%;object-fit:cover}
.work-title{padding:12px 14px 14px;font-weight:700;text-align:center}
.news-wrap{padding-bottom:46px}
.news-list{display:grid;gap:12px}
.news-row{display:grid;grid-template-columns:140px 1fr 32px;align-items:center;gap:18px;padding:18px 22px;background:#fff;border-radius:18px;border:1px solid var(--line);box-shadow:0 8px 22px rgba(16,40,75,.04);transition:.2s}
.news-row time{font-size:13px;color:#6f7d97;font-weight:700}
.news-row span{font-weight:700;font-size:17px}
.news-row b{font-size:18px;color:var(--blue)}
.contact-wrap{padding:68px 0;background:linear-gradient(135deg,#10284b 0,#173a74 100%)}
.contact-grid{display:grid;grid-template-columns:.9fr 1fr;gap:26px;align-items:start}
.contact-copy{padding:18px 6px;color:#fff}
.contact-copy h2{font-size:42px;line-height:1.2;letter-spacing:-.03em;margin-bottom:16px}
.contact-copy p{color:#dce5f4;font-size:16px}
.contact-facts{display:grid;gap:10px;margin-top:26px}
.contact-facts a,.contact-facts span{color:#fff;font-weight:600}
.contact-form{background:#fff;padding:24px;border-radius:24px;box-shadow:0 16px 40px rgba(5,18,39,.22)}
.contact-form label{display:block;font-size:13px;font-weight:700;color:#415274;margin-bottom:14px}
.contact-form input,.contact-form textarea{width:100%;margin-top:7px;border:1px solid #d6dfec;border-radius:14px;padding:14px 15px;font:inherit;color:var(--ink);background:#fbfdff}
.contact-form textarea{resize:vertical;min-height:130px}
.hp{display:none}
.alert{padding:12px 14px;border-radius:14px;margin-bottom:14px;font-size:14px}
.alert.success{background:#e8f8ef;color:#1d6a44}
.alert.error{background:#fff1f1;color:#a03f3f}
.footer{background:#0f2240;color:#ecf3ff;padding:22px 0}
.footer-inner{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:24px}
.footer-brand{color:#fff}
.footer-nav{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;font-size:14px;color:#d3def5}
.footer p{font-size:13px;color:#d3def5;text-align:center}
.admin-link{font-size:13px;padding:10px 14px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18)}
.article-main{padding:36px 0 60px}
.back-link{display:inline-block;margin:10px 0 16px;color:#4d6287;font-weight:700}
.article-card{background:#fff;border:1px solid var(--line);border-radius:26px;padding:28px;box-shadow:var(--shadow)}
.article-image{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:18px;margin-bottom:22px}
.article-card h1{font-size:42px;line-height:1.25;letter-spacing:-.04em;margin:8px 0 14px}
.article-lead{font-size:18px;color:#4c5f81;margin-bottom:12px}
.article-body{color:#46546d;white-space:normal}
.reveal{opacity:0;transform:translateY(18px);transition:opacity .6s ease,transform .6s ease;transition-delay:var(--delay,0ms)}
.reveal.in{opacity:1;transform:none}
@media (max-width:1180px){
  .service-grid{grid-template-columns:repeat(3,1fr)}
  .works-grid.compact{grid-template-columns:repeat(3,1fr)}
  .hero-copy h1{font-size:54px}
}
@media (max-width:900px){
  .menu-button{display:block}
  .nav{position:absolute;top:64px;right:16px;left:16px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:14px;display:none;flex-direction:column;align-items:stretch;gap:10px;box-shadow:var(--shadow)}
  .nav.open{display:flex}
  .nav a{padding:10px 12px;border-radius:12px}
  .nav a:hover{background:#f4f7fb}
  .nav a::after{display:none}
  .hero-panel{min-height:460px;padding:34px 28px;background-position:62% center}
  .hero-copy h1{font-size:42px}
  .hero-copy .lead{font-size:17px}
  .service-grid,.works-grid.compact,.contact-grid{grid-template-columns:1fr 1fr}
  .about-card{grid-template-columns:1fr}
  .about-copy{padding:28px}
  .section-head{display:block}
  .contact-copy h2,.section-head h2,.about-copy h2,.article-card h1{font-size:34px}
  .footer-inner{grid-template-columns:1fr;justify-items:center;text-align:center}
}
@media (max-width:640px){
  .shell{width:min(100% - 20px,1260px)}
  .site-header{padding:8px 0}
  .brand{font-size:16px}
  .brand-mark{width:34px;height:34px}
  .hero{padding-top:12px}
  .hero-panel{min-height:420px;padding:24px 20px;border-radius:24px;background-image:linear-gradient(180deg, rgba(249,251,255,.92) 0%, rgba(249,251,255,.72) 40%, rgba(249,251,255,.18) 100%), var(--hero)}
  .hero-copy h1{font-size:36px}
  .hero-actions{flex-direction:column;align-items:stretch}
  .btn{width:100%}
  .service-grid,.works-grid.compact,.contact-grid{grid-template-columns:1fr}
  .service-body h3{font-size:21px}
  .news-row{grid-template-columns:1fr;gap:6px}
  .news-row b{display:none}
  .contact-wrap{padding:52px 0}
  .contact-copy h2,.section-head h2,.about-copy h2,.article-card h1{font-size:28px}
  .contact-form{padding:18px}
  .article-card{padding:20px}
}
.registration-badge{display:inline-flex;align-items:center;gap:10px;margin-top:18px;padding:10px 14px;border-radius:14px;background:rgba(255,255,255,.78);border:1px solid rgba(206,217,235,.95);box-shadow:0 8px 20px rgba(16,40,75,.07);color:var(--navy);font-size:13px}
.registration-badge span{font-weight:700;color:#536787}
.registration-badge strong{font-size:14px;letter-spacing:.02em}
.registration-wrap{padding-top:22px}
.registration-card{max-width:920px;margin:0 auto;background:linear-gradient(145deg,#fff 0,#f7faff 100%);border:1px solid #d9e3f2;border-radius:26px;padding:28px;box-shadow:var(--shadow)}
.registration-card-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-bottom:18px;border-bottom:2px solid #183c73}
.registration-kicker{display:block;font-size:10px;letter-spacing:.18em;color:#6d7f9c;font-weight:800;margin-bottom:4px}
.registration-card-head h3{font-size:28px;line-height:1.2;letter-spacing:-.03em;color:#17345f}
.registration-seal{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:#edf4ff;color:#204f97;font-size:25px;border:1px solid #d5e3f7}
.registration-table{margin:0}
.registration-table>div{display:grid;grid-template-columns:230px 1fr;border-bottom:1px solid #e1e7f0;min-height:58px;align-items:stretch}
.registration-table dt,.registration-table dd{margin:0;padding:15px 18px;display:flex;align-items:center}
.registration-table dt{background:#f1f5fb;font-size:13px;font-weight:800;color:#455a79}
.registration-table dd{font-size:16px;font-weight:700;color:#1c3153;word-break:break-word}
.registration-note{margin-top:14px;color:#7b879a;font-size:12px;text-align:right}
.footer-legal{display:grid;gap:4px;text-align:center}
.footer-legal p{margin:0}
.footer-legal small{font-size:11px;color:#bfcde4}
@media(max-width:640px){
  .registration-card{padding:18px;border-radius:20px}
  .registration-card-head h3{font-size:23px}
  .registration-table>div{grid-template-columns:1fr;min-height:auto;border-bottom:1px solid #e1e7f0}
  .registration-table dt{padding:10px 14px 5px;background:transparent;color:#6d7c92;font-size:11px}
  .registration-table dd{padding:0 14px 12px;font-size:15px}
  .registration-note{text-align:left}
  .registration-badge{display:grid;gap:2px}
}


/* ===== Portfolio / Works upgrade ===== */
.btn.ghost{background:rgba(16,40,75,.06);border-color:rgba(16,40,75,.12);color:var(--navy)}
.work-content{padding:15px 16px 18px}
.work-category{display:inline-flex;align-items:center;min-height:26px;padding:0 9px;border-radius:999px;background:#eef4ff;color:#315d9e;font-size:11px;font-weight:800;letter-spacing:.02em;margin-bottom:8px}
.work-content h3{font-size:19px;line-height:1.35;letter-spacing:-.02em;margin:0 0 7px;color:var(--navy)}
.work-content p{font-size:13px;line-height:1.7;color:var(--muted);margin:0}
.work-link{display:inline-flex;margin-top:12px;color:var(--blue);font-weight:800;font-size:13px}
.works-cta{margin-top:22px;padding:26px 28px;border:1px solid #d9e3f3;border-radius:24px;background:linear-gradient(120deg,#f8fbff 0,#eef5ff 100%);display:flex;align-items:center;justify-content:space-between;gap:28px;box-shadow:0 12px 30px rgba(16,40,75,.05)}
.works-cta h3{font-size:27px;letter-spacing:-.03em;color:var(--navy);margin:4px 0 6px}
.works-cta p{color:var(--muted);margin:0}

.portfolio-main{padding-bottom:72px}
.portfolio-hero{padding-top:34px}
.portfolio-hero-card{position:relative;overflow:hidden;border-radius:34px;padding:62px 56px;background:linear-gradient(135deg,#0d2344 0%,#174a8a 62%,#2778c8 100%);color:#fff;box-shadow:0 28px 60px rgba(12,38,74,.20)}
.portfolio-hero-card:before,.portfolio-hero-card:after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.08);pointer-events:none}
.portfolio-hero-card:before{width:360px;height:360px;right:-90px;top:-180px}
.portfolio-hero-card:after{width:220px;height:220px;right:170px;bottom:-150px}
.portfolio-hero-copy{position:relative;z-index:1;max-width:780px}
.portfolio-hero .eyebrow{color:#a9cfff}
.portfolio-hero h1{font-size:58px;line-height:1.08;letter-spacing:-.045em;margin:8px 0 18px}
.portfolio-hero .lead{font-size:18px;line-height:1.9;color:#e2ecfa;max-width:720px}
.portfolio-stat-row{position:relative;z-index:1;display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.portfolio-stat{min-width:120px;padding:12px 16px;border-radius:16px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.10);backdrop-filter:blur(8px)}
.portfolio-stat strong{display:block;font-size:24px;line-height:1.1}.portfolio-stat span{font-size:11px;color:#d3e4fa}
.portfolio-section{padding-top:56px}
.portfolio-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:22px}
.portfolio-head h2{font-size:38px;letter-spacing:-.04em;color:var(--navy);margin:3px 0 0}
.portfolio-head p{max-width:620px;color:var(--muted)}
.featured-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.featured-card{position:relative;overflow:hidden;min-height:250px;border-radius:24px;border:1px solid var(--line);background:#fff;box-shadow:0 14px 34px rgba(15,35,71,.07)}
.featured-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.featured-card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(7,23,47,.02) 25%,rgba(8,27,56,.88) 100%)}
.featured-card-body{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:22px;color:#fff}
.featured-card-body span{display:inline-flex;padding:5px 8px;border-radius:999px;background:rgba(255,255,255,.16);font-size:10px;font-weight:800;backdrop-filter:blur(8px)}
.featured-card-body h3{font-size:22px;margin:7px 0 5px}.featured-card-body p{font-size:13px;color:#e9f0f9;line-height:1.65}
.portfolio-tools{position:sticky;top:74px;z-index:20;background:rgba(247,250,255,.92);backdrop-filter:blur(12px);padding:12px 0;margin-bottom:16px}
.portfolio-controls{display:flex;gap:10px;align-items:center;justify-content:space-between}
.filter-tabs{display:flex;gap:8px;overflow:auto;padding:2px 0;scrollbar-width:none}.filter-tabs::-webkit-scrollbar{display:none}
.filter-btn{white-space:nowrap;border:1px solid #d8e2ef;background:#fff;color:#53647f;border-radius:999px;padding:10px 14px;font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.filter-btn.active{background:var(--navy);color:#fff;border-color:var(--navy)}
.portfolio-search{width:min(300px,36vw);border:1px solid #d8e2ef;background:#fff;border-radius:999px;padding:11px 16px;font:inherit;outline:none}.portfolio-search:focus{border-color:#7fa6df;box-shadow:0 0 0 4px rgba(45,104,184,.09)}
.project-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.project-card{display:flex;flex-direction:column;min-height:290px;padding:20px;border-radius:22px;background:#fff;border:1px solid var(--line);box-shadow:0 10px 28px rgba(15,35,71,.055);transition:.22s ease}
.project-media{display:flex;gap:7px;margin:-6px -6px 14px;overflow:auto;scroll-snap-type:x mandatory;padding-bottom:2px}.project-media a{flex:0 0 72%;scroll-snap-align:start;border-radius:14px;overflow:hidden;border:1px solid #e2e8f1;background:#edf2f8}.project-media a:only-child{flex-basis:100%}.project-media img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}.project-card:has(.project-media){min-height:390px}
.project-card:hover{transform:translateY(-3px);box-shadow:0 18px 38px rgba(15,35,71,.10)}
.project-card[hidden]{display:none}
.project-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.project-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:16px;background:linear-gradient(145deg,#edf5ff,#f7f9fd);border:1px solid #dbe6f5;font-size:22px;color:var(--navy)}
.project-tech{font-size:10px;font-weight:800;color:#61718a;background:#f3f6fa;border-radius:999px;padding:6px 8px}
.project-card h3{font-size:20px;line-height:1.35;letter-spacing:-.025em;color:var(--navy);margin:16px 0 8px}
.project-card>p{font-size:13px;color:var(--muted);line-height:1.75;margin:0 0 13px}
.project-features{font-size:12px;line-height:1.65;color:#53647f;background:#f7f9fc;border:1px solid #edf1f6;border-radius:14px;padding:11px 12px;margin-bottom:14px}
.project-meta{display:flex;gap:7px;flex-wrap:wrap;margin-top:auto}.project-meta span{padding:6px 8px;border-radius:999px;background:#eef4fb;color:#526783;font-size:10px;font-weight:800}
.project-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;padding-top:12px;border-top:1px solid #edf1f6}.project-actions .status{font-size:11px;color:#75839a}.project-actions a{font-size:12px;font-weight:800;color:var(--blue)}
.portfolio-note{margin-top:22px;padding:18px 20px;border-radius:18px;background:#f6f9fd;border:1px solid #e0e8f3;color:#66758c;font-size:12px;line-height:1.8}
.empty-projects{padding:40px;text-align:center;color:#728098;border:1px dashed #ccd8e8;border-radius:20px;background:#fff}

@media(max-width:1000px){.featured-grid,.project-grid{grid-template-columns:1fr 1fr}.portfolio-hero h1{font-size:46px}.portfolio-hero-card{padding:48px 36px}}
@media(max-width:700px){
  .works-cta{align-items:flex-start;flex-direction:column;padding:21px}.works-cta .btn{width:100%}.works-cta h3{font-size:23px}
  .portfolio-main{padding-bottom:50px}.portfolio-hero{padding-top:14px}.portfolio-hero-card{padding:38px 22px;border-radius:26px}.portfolio-hero h1{font-size:37px}.portfolio-hero .lead{font-size:15px}.portfolio-stat{min-width:calc(50% - 6px);flex:1}
  .portfolio-section{padding-top:40px}.portfolio-head{display:block}.portfolio-head h2{font-size:30px}.featured-grid,.project-grid{grid-template-columns:1fr}
  .portfolio-tools{top:58px}.portfolio-controls{display:block}.portfolio-search{width:100%;margin-top:10px;border-radius:14px}.filter-tabs{padding-bottom:2px}
}
