/* =========================================================
   SAKURA A&P PARTNERS - 共通スタイルシート
   設計: ヒーロー → 二言語見出し → カードUI → Contact導線 → フッター
   配色: サクラ（淡いピンク）× ネイビー
   ========================================================= */

/* ---------- デザイントークン ---------- */
:root {
  --navy: #1b2330;
  --navy-soft: #34435f;
  /* アクセント：濃いめのブルーグレー（旧ピンク） */
  --sakura: #5a6a82;
  --sakura-deep: #3c4a5f;
  --sakura-pale: #edf0f4;
  /* アクション用：鮮やかなべた塗りの青（ボタン） */
  --blue: #1763d6;
  --blue-deep: #1150b0;
  --ink: #2a2f37;
  --gray: #6b7280;
  --line: #e6e8ec;
  --bg-soft: #f7f8fa;
  --white: #ffffff;
  --max: 1160px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(29, 43, 68, 0.08);
  --shadow-hover: 0 18px 44px rgba(29, 43, 68, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- リセット ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  line-height: 1.85;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

/* ---------- レイアウト共通 ---------- */
.container {
  width: min(92%, var(--max));
  margin-inline: auto;
}

.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--soft { background: var(--bg-soft); }
.section--pale { background: var(--sakura-pale); }
/* パンくず直後（下層ページ）の最初のセクションは上余白を半分に詰める */
main > .section:first-child { padding-top: clamp(28px, 4vw, 55px); }

/* 二言語見出し */
.heading { margin-bottom: clamp(32px, 5vw, 56px); }
.heading--center { text-align: center; }
.heading__en {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy);
  line-height: 1.1;
}
.heading__ja {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--sakura-deep);
  position: relative;
  padding-left: 30px;
}
.heading--center .heading__ja { padding-left: 0; }
.heading__ja::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 22px; height: 2px;
  background: var(--sakura);
}
.heading--center .heading__ja::before { display: none; }
.heading__lead {
  margin-top: 18px;
  color: var(--gray);
  font-size: 1rem;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
  cursor: pointer;
  border: none;
}
.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(23, 99, 214, 0.32);
}
.btn--primary:hover { background: var(--blue-deep); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(23, 99, 214, 0.42); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-3px); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.btn__arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- ヘッダー ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(29, 43, 68, 0.07); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.logo__mark { display: none; }
.logo__text { line-height: 1.15; }
.logo__text strong { display: block; font-size: 1.02rem; color: var(--navy); letter-spacing: 0.02em; }
.logo__text span { display: block; font-size: 0.62rem; color: var(--gray); letter-spacing: 0.18em; }
.logo__img { height: clamp(38px, 5.4vw, 50px); width: auto; display: block; }
.footer__brand .logo__img { filter: brightness(0) invert(1); }

.gnav { display: flex; align-items: center; gap: 6px; }
.gnav__link {
  display: inline-block;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.gnav__link:hover { color: var(--sakura-deep); background: var(--sakura-pale); }
.gnav__link.is-current { color: var(--sakura-deep); }
.gnav__cta { margin-left: 8px; }

/* ハンバーガー */
.nav-toggle { display: none; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: linear-gradient(120deg, #161d29 0%, #283749 55%, #38495f 100%);
  overflow: hidden;
  padding-top: 74px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -8%; bottom: -12%;
  width: 60vmax; height: 60vmax;
  background: radial-gradient(circle, rgba(58, 100, 150, 0.4), transparent 62%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; }
.hero__en {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 0;
}
.hero__ja {
  margin-top: 22px;
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.hero__lead {
  margin-top: 22px;
  max-width: 540px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
}
.hero__actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

/* 下層ページ用ヒーロー（コンパクト） */
.page-hero {
  position: relative;
  padding: calc(74px + 70px) 0 64px;
  color: var(--white);
  background: linear-gradient(120deg, #161d29 0%, #283749 60%, #38495f 100%);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -6%; top: -40%;
  width: 40vmax; height: 40vmax;
  background: radial-gradient(circle, rgba(58, 100, 150, 0.35), transparent 60%);
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero__en {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  margin: 0;
}
.page-hero__ja {
  margin-top: 10px;
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: var(--sakura);
  font-weight: 700;
}

/* ---------- パンくず ---------- */
.breadcrumb { padding: 16px 0; font-size: 0.8rem; color: var(--gray); background: var(--bg-soft); }
.breadcrumb a:hover { color: var(--sakura-deep); }
.breadcrumb span { margin: 0 8px; opacity: 0.5; }

/* ---------- カードグリッド ---------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sakura), var(--sakura-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card:hover::before { transform: scaleX(1); }
.card__num {
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sakura-deep);
  letter-spacing: 0.1em;
}
.card__en {
  font-family: "Poppins", sans-serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy);
  margin: 8px 0 2px;
}
.card__ja { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.card__desc { margin-top: 14px; font-size: 0.92rem; color: var(--gray); flex: 1; }
.card__tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.card__tag {
  font-size: 0.74rem;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--sakura-pale);
  color: var(--sakura-deep);
  font-weight: 600;
}
.card__more {
  margin-top: 22px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card:hover .card__more { color: var(--sakura-deep); }
.card--link { cursor: pointer; }

/* ---------- サービス一覧（事業ページ） ---------- */
.service-list { display: grid; gap: 18px; }
.service-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 26px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.service-item__no {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: var(--sakura);
  font-size: 1.4rem;
  flex: none;
  line-height: 1.4;
}
.service-item__body h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--navy); }
.service-item__body p { margin: 0; color: var(--gray); font-size: 0.92rem; }

/* ---------- 数字で見る ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 30px 16px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat__num { font-family: "Poppins", sans-serif; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 600; color: var(--sakura-deep); line-height: 1; }
.stat__num small { font-size: 0.9rem; margin-left: 4px; }
.stat__label { margin-top: 12px; font-size: 0.85rem; color: var(--gray); font-weight: 600; }

/* ---------- 会社概要テーブル ---------- */
.table-info { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table-info th, .table-info td { text-align: left; padding: 20px 26px; border-bottom: 1px solid var(--line); font-size: 0.95rem; vertical-align: top; }
.table-info th { width: 28%; background: var(--bg-soft); color: var(--navy); font-weight: 700; white-space: nowrap; }
.table-info tr:last-child th, .table-info tr:last-child td { border-bottom: none; }

/* ---------- メッセージ ---------- */
.message__quote {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.7;
  margin: 0 0 26px;
}
.message__quote em { color: var(--sakura-deep); font-style: normal; }
.message__body p { margin: 0 0 18px; color: var(--ink); }
.message__sign { margin-top: 28px; font-weight: 700; color: var(--navy); }
.message__sign small { display: block; font-weight: 500; color: var(--gray); margin-bottom: 4px; }

/* ---------- Contact 導線 ---------- */
.contact-cta {
  position: relative;
  color: var(--white);
  background: linear-gradient(120deg, #161d29 0%, #2c3d52 100%);
  text-align: center;
  overflow: hidden;
}
.contact-cta::after {
  content: "";
  position: absolute;
  left: -5%; bottom: -30%;
  width: 36vmax; height: 36vmax;
  background: radial-gradient(circle, rgba(58, 100, 150, 0.32), transparent 60%);
}
.contact-cta__inner { position: relative; z-index: 2; }
.contact-cta__en { font-family: "Poppins", sans-serif; font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 600; margin: 0; }
.contact-cta__ja { margin-top: 14px; color: rgba(255,255,255,0.85); }
.contact-cta__actions { margin-top: 32px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.contact-cta__tel { margin-top: 26px; font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.contact-cta__tel strong { font-family: "Poppins", sans-serif; font-size: 1.8rem; color: var(--white); display: block; letter-spacing: 0.04em; }

/* ---------- フォーム ---------- */
.form { max-width: 720px; margin-inline: auto; display: grid; gap: 22px; }
.form__row { display: grid; gap: 8px; }
.form__row label { font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.form__row label .req { color: var(--sakura-deep); font-size: 0.78rem; margin-left: 8px; }
.form__row input, .form__row textarea, .form__row select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form__row input:focus, .form__row textarea:focus, .form__row select:focus {
  outline: none;
  border-color: var(--sakura);
  box-shadow: 0 0 0 3px rgba(90, 106, 130, 0.22);
}
.form__submit { text-align: center; margin-top: 8px; }

/* ---------- フッター ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.78); padding: 64px 0 28px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand { max-width: 320px; }
.footer__brand .logo__text strong { color: var(--white); }
.footer__brand p { margin-top: 18px; font-size: 0.86rem; color: rgba(255,255,255,0.6); }
.footer__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer__col h4 { font-size: 0.78rem; letter-spacing: 0.12em; color: var(--sakura); margin: 0 0 16px; font-family: "Poppins", sans-serif; }
.footer__col li { margin-bottom: 10px; }
.footer__col a { font-size: 0.88rem; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer__col a:hover { color: var(--white); }
.footer__bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- アニメーション ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 880px) {
  .gnav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px 6%;
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease);
    box-shadow: var(--shadow);
  }
  .gnav.is-open { transform: translateY(0); }
  .gnav__link { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .gnav__cta { margin: 14px 0 6px; text-align: center; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    background: none; border: none; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .table-info th { width: 36%; }
  .footer__top { flex-direction: column; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .service-item { flex-direction: column; gap: 10px; }
}
