@charset "UTF-8";
/* =========================================================
   Re'Dent corporate site — monochrome / minimal design system
   学生の美を磨く / 洗練 × 親しみやすさ
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ---------- Tokens ---------- */
:root {
  /* Brand palette — derived from the Re'Dent logo
     dusty blue #839cbb / sage green #8ab39f / white */
  --ink:    #374c63;   /* deep dusty slate-blue: text, dark sections, buttons */
  --ink-2:  #5e7186;   /* secondary text */
  --blue:   #839cbb;   /* brand blue — hero, accents, placeholders */
  --blue-soft: #aac0d8;
  --green:  #8ab39f;   /* sage accent */
  --green-deep: #5f8c75;
  --muted:  #93a1b3;   /* labels / captions (blue-gray) */
  --line:   #e2e8f0;   /* hairlines (blue-tinted) */
  --bg:     #ffffff;
  --bg-2:   #eef3f9;   /* soft blue section bg */
  --bg-3:   #e3ecf4;
  --ph-1:   #dde7f2;   /* placeholder light (blue-tinted) */
  --ph-2:   #c1d2e3;   /* placeholder dark (blue-tinted) */
  --maxw:   1180px;
  --pad:    clamp(20px, 5vw, 40px);
  --ease:   cubic-bezier(.22, .68, .2, 1);
  --en: "Inter", system-ui, sans-serif;
  --ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
}

/* ---------- Base ---------- */
html, body { height: 100%; }
body {
  font-family: var(--ja);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  letter-spacing: .02em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(72px, 12vw, 140px); }
.section--tight { padding-block: clamp(56px, 9vw, 96px); }
.bg-soft { background: var(--bg-2); }
.bg-ink  { background: var(--ink); color: #fff; }

/* ---------- Typography helpers ---------- */
.en { font-family: var(--en); font-style: normal; }
.eyebrow {
  font-family: var(--en);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--green); border-radius: 2px; }
.bg-ink .eyebrow { color: rgba(255,255,255,.66); }

.sec-head { margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head .ja {
  font-family: var(--ja);
  font-weight: 500;
  font-size: clamp(25px, 4.4vw, 42px);
  line-height: 1.45;
  letter-spacing: .04em;
  margin-top: 18px;
}
.sec-head .lead { margin-top: 20px; max-width: 40em; color: var(--ink-2); font-size: clamp(14px,1.6vw,16px); }
.bg-ink .sec-head .lead { color: rgba(255,255,255,.74); }

.title-en {
  font-family: var(--en);
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.06;
}

/* ---------- Buttons ---------- */
.btn {
  --bh: 56px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--bh); padding: 0 30px;
  font-size: 14px; font-weight: 500; letter-spacing: .06em;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink); color: #fff;
  transition: transform .5s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn .ico { width: 17px; height: 17px; transition: transform .5s var(--ease); }
.btn:hover { background: #fff; color: var(--ink); }
.btn:hover .ico { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; }
.btn--lg { --bh: 62px; padding: 0 38px; font-size: 15px; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: .08em;
  font-family: var(--en);
  border-bottom: 1px solid transparent;
  transition: gap .4s var(--ease);
}
.text-link .ico { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.text-link:hover { gap: 14px; }
.text-link:hover .ico { transform: translateX(3px); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: 76px;
  display: flex; align-items: center;
  transition: height .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.is-scrolled,
.site-header.is-solid {
  height: 64px;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 11px; line-height: 1; z-index: 110; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; display: block; flex: 0 0 auto;
  box-shadow: 0 3px 12px -3px rgba(55,76,99,.4);
}
.brand .mark {
  font-family: var(--en); font-weight: 700; font-size: 21px; letter-spacing: -.005em; color: var(--ink);
}

.gnav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.gnav a {
  font-size: 13.5px; letter-spacing: .05em; font-weight: 500; color: var(--ink-2);
  position: relative; padding-block: 6px;
  transition: color .3s var(--ease);
}
.gnav a .num { font-family: var(--en); font-size: 10px; color: var(--muted); margin-right: 6px; }
.gnav a::after {
  content:""; position:absolute; left:0; right:100%; bottom:0; height:1.5px; background: var(--green);
  transition: right .4s var(--ease);
}
.gnav a:hover { color: var(--ink); }
.gnav a:hover::after { right: 0; }
.gnav .is-current { color: var(--ink); }
.gnav .is-current::after { right: 0; opacity:.4; }

.header-cta { display: inline-flex; align-items: center; gap: 16px; }

/* hamburger */
.nav-toggle {
  display: none; width: 44px; height: 44px; z-index: 110;
  position: relative; flex: 0 0 auto;
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink);
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 29px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding-top: 76px; overflow: hidden; isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(125% 95% at 82% 8%, #ffffff 0%, #eaf0f7 42%, var(--ph-1) 72%, var(--ph-2) 100%);
}
.hero__bg::after {
  /* soft white fade at the foot of the hero */
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 45%, rgba(255,255,255,.55) 100%);
}
/* brand logo as the hero's visual anchor (right side) */
.hero__logo {
  position: absolute; right: clamp(16px, 6vw, 96px); top: 46%; transform: translateY(-50%);
  width: clamp(190px, 32vw, 420px); height: auto; z-index: -1;
  border-radius: clamp(18px, 2.4vw, 30px);
  box-shadow: 0 40px 80px -28px rgba(55,76,99,.5);
}
@media (max-width: 760px){ .hero__logo { display: none; } }
.hero__inner { width: 100%; padding-bottom: clamp(56px, 9vw, 110px); }
.hero h1 { margin: 0; }
.hero .h-en {
  font-family: var(--en); font-weight: 600; color: var(--ink);
  font-size: clamp(44px, 9vw, 128px); line-height: .98; letter-spacing: -.02em;
}
.hero .h-en .it { font-style: italic; font-weight: 600; }
.hero .h-ja {
  display: block; margin-top: 26px;
  font-size: clamp(17px, 2.6vw, 26px); font-weight: 500; letter-spacing: .08em;
}
.hero .h-lead {
  margin-top: 24px; max-width: 34em; color: var(--ink-2);
  font-size: clamp(14px, 1.7vw, 16px);
}
.hero .hero__actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.scroll-cue {
  position: absolute; left: var(--pad); bottom: 26px; z-index: 2;
  font-family: var(--en); font-size: 10px; letter-spacing: .25em; color: var(--muted);
  display: flex; align-items: center; gap: 12px; writing-mode: vertical-rl;
}
.scroll-cue::after { content:""; width:1px; height:54px; background: var(--ink); opacity:.4; animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0%{transform:scaleY(0);} 35%{transform:scaleY(1);} 70%,100%{transform:scaleY(0); transform-origin: bottom;} }

/* =========================================================
   Placeholder (gray image stand-in)
   ========================================================= */
.ph {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--ph-1) 0%, var(--ph-2) 100%);
  display: grid; place-items: center; color: var(--muted);
}
.ph::before {
  /* thin frame */
  content:""; position:absolute; inset:10px; border:1px solid rgba(255,255,255,.5);
  pointer-events:none;
}
.ph .ph__cap {
  font-family: var(--en); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align:center; padding: 12px;
}
.ph .ph__cap svg { width: 26px; height: 26px; opacity: .6; }
.ph .ph__cap .ja { font-family: var(--ja); letter-spacing: .12em; text-transform: none; font-size: 12px; }
.ratio-43 { aspect-ratio: 4 / 3; }
.ratio-11 { aspect-ratio: 1 / 1; }
.ratio-34 { aspect-ratio: 3 / 4; }
.ratio-169{ aspect-ratio: 16 / 9; }
.oval { border-radius: 50% / 12%; }
.round { border-radius: 18px; }

/* =========================================================
   Concept (text + media)
   ========================================================= */
.split { display: grid; gap: clamp(36px, 6vw, 80px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 880px){ .split { grid-template-columns: 1.05fr .95fr; } .split--rev .split__media { order: -1; } }
.concept .body p + p { margin-top: 1.4em; }
.concept .body { color: var(--ink-2); font-size: clamp(14px,1.7vw,16px); }
.concept .quote {
  font-family: var(--ja); font-weight: 500; font-size: clamp(20px,3vw,30px); line-height: 1.7;
  letter-spacing: .06em; color: var(--ink); margin-bottom: 28px;
}
.concept .quote .en { display:block; font-family: var(--en); font-size: 13px; letter-spacing:.18em; color: var(--muted); font-weight:600; margin-bottom: 16px; }

/* =========================================================
   Menu / business cards
   ========================================================= */
.cards { display: grid; gap: clamp(20px, 3vw, 30px); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px){ .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card { display: flex; flex-direction: column; }
.card .ph { width: 100%; }
.card .num { font-family: var(--en); font-size: 11px; letter-spacing: .15em; color: var(--muted); margin: 18px 0 6px; }
.card h3 { font-size: clamp(16px, 2vw, 19px); font-weight: 600; letter-spacing: .04em; }
.card h3 .en { display:block; font-family: var(--en); font-size: 11px; letter-spacing:.16em; color: var(--muted); font-weight:600; margin-bottom: 6px; }
.card p { margin-top: 10px; font-size: 13px; line-height: 1.85; color: var(--ink-2); }

/* feature list (brand products) */
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pill-list li {
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px;
  font-size: 13px; letter-spacing: .04em; color: var(--ink-2);
}
.bg-ink .pill-list li { border-color: rgba(255,255,255,.22); color: rgba(255,255,255,.82); }

/* =========================================================
   Steps (franchise flow)
   ========================================================= */
.steps { display: grid; gap: 0; margin-top: 8px; }
.steps li {
  display: grid; grid-template-columns: 88px 1fr; gap: 20px; align-items: start;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.bg-ink .steps li { border-color: rgba(255,255,255,.16); }
.steps .step-no { font-family: var(--en); font-weight: 600; font-size: 13px; letter-spacing:.1em; color: var(--muted); padding-top: 4px; }
.steps .step-no b { display:block; font-size: 34px; color: var(--ink); line-height:1; letter-spacing:-.02em; }
.bg-ink .steps .step-no b { color: #fff; }
.steps h3 { font-size: clamp(16px,2vw,19px); font-weight: 600; letter-spacing:.04em; }
.steps p { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }
.bg-ink .steps p { color: rgba(255,255,255,.72); }

/* =========================================================
   Definition table (company profile)
   ========================================================= */
.profile { border-top: 1px solid var(--line); }
.profile div {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px;
  padding: 24px 4px; border-bottom: 1px solid var(--line);
}
.profile dt { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--muted); font-family: var(--ja); }
.profile dd { font-size: 15px; color: var(--ink); }
.profile dd small { display:block; color: var(--muted); font-size:12px; margin-top: 4px; letter-spacing:.04em; }
@media (max-width: 640px){ .profile div { grid-template-columns: 1fr; gap: 6px; } }

/* =========================================================
   Access
   ========================================================= */
.access-grid { display: grid; gap: clamp(28px,4vw,52px); grid-template-columns: 1fr; }
@media (min-width: 880px){ .access-grid { grid-template-columns: .9fr 1.1fr; } }
.access-info h3 { font-size: 20px; font-weight: 600; letter-spacing:.04em; }
.access-info dl { margin-top: 22px; }
.access-info dl div { display:flex; gap: 14px; padding: 11px 0; border-bottom:1px solid var(--line); font-size: 14px; }
.access-info dt { width: 64px; flex:0 0 auto; color: var(--muted); font-size:12px; letter-spacing:.1em; padding-top:3px; }
.map-frame { width:100%; aspect-ratio: 16/11; border-radius: 16px; overflow:hidden; border:1px solid var(--line); }
.map-frame iframe { width:100%; height:100%; border:0; filter: grayscale(1) contrast(.96); }

/* =========================================================
   CTA band
   ========================================================= */
.cta { text-align: center; }
.cta .eyebrow { justify-content: center; }
.cta h2 { margin: 22px 0 14px; font-size: clamp(24px,4vw,40px); font-weight: 500; letter-spacing:.05em; line-height:1.5; }
.cta p { color: rgba(255,255,255,.74); max-width: 40em; margin: 0 auto 34px; font-size: 14.5px; }
.cta .actions { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding-block: clamp(56px,8vw,84px) 30px; }
.footer-top { display:grid; gap: 44px; grid-template-columns: 1fr; }
@media (min-width: 820px){ .footer-top { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer .brand .mark, .site-footer .brand .dot { color:#fff; }
.footer-tag { margin-top: 18px; font-size: 13px; letter-spacing:.06em; color: rgba(255,255,255,.6); }
.footer-col h4 { font-family: var(--en); font-size: 11px; letter-spacing:.18em; text-transform:uppercase; color: rgba(255,255,255,.5); margin-bottom: 18px; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.82); transition: color .3s var(--ease); }
.footer-col a:hover { color:#fff; }
.footer-col .addr { font-size: 13px; line-height: 1.9; color: rgba(255,255,255,.66); font-style: normal; }
.footer-bottom {
  margin-top: clamp(40px,6vw,64px); padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14);
  display:flex; flex-wrap:wrap; gap:14px; justify-content: space-between; align-items:center;
}
.footer-bottom small { font-family: var(--en); font-size: 11px; letter-spacing: .1em; color: rgba(255,255,255,.5); }
.footer-bottom .sns { display:flex; gap:22px; }
.footer-bottom .sns a { font-family: var(--en); font-size: 12px; letter-spacing:.08em; color: rgba(255,255,255,.7); }
.footer-bottom .sns a:hover { color:#fff; }

/* =========================================================
   Page sub-hero (lower pages)
   ========================================================= */
.page-hero { padding: calc(76px + clamp(48px,8vw,96px)) 0 clamp(40px,6vw,72px); background: var(--bg-2); border-bottom:1px solid var(--line); }
.page-hero .en { font-family: var(--en); font-weight: 600; font-size: clamp(40px,8vw,92px); line-height:1; letter-spacing:-.02em; color: var(--ink); }
.page-hero .ja { margin-top: 14px; font-size: 15px; letter-spacing:.1em; color: var(--ink-2); }
.crumbs { font-family: var(--en); font-size: 11px; letter-spacing:.12em; color: var(--muted); margin-bottom: 26px; display:flex; gap:10px; }
.crumbs a:hover { color: var(--ink); }

/* =========================================================
   Mobile nav overlay
   ========================================================= */
.nav-scrim { display:none; }
@media (max-width: 900px){
  .nav-toggle { display: block; }
  .header-cta > .btn { display: none; }

  .gnav {
    position: fixed; inset: 0; z-index: 105;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
    padding: 0 var(--pad);
    background: #fff;
    transform: translateY(-12px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s;
  }
  body.nav-open .gnav { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .gnav a { font-size: 24px; font-weight: 600; letter-spacing: .02em; padding: 14px 0; color: var(--ink); }
  .gnav a .num { display:block; font-size: 11px; margin: 0 0 2px; }
  .gnav a::after { display:none; }
  .gnav .m-cta {
    margin-top: 26px; display: inline-flex !important;
  }
  .gnav .m-contact { margin-top: 18px; font-size: 13px !important; color: var(--ink-2); font-weight: 400 !important; }
}
@media (min-width: 901px){ .gnav .m-cta, .gnav .m-contact { display: none; } }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce){
  .reveal { opacity:1; transform:none; transition:none; }
  html { scroll-behavior: auto; }
  .scroll-cue::after { animation: none; }
}

/* utilities */
.mt-s{margin-top:18px}.mt-m{margin-top:32px}.mt-l{margin-top:48px}
.center{text-align:center}
.lead-muted{color:var(--ink-2);font-size:clamp(14px,1.7vw,16px);max-width:42em}
.bg-ink .lead-muted{color:rgba(255,255,255,.74)}
