/* =====================================================
   東貴志公認会計士税理士事務所 / C-suite Tax Advisory
   styles.css
   ===================================================== */

:root {
  --navy:      #0c1f33;
  --navy-2:    #12293f;
  --navy-deep: #081625;
  --ink:       #1a2530;
  --slate:     #3f5061;
  --muted:     #6c7a88;
  --line:      #e4e8ec;
  --line-soft: #eef1f4;
  --bg:        #ffffff;
  --bg-soft:   #f5f7f9;
  --bg-tint:   #eef2f5;
  --accent:    #a5834e;   /* muted brass — 最小限のアクセント */
  --accent-d:  #8c6c3c;

  --serif: "Noto Serif JP", serif;
  --sans:  "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --latin: "Cormorant Garamond", serif;

  --maxw: 1160px;
  --pad:  24px;
  --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s, background-color .25s, border-color .25s, opacity .25s; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 18px;
}
.skip-link:focus { left: 12px; top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.container.narrow { max-width: 820px; }
.center { text-align: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: .04em;
  padding: 15px 30px; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: all .25s ease; line-height: 1.4; text-align: center;
}
.btn .arr { font-size: .9em; }
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: rgba(12,31,51,.28); }
.btn-ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-lg { padding: 18px 42px; font-size: 16px; }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft); transition: box-shadow .3s, background .3s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(12,31,51,.06); }
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; flex-direction: column; line-height: 1.25; }
.brand-jp { font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--navy); letter-spacing: .04em; }
.brand-en { font-family: var(--latin); font-size: 12.5px; letter-spacing: .14em; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-size: 14.5px; font-weight: 500; color: var(--slate); letter-spacing: .05em; position: relative; white-space: nowrap; }
.nav a.nav-sub { font-size: 13px; color: var(--muted); }
.nav a.nav-sub[aria-current="page"] { color: var(--navy); }
.nav a:not(.nav-cta):hover { color: var(--navy); }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--accent); transition: width .3s;
}
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--navy); color: #fff !important; padding: 10px 22px; border-radius: var(--radius);
}
.nav-cta:hover { background: var(--navy-2); }

.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); transition: transform .3s, opacity .3s; margin: 0 auto; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  padding: 120px var(--pad) 90px;
  background:
    radial-gradient(120% 90% at 82% 10%, rgba(18,41,63,.05), transparent 60%),
    linear-gradient(180deg, #fbfcfd 0%, #f2f5f7 100%);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: 0; right: 0; width: 42%; height: 100%;
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 100%);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
  opacity: .96; z-index: 0;
}
.hero::after {
  content: ""; position: absolute; right: 8%; top: 50%; width: 1px; height: 130px;
  background: rgba(255,255,255,.25); transform: translateY(-50%); z-index: 1;
  display: none;
}
.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.eyebrow {
  font-family: var(--latin); font-size: 14px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent-d); margin-bottom: 26px; font-weight: 600;
}
.hero-title {
  font-family: var(--serif); font-weight: 600; color: var(--navy);
  font-size: clamp(32px, 6vw, 60px); line-height: 1.35; letter-spacing: .02em; margin-bottom: 30px;
}
.hero-lead { font-size: clamp(15px, 2.3vw, 18px); color: var(--slate); line-height: 2.1; margin-bottom: 40px; font-weight: 400; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 42px; }
.hero-credential { font-size: 12.5px; color: var(--muted); letter-spacing: .06em; }

.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero-scroll span { font-family: var(--latin); font-size: 12px; letter-spacing: .22em; color: var(--muted); text-transform: uppercase; }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.sec-label {
  display: inline-block; font-family: var(--latin); font-size: 14px; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase; color: var(--accent-d); margin-bottom: 18px;
}
.sec-label.light { color: rgba(255,255,255,.6); }
.section-title {
  font-family: var(--serif); font-weight: 600; color: var(--navy);
  font-size: clamp(26px, 4.4vw, 40px); line-height: 1.45; letter-spacing: .03em; margin-bottom: 22px;
}
.section-title .reading { display: block; font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: .1em; margin-top: 10px; }
.section-sub { font-size: 16px; color: var(--slate); line-height: 2.05; }

/* ===== Pain ===== */
.pain { background: var(--bg-soft); }
.pain-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pain-item { background: var(--bg); padding: 34px 26px; display: flex; flex-direction: column; gap: 16px; transition: background .25s; }
.pain-item:hover { background: #fbfcfd; }
.pain-no { font-family: var(--latin); font-size: 22px; font-weight: 600; color: var(--accent); letter-spacing: .05em; }
.pain-item p { font-size: 15px; color: var(--ink); line-height: 1.85; font-weight: 500; }

/* ===== Services ===== */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  padding: 40px 36px; display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s; position: relative;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(12,31,51,.09); border-color: #d5dbe1; }
.service-card--alt { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); border-color: var(--navy); }
.svc-label { font-family: var(--latin); font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-d); margin-bottom: 14px; }
.service-card--alt .svc-label { color: var(--accent); }
.svc-title { font-family: var(--serif); font-weight: 600; font-size: 24px; color: var(--navy); line-height: 1.4; margin-bottom: 16px; }
.service-card--alt .svc-title { color: #fff; }
.svc-desc { font-size: 15px; color: var(--slate); line-height: 1.95; margin-bottom: 22px; }
.service-card--alt .svc-desc { color: rgba(255,255,255,.82); }
.svc-list { list-style: none; margin-bottom: 26px; border-top: 1px solid var(--line-soft); padding-top: 18px; }
.service-card--alt .svc-list { border-top-color: rgba(255,255,255,.16); }
.svc-list li { font-size: 14px; color: var(--slate); padding: 6px 0 6px 20px; position: relative; }
.svc-list li::before { content: ""; position: absolute; left: 0; top: 15px; width: 7px; height: 7px; border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); transform: rotate(45deg); }
.service-card--alt .svc-list li { color: rgba(255,255,255,.8); }
.svc-provider { font-size: 12.5px; color: var(--muted); margin-bottom: 22px; letter-spacing: .03em; }
.service-card--alt .svc-provider { color: rgba(255,255,255,.6); }
.service-card .btn-card { margin-top: auto; }
.btn-card {
  background: transparent; border: 1px solid var(--navy); color: var(--navy);
  width: 100%; padding: 14px 20px; font-size: 14.5px; font-weight: 500; border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
}
.btn-card:hover { background: var(--navy); color: #fff; }
.service-card--alt .btn-card { border-color: rgba(255,255,255,.55); color: #fff; }
.service-card--alt .btn-card:hover { background: #fff; color: var(--navy); border-color: #fff; }
.services-note { margin-top: 40px; text-align: center; font-size: 14px; color: var(--muted); line-height: 1.9; }
.services-note strong { color: var(--slate); font-weight: 700; }

/* ===== Philosophy ===== */
.philosophy { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; }
.phil-title { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 5vw, 46px); line-height: 1.5; letter-spacing: .04em; margin: 18px 0 34px; }
.phil-body p { color: rgba(255,255,255,.82); font-size: 16.5px; line-height: 2.15; margin-bottom: 22px; }
.phil-body p:last-child { margin-bottom: 0; }

/* ===== Reasons ===== */
.reason-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 44px; }
.reason-item { border-top: 2px solid var(--navy); padding-top: 24px; }
.reason-no { font-family: var(--latin); font-size: 30px; font-weight: 600; color: var(--accent); display: block; margin-bottom: 14px; }
.reason-item h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--navy); line-height: 1.6; margin-bottom: 14px; letter-spacing: .02em; }
.reason-item p { font-size: 14.5px; color: var(--slate); line-height: 1.95; }

/* ===== CTA band ===== */
.cta-band { background: var(--bg-tint); padding: 60px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band-text { font-family: var(--serif); font-weight: 500; font-size: clamp(19px, 3vw, 26px); color: var(--navy); line-height: 1.6; letter-spacing: .03em; }

/* ===== Profile ===== */
.profile-layout { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.photo-img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: center 18%;
  border-radius: 6px; background: var(--bg-soft); display: block;
}
.photo-placeholder {
  width: 100%; aspect-ratio: 3/4; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: rgba(255,255,255,.5);
}
.photo-placeholder span { font-family: var(--latin); font-size: 22px; letter-spacing: .3em; }
.photo-placeholder small { font-size: 11px; letter-spacing: .1em; }
.profile-titles { list-style: none; margin-top: 22px; }
.profile-titles li { font-size: 14px; color: var(--slate); padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.profile-titles li:first-child { color: var(--navy); font-weight: 700; }
.profile-lead { font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--navy); line-height: 1.75; margin-bottom: 26px; letter-spacing: .02em; }
.profile-text p { font-size: 15.5px; color: var(--slate); line-height: 2.05; margin-bottom: 20px; }
.profile-message { border-left: 2px solid var(--accent); padding-left: 22px; color: var(--ink) !important; font-weight: 500; font-style: normal; }
.profile-reg { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.profile-reg span { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }

/* ===== Company ===== */
.company { background: var(--bg-soft); }
.company-table { border-top: 1px solid var(--line); }
.company-table > div { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.company-table dt { font-size: 14px; font-weight: 700; color: var(--navy); }
.company-table dd { font-size: 15px; color: var(--slate); }
.company-table dd a { color: var(--accent-d); text-decoration: underline; text-underline-offset: 3px; }
.company-table dd a:hover { color: var(--navy); }
.company-table dd.placeholder { color: #a8b2bb; font-style: italic; }

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 24px 44px 24px 4px; position: relative;
  font-size: 16px; font-weight: 500; color: var(--navy); line-height: 1.7;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 300; color: var(--accent); transition: transform .3s; font-family: var(--sans);
}
.faq-item[open] summary::after { content: "−"; }
.faq-a { padding: 0 4px 26px; }
.faq-a p { font-size: 15px; color: var(--slate); line-height: 2; }
.faq-a .note { display: inline-block; margin-top: 8px; font-size: 12.5px; color: var(--accent-d); }

/* ===== Contact ===== */
.contact { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; }
.contact-title { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 4.5vw, 38px); color: #fff; line-height: 1.55; letter-spacing: .03em; margin: 16px 0 24px; }
.contact-lead { color: rgba(255,255,255,.82); font-size: 16px; line-height: 2; margin-bottom: 40px; }
.contact-note { margin-top: 28px; font-size: 12.5px; color: rgba(255,255,255,.5); letter-spacing: .05em; }
.contact .btn-primary { background: #fff; color: var(--navy); border-color: #fff; }
.contact .btn-primary:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== Footer ===== */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.8); padding-top: 70px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; padding-bottom: 50px; }
.footer-name { font-family: var(--serif); font-weight: 600; font-size: 19px; color: #fff; letter-spacing: .04em; }
.footer-en { font-family: var(--latin); font-size: 14px; letter-spacing: .14em; color: rgba(255,255,255,.55); margin: 4px 0 18px; }
.footer-desc { font-size: 14px; line-height: 2; color: rgba(255,255,255,.65); }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; letter-spacing: .1em; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13.5px; color: rgba(255,255,255,.6); padding: 6px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; margin-top: 10px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.45); letter-spacing: .04em; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

.sp-br { display: none; }

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 1120px) {
  .nav { gap: 15px; }
  .nav a { font-size: 13.5px; }
  .nav a.nav-sub { font-size: 12.5px; }
  .nav-cta { padding: 10px 16px; }
  .brand-jp { font-size: 16px; }
}

@media (max-width: 960px) {
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .reason-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .profile-layout { grid-template-columns: 240px 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 780px) {
  .nav {
    position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(255,255,255,.98); backdrop-filter: blur(10px);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 20px;
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(12,31,51,.08);
    transform: translateY(-140%); transition: transform .35s ease; max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 16px var(--pad); font-size: 16px; border-bottom: 1px solid var(--line-soft); }
  .nav a::after { display: none; }
  .nav-cta { margin: 14px var(--pad) 0; text-align: center; border-radius: var(--radius); border-bottom: none !important; }
  .hamburger { display: flex; }

  .sp-br { display: inline; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { min-height: auto; padding: 116px var(--pad) 70px; }
  .hero::before { width: 100%; clip-path: none; opacity: .04; background: var(--navy); }
  .hero-title { color: var(--navy); }
  .hero-actions .btn { flex: 1; min-width: 140px; }
  .hero-scroll { display: none; }

  .service-grid { grid-template-columns: 1fr; gap: 18px; }
  .service-card { padding: 32px 26px; }
  .cta-band .container { flex-direction: column; text-align: center; }
  .cta-band-text { width: 100%; }

  .profile-layout { grid-template-columns: 1fr; gap: 32px; }
  .profile-photo { max-width: 260px; }
  .company-table > div { grid-template-columns: 1fr; gap: 4px; padding: 16px 4px; }
  .company-table dt { font-size: 13px; }
  .footer-bottom .container { flex-direction: column; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .pain-grid { grid-template-columns: 1fr; }
  .reason-grid { grid-template-columns: 1fr; gap: 28px; }
  .header-inner { height: 64px; }
  html { scroll-padding-top: 74px; }
  .site-header .nav { top: 64px; }
  .brand-jp { font-size: 15px; }
  .brand-en { font-size: 10.5px; letter-spacing: .16em; }
  .hero { padding: 100px var(--pad) 60px; }
  .btn { padding: 14px 24px; font-size: 14px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
