@charset "UTF-8";
/* ===================================================================
   Success Motion株式会社 コーポレートサイト 共通スタイル
   カラーテーマ：ネイビー × グレー × ホワイト（落ち着いた企業トーン）
   ================================================================== */

/* ---------- カラー・変数定義 ---------- */
:root {
  --navy:        #1a2b4a;   /* ベースカラー（ネイビー） */
  --navy-dark:   #12203a;   /* ヘッダー・フッター用の濃紺 */
  --navy-light:  #2c4470;   /* ホバー等 */
  --steel:       #4a6a9a;   /* アクセント（スチールブルー） */
  --gray-900:    #222b38;
  --gray-700:    #4a5464;
  --gray-500:    #7a8493;
  --gray-300:    #cdd3dc;
  --gray-100:    #eef1f5;
  --gray-50:     #f6f8fb;
  --white:       #ffffff;
  --line:        #e2e7ee;
  --accent-line: #c9a24b;   /* 上品なゴールドのアクセントライン（極少量のみ使用） */

  --maxw: 1120px;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(26,43,74,.08);
  --shadow-md: 0 6px 20px rgba(26,43,74,.10);

  --font-jp: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic",
             "Meiryo", "Noto Sans JP", system-ui, sans-serif;
}

/* ---------- リセット・ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.8;
  font-size: 16px;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { line-height: 1.4; font-weight: 700; color: var(--navy); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

/* ---------- レイアウト共通 ---------- */
.container { width: 90%; max-width: var(--maxw); margin-inline: auto; }
.section { padding: 72px 0; }
.section--gray { background: var(--gray-50); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.section-head { text-align: center; margin-bottom: 48px; }
.section-head .en {
  display: block;
  font-size: .72rem;
  letter-spacing: .28em;
  color: var(--steel);
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 600;
}
.section-head h2 {
  font-size: 1.75rem;
  margin: 0;
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background: var(--accent-line);
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: .95rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: .05em;
}
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-light); color: var(--white); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--gray-100); color: var(--navy); }
.btn .icon { width: 18px; height: 18px; }

/* ===================================================================
   ヘッダー / グローバルナビ
   ================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-size: 1.05rem; font-weight: 700; color: var(--navy); letter-spacing: .04em; }
.brand__sub { font-size: .62rem; color: var(--gray-500); letter-spacing: .18em; }

.gnav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.gnav a {
  display: block;
  padding: 10px 16px;
  color: var(--gray-700);
  font-size: .9rem;
  font-weight: 600;
  border-radius: var(--radius);
}
.gnav a:hover { color: var(--navy); background: var(--gray-100); }
.gnav a.is-active { color: var(--navy); }
.gnav a.is-active::after {
  content: ""; display: block; height: 2px; background: var(--accent-line);
  margin-top: 4px; border-radius: 2px;
}
.gnav .nav-cta {
  margin-left: 8px;
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 20px;
}
.gnav .nav-cta:hover { background: var(--navy-light); }

/* ハンバーガー */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: none; background: transparent; cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--navy);
  margin: 5px 0; transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================================================
   ヒーロー
   ================================================================== */
.hero {
  position: relative;
  color: var(--white);
  /* 背景写真：外壁を塗装する職人
     出典：Pexels（商用利用可・帰属表示不要）
       https://www.pexels.com/photo/31544574/ （撮影：Ebubekir Togaci）
     画像ファイル：images/hero.jpg */
  background:
    linear-gradient(180deg, rgba(18,32,58,.78) 0%, rgba(18,32,58,.88) 100%),
    url("../images/hero.jpg") center 22% / cover no-repeat,
    linear-gradient(135deg, #24365c 0%, #1a2b4a 55%, #12203a 100%);
  overflow: hidden;
}
.hero__inner { padding: 104px 0 112px; max-width: 720px; }
.hero__eyebrow {
  font-size: .78rem; letter-spacing: .26em; color: #b9c6dd;
  margin-bottom: 20px; font-weight: 600;
}
.hero__title { font-size: 2.5rem; color: var(--white); margin: 0 0 24px; line-height: 1.35; }
.hero__title .accent { color: #d9c084; }
.hero__lead { font-size: 1.05rem; color: #d7deea; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===================================================================
   汎用：写真プレースホルダー
   ================================================================== */
.photo-ph {
  position: relative;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.35) 0 2px, transparent 2px 12px),
    linear-gradient(135deg, #cfd8e6 0%, #aebdd2 100%);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  overflow: hidden;
}
.photo-ph span {
  font-size: .74rem; letter-spacing: .12em; color: var(--navy-dark);
  background: rgba(255,255,255,.72); padding: 6px 12px; border-radius: 100px;
  font-weight: 600;
}
.photo-ph--wide { aspect-ratio: 16 / 9; }

/* 実写真（object-fit で枠に合わせてトリミング） */
.photo {
  display: block; width: 100%; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.photo--4x3 { aspect-ratio: 4 / 3; }
.photo--wide { aspect-ratio: 16 / 9; }
.photo--band {
  display: block; width: 100%; max-width: 680px; margin-inline: auto;
  aspect-ratio: 4 / 3; object-fit: cover; object-position: center 35%;
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.photo--band figcaption,
.photo-figure figcaption {
  text-align: center; font-size: .78rem; color: var(--gray-500); margin-top: 10px;
}

/* Googleマップ埋め込み */
.map-embed {
  width: 100%; height: 100%; min-height: 320px; border: 0;
  border-radius: var(--radius); display: block;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 46px; height: 46px; color: var(--steel); margin-bottom: 18px;
}
.card h3 { font-size: 1.15rem; margin: 0 0 12px; }
.card p { color: var(--gray-700); font-size: .94rem; margin: 0; }

/* 番号付きステップ */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 26px;
}
.step__no {
  counter-increment: step;
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
}
.step__no::before { content: counter(step); }
.step h3 { font-size: 1.05rem; margin: 4px 0 8px; }
.step p { margin: 0; color: var(--gray-700); font-size: .92rem; }

/* ===================================================================
   強み（feature）
   ================================================================== */
.feature { text-align: left; }
.feature__num { font-size: .8rem; color: var(--steel); font-weight: 700; letter-spacing: .1em; }
.feature__icon { width: 40px; height: 40px; color: var(--navy); margin: 12px 0 16px; }

/* ===================================================================
   代表挨拶
   ================================================================== */
.greeting { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center; }
.greeting__photo .photo-ph { aspect-ratio: 3 / 4; }
.greeting__body h3 { font-size: 1.4rem; margin: 0 0 20px; }
.greeting__sign { margin-top: 24px; font-size: .95rem; color: var(--gray-700); }
.greeting__sign strong { font-size: 1.15rem; color: var(--navy); margin-left: 10px; }

/* ===================================================================
   会社概要テーブル
   ================================================================== */
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td {
  text-align: left; padding: 18px 20px; border-bottom: 1px solid var(--line);
  vertical-align: top; font-size: .95rem;
}
.info-table th {
  width: 190px; background: var(--gray-50); color: var(--navy);
  font-weight: 700; white-space: nowrap;
}
.info-table td { color: var(--gray-700); }

/* ===================================================================
   セキュリティ宣言ページ
   ================================================================== */
.policy-block {
  background: var(--white); border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
  border-radius: var(--radius); padding: 32px 34px; margin-bottom: 28px;
}
.policy-block h3 {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.2rem; margin: 0 0 16px;
}
.policy-block h3 .icon { width: 26px; height: 26px; color: var(--steel); flex: none; }
.policy-list { list-style: none; padding: 0; margin: 0; }
.policy-list li {
  position: relative; padding-left: 26px; margin-bottom: 12px;
  color: var(--gray-700); font-size: .95rem;
}
.policy-list li::before {
  content: ""; position: absolute; left: 4px; top: .7em;
  width: 8px; height: 8px; border: 1.5px solid var(--steel);
  border-radius: 2px;
}
.badge-planned {
  display: inline-block; font-size: .72rem; font-weight: 700;
  color: var(--steel); border: 1px solid var(--steel);
  border-radius: 100px; padding: 1px 10px; margin-left: 8px;
  letter-spacing: .04em;
}
.declaration {
  background: var(--navy); color: var(--white);
  border-radius: var(--radius); padding: 40px 40px; margin: 8px 0 28px;
}
.declaration h3 { color: var(--white); }
.declaration p { color: #dbe2ee; margin-bottom: 0; }

/* ===================================================================
   お問い合わせ
   ================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
.contact-info .contact-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.contact-item .icon { width: 26px; height: 26px; color: var(--steel); flex: none; margin-top: 3px; }
.contact-item .label { font-size: .78rem; color: var(--gray-500); letter-spacing: .06em; }
.contact-item .value { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.contact-item .note { font-size: .8rem; color: var(--gray-500); }

.form-note {
  background: var(--gray-50); border: 1px dashed var(--gray-300);
  border-radius: var(--radius); padding: 14px 18px; font-size: .84rem;
  color: var(--gray-700); margin-bottom: 26px;
}
.form-field { margin-bottom: 22px; }
.form-field label {
  display: block; font-size: .9rem; font-weight: 700; color: var(--navy);
  margin-bottom: 8px;
}
.form-field .req {
  font-size: .7rem; color: #b23b3b; background: #fbeced;
  padding: 1px 8px; border-radius: 3px; margin-left: 8px; font-weight: 700;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 15px; font-size: .95rem; font-family: inherit;
  border: 1px solid var(--gray-300); border-radius: var(--radius);
  background: var(--white); color: var(--gray-900); transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(74,106,154,.15);
}
.form-field textarea { resize: vertical; min-height: 150px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--gray-700); }
.form-check input { width: auto; margin-top: 5px; }
.form-submit { text-align: center; margin-top: 30px; }
.form-success {
  display: none; background: #eef6ee; border: 1px solid #bcd9bd;
  color: #2f6b34; padding: 16px 20px; border-radius: var(--radius);
  margin-bottom: 24px; font-size: .92rem; font-weight: 600;
}
.form-error {
  display: none; background: #fbeced; border: 1px solid #e3b3b8;
  color: #a12a35; padding: 16px 20px; border-radius: var(--radius);
  margin-bottom: 24px; font-size: .92rem; font-weight: 600;
}

/* ===================================================================
   CTA 帯
   ================================================================== */
.cta-band { background: var(--navy); color: var(--white); text-align: center; padding: 64px 0; }
.cta-band h2 { color: var(--white); font-size: 1.6rem; margin: 0 0 14px; }
.cta-band p { color: #cdd6e6; margin-bottom: 30px; }

/* ===================================================================
   下層ページ共通ヘッダー（パンくず付き）
   ================================================================== */
.page-hero {
  background: linear-gradient(135deg, #24365c 0%, #1a2b4a 60%, #12203a 100%);
  color: var(--white); padding: 62px 0;
}
.page-hero .en { font-size: .74rem; letter-spacing: .26em; color: #b9c6dd; font-weight: 600; }
.page-hero h1 { color: var(--white); font-size: 2rem; margin: 8px 0 0; }
.breadcrumb { background: var(--gray-50); border-bottom: 1px solid var(--line); }
.breadcrumb ol {
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none;
  padding: 14px 0; font-size: .82rem; color: var(--gray-500);
}
.breadcrumb li::after { content: "／"; margin-left: 8px; color: var(--gray-300); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--navy); }

/* ===================================================================
   フッター
   ================================================================== */
.site-footer { background: var(--navy-dark); color: #b9c3d4; padding: 56px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .brand__name { color: var(--white); }
.footer-brand p { font-size: .86rem; color: #94a1b8; margin-top: 16px; }
.footer-col h4 { color: var(--white); font-size: .9rem; margin: 0 0 16px; letter-spacing: .05em; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #b9c3d4; font-size: .88rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .78rem; color: #8592aa;
}

/* ===================================================================
   レスポンシブ
   ================================================================== */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .greeting { grid-template-columns: 1fr; gap: 28px; }
  .greeting__photo .photo-ph { aspect-ratio: 16 / 10; max-width: 420px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .section { padding: 52px 0; }
  .hero__title { font-size: 1.9rem; }
  .hero__inner { padding: 72px 0 78px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 1.6rem; }
  .footer-top { grid-template-columns: 1fr; }
  .info-table th { width: 130px; padding: 14px; }
  .info-table td { padding: 14px; }
  .declaration, .policy-block { padding: 24px 22px; }

  /* ハンバーガーメニュー展開 */
  .nav-toggle { display: block; }
  .gnav {
    position: fixed; inset: 72px 0 auto 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .3s ease;
    box-shadow: var(--shadow-md); max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .gnav.is-open { transform: translateY(0); }
  .gnav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 5%; }
  .gnav a { padding: 15px 12px; border-radius: 0; border-bottom: 1px solid var(--gray-100); }
  .gnav a.is-active::after { display: none; }
  .gnav .nav-cta { margin: 12px 0 0; text-align: center; justify-content: center; }
}

/* アクセシビリティ：動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
