:root {
  --navy-900: #0d1d30;
  --navy-800: #112b46;
  --navy-700: #183c5d;

  --gold-500: #b9975f;
  --gold-400: #d9bb7b;
  --gold-text: #876b40;

  --ice-100: #f3f8fb;
  --ice-200: #edf3f8;

  --body-text: #526373;
  --text: #1a2433;
  --white: #ffffff;

  --border: rgba(17, 43, 70, 0.1);
  --container-gutter: clamp(20px, 3vw, 40px);
  --header-h: 100px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --stage-catch-size: clamp(2.35rem, 4.1vw, 3.25rem);
}

/* base */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.8;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

h1, h2, h3 {
  margin: 0 0 16px;
  color: var(--navy-800);
  font-family: 'Manrope', 'Noto Sans JP', sans-serif;
  line-height: 1.5;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.65rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 2.8vw, 2.5rem); letter-spacing: -0.025em; }
h3 { font-size: 1.3rem; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--navy-700); outline-offset: 5px; }

.container {
  width: calc(100% - var(--container-gutter) * 2);
  max-width: 1320px;
  margin-inline: auto;
}

/* 英語ラベルをゴールド統一 */
.eyebrow,
.fg-value-label {
  margin: 0 0 18px;
  color: var(--gold-500) !important;
  font-family: 'Manrope', 'Noto Sans JP', sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  color: var(--navy-800);
  background: var(--white);
  border: 1px solid var(--border);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(17, 43, 70, 0.07);
  backdrop-filter: blur(10px);
  transition: box-shadow 280ms var(--ease-soft);
}

.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(17, 43, 70, 0.07); }
.site-header .container { max-width: 1480px; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }

.brand-logo {
  width: auto;
  height: 74px;
  max-width: 250px;
  object-fit: contain;
  transition: opacity 180ms ease;
}

.brand:hover .brand-logo { opacity: 0.8; }

.site-nav { display: flex; align-items: center; gap: 26px; }

.site-nav a {
  position: relative;
  color: var(--navy-800);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 180ms ease;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  right: 0; bottom: -8px; left: 0;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 280ms var(--ease-out);
}

.site-nav a:not(.nav-cta):hover,
.site-nav a.active:not(.nav-cta) { color: var(--gold-text); }

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav .nav-cta {
  padding: 11px 20px;
  color: var(--white);
  background: var(--navy-800);
  border-radius: 999px;
  transition: background 180ms ease, transform 220ms var(--ease-out), box-shadow 220ms ease;
}

.site-nav .nav-cta:hover {
  color: var(--white);
  background: var(--navy-700);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(17, 43, 70, 0.18);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform 260ms var(--ease-out), opacity 200ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* button/link */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  text-align: center;
  transition: background 180ms ease, color 180ms ease, box-shadow 220ms ease, transform 220ms var(--ease-out);
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  color: var(--white);
  background: var(--navy-800);
  box-shadow: 0 8px 20px rgba(17, 43, 70, 0.1);
}

.btn-primary:hover {
  background: var(--navy-700);
  box-shadow: 0 12px 26px rgba(17, 43, 70, 0.18);
}

.btn-secondary {
  color: var(--navy-800);
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(17, 43, 70, 0.25);
}

.btn-secondary:hover {
  background: var(--ice-200);
  border-color: rgba(17, 43, 70, 0.4);
}

.btn-arrow { display: inline-block; transition: transform 220ms var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  color: var(--navy-800);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold-500);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.text-link span { display: inline-block; transition: transform 220ms var(--ease-out); }
.text-link:hover span { transform: translateX(5px); }

/* stage */
.home-stage {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  isolation: isolate;
  overflow: hidden;
}

.stage-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.stage-bg-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 460ms var(--ease-soft);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: none !important;
}

.stage-bg-layer.is-active { opacity: 1; }

.stage-bg-layer.bg-1 {
  background-image:
    radial-gradient(ellipse at 80% 20%, rgba(185, 151, 95, 0.11), transparent 50%),
    linear-gradient(135deg, #ffffff 0%, #f3f8fb 100%);
}
.stage-bg-layer.bg-2 {
  background-image:
    radial-gradient(ellipse at 10% 10%, rgba(185, 151, 95, 0.08), transparent 48%),
    linear-gradient(145deg, #f5f8fb 0%, #edf3f8 100%);
}
.stage-bg-layer.bg-3 {
  background-image:
    radial-gradient(ellipse at 85% 85%, rgba(185, 151, 95, 0.08), transparent 52%),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
}

.stage-panels {
  position: relative;
  height: 100%;
  min-height: 100%;
}

.stage-panel {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 380ms var(--ease-soft), visibility 0s linear 380ms;
}

.stage-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

/* 1〜3枚共通の見出しサイズ */
.section-catch {
  font-size: var(--stage-catch-size);
  line-height: 1.45;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

/* panel1 */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(36px, 5vw, 76px);
}

.hero h1 { margin-bottom: 24px; line-height: 1.5; }

.hero-heading-sub {
  display: block;
  margin-top: 12px;
  font-size: 0.9em;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.lead {
  max-width: 610px;
  color: var(--body-text);
  font-size: 1rem;
  line-height: 1.95;
}

.mobile-break { display: none; }

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

.hero-points {
  display: grid;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--body-text);
  font-size: 0.84rem;
}

.hero-points li {
  position: relative;
  padding-left: 18px;
}

.hero-points li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--gold-500);
  border-radius: 50%;
}

.hero-panel { display: flex; justify-content: flex-end; }

.fg-value {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 24px 0 24px 32px;
}

.fg-value::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: rgba(185, 151, 95, 0.5);
}

.fg-value-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.fg-value-label::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold-500);
}

.fg-value-title {
  margin-bottom: 20px;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 1.68;
  letter-spacing: 0;
}

.fg-value-copy {
  color: var(--body-text);
  font-size: 0.93rem;
  line-height: 2;
}

.fg-value-copy + .fg-value-copy { margin-top: 12px; }

.fg-value-message {
  margin-top: 24px;
  padding-top: 20px;
  color: var(--navy-700);
  border-top: 1px solid rgba(17, 43, 70, 0.12);
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.95;
}

/* panel2 */
.why-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 4.6vw, 68px);
  align-items: center;
}

.why-description {
  color: var(--body-text);
  font-size: 0.96rem;
  line-height: 2;
  max-width: 620px;
}

.fg-reasons-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 44px;
  margin-top: 20px;
  padding: 8px 0;
  color: var(--navy-800);
  border-bottom: 1px solid var(--gold-500);
  font-size: 0.93rem;
  font-weight: 700;
}

.fg-reasons-link span { color: var(--gold-text); }

.why-steps {
  position: relative;
  min-height: 360px;
  padding: 28px 30px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(17, 43, 70, 0.08);
  backdrop-filter: blur(2px);
}

.why-step {
  position: absolute;
  inset: 28px 30px 28px 30px;
  opacity: 0;
  transform: translateY(26px);
  pointer-events: none;
  transition: opacity 360ms var(--ease-soft), transform 420ms var(--ease-out);
}

.why-step.is-current {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.why-step-number {
  margin: 0 0 10px;
  color: var(--gold-text);
  font-family: 'Manrope', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.why-step-number::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  margin-top: 10px;
  background: var(--gold-400);
}

.why-step-label {
  margin: 0 0 8px;
  color: #5f7285;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.why-step h3 {
  margin-bottom: 14px;
  font-size: clamp(1.65rem, 2.1vw, 2.1rem);
  line-height: 1.5;
}

.why-step p:not(.why-step-number):not(.why-step-label) {
  color: var(--body-text);
  font-size: 1.02rem;
  line-height: 1.9;
}

/* panel3 */
.about-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  flex: 1;
}

.about-heading {
  margin-bottom: 0;
  line-height: 1.42;
}

.about-copy {
  font-size: 0.98rem;
  line-height: 2;
}

.about-copy > p + p { margin-top: 18px; }
.about-contact-link { margin-top: 24px; }

/* footer */
.site-footer {
  padding: 0;
  color: var(--body-text);
  background: transparent;
  border-top: 1px solid #e6edf3;
}

.footer-meta-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  min-height: 64px;
  padding: 16px 0;
}

.footer-meta-simple small {
  color: #7b8b9a;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.footer-privacy-link {
  color: var(--navy-700);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/* responsive fallback */
@media (max-width: 960px), (max-height: 699px), (prefers-reduced-motion: reduce) {
  :root {
    --header-h: 84px;
    --stage-catch-size: clamp(2rem, 6vw, 3rem);
  }

  .home-stage,
  .stage-panels {
    height: auto;
    min-height: auto;
  }

  .stage-bg { display: none; }

  .stage-panel {
    position: static;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    display: block;
    padding: 56px 0;
  }

  .hero-grid,
  .why-shell,
  .split-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .why-steps {
    position: static;
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .why-step {
    position: static;
    inset: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    margin-top: 18px;
  }

  .why-step + .why-step {
    border-top: 1px solid rgba(17, 43, 70, 0.08);
    padding-top: 18px;
  }

  .menu-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 18px var(--container-gutter) 24px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 26px rgba(17, 43, 70, 0.08);
  }

  .site-nav.is-open { display: flex; }
  .site-nav a {
    min-height: 48px;
    padding: 11px 8px;
  }
  .site-nav a::after { display: none; }
  .site-nav .nav-cta { margin-top: 8px; text-align: center; }
}

@media (max-width: 600px) {
  :root {
    --header-h: 76px;
    --stage-catch-size: clamp(1.85rem, 7.2vw, 2.4rem);
  }

  .header-inner { min-height: 76px; }

  .brand-logo {
    height: 54px;
    max-width: 190px;
  }

  .hero-copy > h1 {
    font-size: 1.9rem;
    line-height: 1.4;
  }

  .hero-heading-sub {
    font-size: 0.78em;
    line-height: 1.5;
    white-space: nowrap;
  }

  .lead {
    font-size: 1rem;
    text-wrap: pretty;
  }

  .mobile-break { display: block; }

  .hero-actions {
    gap: 10px;
    margin-top: 24px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    gap: 8px;
    padding-inline: 14px;
    white-space: nowrap;
  }

  .hero-points { font-size: 0.9rem; }

  .fg-value {
    max-width: 100%;
    padding: 6px 0 6px 22px;
  }

  .fg-value-copy,
  .fg-value-message,
  .why-step p:not(.why-step-number):not(.why-step-label),
  .about-copy {
    font-size: 1rem;
  }

  .fg-value-title,
  .fg-value-copy {
    text-wrap: balance;
  }

  .fg-value-copy {
    font-size: 0.95rem;
    letter-spacing: -0.02em;
    line-height: 1.85;
  }
}

@media (max-width: 760px) {
  .mobile-break { display: block; }

  .home-stage.has-mobile-why-scroll {
    /* Unlike hidden, clip does not create a scroll container that traps sticky. */
    overflow: clip;
  }

  .panel-why.has-horizontal-scroll {
    padding-block: 24px;
    min-height: calc(var(--why-shell-height) + var(--why-scroll-distance) + 48px);
  }

  .has-horizontal-scroll .why-shell {
    position: sticky;
    top: var(--why-pin-top);
    gap: 24px;
  }

  .has-horizontal-scroll .why-steps {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    align-items: start;
    overflow: hidden;
  }

  .has-horizontal-scroll .why-step {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 1;
    transform: translateX(var(--why-translate, 0%));
    transition: transform 480ms var(--ease-out);
  }

  .has-horizontal-scroll .why-shell > .reveal-item {
    animation: none;
  }
}

/* ==================================================
   下層ページ共通
   ================================================== */

.page-hero,
.section-shell {
  padding: clamp(48px, 6vw, 80px) 0;
}

.container.narrow {
  max-width: 980px;
}

.page-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f3f8fb 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin-bottom: 20px;
  font-size: clamp(1.85rem, 3.5vw, 2.8rem);
  line-height: 1.5;
}

.page-hero p:not(.eyebrow) {
  color: var(--body-text);
  font-size: 1rem;
  line-height: 1.95;
}

.section-alt {
  background: #f7fafc;
}

.section-head {
  margin-bottom: 32px;
}

.section-head h2 {
  margin-bottom: 14px;
}

.section-head p:not(.eyebrow) {
  color: var(--body-text);
  line-height: 1.9;
}

/* ==================================================
   会社概要
   ================================================== */

.info-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.info-table th,
.info-table td {
  padding: 22px 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  line-height: 1.9;
}

.info-table th {
  width: 24%;
  color: var(--navy-800);
  font-size: 0.92rem;
  font-weight: 600;
  background: #f7fafc;
}

.info-table td {
  color: var(--body-text);
  font-size: 0.95rem;
}

/* ==================================================
   代表メッセージ
   カードは使わず、余白と区切り線で構成
   ================================================== */

#message .message-box {
  max-width: 800px;
  margin-inline: auto;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

#message .message-box > p {
  margin: 0;
  color: var(--body-text);
  font-size: 1rem;
  line-height: 2.1;
}

#message .message-box > p + p {
  margin-top: 24px;
}

#message .message-points {
  display: grid;
  gap: 0;
  margin: 36px 0;
}

#message .message-point {
  position: static;
  padding: 28px 0;
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}

/* 以前追加したカード左側の装飾を解除 */
#message .message-point::before {
  content: none;
}

#message .message-point:last-child {
  border-bottom: 1px solid var(--border);
}

#message .message-point h3 {
  margin: 0 0 14px;
  color: var(--navy-800);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

#message .message-point p {
  margin: 0;
  color: var(--body-text);
  font-size: 0.98rem;
  line-height: 2.1;
}

#message .message-box > .message-signature {
  margin-top: 32px;
  color: var(--navy-800);
  font-weight: 600;
  text-align: right;
  letter-spacing: 0.06em;
}

/* ==================================================
   経歴・資格
   こちらもカードにせず、シンプルなプロフィール欄に
   ================================================== */

#message .profile-extra {
  max-width: 800px;
  margin: 40px auto 0;
  padding: 28px 0 0;
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}

#message .profile-extra h3 {
  margin: 0 0 16px;
  color: var(--navy-800);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

#message .career-list,
#message .cert-list {
  display: block;
  margin: 0;
  padding: 0 0 0 20px;
  color: var(--body-text);
  list-style: none;
}

#message .career-list li,
#message .cert-list li {
  position: relative;
  margin: 0;
  padding: 0 0 16px 16px;
  border-left: 1px solid rgba(17, 43, 70, 0.18);
  font-size: 0.92rem;
  line-height: 1.9;
}

#message .career-list li::before,
#message .cert-list li::before {
  position: absolute;
  top: 0.68em;
  left: -4px;
  width: 7px;
  height: 7px;
  background: var(--gold-500);
  border-radius: 50%;
  content: "";
}

#message .career-list li:last-child,
#message .cert-list li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

/* ==================================================
   文字の表示演出
   通常は表示し、is-inview が付いたときだけ動かす
   ================================================== */

body:not(.home-page) .fade-up {
  opacity: 1;
  transform: none;
  filter: none;
}

body:not(.home-page) .fade-up.is-inview {
  animation: text-fade-up 520ms var(--ease-out, ease-out) both;
}

@keyframes text-fade-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================================================
   スマートフォン
   ================================================== */

@media (max-width: 760px) {
  .page-hero,
  .section-shell {
    padding-block: 52px;
  }

  .page-hero p:not(.eyebrow) {
    font-size: 1rem;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .info-table th,
  .info-table td {
    padding: 18px 12px;
    font-size: 0.88rem;
  }

  .info-table th {
    width: 28%;
  }

  #message .message-box > p,
  #message .message-point p {
    font-size: 0.93rem;
    line-height: 2;
  }

  #message .message-points {
    margin-block: 28px;
  }

  #message .message-point {
    padding-block: 24px;
  }

  #message .profile-extra {
    margin-top: 32px;
    padding-top: 24px;
  }

  .footer-meta-simple.has-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* 動きを減らす設定では演出しない */
@media (prefers-reduced-motion: reduce) {
  body:not(.home-page) .fade-up.is-inview {
    animation: none;
  }
}

/* 共通ヘッダー・フッター */
.site-header .header-inner {
  transition: min-height 220ms var(--ease-soft);
}

.site-header .brand-logo {
  transition: height 220ms var(--ease-soft), opacity 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 28px rgba(17, 43, 70, 0.12);
}

.site-nav a[aria-current="page"]:not(.nav-cta) {
  color: var(--gold-text);
}

.site-nav .nav-cta[aria-current="page"] {
  background: var(--gold-text);
  color: var(--white);
}

@media (min-width: 961px) {
  .site-header.is-scrolled .header-inner {
    min-height: 80px;
  }

  .site-header.is-scrolled .brand-logo {
    height: 60px;
  }
}

/* 事業内容 */
.service-stack {
  display: grid;
  gap: 28px;
  max-width: 800px;
}

.detail-card {
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold-500);
  border-radius: 6px;
  background: linear-gradient(135deg, var(--ice-100), var(--white) 50%);
  box-shadow: 0 8px 24px rgba(17, 43, 70, 0.04);
}

.detail-card h2 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.detail-card .service-meta {
  margin-bottom: 16px;
  color: var(--navy-700);
  font-size: 0.84rem;
  line-height: 1.8;
}

.detail-card p,
.detail-card li {
  color: var(--body-text);
  font-size: 0.95rem;
  line-height: 2;
}

.detail-card h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.detail-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 1.2em;
}

.detail-card li::marker {
  color: var(--gold-text);
}

.detail-card > p + h3,
.detail-card > ul + p,
.detail-card > p + p {
  margin-top: 16px;
}

/* プライバシーポリシー */
.container.policy-content {
  max-width: 760px;
  color: var(--body-text);
  font-size: 1rem;
  line-height: 2;
}

.policy-content h2 {
  margin: 40px 0 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  letter-spacing: 0;
}

.policy-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.policy-content ul {
  margin: 16px 0 0;
  padding-left: 1.5em;
}

.policy-content li + li {
  margin-top: 8px;
}

.policy-content li::marker {
  color: var(--gold-text);
}

.policy-content .text-link {
  color: var(--navy-700);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.policy-date {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

/* お問い合わせ */
.contact-box {
  max-width: 800px !important;
}

.contact-card {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.contact-form-box {
  padding-top: 8px;
}

.contact-card h2,
.contact-form-box h2 {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.contact-card p {
  color: var(--body-text);
  line-height: 1.9;
}

.contact-lead {
  margin-bottom: 20px;
}

.contact-free-note {
  margin-top: 18px;
  color: var(--navy-800);
  font-weight: 700;
}

.line-cta {
  margin-top: 20px;
}

.line-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 0;
  color: var(--navy-800);
  border-bottom: 1px solid var(--gold-500);
  font-weight: 700;
}

.line-btn:hover { color: var(--gold-text); }

.line-note,
.form-help {
  margin-top: 8px;
  color: #526373;
  font-size: 0.82rem;
  line-height: 1.7;
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.form-row {
  display: grid;
  gap: 7px;
}

.form-row label {
  color: var(--navy-800);
  font-size: 0.92rem;
  font-weight: 700;
}

.required {
  margin-left: 6px;
  color: #a33434;
  font-size: 0.8rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(17, 43, 70, 0.22);
  border-radius: 3px;
}

.form-row textarea {
  min-height: 160px;
  resize: vertical;
}

.form-row input:focus-visible,
.form-row select:focus-visible,
.form-row textarea:focus-visible {
  outline-color: var(--gold-text);
}

.form-consent {
  color: var(--navy-800);
  font-size: 0.92rem;
}

.form-consent a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.form-submit {
  margin-top: 4px;
}

.form-submit .btn {
  min-width: 160px;
  border-radius: 3px;
  box-shadow: none;
}

.contact-form input:disabled,
.contact-form select:disabled,
.contact-form textarea:disabled {
  color: var(--body-text);
  background: var(--ice-200);
  opacity: 1;
  cursor: not-allowed;
}

.form-submit .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-status {
  min-height: 1.6em;
  color: #1d5e43;
  font-size: 0.88rem;
  line-height: 1.7;
}

.form-status[data-state="error"] {
  color: #9c2f2f;
}

.form-status[data-state="success"] {
  padding: 16px;
  border: 1px solid currentColor;
  border-radius: 3px;
  background: var(--ice-100);
}

.form-status a {
  color: var(--navy-700);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 600px) {
  .info-table,
  .info-table tbody,
  .info-table tr {
    display: block;
    width: 100%;
  }

  .info-table tr {
    border-bottom: 1px solid var(--border);
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 0;
    font-size: 1rem;
  }

  .info-table td {
    padding-top: 4px;
    padding-bottom: 14px;
  }

  .detail-card {
    padding: 22px 18px;
  }

  .detail-card h2,
  .detail-card h3 {
    text-wrap: balance;
    word-break: normal;
  }

  .detail-card h2 {
    font-size: 1.22rem;
    letter-spacing: -0.02em;
    line-height: 1.5;
  }

  .detail-card h3 {
    font-size: 1.02rem;
    line-height: 1.55;
  }

  .detail-card p,
  .detail-card li {
    font-size: 1rem;
    letter-spacing: -0.01em;
    line-height: 1.9;
  }

  .detail-card .service-meta,
  .line-note,
  .form-help,
  .form-status {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .contact-card {
    margin-bottom: 32px;
    padding-bottom: 28px;
  }

  .contact-form-box {
    padding: 20px 16px;
    border: 1px solid rgba(17, 43, 70, 0.1);
    border-radius: 8px;
    background: linear-gradient(145deg, var(--ice-100), #fff 72%);
  }

  .contact-form-box h2 {
    font-size: 1.45rem;
    text-wrap: balance;
  }

  .contact-form {
    margin-top: 24px;
    gap: 24px;
  }

  .form-row {
    gap: 10px;
  }

  .line-btn {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    color: var(--white);
    background: var(--navy-800);
    border: 0;
    border-radius: 6px;
    box-shadow: 0 5px 14px rgba(17, 43, 70, 0.14);
    font-size: 1.05rem;
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  }

  .line-btn:active {
    background: var(--navy-700);
    box-shadow: 0 3px 9px rgba(17, 43, 70, 0.18);
    transform: translateY(1px);
  }

  .fg-reasons-link,
  .about-contact-link .text-link,
  .footer-privacy-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: 8px;
  }

  .footer-privacy-link {
    font-size: 0.95rem;
  }

  .policy-content h2 {
    margin-top: 32px;
    padding-top: 22px;
  }

  .form-row label,
  .form-consent {
    font-size: 1rem;
  }

  .form-row input,
  .form-row select,
  .form-row textarea {
    min-height: 52px;
    font-size: 16px;
  }

  .form-consent input {
    width: 20px;
    height: 20px;
    margin: 0 8px 2px 0;
    vertical-align: middle;
  }

  .form-consent label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding-block: 10px;
    line-height: 1.8;
  }

  .form-consent input {
    flex: 0 0 20px;
  }

  .consent-copy {
    flex: 1 1 auto;
    min-width: 0;
  }

  .form-consent .required {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
  }

  .detail-card {
    transition: box-shadow 180ms ease, transform 180ms ease;
  }

  .detail-card:active {
    box-shadow: 0 10px 24px rgba(17, 43, 70, 0.1);
    transform: translateY(-2px);
  }

  .form-submit .btn {
    width: 100%;
    min-height: 52px;
  }
}

@media (max-width: 760px) {
  .reveal-item.is-inview {
    animation: mobile-soft-reveal 1200ms ease-in-out both;
  }

  body:not(.home-page) .fade-up.is-inview {
    animation: mobile-soft-reveal 1200ms ease-in-out both;
  }

  @keyframes mobile-soft-reveal {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .service-stack > .detail-card.is-inview {
    animation: none;
  }

  .service-stack > .detail-card {
    --service-reveal-x: -18px;
  }

  .service-stack > .detail-card:nth-child(even) {
    --service-reveal-x: 18px;
  }

  .service-reveal-enabled .service-stack > .detail-card > * {
    opacity: 0;
    transform: translateX(var(--service-reveal-x));
  }

  .service-reveal-enabled .service-stack > .detail-card > .is-service-visible {
    opacity: 1;
    transform: none;
    transition: opacity 1200ms ease-in-out, transform 1200ms var(--ease-soft);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item.is-inview,
  body:not(.home-page) .fade-up.is-inview {
    animation: none;
  }

  .detail-card,
  .line-btn {
    transition: none;
  }
}

.message-signature-block {
  margin-top: 1.8rem;
  margin-left: auto;
  margin-right: 0;
  display: table;      /* fit-contentより安定して右寄せされる */
  text-align: left;    /* ブロック内は左揃え維持 */
  line-height: 1.4;
}

.message-title {
  display: block;
  margin: 0 0 0.35rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  letter-spacing: 0.02em;
  opacity: 1;
}

.message-signature {
  display: block;
  margin: 0;
  font-size: clamp(1.7rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.15;
  color: #16324a;
  font-family:
    "BIZ UDPMincho",
    "Hiragino Mincho ProN",
    "Yu Mincho",
    "Noto Serif JP",
    serif;
}

.message-box .message-signature-block {
  align-self: flex-end;
}

/* 既存を上書き（このブロックはファイルの一番下に置く） */
.message-box .message-signature-block {
  margin-top: 1.8rem;
  width: max-content !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  text-align: left !important;   /* ブロック内は左揃え */
  display: block !important;
  float: right !important;       /* 右に固定 */
  clear: both;
  line-height: 1.4;
}

.message-box .message-title {
  display: block;
  margin: 0 0 0.35rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  letter-spacing: 0.02em;
}

.message-box .message-signature {
  display: block;
  margin: 0;
  font-size: clamp(1.7rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.15;
  color: #16324a;
  font-family:
    "BIZ UDPMincho",
    "Hiragino Mincho ProN",
    "Yu Mincho",
    "Noto Serif JP",
    serif;
}

/* 後続要素が回り込まないように */
.profile-extra {
  clear: both;
}

.message-box .message-signature-block {
  margin-bottom: 2.2rem !important; /* ← 名前の下だけ余白を追加 */
}