/* =========================================================
   ELEX Corporate Site
   BALMUDA-inspired clean & professional design
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --c-bg:        #ffffff;
  --c-bg-soft:   #f6f6f4;
  --c-bg-dark:   #111315;
  --c-text:      #1a1c1e;
  --c-text-mute: #6b6f73;
  --c-line:      #e4e4e0;
  --c-accent:    #1f9b46;        /* ELEX brand green */
  --c-accent-dk: #15722f;
  --c-accent-lt: #7fd39e;        /* light green for dark backgrounds */

  --ff-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --ff-en: "Helvetica Neue", Arial, var(--ff-jp);

  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-jp);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.85;
  font-weight: 400;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
ul { list-style: none; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--soft { background: var(--c-bg-soft); }

.sec-head { margin-bottom: clamp(48px, 7vw, 88px); }
.sec-head .en {
  display: block;
  font-family: var(--ff-en);
  font-size: 13px;
  letter-spacing: .35em;
  color: var(--c-accent);
  font-weight: 500;
  margin-bottom: 18px;
}
.sec-head .jp {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 300;
  letter-spacing: .08em;
  line-height: 1.4;
}
.sec-head .lead {
  margin-top: 24px;
  max-width: 640px;
  color: var(--c-text-mute);
  font-size: 15px;
  font-weight: 300;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce){
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 48px);
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.header.is-scrolled {
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  padding-top: 16px; padding-bottom: 16px;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand .logo-img { height: 26px; width: auto; display: block; }
.brand .sub { font-size: 11px; color: var(--c-text-mute); letter-spacing: .12em; }
/* ヘッダー最上部（濃色背景）では白ロゴ、スクロール後（白背景）では緑ロゴへ切替 */
.brand .logo-light { display: none; }
.brand .logo-dark  { display: block; }
.header.is-scrolled .brand .logo-light { display: block; }
.header.is-scrolled .brand .logo-dark  { display: none; }
.header:not(.is-scrolled) .brand .sub { color: rgba(255,255,255,.85); }

.gnav ul { display: flex; gap: 34px; align-items: center; }
.gnav a {
  font-size: 13px; letter-spacing: .12em; font-weight: 500; color: var(--c-text);
  position: relative; padding: 4px 0;
}
.gnav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--c-accent); transition: width .35s var(--ease);
}
.gnav a:hover { color: var(--c-accent); }
.gnav a:hover::after { width: 100%; }
.gnav .btn-contact {
  border: 1px solid var(--c-text); border-radius: 999px; padding: 9px 22px;
}
.gnav .btn-contact:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.gnav .btn-contact::after { display: none; }

.nav-toggle { display: none; width: 30px; height: 22px; position: relative; background: none; border: 0; cursor: pointer; }
.nav-toggle span { position: absolute; left: 0; width: 100%; height: 1.6px; background: var(--c-text); transition: transform .4s var(--ease), opacity .3s; }
.nav-toggle span:nth-child(1){ top: 2px; }
.nav-toggle span:nth-child(2){ top: 10px; }
.nav-toggle span:nth-child(3){ top: 18px; }
body.nav-open .nav-toggle span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2){ opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 120% at 70% 20%, #1b2733 0%, #0d1115 55%, #060708 100%);
}
.hero__bg::after{
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 90% at 70% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 30%, #000 0%, transparent 75%);
}
.hero__glow {
  position: absolute; z-index:-1; width: 60vw; height: 60vw; max-width: 820px; max-height: 820px;
  right: -8vw; top: 8%;
  background: radial-gradient(circle, rgba(31,155,70,.42) 0%, rgba(31,155,70,0) 68%);
  filter: blur(8px); animation: floaty 11s var(--ease) infinite alternate;
}
@keyframes floaty { from { transform: translateY(-18px); } to { transform: translateY(22px); } }

.hero__inner { width: 100%; }
.hero .eyebrow {
  font-family: var(--ff-en); font-size: 13px; letter-spacing: .4em; color: var(--c-accent-lt);
  margin-bottom: 28px; opacity: 0; animation: heroIn 1s var(--ease) .2s forwards;
}
.hero h1 {
  font-size: clamp(34px, 6.4vw, 78px); font-weight: 300; line-height: 1.24; letter-spacing: .04em;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span { display: inline-block; transform: translateY(115%); animation: heroLine 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(1) span { animation-delay: .3s; }
.hero h1 .line:nth-child(2) span { animation-delay: .45s; }
.hero h1 .line:nth-child(3) span { animation-delay: .6s; }
.hero h1 b { font-weight: 500; color: #fff; }
.hero h1 em { font-style: normal; color: var(--c-accent-lt); }

/* ヒーロー・スローガン（PDF指定フォント：Pacifico / Nunito / Noto Sans JP Bold） */
.hero__slogan { line-height: 1.2; letter-spacing: .02em; }
.hero__slogan .hs {
  font-family: "Pacifico", cursive; font-weight: 400; color: #fff;
  font-size: clamp(40px, 8.4vw, 104px); line-height: 1; margin-right: .18em; letter-spacing: 0;
  text-shadow: 0 6px 30px rgba(31,155,70,.35);
}
.hero__slogan .en {
  font-family: "Nunito", var(--ff-en); font-weight: 800; font-style: normal; color: #fff;
  font-size: clamp(20px, 3.4vw, 42px); letter-spacing: .01em;
}
.hero__slogan .line:nth-child(2) .en { color: rgba(255,255,255,.82); font-weight: 700; }
.hero__slogan .jp {
  font-family: var(--ff-jp); font-weight: 700; color: var(--c-accent-lt);
  font-size: clamp(22px, 4vw, 50px); letter-spacing: .06em;
}
.hero p.sub {
  margin-top: 34px; max-width: 540px; font-size: clamp(14px,1.4vw,16px); font-weight: 300;
  color: rgba(255,255,255,.74); opacity: 0; animation: heroIn 1s var(--ease) .9s forwards;
}
.hero .hero-cta { margin-top: 46px; display: flex; gap: 16px; flex-wrap: wrap; opacity: 0; animation: heroIn 1s var(--ease) 1.05s forwards; }

@keyframes heroLine { to { transform: none; } }
@keyframes heroIn { to { opacity: 1; } }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 34px; border-radius: 999px; font-size: 14px; font-weight: 500; letter-spacing: .1em;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s, border-color .3s;
}
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-dk); transform: translateY(-2px); }
.btn--ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--c-bg-dark); transform: translateY(-2px); }
.btn--dark { background: var(--c-text); color: #fff; }
.btn--dark:hover { background: var(--c-accent); transform: translateY(-2px); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.scroll-hint {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  font-family: var(--ff-en); font-size: 10px; letter-spacing: .3em; color: rgba(255,255,255,.6);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint .bar { width: 1px; height: 48px; background: rgba(255,255,255,.4); position: relative; overflow: hidden; }
.scroll-hint .bar::after { content:""; position:absolute; left:0; top:-50%; width:100%; height:50%; background:var(--c-accent-lt); animation: scrollMove 1.8s var(--ease) infinite; }
@keyframes scrollMove { 0%{ top:-50%;} 100%{ top:100%; } }

/* =========================================================
   About / 会社概要
   ========================================================= */
.about__single { max-width: 760px; margin: 0 auto; }

.profile { width: 100%; border-top: 1px solid var(--c-line); }
.profile dl { display: flex; border-bottom: 1px solid var(--c-line); padding: 18px 4px; gap: 20px; }
.profile dt { flex: 0 0 130px; font-size: 13px; font-weight: 500; color: var(--c-text-mute); letter-spacing: .08em; padding-top: 1px; }
.profile dd { font-size: 15px; font-weight: 400; }
.profile dd small { color: var(--c-text-mute); }

/* =========================================================
   Business / 事業内容
   ========================================================= */
.biz__grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.biz-card {
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 14px;
  padding: clamp(30px,3.4vw,46px) clamp(26px,2.6vw,38px); min-height: 280px;
  display: flex; flex-direction: column; position: relative; transition: background .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.biz-card:hover { background: var(--c-bg-dark); border-color: var(--c-bg-dark); transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(0,0,0,.45); }
.biz-card:hover .biz-card__no,
.biz-card:hover h3,
.biz-card:hover p { color: #fff; }
.biz-card:hover .biz-card__icon { border-color: rgba(255,255,255,.3); color: var(--c-accent-lt); }
.biz-card__no { font-family: var(--ff-en); font-size: 12px; letter-spacing: .2em; color: var(--c-accent); transition: color .4s; }
.biz-card__icon {
  width: 52px; height: 52px; border: 1px solid var(--c-line); border-radius: 50%;
  display: grid; place-items: center; margin: 22px 0 26px; color: var(--c-accent); transition: color .4s, border-color .4s;
}
.biz-card__icon svg { width: 24px; height: 24px; }
.biz-card h3 { font-size: 18px; font-weight: 500; letter-spacing: .06em; line-height: 1.5; transition: color .4s; }
.biz-card p { margin-top: 14px; font-size: 13.5px; font-weight: 300; color: var(--c-text-mute); line-height: 1.8; transition: color .4s; }

/* =========================================================
   Services / サービスバナー
   ========================================================= */
.svc__list { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; align-items: stretch; }
/* バナーとテキストを一体化した1枚カード */
.svc-card {
  display: flex; flex-direction: column; color: #fff; overflow: hidden;
  border-radius: 16px; background: var(--c-bg-dark);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -22px rgba(0,0,0,.55); }
.svc-card__body { flex: 1 1 auto; display: flex; flex-direction: column; padding: 34px; }
.svc-card__banner { line-height: 0; overflow: hidden; }
.svc-card__banner img { width: 100%; height: auto; display: block; transition: transform .6s var(--ease); }
.svc-card:hover .svc-card__banner img { transform: scale(1.05); }
.svc-card .cat { font-family: var(--ff-en); font-size: 11px; letter-spacing: .26em; color: rgba(255,255,255,.7); }
.svc-card h3 { margin-top: 12px; font-size: 24px; font-weight: 500; letter-spacing: .04em; }
.svc-card .reading { display: block; margin-top: 5px; font-size: 12px; font-weight: 300; letter-spacing: .14em; color: var(--c-accent-lt); }
.svc-card p { margin-top: 10px; font-size: 13px; font-weight: 300; color: rgba(255,255,255,.8); }
.svc-card .go { margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .1em; }
.svc-card .go .arrow { transition: transform .3s var(--ease); }
.svc-card:hover .go .arrow { transform: translateX(5px); }

/* =========================================================
   Locations / 拠点
   ========================================================= */
.loc__layout { display: grid; grid-template-columns: 360px 1fr; gap: clamp(30px,4vw,56px); align-items: start; }
.loc__tabs { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 110px; }
.loc-tab {
  text-align: left; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 12px;
  padding: 20px 22px; cursor: pointer; transition: all .35s var(--ease); font-family: var(--ff-jp);
}
.loc-tab:hover { border-color: #c8c8c2; }
.loc-tab.is-active { background: var(--c-bg-dark); border-color: var(--c-bg-dark); }
.loc-tab.is-active .loc-tab__en,
.loc-tab.is-active .loc-tab__name,
.loc-tab.is-active .loc-tab__addr { color: #fff; }
.loc-tab.is-active .loc-tab__en { color: var(--c-accent-lt); }
.loc-tab__en { display: block; font-family: var(--ff-en); font-size: 11px; letter-spacing: .2em; color: var(--c-accent); }
.loc-tab__name { display: block; font-size: 16px; font-weight: 500; margin-top: 6px; letter-spacing: .04em; }
.loc-tab__addr { display: block; font-size: 12.5px; color: var(--c-text-mute); font-weight: 300; margin-top: 4px; }

.loc__panel { position: relative; }
.loc-detail { display: none; }
.loc-detail.is-active { display: block; animation: fadeUp .6s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px);} to { opacity:1; transform:none; } }
.loc-detail__media { display: grid; grid-template-columns: 1.05fr 1fr; gap: 16px; }
.loc-detail__photo { border-radius: 14px; overflow: hidden; border: 1px solid var(--c-line); aspect-ratio: 16/10; background: var(--c-bg-soft); }
.loc-detail__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.loc-detail__photo:hover img { transform: scale(1.05); }
.loc-detail__map { border-radius: 14px; overflow: hidden; border: 1px solid var(--c-line); aspect-ratio: 16/10; background: var(--c-bg-soft); }
.loc-detail__map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.2); }
.loc-detail__info { margin-top: 22px; display: grid; grid-template-columns: auto auto auto; gap: 16px 40px; align-items: start; }
.loc-detail__info .k { font-size: 11px; letter-spacing: .12em; color: var(--c-accent); font-weight: 500; }
.loc-detail__info .v { font-size: 14.5px; margin-top: 4px; }
.loc-map-link { display: inline-flex; align-items: center; gap: 6px; color: var(--c-accent); font-weight: 500; }
.loc-map-link:hover { color: var(--c-accent-dk); text-decoration: underline; }
.loc-map-link .arrow { transition: transform .3s var(--ease); }
.loc-map-link:hover .arrow { transform: translate(2px,-2px); }

/* =========================================================
   Contact
   ========================================================= */
.contact { background: var(--c-bg-dark); color: #fff; }
.contact .sec-head .jp { color: #fff; }
.contact .sec-head .lead { color: rgba(255,255,255,.66); }
.contact__layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px,6vw,80px); align-items: start; }
.contact__aside .row { padding: 22px 0; border-top: 1px solid rgba(255,255,255,.14); }
.contact__aside .row:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.contact__aside .k { font-family: var(--ff-en); font-size: 11px; letter-spacing: .22em; color: var(--c-accent-lt); }
.contact__aside .v { font-size: 18px; font-weight: 300; margin-top: 6px; }
.contact__aside .v.tel { font-size: 30px; font-weight: 300; letter-spacing: .03em; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form .field { display: flex; flex-direction: column; gap: 9px; }
.form .field.full { grid-column: 1 / -1; }
.form label { font-size: 12px; letter-spacing: .1em; color: rgba(255,255,255,.7); }
.form label .req { color: #ff6b6b; margin-left: 6px; font-size: 11px; }
.form input, .form textarea, .form select {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.18); border-radius: 8px;
  padding: 14px 16px; color: #fff; font-family: var(--ff-jp); font-size: 14.5px; letter-spacing: .04em;
  transition: border-color .3s, background .3s;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(255,255,255,.35); }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--c-accent); background: rgba(31,155,70,.10); }
.form textarea { resize: vertical; min-height: 150px; }
.form select option { color: #111; }
.form__foot { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-top: 6px; }
.form .agree { font-size: 12.5px; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 10px; }
.form .agree a { color: var(--c-accent-lt); text-decoration: underline; }
.form button[type=submit] { border: 0; cursor: pointer; font-family: var(--ff-jp); }

.form-alert { grid-column: 1/-1; padding: 16px 20px; border-radius: 8px; font-size: 14px; }
.form-alert--ok { background: rgba(13,107,90,.25); border: 1px solid rgba(36,200,160,.5); color: #b8ffe9; }
.form-alert--err { background: rgba(160,30,40,.22); border: 1px solid rgba(255,90,90,.5); color: #ffc9c9; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: #08090a; color: rgba(255,255,255,.6); padding: 64px 0 36px; }
.footer__top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand .logo-img { height: 30px; width: auto; opacity: .95; }
.footer__brand p { margin-top: 16px; font-size: 12.5px; font-weight: 300; line-height: 1.9; }
.footer__nav { display: flex; gap: 60px; flex-wrap: wrap; }
.footer__nav .col h4 { font-family: var(--ff-en); font-size: 11px; letter-spacing: .2em; color: #fff; margin-bottom: 16px; }
.footer__nav .col a { display: block; font-size: 13px; font-weight: 300; padding: 5px 0; }
.footer__nav .col a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 26px; font-size: 11.5px; letter-spacing: .06em; }
.footer__bottom .pages a { margin-left: 18px; }
.footer__bottom .pages a:hover { color: #fff; text-decoration: underline; }

/* =========================================================
   Legal page（プライバシーポリシー等）
   ========================================================= */
.header--solid {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06); position: fixed;
}
.header--solid .brand .logo-light { display: block; }
.gnav--simple { position: static; background: none; opacity: 1; pointer-events: auto; display: flex; }
.gnav--simple ul { flex-direction: row; }
.gnav--simple a { color: var(--c-text); font-size: 13px; }

.legal { padding: 150px 0 90px; }
.legal__head { max-width: 820px; margin: 0 auto clamp(40px,6vw,64px); }
.legal__head .en { display: block; font-family: var(--ff-en); font-size: 13px; letter-spacing: .35em; color: var(--c-accent); font-weight: 500; margin-bottom: 16px; }
.legal__head .jp { font-size: clamp(28px,4.4vw,44px); font-weight: 300; letter-spacing: .06em; }
.legal__intro { margin-top: 26px; color: var(--c-text-mute); font-size: 15px; font-weight: 300; line-height: 1.95; }
.legal__sec { max-width: 820px; margin: 0 auto; padding: 30px 0; border-top: 1px solid var(--c-line); }
.legal__sec h2 { font-size: 18px; font-weight: 600; letter-spacing: .04em; color: var(--c-text); margin-bottom: 14px; }
.legal__sec p { font-size: 14.5px; font-weight: 300; line-height: 1.95; color: #3a3d40; }
.legal__sec ul { margin-top: 12px; padding-left: 0; }
.legal__sec li { position: relative; padding-left: 20px; font-size: 14.5px; font-weight: 300; line-height: 1.9; color: #3a3d40; }
.legal__sec li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); }
.legal__contact p { margin: 4px 0; }
.legal__contact a { color: var(--c-accent); }
.legal__back { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 500; color: var(--c-accent) !important; }
.legal__back:hover { color: var(--c-accent-dk) !important; }
.legal__back:hover .arrow { transform: translateX(4px); }
.legal__back .arrow { transition: transform .3s var(--ease); }
.legal__date { max-width: 820px; margin: 40px auto 0; font-size: 13px; color: var(--c-text-mute); }

/* =========================================================
   Privacy Modal（読了で同意）
   ========================================================= */
.agree-link { background: none; border: 0; padding: 0; font: inherit; letter-spacing: inherit;
  color: var(--c-accent-lt); text-decoration: underline; cursor: pointer; }
.agree-link:hover { color: #fff; }
.agree-note { width: 100%; margin-top: 12px; font-size: 12px; color: rgba(255,255,255,.5); }
.form__foot .btn--primary:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.form .agree input:disabled + span { opacity: .8; }

.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.is-open { display: block; }
body.modal-open { overflow: hidden; }
.modal__overlay { position: absolute; inset: 0; background: rgba(8,9,10,.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: heroIn .3s var(--ease); }
.modal__panel {
  position: relative; z-index: 1; width: min(720px, calc(100% - 36px)); max-height: 86vh;
  margin: 7vh auto 0; background: #fff; color: var(--c-text); border-radius: 16px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 34px 80px -24px rgba(0,0,0,.55); animation: modalIn .45s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 28px; border-bottom: 1px solid var(--c-line); }
.modal__en { display: block; font-family: var(--ff-en); font-size: 11px; letter-spacing: .3em; color: var(--c-accent); font-weight: 500; }
.modal__title { font-size: 22px; font-weight: 500; margin-top: 5px; letter-spacing: .04em; }
.modal__close { background: none; border: 0; font-size: 28px; line-height: 1; color: var(--c-text-mute); cursor: pointer; padding: 0 4px; transition: color .3s; }
.modal__close:hover { color: var(--c-text); }
.modal__body { overflow-y: auto; padding: 6px 28px 14px; flex: 1 1 auto; -webkit-overflow-scrolling: touch; }
.modal__body .legal__intro { margin-top: 18px; color: var(--c-text-mute); font-size: 14px; font-weight: 300; line-height: 1.9; }
.modal__body .legal__sec { padding: 20px 0; max-width: none; margin: 0; }
.modal__body .legal__sec:first-of-type { border-top: none; }
.modal__body .legal__date { margin: 22px 0 0; }
.modal__sentinel { height: 1px; }
.modal__foot { padding: 18px 28px; border-top: 1px solid var(--c-line); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.modal__hint { font-size: 12.5px; color: var(--c-text-mute); }
.modal__hint.is-ready { color: var(--c-accent); font-weight: 500; }
.modal__foot .btn--primary:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px){
  .about__grid { grid-template-columns: 1fr; }
  .biz__grid { grid-template-columns: repeat(2,1fr); }
  .svc__list { grid-template-columns: 1fr; }
  .loc__layout { grid-template-columns: 1fr; }
  .loc__tabs { position: static; flex-direction: column; overflow: visible; }
  .loc-tab { flex: none; width: 100%; }
  .loc-detail__media { grid-template-columns: 1fr; }
  .loc__panel { margin-top: 6px; }
  .contact__layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px){
  .gnav { position: fixed; inset: 0; background: rgba(12,14,16,.97); flex-direction: column; justify-content: center;
          display: flex; opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); z-index: 90; }
  .gnav ul { flex-direction: column; gap: 28px; text-align: center; }
  .gnav a { color: #fff; font-size: 17px; }
  .gnav .btn-contact { border-color: rgba(255,255,255,.6); }
  body.nav-open .gnav { opacity: 1; pointer-events: auto; }
  .nav-toggle { display: block; z-index: 110; }
  body.nav-open .nav-toggle span { background: #fff; }
  .form { grid-template-columns: 1fr; }
  .loc-detail__info { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  .biz__grid { grid-template-columns: 1fr; }
  .profile dl { flex-direction: column; gap: 4px; }
  .profile dt { flex-basis: auto; }
}
