@charset "UTF-8";

/* =========================================================
   猿田司法書士事務所 / Saruta Legal Office
   base stylesheet
   ========================================================= */

:root {
  --navy: #313284;
  --navy-dark: #23246180;
  --navy-deep: #1e1f57;
  --navy-soft: #5457a5;
  --navy-pale: #eceef7;
  --navy-mist: #f6f7fb;
  --ink: #1b1c28;
  --ink-sub: #55586b;
  --line: #dcdfeb;
  --gold: #b08d57;
  --white: #ffffff;

  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "MS PMincho", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", "Meiryo", sans-serif;

  --wrap: 1120px;
  --header-h: 88px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  letter-spacing: .04em;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: opacity .2s, color .2s; }
a:hover { opacity: .7; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.5; letter-spacing: .06em; margin: 0; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 48px, 880px); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-logo img { width: 260px; }
.site-logo:hover { opacity: .75; }

.gnav ul { display: flex; align-items: center; gap: 28px; }
.gnav a {
  font-size: 14px;
  letter-spacing: .1em;
  color: var(--ink);
  position: relative;
  padding-block: 6px;
}
.gnav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.gnav a:hover::after,
.gnav a[aria-current="page"]::after { transform: scaleX(1); }
.gnav a[aria-current="page"] { color: var(--navy); }

.header-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.3;
  padding: 10px 20px;
  border: 1px solid var(--navy);
  color: var(--navy);
}
.header-cta .tel { font-family: var(--serif); font-size: 20px; letter-spacing: .04em; }
.header-cta .hours { font-size: 11px; color: var(--ink-sub); letter-spacing: .06em; }

.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2b2c76 0%, var(--navy) 45%, #43459b 100%);
  color: var(--white);
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px; top: 50%;
  transform: translateY(-50%);
  width: 460px; height: 690px;
  background: url("../img/logo-mark-white.png") center / contain no-repeat;
  opacity: .07;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding: 120px 0 128px;
}
.hero__lead {
  font-size: 13px;
  letter-spacing: .3em;
  opacity: .8;
  margin: 0 0 28px;
}
.hero h1 {
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.75;
  margin: 0 0 32px;
}
.hero h1 .accent { color: #cfd2f2; }
.hero p.desc {
  max-width: 620px;
  font-size: 15px;
  line-height: 2.2;
  opacity: .92;
  margin: 0 0 44px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 38px;
  font-size: 14px;
  letter-spacing: .12em;
  border: 1px solid currentColor;
  transition: background .25s, color .25s, opacity .25s;
}
.btn::after { content: "→"; font-size: 13px; }
.btn:hover { opacity: 1; }
.btn--fill { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--fill:hover { background: transparent; color: var(--white); }
.btn--ghost { color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--navy:hover { background: var(--white); color: var(--navy); }
.btn--line { color: var(--navy); }
.btn--line:hover { background: var(--navy); color: var(--white); }

/* ---------- section common ---------- */
.section { padding: 104px 0; }
.section--pale { background: var(--navy-mist); }
.section--navy { background: var(--navy); color: var(--white); }

.section-head { margin-bottom: 56px; }
.section-head--center { text-align: center; }
.section-head .en {
  display: block;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .32em;
  color: var(--navy-soft);
  margin-bottom: 14px;
}
.section--navy .section-head .en { color: #b6b9e4; }
.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.6;
}
.section-head p { margin: 20px 0 0; color: var(--ink-sub); font-size: 15px; }
.section--navy .section-head p { color: rgba(255, 255, 255, .82); }

/* ---------- page head ---------- */
.page-head {
  background: var(--navy);
  color: var(--white);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  right: 4%; top: 50%;
  transform: translateY(-50%);
  width: 220px; height: 330px;
  background: url("../img/logo-mark-white.png") center / contain no-repeat;
  opacity: .08;
}
.page-head .en {
  display: block;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .32em;
  color: #b6b9e4;
  margin-bottom: 12px;
}
.page-head h1 { font-size: clamp(26px, 3.6vw, 36px); }

.breadcrumb {
  font-size: 12px;
  color: var(--ink-sub);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  letter-spacing: .06em;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "／"; margin-right: 10px; color: var(--line); }

/* ---------- philosophy ---------- */
.pillars3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.pillar3 {
  padding: 40px 32px;
  background: var(--white);
  border-top: 3px solid var(--navy);
  box-shadow: 0 2px 24px rgba(49, 50, 132, .06);
}
.pillar3 .num {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--navy-soft);
}
.pillar3 h3 { font-size: 20px; margin: 10px 0 16px; }
.pillar3 p { margin: 0; font-size: 14.5px; color: var(--ink-sub); line-height: 2.1; }

/* ---------- services grid ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--white);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background .25s;
}
.service-card:hover { background: var(--navy-mist); opacity: 1; }
.service-card .no {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--navy-soft);
}
.service-card h3 { font-size: 19px; line-height: 1.7; }
.service-card p { margin: 0; font-size: 14px; color: var(--ink-sub); line-height: 2; }
.service-card .more { margin-top: auto; padding-top: 12px; font-size: 13px; letter-spacing: .08em; }
.service-card .more::after { content: " →"; }

/* ---------- service detail ---------- */
.service-block { padding: 72px 0; border-bottom: 1px solid var(--line); }
.service-block:last-of-type { border-bottom: none; }
.service-block__head { display: flex; gap: 24px; align-items: baseline; margin-bottom: 28px; }
.service-block__no {
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1;
  color: var(--navy-pale);
}
.service-block h2 { font-size: clamp(21px, 2.6vw, 27px); }
.service-block__lead { font-size: 15.5px; line-height: 2.2; margin: 0 0 32px; }
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: var(--navy-mist);
  padding: 36px 40px;
}
.service-detail h4 {
  font-size: 14px;
  letter-spacing: .12em;
  color: var(--navy);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.service-detail li {
  font-size: 14px;
  color: var(--ink-sub);
  padding-left: 18px;
  position: relative;
  line-height: 2;
}
.service-detail li::before {
  content: "";
  position: absolute;
  left: 2px; top: .95em;
  width: 6px; height: 1px;
  background: var(--navy-soft);
}

/* ---------- flagship course ---------- */
.course {
  margin-top: 40px;
  border: 1px solid var(--navy);
  background: var(--white);
}
.course__head {
  background: var(--navy);
  color: var(--white);
  padding: 28px 36px;
}
.course__label {
  display: block;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .28em;
  color: #b6b9e4;
  margin-bottom: 10px;
}
.course__head h3 { font-size: clamp(19px, 2.4vw, 25px); line-height: 1.6; margin: 0; }
.course__catch { margin: 14px 0 0; font-size: 14px; opacity: .9; line-height: 1.9; }
.course__body { padding: 32px 36px 36px; }
.course__lead { margin: 0 0 28px; font-size: 15px; line-height: 2.1; color: var(--ink-sub); }
.course__cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; }
.course h4 {
  font-size: 14px;
  letter-spacing: .12em;
  color: var(--navy);
  padding-bottom: 10px;
  margin: 0 0 14px;
  border-bottom: 1px solid var(--line);
}
.course__curriculum { counter-reset: ch; list-style: none; margin: 0; padding: 0; }
.course__curriculum li {
  counter-increment: ch;
  position: relative;
  padding: 7px 0 7px 38px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-sub);
  border-bottom: 1px dotted var(--line);
}
.course__curriculum li::before {
  content: "第" counter(ch) "章";
  position: absolute;
  left: 0; top: 7px;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--navy-soft);
}
.course__meta { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.course__meta th, .course__meta td {
  text-align: left;
  vertical-align: top;
  padding: 11px 0;
  border-bottom: 1px dotted var(--line);
  line-height: 1.9;
}
.course__meta th { width: 88px; color: var(--navy); font-weight: 600; white-space: nowrap; }
.course__meta td { color: var(--ink-sub); }
.course__cta { margin: 28px 0 0; }

/* ---------- table ---------- */
.info-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.info-table th, .info-table td {
  text-align: left;
  vertical-align: top;
  padding: 20px 8px;
  border-bottom: 1px solid var(--line);
}
.info-table th {
  width: 200px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .08em;
  white-space: nowrap;
}
.info-table td { color: var(--ink-sub); }

/* ---------- message ---------- */
.message-body { font-size: 15.5px; line-height: 2.3; }
.message-body p { margin: 0 0 28px; }
.message-sign {
  margin-top: 40px;
  text-align: right;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .1em;
}
.message-sign small { display: block; font-size: 12px; letter-spacing: .16em; color: var(--ink-sub); margin-bottom: 6px; font-family: var(--sans); }

/* ---------- flow ---------- */
.flow { counter-reset: flow; display: grid; gap: 4px; }
.flow li {
  counter-increment: flow;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 26px 32px 26px 84px;
  position: relative;
}
.flow li::before {
  content: "0" counter(flow);
  position: absolute;
  left: 32px; top: 26px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--navy-soft);
}
.flow h3 { font-size: 17px; margin-bottom: 6px; }
.flow p { margin: 0; font-size: 14px; color: var(--ink-sub); }

/* ---------- contact ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.contact-card {
  border: 1px solid var(--line);
  padding: 44px 36px;
  text-align: center;
  background: var(--white);
}
.contact-card h3 { font-size: 17px; margin-bottom: 8px; }
.contact-card .big {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: .04em;
  color: var(--navy);
  display: block;
  margin: 10px 0 6px;
  word-break: break-all;
}
.contact-card p { margin: 0; font-size: 13px; color: var(--ink-sub); }

.form { display: grid; gap: 28px; }
.form-row { display: grid; gap: 10px; }
.form-row label { font-size: 14px; letter-spacing: .08em; font-weight: 600; }
.form-row .req { color: #b03a3a; font-size: 11px; margin-left: 8px; }
.form input, .form select, .form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 0;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(49, 50, 132, .1);
}
.form textarea { min-height: 190px; resize: vertical; }
.form .note { font-size: 13px; color: var(--ink-sub); line-height: 1.9; }
.form .submit-area { text-align: center; }
.form button {
  font-family: inherit;
  cursor: pointer;
  padding: 18px 64px;
}

/* ---------- access ---------- */
.access { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.access .map {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  filter: grayscale(.2);
}
.access .map iframe { width: 100%; height: 100%; border: 0; display: block; }
.access-list li { padding: 8px 0; font-size: 14.5px; color: var(--ink-sub); border-bottom: 1px dotted var(--line); }

/* ---------- cta band ---------- */
.cta-band { background: var(--navy); color: var(--white); padding: 76px 0; text-align: center; }
.cta-band h2 { font-size: clamp(21px, 2.8vw, 28px); margin-bottom: 18px; }
.cta-band p { margin: 0 auto 34px; max-width: 640px; font-size: 15px; opacity: .9; }
.cta-band .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .8); padding: 72px 0 32px; font-size: 14px; }
.site-footer a { color: rgba(255, 255, 255, .8); }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.footer-logo img { width: 280px; margin-bottom: 24px; }
.footer-address { line-height: 2.1; font-size: 14px; margin: 0; }
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; align-content: start; }
.footer-nav a { font-size: 13.5px; letter-spacing: .06em; }
.copyright { padding-top: 24px; font-size: 11.5px; letter-spacing: .08em; color: rgba(255, 255, 255, .55); text-align: center; }

/* ---------- notice ---------- */
.notice {
  background: var(--navy-pale);
  border-left: 3px solid var(--navy);
  padding: 20px 24px;
  font-size: 13.5px;
  color: var(--ink-sub);
  line-height: 2;
}

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

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .pillars3 { grid-template-columns: 1fr; gap: 20px; }
  .access { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 1024px) {
  .course__cols { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .header-cta { display: none; }
  .site-logo img { width: 200px; }

  .nav-toggle {
    display: block;
    width: 44px; height: 44px;
    border: none; background: none; padding: 0;
    position: relative; cursor: pointer;
  }
  .nav-toggle span {
    position: absolute;
    left: 10px;
    width: 24px; height: 1.5px;
    background: var(--navy);
    transition: transform .3s, opacity .3s;
  }
  .nav-toggle span:nth-child(1) { top: 15px; }
  .nav-toggle span:nth-child(2) { top: 21px; }
  .nav-toggle span:nth-child(3) { top: 27px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .gnav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .gnav.is-open { max-height: 80vh; overflow-y: auto; }
  .gnav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; }
  .gnav li { border-bottom: 1px solid var(--line); }
  .gnav a { display: block; padding: 18px 4px; font-size: 15px; }
  .gnav a::after { display: none; }

  .section { padding: 68px 0; }
  .hero__inner { padding: 76px 0 84px; }
  .hero::after { width: 260px; height: 390px; right: -70px; opacity: .06; }
  .service-grid { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; padding: 28px 24px; gap: 24px; }
  .course__head { padding: 24px 24px; }
  .course__body { padding: 24px 24px 28px; }
  .contact-cards { grid-template-columns: 1fr; }
  .info-table th, .info-table td { display: block; width: auto; padding: 10px 0; border-bottom: none; }
  .info-table th { padding-top: 20px; }
  .info-table td { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .service-block__head { gap: 16px; }
  .service-block__no { font-size: 34px; }
  .flow li { padding: 22px 24px 22px 24px; }
  .flow li::before { position: static; display: block; margin-bottom: 6px; }
  .page-head::after { display: none; }
}

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