﻿@charset "UTF-8";
/* =========================================================
   株式会社谷口 コーポレートサイト
   配色：青系（ネイビー〜ブルー）× 水色 ／ 差し色：コーラル
   ========================================================= */

:root {
  --navy: #0e2a47;
  --navy-deep: #091d33;
  --blue: #1f5fa8;
  --blue-soft: #3d7cc4;
  --sky: #8ccbea;
  --sky-pale: #eaf5fb;
  --sky-mist: #f5fafd;
  --coral: #d4472b;
  --coral-dark: #b83a20;
  --coral-light: #ff7a5c;
  --ink: #1d2733;
  --ink-sub: #5a6878;
  --line: #d8e6f0;
  --white: #ffffff;

  --font-base: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-head: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-en: "Montserrat", sans-serif;

  --container: 1120px;
  --header-h: 76px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 42, 71, 0.08);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.04em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sp-only { display: none; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(216, 230, 240, 0.7);
  transition: box-shadow 0.3s;
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(14, 42, 71, 0.08); }
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; line-height: 1.2; }
.logo img { height: 30px; width: auto; }
.footer .logo img { height: 28px; }
.logo__ja { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--navy); letter-spacing: 0.08em; }
.logo__en { font-family: var(--font-en); font-size: 0.62rem; color: var(--blue); letter-spacing: 0.2em; }

.gnav { display: flex; align-items: center; gap: 28px; }
.gnav__list { display: flex; gap: 24px; font-size: 0.88rem; font-weight: 500; }
.gnav__list a { position: relative; padding: 4px 0; }
.gnav__list a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.gnav__list a:hover::after { transform: scaleX(1); }

.header__cta { display: flex; align-items: center; gap: 16px; }
.header__tel { display: flex; flex-direction: column; line-height: 1.3; text-align: right; }
.header__tel-num { font-family: var(--font-en); font-weight: 700; font-size: 1.1rem; color: var(--navy); }
.header__tel-time { font-size: 0.68rem; color: var(--ink-sub); }

.menu-btn { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
  border: 2px solid transparent;
}
.btn::after { content: "→"; font-family: var(--font-en); transition: transform 0.25s; }
.btn:hover::after { transform: translateX(4px); }
.btn--coral { background: var(--coral); color: var(--white); box-shadow: 0 8px 20px rgba(212, 71, 43, 0.3); }
.btn--coral:hover { background: var(--coral-dark); transform: translateY(-2px); }
.btn--outline { border-color: var(--white); color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn--outline:hover { background: var(--white); color: var(--navy); }
.btn--blue-outline { border-color: var(--blue); color: var(--blue); }
.btn--blue-outline:hover { background: var(--blue); color: var(--white); }
.btn--sm { padding: 10px 22px; font-size: 0.85rem; }
.btn--sm::after { display: none; }
.btn--lg { padding: 20px 44px; font-size: 1.05rem; }

/* ---------- Photo placeholder（実写真に差し替え） ---------- */
.ph {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 25% 30%, rgba(140, 203, 234, 0.55), transparent 55%),
    radial-gradient(circle at 80% 75%, rgba(31, 95, 168, 0.45), transparent 50%),
    linear-gradient(135deg, #2b5a88, #0e2a47);
  aspect-ratio: 4 / 3;
}
.ph::after {
  content: attr(data-label);
  position: absolute; inset: auto 16px 14px 16px;
  font-size: 0.75rem; color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.06em;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph:has(img)::after { display: none; }

/* ---------- Section common ---------- */
.section { padding: 120px 0; }
.section--sky { background: var(--sky-pale); }
.section--mist { background: var(--sky-mist); }

.sec-head { text-align: center; margin-bottom: 64px; }
.sec-head__en {
  display: block;
  font-family: var(--font-en);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--blue);
  margin-bottom: 12px;
}
.sec-head__title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
}
.sec-head__lead { margin-top: 20px; color: var(--ink-sub); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__slide {
  position: absolute; inset: 0;
  border-radius: 0;
  aspect-ratio: auto;
  opacity: 0;
  animation: heroFade 18s infinite;
}
.hero__slide:nth-child(1) { animation-delay: 0s; }
.hero__slide:nth-child(2) { animation-delay: 6s; }
.hero__slide:nth-child(3) { animation-delay: 12s; }
.hero__slide.ph::after { inset: auto 24px 24px auto; }
@keyframes heroFade {
  0% { opacity: 0; transform: scale(1.06); }
  6% { opacity: 1; }
  33% { opacity: 1; }
  40% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; }
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(9, 29, 51, 0.85) 0%, rgba(14, 42, 71, 0.6) 40%, rgba(14, 42, 71, 0.1) 75%);
}
.hero__inner { padding-top: var(--header-h); }
.hero__lead {
  display: inline-block;
  font-family: var(--font-head);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--sky);
  margin-bottom: 24px;
}
.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5.6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.06em;
}
.hero__title em { font-style: normal; color: var(--sky); }
.hero__sub {
  margin-top: 28px;
  max-width: 560px;
  font-size: 1rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.9);
}
.hero__btns { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  font-family: var(--font-en); font-size: 0.68rem; letter-spacing: 0.3em;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255, 255, 255, 0.8);
}
.hero__scroll::after {
  content: ""; width: 1px; height: 48px;
  background: linear-gradient(var(--white), transparent);
  animation: scrollLine 2s infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Strength (zigzag) ---------- */
.strength { display: grid; gap: 120px; }
.strength__item {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
}
.strength__item:nth-child(even) .strength__photo { order: 2; }
.strength__photo { position: relative; }
.strength__photo .ph { aspect-ratio: 16 / 10; box-shadow: var(--shadow); }
.strength__photo::before {
  content: ""; position: absolute; z-index: -1;
  width: 70%; height: 70%;
  background: var(--sky-pale);
  border-radius: var(--radius);
  bottom: -28px; right: -28px;
}
.strength__item:nth-child(even) .strength__photo::before { right: auto; left: -28px; }
.strength__num {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--blue);
}
.strength__num span { font-size: 3.4rem; line-height: 1; margin-left: 8px; color: var(--sky); }
.strength__label {
  display: inline-block;
  margin: 12px 0 8px;
  font-size: 0.85rem; font-weight: 700;
  color: var(--coral);
  letter-spacing: 0.15em;
}
.strength__title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 24px;
}
.strength__text { color: var(--ink-sub); }
.point-list { margin-top: 32px; display: grid; gap: 12px; }
.point-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
}
.point-list__icon {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sky-pale);
  color: var(--blue);
}
.point-list__icon svg { width: 18px; height: 18px; }

/* ---------- CTA band (mid) ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue), var(--navy));
  color: var(--white);
  padding: 56px 0;
}
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band__text { font-family: var(--font-head); font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; }
.cta-band__text small { display: block; font-family: var(--font-base); font-size: 0.85rem; font-weight: 400; opacity: 0.85; margin-top: 4px; }

/* ---------- Numbers ---------- */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 96px;
}
.number-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 20px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
}
.number-card__label { font-size: 0.85rem; font-weight: 700; color: var(--ink-sub); letter-spacing: 0.1em; }
.number-card__value {
  margin: 10px 0 4px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  line-height: 1.2;
  color: var(--navy);
}
.number-card__value small { font-family: var(--font-base); font-size: 0.95rem; font-weight: 700; margin-left: 2px; }
.number-card__value--text { font-family: var(--font-head); font-size: clamp(1.25rem, 2vw, 1.5rem); padding: 12px 0; }
.number-card__note { font-size: 0.78rem; color: var(--ink-sub); }

.about-grid { display: grid; gap: 80px; }
.about-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-item:nth-child(even) .about-item__media { order: 2; }
.about-item__tag {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700;
  color: var(--blue);
  background: var(--white);
  border: 1px solid var(--sky);
  border-radius: 999px;
  padding: 2px 14px;
  margin-bottom: 14px;
  letter-spacing: 0.12em;
}
.about-item__title {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 20px;
}
.about-item__text { color: var(--ink-sub); }

.area-map {
  aspect-ratio: 4 / 3;
  max-width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sky-pale);
  box-shadow: var(--shadow);
}
.area-map img { width: 100%; height: 100%; object-fit: cover; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery { gap: 20px 14px; align-items: center; }
.gallery__item { margin: 0; }
.gallery__item img { width: 100%; object-fit: cover; border-radius: 6px; box-shadow: 0 8px 20px rgba(14, 42, 71, 0.15); }
.gallery__item--tall img { aspect-ratio: 1 / 1.414; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--wide img { aspect-ratio: 1.414 / 1; }
.gallery__item--card img { aspect-ratio: 1075 / 650; border-radius: 4px; }
.gallery__item figcaption { margin-top: 8px; font-size: 0.75rem; color: var(--ink-sub); text-align: center; }

/* ---------- Opening support ---------- */
.opening {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.opening::before {
  content: ""; position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 203, 234, 0.22), transparent 70%);
  top: -200px; right: -160px;
}
.opening .sec-head__en { color: var(--sky); }
.opening .sec-head__title { color: var(--white); }
.opening .sec-head__lead { color: rgba(255, 255, 255, 0.82); }

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.timeline::before {
  content: ""; position: absolute;
  top: 27px; left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--sky), rgba(140, 203, 234, 0.3));
}
.timeline__item { position: relative; text-align: center; }
.timeline__dot {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--sky);
  font-family: var(--font-en); font-weight: 700; font-size: 0.9rem;
  color: var(--sky);
  position: relative; z-index: 1;
}
.timeline__item--open .timeline__dot { background: var(--coral); border-color: var(--coral); color: var(--white); }
.timeline__when { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; margin-bottom: 12px; }
.timeline__card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(140, 203, 234, 0.25);
  border-radius: 12px;
  padding: 20px 18px;
  font-size: 0.9rem;
  text-align: left;
  line-height: 1.8;
}
.timeline__card li { padding-left: 1.1em; text-indent: -1.1em; }
.timeline__card li::before { content: "・"; color: var(--sky); }
.opening__cta { margin-top: 56px; text-align: center; }

/* ---------- Flow ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.flow__item {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 24px 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.flow__item:not(:last-child)::after {
  content: "";
  position: absolute; top: 50%; right: -22px;
  width: 12px; height: 12px;
  border-top: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
  transform: translateY(-50%) rotate(45deg);
}
.flow__step { font-family: var(--font-en); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.25em; color: var(--blue); }
.flow__num { font-family: var(--font-en); font-size: 2.6rem; font-weight: 700; line-height: 1.1; color: var(--sky); }
.flow__title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--navy); margin: 12px 0 10px; }
.flow__text { font-size: 0.88rem; color: var(--ink-sub); text-align: left; }
.flow-badge {
  margin: 48px auto 0;
  width: fit-content;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--white);
  border: 2px solid var(--coral);
  font-weight: 700;
  color: var(--navy);
}
.flow-badge strong { color: var(--coral); font-size: 1.4rem; font-family: var(--font-en); }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin: 0 auto; display: grid; gap: 14px; }
.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.faq__q {
  list-style: none;
  display: flex; align-items: center; gap: 16px;
  padding: 22px 60px 22px 24px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  position: relative;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::before, .faq__a::before {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--font-en); font-weight: 700;
}
.faq__q::before { content: "Q"; background: var(--blue); color: var(--white); }
.faq__q::after {
  content: ""; position: absolute; right: 26px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s;
}
.faq__item[open] .faq__q::after { transform: translateY(-30%) rotate(-135deg); }
.faq__a {
  display: flex; gap: 16px;
  padding: 0 24px 24px;
  color: var(--ink-sub);
}
.faq__a::before { content: "A"; background: var(--sky-pale); color: var(--coral); }
.faq__a p { padding-top: 3px; }

/* ---------- Contact CTA ---------- */
.contact-cta {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 55%, var(--blue));
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-cta::before {
  content: ""; position: absolute;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 203, 234, 0.2), transparent 70%);
  bottom: -260px; left: -120px;
}
.contact-cta .sec-head { margin-bottom: 48px; }
.contact-cta .sec-head__en { color: var(--sky); }
.contact-cta .sec-head__title { color: var(--white); }
.contact-cta .sec-head__lead { color: rgba(255, 255, 255, 0.85); }
.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}
.contact-box__item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(140, 203, 234, 0.3);
  border-radius: var(--radius);
  padding: 36px 28px;
}
.contact-box__label { font-weight: 700; font-size: 0.95rem; margin-bottom: 12px; }
.contact-box__tel {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.3;
}
.contact-box__note { font-size: 0.82rem; opacity: 0.8; margin-top: 6px; }
.contact-box .btn { margin-top: 8px; width: 100%; max-width: 300px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 64px 0 28px;
  font-size: 0.88rem;
}
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .logo__ja { color: var(--white); }
.footer .logo__en { color: var(--sky); }
.footer__info { margin-top: 18px; line-height: 1.9; }
.footer__nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 48px; }
.footer__nav a:hover { color: var(--sky); }
.footer__notice {
  margin-top: 48px;
  padding: 14px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-size: 0.8rem;
}
.footer__copy { margin-top: 24px; text-align: center; font-family: var(--font-en); font-size: 0.72rem; opacity: 0.6; letter-spacing: 0.1em; }

/* ---------- SP fixed CTA ---------- */
.sp-cta { display: none; }

/* ---------- Page header (下層) ---------- */
.page-hero {
  padding: calc(var(--header-h) + 80px) 0 72px;
  background:
    radial-gradient(circle at 85% 20%, rgba(140, 203, 234, 0.35), transparent 45%),
    linear-gradient(120deg, var(--navy), var(--blue));
  color: var(--white);
}
.page-hero__en { font-family: var(--font-en); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.3em; color: var(--sky); }
.page-hero__title { font-family: var(--font-head); font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; margin-top: 8px; }
.breadcrumb { margin-top: 20px; font-size: 0.78rem; opacity: 0.8; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }

.local-nav {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: var(--header-h); z-index: 50;
}
.local-nav ul { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 14px 0; }
.local-nav a { display: block; padding: 6px 18px; border-radius: 999px; font-size: 0.88rem; font-weight: 500; color: var(--navy); }
.local-nav a:hover { background: var(--sky-pale); }

/* Company table */
.info-table { width: 100%; max-width: 880px; margin: 0 auto; border-collapse: collapse; }
.info-table th, .info-table td { padding: 22px 24px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.info-table tr:first-child th, .info-table tr:first-child td { border-top: 2px solid var(--navy); }
.info-table th { width: 200px; font-weight: 700; color: var(--navy); background: var(--sky-mist); }

/* Message */
.message { display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: start; max-width: 1000px; margin: 0 auto; }
.message__photo { position: sticky; top: calc(var(--header-h) + 90px); }
.message__photo .ph { aspect-ratio: 3 / 4; }
.message__name { margin-top: 18px; text-align: center; }
.message__name small { display: block; font-size: 0.82rem; color: var(--ink-sub); }
.message__name strong { font-family: var(--font-head); font-size: 1.3rem; color: var(--navy); letter-spacing: 0.15em; }
.message__body p { margin-bottom: 1.8em; line-height: 2.1; }
.message__body p:first-child::first-line { font-weight: 700; }
.message__sign { text-align: right; font-family: var(--font-head); font-weight: 700; color: var(--navy); }

/* History */
.history { max-width: 820px; margin: 0 auto; position: relative; }
.history::before {
  content: ""; position: absolute;
  left: 160px; top: 10px; bottom: 10px;
  width: 2px; background: var(--line);
}
.history__item { display: grid; grid-template-columns: 160px 1fr; position: relative; padding: 14px 0; }
.history__date { font-weight: 700; color: var(--blue); font-size: 0.92rem; padding-right: 32px; }
.history__body { padding-left: 36px; position: relative; }
.history__body::before {
  content: ""; position: absolute;
  left: -6px; top: 0.7em;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--sky);
}
.history__item--key .history__body::before { background: var(--blue); border-color: var(--blue); }
.history__item--new .history__body::before { background: var(--coral); border-color: var(--coral); }
.history__body p + p { margin-top: 4px; }


/* ---------- Organization chart ---------- */
.org { max-width: 1040px; margin: 0 auto; display: grid; gap: 40px; }
.org__company {
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--navy);
  letter-spacing: 0.1em; padding-bottom: 12px; border-bottom: 2px solid var(--navy);
}
.org__scroll { overflow-x: auto; padding: 8px 2px 12px; }
.org-tree, .org-tree ul { list-style: none; margin: 0; padding: 0; }
.org-tree { --line-c: #a9bfd3; --branch: var(--blue); width: max-content; min-width: 100%; }
.org-tree li { position: relative; display: flex; align-items: center; padding: 6px 0 6px 26px; }
.org-tree > li { padding-left: 0; }
.org-tree ul { position: relative; display: flex; flex-direction: column; padding-left: 26px; }
/* 親から子への横線 */
.org-tree ul::before { content: ""; position: absolute; left: 0; top: 50%; width: 26px; border-top: 1.5px solid var(--line-c); }
/* 子の左の横線と縦線 */
.org-tree ul > li::before { content: ""; position: absolute; left: 0; top: 50%; width: 26px; border-top: 1.5px solid var(--line-c); }
.org-tree ul > li::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 1.5px solid var(--line-c); }
.org-tree ul > li:first-child::after { top: 50%; }
.org-tree ul > li:last-child::after { bottom: 50%; }
.org-tree ul > li:only-child::after { display: none; }

.org-branch--sales { --branch: var(--blue); }
.org-branch--admin { --branch: var(--navy); }
.org-branch--new { --branch: var(--coral); }

.org-node {
  position: relative; z-index: 1; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 16px; border-radius: 8px;
  font-weight: 700; font-size: 0.92rem; line-height: 1.4; white-space: nowrap; text-align: center;
}
.org-node--top { min-width: 120px; background: var(--navy-deep); color: var(--white); letter-spacing: 0.08em; }
.org-node--hq { min-width: 120px; background: var(--branch); color: var(--white); letter-spacing: 0.08em; }
.org-node--dept { min-width: 150px; background: var(--white); color: var(--branch); border: 2px solid var(--branch); }
.org-node--sec { min-width: 150px; background: var(--white); color: var(--ink); font-weight: 500; border: 1px solid var(--line); }
.org-branch--new .org-node--dept { color: var(--coral-dark); }

.org-group {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px;
  padding: 24px 28px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line);
}
.org-group__title { font-family: var(--font-head); font-weight: 700; color: var(--navy); letter-spacing: 0.1em; }
.org-group__list { display: flex; flex-wrap: wrap; gap: 10px; }
.org-group__list li {
  padding: 8px 18px; border-radius: 999px; background: var(--sky-pale);
  font-weight: 500; font-size: 0.92rem; color: var(--navy);
}
.org-group__list li span { margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--sky); font-weight: 400; color: var(--ink-sub); }

/* スマホ：縦方向のツリーに切り替え */
@media (max-width: 900px) {
  .org-tree { width: auto; }
  .org-tree li { display: block; padding: 5px 0 5px 22px; }
  .org-tree > li { padding-left: 0; }
  .org-tree ul { padding-left: 0; margin-left: 18px; padding-top: 5px; }
  .org-tree ul::before { display: none; }
  .org-tree ul > li::before { top: 27px; width: 22px; }
  .org-tree ul > li:first-child::after { top: -5px; }
  .org-tree ul > li:last-child::after { bottom: auto; height: 27px; }
  .org-tree ul > li:only-child::after { display: block; top: -5px; bottom: auto; height: 32px; }
  .org-tree ul > li:first-child:last-child::after { top: -5px; }
  .org-node { min-width: 0; white-space: normal; justify-content: flex-start; text-align: left; }
  .org-node--sec { font-size: 0.88rem; }
}

/* Access */
.access { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.access__list { display: grid; gap: 20px; }
.access__list dt { font-weight: 700; color: var(--navy); font-size: 0.88rem; margin-bottom: 2px; }
.access__list dd { margin: 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.access__photo { margin-top: 28px; }
.access__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.access__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Contact form */
.form-intro { text-align: center; max-width: 720px; margin: 0 auto 48px; color: var(--ink-sub); }
.form-tel {
  max-width: 720px; margin: 0 auto 56px;
  padding: 28px; text-align: center;
  background: var(--sky-pale); border-radius: var(--radius);
}
.form-tel a { display: block; font-family: var(--font-en); font-weight: 700; font-size: 2rem; color: var(--navy); }
.form-tel small { color: var(--ink-sub); }
.form { max-width: 720px; margin: 0 auto; display: grid; gap: 28px; }
.form__row { display: grid; gap: 8px; }
.form__label { font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 10px; }
.form__req, .form__opt { font-size: 0.7rem; padding: 1px 8px; border-radius: 4px; font-weight: 700; }
.form__req { background: var(--coral); color: var(--white); }
.form__opt { background: var(--line); color: var(--ink-sub); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sky-mist);
  transition: border-color 0.2s, background 0.2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); background: var(--white); }
.form textarea { min-height: 180px; resize: vertical; }
.form__choices { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.form__choices label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.form__choices input { accent-color: var(--blue); width: 18px; height: 18px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__fieldset { border: none; margin: 0; padding: 0; min-width: 0; }
.form__fieldset legend { padding: 0; margin-bottom: 8px; }
.contact-method { display: grid; gap: 12px; }
.contact-method__main { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; cursor: pointer; }
.contact-method__main input { accent-color: var(--blue); width: 18px; height: 18px; }
.contact-method__sub {
  display: grid; gap: 10px; margin-left: 9px; padding: 14px 18px;
  border-left: 2px solid var(--sky); background: var(--sky-mist); border-radius: 0 8px 8px 0;
}
.contact-method__sub-label { font-size: 0.85rem; font-weight: 700; color: var(--ink-sub); }
.contact-method__sub .form__choices label { min-height: 36px; }
.form__privacy { text-align: center; font-size: 0.9rem; }
.form__privacy a { color: var(--blue); text-decoration: underline; }
.form__submit { text-align: center; }
.form__submit .btn { border: none; min-width: 300px; }

/* ---------- Scroll animation ---------- */
/* JSが動かない環境（メールのプレビュー等）でも内容が見えるよう、JS有効時のみ隠す */
.js .js-fade { opacity: 0; transform: translateY(32px); transition: opacity 0.9s ease, transform 0.9s ease; }
.js .js-fade.is-show { opacity: 1; transform: none; }
.js-fade[data-delay="1"] { transition-delay: 0.12s; }
.js-fade[data-delay="2"] { transition-delay: 0.24s; }
.js-fade[data-delay="3"] { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .js-fade { opacity: 1; transform: none; transition: none; }
  .hero__slide { animation: none; }
  .hero__slide:first-child { opacity: 1; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .gnav__list { gap: 16px; font-size: 0.82rem; }
  .header__tel { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .sp-only { display: inline; }
  .section { padding: 88px 0; }
  .sec-head { margin-bottom: 44px; }

  /* SP menu */
  .menu-btn {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    background: none; border: none; padding: 0;
    position: relative; z-index: 120;
  }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after {
    display: block; width: 24px; height: 2px; background: var(--navy);
    transition: transform 0.3s, background 0.3s;
    content: ""; position: relative;
  }
  .menu-btn span::before { position: absolute; top: -8px; }
  .menu-btn span::after { position: absolute; top: 8px; }
  .is-menu-open .menu-btn span { background: transparent; }
  .is-menu-open .menu-btn span::before { transform: translateY(8px) rotate(45deg); }
  .is-menu-open .menu-btn span::after { transform: translateY(-8px) rotate(-45deg); }

  .gnav {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center;
    background: var(--white);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 110;
  }
  .is-menu-open .gnav { opacity: 1; visibility: visible; }
  .gnav__list { flex-direction: column; text-align: center; gap: 22px; font-size: 1.05rem; }
  .header__cta { flex-direction: column; }
  .header__tel { display: flex; text-align: center; }

  .strength { gap: 80px; }
  .strength__item, .about-item { grid-template-columns: 1fr; gap: 40px; }
  .strength__item:nth-child(even) .strength__photo,
  .about-item:nth-child(even) .about-item__media { order: 0; }
  .strength__photo::before { bottom: -16px; right: -12px; }
  .strength__item:nth-child(even) .strength__photo::before { left: -12px; }

  .numbers { grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 72px; }
  .number-card { padding: 26px 12px 22px; }

  .timeline { grid-template-columns: 1fr; gap: 28px; }
  .timeline::before { top: 0; bottom: 0; left: 27px; right: auto; width: 2px; height: auto; background: linear-gradient(var(--sky), rgba(140, 203, 234, 0.3)); }
  .timeline__item { display: grid; grid-template-columns: 56px 1fr; gap: 0 18px; text-align: left; }
  .timeline__dot { margin: 0; grid-row: span 2; }
  .timeline__when { margin: 12px 0 10px; }
  .timeline__card { grid-column: 2; }

  .flow { grid-template-columns: 1fr; gap: 40px; max-width: 480px; margin: 0 auto; }
  .flow__item:not(:last-child)::after { top: auto; bottom: -26px; right: 50%; transform: translateX(50%) rotate(135deg); }

  .contact-box { grid-template-columns: 1fr; }

  .message { grid-template-columns: 1fr; gap: 40px; }
  .message__photo { position: static; max-width: 280px; margin: 0 auto; }
  .access { grid-template-columns: 1fr; }

  /* SP fixed bottom CTA */
  .sp-cta {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    box-shadow: 0 -4px 16px rgba(14, 42, 71, 0.12);
  }
  .sp-cta a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 16px 8px calc(16px + env(safe-area-inset-bottom));
    font-weight: 700; font-size: 0.95rem;
  }
  .sp-cta__tel { background: var(--white); color: var(--navy); }
  .sp-cta__form { background: var(--coral); color: var(--white); }
  .sp-cta svg { width: 18px; height: 18px; }
  body { padding-bottom: 60px; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .header__cta .btn { display: none; }
  .is-menu-open .header__cta .btn { display: inline-flex; }
  .hero__btns .btn { width: 100%; }
  .btn--lg { padding: 16px 24px; font-size: 0.95rem; }
  .hero__scroll { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--tall:first-child { grid-column: span 2; max-width: 70%; margin: 0 auto; }
  .gallery__item--card { grid-column: span 2; max-width: 70%; margin: 0 auto; }
  .cta-band__inner { flex-direction: column; text-align: center; }
  .info-table th, .info-table td { display: block; width: 100%; padding: 12px 16px; }
  .info-table th { border-bottom: none; }
  .info-table tr:first-child td { border-top: none; }
  .history::before { left: 7px; }
  .history__item { grid-template-columns: 1fr; padding-left: 32px; }
  .history__date { padding: 0; }
  .history__body { padding-left: 0; }
  .history__body::before { left: -31px; top: -1.4em; }
  .form__submit .btn { min-width: 0; width: 100%; }
  .flow-badge { padding: 12px 20px; font-size: 0.9rem; }
}
