:root{
  --navy:#07111d;
  --blue:#009fe8;
  --gold:#c9a46a;
  --ink:#17202a;
  --muted:#6b7280;
  --paper:#f7f4ee;
  --white:#fff;
  --wine:#b0005a;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic",Meiryo,sans-serif;
  color:var(--ink);
  background:#fff;
  line-height:1.8;
}

a{
  color:inherit;
  text-decoration:none;
}

img{
  max-width:100%;
  display:block;
}

.inner{
  width:min(1120px,92%);
  margin:auto;
}

/* =========================
   HEADER
========================= */

.header{
  position:sticky;
  top:0;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(12px);
  z-index:100;
  border-bottom:1px solid #eee;
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 0;
}

.brand{
  display:flex;
  gap:10px;
  align-items:center;
  font-weight:800;
  letter-spacing:.06em;
  line-height:1.1;
}

.brand img{
  width:58px;
  height:58px;
  object-fit:contain;
}

.menu{
  display:flex;
  gap:18px;
  align-items:center;
  font-size:14px;
}

.menu a{
  white-space:nowrap;
}

.cta,
.btn{
  border-radius:999px;
  padding:10px 18px;
  font-weight:700;
}

.cta{
  background:var(--navy);
  color:#fff;
}

/* =========================
   HERO
========================= */

.hero{
  min-height:82vh;
  background:
    linear-gradient(90deg,rgba(7,17,29,.86),rgba(7,17,29,.35)),
    url('assets/hero.jpg') center/cover;
  display:grid;
  align-items:center;
  color:#fff;
}

.eyebrow{
  letter-spacing:.18em;
  color:var(--gold);
  font-weight:800;
  font-size:13px;
  text-transform:uppercase;
}

.hero h1{
  font-size:clamp(44px,7vw,86px);
  line-height:1.05;
  margin:16px 0;
}

.hero p,
.lead{
  font-size:clamp(16px,2vw,20px);
  max-width:720px;
}

.hero-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:28px;
}

.btn{
  display:inline-block;
  border:1px solid currentColor;
}

.primary{
  background:#fff;
  color:var(--navy);
  border-color:#fff;
}

.ghost{
  color:#fff;
}

.blue{
  background:var(--blue);
  color:#fff;
  border-color:var(--blue);
}

/* =========================
   SECTION
========================= */

.section{
  padding:72px 0;
}

.white{
  background:#fff;
}

.paper{
  background:var(--paper);
}

.dark{
  background:var(--navy);
  color:#fff;
}

.title{
  font-size:clamp(30px,4vw,52px);
  line-height:1.22;
  margin:12px 0 22px;
}

/* =========================
   GRID
========================= */

.grid{
  display:grid;
  gap:28px;
}

.two{
  grid-template-columns:1.05fr .95fr;
}

.three{
  grid-template-columns:repeat(3,1fr);
}

/* =========================
   CARD
========================= */

.card,
.service-card,
.work-card,
.news-card{
  background:#fff;
  border-radius:26px;
  overflow:hidden;
  box-shadow:0 18px 50px rgba(0,0,0,.08);
}

.card{
  padding:32px;
}

.service-card img,
.work-card img,
.news-card img{
  height:250px;
  width:100%;
  object-fit:cover;
}

.service-card h3,
.service-card p,
.work-card h3,
.work-card p,
.news-card h3,
.news-card p{
  padding:0 24px;
}

.service-card p,
.work-card p,
.news-card p{
  padding-bottom:24px;
  color:var(--muted);
}

/* =========================
   PAGE HERO
========================= */

.page-hero{
  padding:96px 0;
  background:
    linear-gradient(90deg,rgba(7,17,29,.88),rgba(7,17,29,.4)),
    url('assets/hall_wide.jpg') center/cover;
  color:#fff;
}

.anchor-nav{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:20px;
}

.anchor-nav a{
  background:#fff;
  color:var(--navy);
  padding:10px 16px;
  border-radius:999px;
  font-weight:700;
}

/* =========================
   GALLERY
========================= */

.gallery{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}

.gallery img{
  width:100%;
  height:210px;
  object-fit:cover;
  border-radius:18px;
}

.gallery .wide{
  grid-column:span 2;
}

/* =========================
   FOOTER
========================= */

.footer{
  background:#050b12;
  color:#fff;
  padding:52px 0;
}

.footer-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}

/* =========================
   FLOW
========================= */

.flow-section{
  display:flex;
  align-items:stretch;
  justify-content:center;
  gap:16px;
  margin-top:40px;
  flex-wrap:wrap;
}

.flow-card{
  background:#fff;
  color:#111;
  border-radius:20px;
  padding:22px;
  width:220px;
  border:1px solid #dfe5ef;
  box-shadow:0 8px 24px rgba(0,0,0,.04);
}

.flow-step{
  font-size:13px;
  letter-spacing:.12em;
  color:#c8a96b;
  margin-bottom:10px;
  font-weight:bold;
}

.flow-card h3{
  font-size:22px;
  margin-bottom:10px;
  color:#001b44;
}

.flow-card p{
  font-size:14px;
  line-height:1.7;
  color:#555;
}

/* =========================
   CONTACT FORM
========================= */

.contact-form{
  display:block;
  max-width:720px;
  width:100%;
  margin-top:40px;
}

.contact-form input,
.contact-form select,
.contact-form textarea{
  width:100%;
  padding:16px 18px;
  border:1px solid #d9dfeb;
  border-radius:14px;
  font-size:16px;
  background:#fff;
  margin-bottom:16px;
}

.contact-form textarea{
  min-height:180px;
  resize:vertical;
}

.contact-form button{
  background:#07111f;
  color:#fff;
  border:none;
  border-radius:999px;
  padding:16px 32px;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
}

/* =========================
   TIMELINE
========================= */

.timeline{
  margin-top:50px;
}

.timeline-item{
  display:flex;
  gap:40px;
  padding:40px 0;
  border-bottom:1px solid #e5e7eb;
}

.timeline-year{
  min-width:90px;
  font-size:34px;
  font-weight:700;
  color:#001b44;
  line-height:1;
}

/* =========================
   PARTNERS
========================= */

.partners-compact{
  padding:0;
  background:#f7f4ee;
}

.partners-title{
  font-size:42px;
  line-height:1.1;
  margin-bottom:10px;
  color:#111;
}

.partners-lead{
  max-width:760px;
  font-size:17px;
  line-height:1.8;
  color:#444;
  margin-bottom:14px;
}

.partners-list{
  list-style:none;
  padding:0;
  margin:0 0 10px;
}

.partners-list li{
  position:relative;
  padding-left:20px;
  margin-bottom:2px;
  font-size:19px;
  line-height:1.6;
  color:#001b44;
  font-weight:600;
}

.partners-list li::before{
  content:"・";
  position:absolute;
  left:0;
  top:0;
  color:#c8a96b;
}

/* =========================
   ACHIEVEMENT
========================= */

.achievement-list{
  width:100%;
  margin-top:20px;
  border-top:1px solid #e5e7eb;
}

.achievement-group{
  width:100%;
  padding:24px 0;
  border-bottom:1px solid #e5e7eb;
}

.achievement-group h3{
  font-size:20px;
  color:#001b44;
  margin-bottom:14px;
}

.achievement-group ul{
  margin:0;
  padding-left:1.2em;
}

.achievement-group li{
  margin-bottom:10px;
  font-size:15px;
  line-height:1.8;
  color:#333;
}

/* =========================
   WORKS TABLE
========================= */

.works-table-wrap{
  width:100%;
  overflow-x:auto;
  margin-top:32px;
}

.works-table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  font-size:15px;
}

.works-table th{
  text-align:left;
  padding:14px 12px;
  border-bottom:2px solid #001b44;
  color:#001b44;
  font-size:14px;
  letter-spacing:.06em;
}

.works-table td{
  padding:14px 12px;
  border-bottom:1px solid #e5e7eb;
  line-height:1.8;
  vertical-align:top;
}

.works-table td:first-child{
  width:140px;
  white-space:nowrap;
  color:#666;
}

.works-table tr:hover{
  background:#fafafa;
}

/* =========================
   PC / MOBILE SWITCH
========================= */

.pc-only{
  display:block;
}

.mobile-only{
  display:none;
}

@media screen and (max-width:768px){

  .pc-only{
    display:none !important;
  }

  .mobile-only{
    display:block !important;
  }

}

/* =========================
   MOBILE
========================= */

.mobile-actions{
  display:none;
  align-items:center;
  gap:10px;
}

.mobile-consult{
  background:var(--navy);
  color:#fff;
  border-radius:999px;
  padding:9px 14px;
  font-weight:800;
  font-size:13px;
}

.menu-toggle{
  width:44px;
  height:44px;
  border:1px solid #e5e7eb;
  border-radius:999px;
  background:#fff;
}

@media(max-width:900px){

  .two,
  .three,
  .footer-grid{
    grid-template-columns:1fr;
  }

  .gallery{
    grid-template-columns:repeat(2,1fr);
  }

}

@media(max-width:760px){

  .mobile-actions{
    display:flex;
    margin-left:auto;
  }

  .desktop-cta{
    display:none !important;
  }

  .menu{
    display:none;
    position:absolute;
    left:0;
    right:0;
    top:100%;
    background:#fff;
    border-top:1px solid #eee;
    padding:14px 4%;
    grid-template-columns:1fr 1fr;
    gap:8px;
  }

  .menu-open .menu{
    display:grid;
  }

  .menu a{
    padding:12px 10px;
    border-radius:14px;
    background:#f7f4ee;
    text-align:center;
    font-weight:800;
  }

  .section{
    padding:56px 0;
  }

  .gallery{
    grid-template-columns:repeat(2,1fr);
  }

  .gallery .wide{
    grid-column:span 2;
  }

  .timeline-item{
    flex-direction:column;
    gap:16px;
    padding:28px 0;
  }

  .timeline-year{
    font-size:28px;
  }

  .flow-section{
    flex-wrap:nowrap;
    overflow-x:auto;
    justify-content:flex-start;
    gap:14px;
    padding-bottom:12px;
  }

  .flow-card{
    min-width:240px;
    max-width:240px;
  }

  .partners-title{
    font-size:32px;
  }

  .partners-lead{
    font-size:14px;
  }

  .partners-list li{
    font-size:15px;
  }

}

/* Safari emergency fix */
@supports (-webkit-touch-callout: none) {
  .hero,
  .section,
  .cards,
  .grid,
  .nav,
  .inner {
    display: block;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  body {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
  }
}