/* ============================================================
   shared.css — 資金繰り管理屋さん 全ページ共通スタイル
   合同会社Properly
   ============================================================ */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans',
               'Meiryo', 'Yu Gothic', sans-serif;
  color: #333333;
  line-height: 1.7;
  background: #ffffff;
  min-width: 0; /* 旧CSSの900px固定を無効化 */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ===== CSS変数（デザイントークン） ===== */
:root {
  /* カラー */
  --navy:         #1a2e5a;
  --navy-light:   #2a4080;
  --orange:       #e05a14;
  --orange-hover: #c04a08;
  --olive:        #4a7c59;
  --red-dark:     #7b2b1e;
  --gold:         #ffd44f;

  /* 背景 */
  --bg-white:  #ffffff;
  --bg-light:  #f5f7fa;
  --bg-cream:  #fdf9f3;
  --bg-dark:   #111827;

  /* テキスト */
  --text:       #333333;
  --text-light: #666666;
  --text-white: #ffffff;

  /* ボーダー */
  --border: #e0e0e0;

  /* スペーシング */
  --section-py: 64px;
}

/* ===== レイアウト ===== */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-py) 0;
}

.section--light  { background: var(--bg-light); }
.section--white  { background: var(--bg-white); }
.section--cream  { background: var(--bg-cream); }
.section--navy   { background: var(--navy);  color: var(--text-white); }
.section--orange { background: linear-gradient(135deg, var(--orange) 0%, #b83c06 100%);
                   color: var(--text-white); }

/* ===== セクションヘッダー ===== */
.section-title {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 10px;
}

.section--navy   .section-title,
.section--orange .section-title {
  color: var(--text-white);
}

.section-title .accent {
  color: var(--orange);
}

.divider {
  width: 56px;
  height: 4px;
  background: var(--orange);
  margin: 12px auto 40px;
  border-radius: 2px;
}

.section--navy   .divider { background: var(--gold); }
.section--orange .divider { background: rgba(255,255,255,0.55); }

.section-lead {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 36px;
  line-height: 1.85;
}

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  font-weight: 700;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

/* オレンジ（メイン） */
.btn--orange {
  background: var(--orange);
  color: var(--text-white);
  padding: 16px 40px;
  font-size: 1.05rem;
  box-shadow: 0 4px 18px rgba(224, 90, 20, 0.4);
}
.btn--orange:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(224, 90, 20, 0.5);
}

/* オレンジ大 */
.btn--orange-lg {
  padding: 20px 56px;
  font-size: 1.2rem;
}

/* ネイビー */
.btn--navy {
  background: var(--navy);
  color: var(--text-white);
  padding: 12px 28px;
  font-size: 0.95rem;
  box-shadow: 0 3px 12px rgba(26, 46, 90, 0.3);
}
.btn--navy:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}

/* ホワイト（カラー背景の上で使用） */
.btn--white {
  background: var(--text-white);
  color: var(--orange);
  padding: 18px 52px;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}
.btn--white:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
}

/* テキストリンク風 */
.btn--text {
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 2px;
  border-radius: 0;
}
.btn--text:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* ブロック（幅いっぱい） */
.btn--block {
  display: block;
  width: 100%;
}

/* ===== ページヘッダー（内部ページ用タイトル帯） ===== */
.page-hero {
  background: linear-gradient(140deg, #152448 0%, #1e3566 55%, #162f5c 100%);
  color: var(--text-white);
  padding: 48px 20px 52px;
  text-align: center;
}

.page-hero__badge {
  display: inline-block;
  background: var(--orange);
  color: var(--text-white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.page-hero__title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 14px;
}

.page-hero__title .hl {
  color: var(--gold);
}

.page-hero__sub {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  opacity: 0.88;
  line-height: 1.85;
  max-width: 640px;
  margin: 0 auto 28px;
}

.page-hero__cta-note {
  font-size: 0.8rem;
  opacity: 0.65;
  margin-top: 10px;
}

/* ===== サイトヘッダー（スティッキー） ===== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.header-logo {
  color: var(--text-white);
  text-decoration: none;
}

.header-logo__sub {
  font-size: 0.72rem;
  opacity: 0.75;
  line-height: 1.2;
}

.header-logo__main {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-nav__link {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.header-nav__link:hover {
  color: var(--text-white);
}

.header-nav__cta {
  background: var(--orange);
  color: var(--text-white);
  padding: 9px 18px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: background 0.2s;
}

.header-nav__cta:hover {
  background: var(--orange-hover);
  color: var(--text-white);
}

@media (max-width: 680px) {
  .header-nav__link {
    display: none;
  }
  .header-logo__main {
    font-size: 1rem;
  }
}

/* ===== サイトフッター ===== */
#site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.72);
  padding: 40px 20px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
  max-width: 960px;
  margin: 0 auto 26px;
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-addr {
  font-size: 0.83rem;
  line-height: 1.85;
}

.footer-nav__title {
  color: var(--text-white);
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.footer-nav__list li {
  margin-bottom: 6px;
}

.footer-nav__list a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.2s;
}

.footer-nav__list a:hover {
  color: var(--text-white);
}

.footer-bottom {
  max-width: 960px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}

@media (max-width: 500px) {
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}

.footer-bottom__top-link {
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
}

.footer-bottom__top-link:hover {
  color: var(--text-white);
}

/* ===== モバイル固定CTA ===== */
.float-cta {
  display: none;
}

@media (max-width: 768px) {
  .float-cta {
    display: block;
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 300;
  }

  .float-cta__link {
    display: block;
    background: var(--orange);
    color: var(--text-white);
    padding: 13px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: 0 4px 20px rgba(224, 90, 20, 0.55);
  }
}

/* ===== カード（共通） ===== */
.card {
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.13);
}

.card__head {
  background: var(--navy);
  color: var(--text-white);
  padding: 16px 20px;
}

.card__head--olive    { background: var(--olive); }
.card__head--red      { background: var(--red-dark); }
.card__head--blue     { background: #2e5c8a; }

.card__tag {
  display: inline-block;
  background: var(--orange);
  color: var(--text-white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 7px;
  letter-spacing: 0.04em;
}

.card__title {
  font-size: 1rem;
  line-height: 1.5;
}

.card__body {
  padding: 18px 20px;
}

.card__body p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 14px;
}

/* ===== 特徴カード ===== */
.feat-card {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  position: relative;
  background: var(--bg-white);
}

.feat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--orange));
  border-radius: 8px 8px 0 0;
}

.feat-card__icon  { font-size: 2rem; margin-bottom: 10px; }
.feat-card__title { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.feat-card__text  { font-size: 0.88rem; color: var(--text-light); line-height: 1.8; }

/* ===== お客様の声 ===== */
.testi-card {
  background: var(--bg-white);
  border-radius: 8px;
  padding: 26px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.07);
  position: relative;
}

.testi-card::before {
  content: '\201C';
  font-size: 4.5rem;
  line-height: 1;
  color: var(--navy);
  opacity: 0.1;
  position: absolute;
  top: 8px; left: 12px;
  font-family: Georgia, serif;
}

.testi-card__text {
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.testi-card__text strong {
  color: var(--orange);
}

.testi-card__meta {
  font-size: 0.82rem;
  color: var(--text-light);
  border-top: 1px solid #eee;
  padding-top: 10px;
}

/* ===== ペインポイント（悩みリスト） ===== */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.pain-card {
  background: var(--bg-white);
  border-left: 4px solid var(--orange);
  border-radius: 4px;
  padding: 14px 18px;
  font-size: 0.95rem;
  line-height: 1.65;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pain-card::before {
  content: '✓ ';
  color: var(--orange);
  font-weight: 700;
}

.pain-answer {
  background: var(--navy);
  color: var(--text-white);
  border-radius: 8px;
  padding: 26px 32px;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.85;
}

.pain-answer strong {
  color: var(--gold);
  font-size: 1.15rem;
}

/* ===== ステップ（ご利用の流れ） ===== */
.flow-list {
  max-width: 580px;
  margin: 0 auto;
}

.flow-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 28px;
}

.flow-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 18px; top: 40px;
  width: 2px;
  height: calc(100% - 18px);
  background: var(--navy);
  opacity: 0.18;
}

.flow-item__num {
  flex-shrink: 0;
  width: 38px; height: 38px;
  background: var(--navy);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.flow-item__title {
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 3px;
}

.flow-item__desc {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.75;
}

/* ===== 料金カード ===== */
.price-card {
  max-width: 580px;
  margin: 0 auto;
  background: var(--bg-white);
  border: 3px solid var(--navy);
  border-radius: 12px;
  padding: 38px;
  text-align: center;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.10);
}

.price-card__tag {
  display: inline-block;
  background: var(--navy);
  color: var(--text-white);
  font-size: 0.82rem;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.price-card__name   { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.price-card__amount { font-size: 3rem; font-weight: 700; color: var(--orange); line-height: 1; }
.price-card__amount span { font-size: 1.1rem; color: var(--text); }
.price-card__note   { font-size: 0.82rem; color: var(--text-light); margin: 8px 0 20px; }

.price-card__list {
  text-align: left;
  background: var(--bg-light);
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 24px;
}

.price-card__list li {
  padding: 7px 0;
  font-size: 0.92rem;
  border-bottom: 1px solid #e8e8e8;
}

.price-card__list li:last-child { border-bottom: none; }

.price-card__list li::before {
  content: '✓ ';
  color: var(--olive);
  font-weight: 700;
}

/* ===== テーブル（料金表などに使用） ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  margin: 20px 0;
}

.data-table th {
  background: var(--navy);
  color: var(--text-white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.88rem;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  line-height: 1.65;
  vertical-align: top;
}

.data-table tr:nth-child(even) td {
  background: var(--bg-light);
}

.data-table td.price {
  font-weight: 700;
  color: var(--orange);
  white-space: nowrap;
}

/* ===== ニュース・お知らせ ===== */
.news-row {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  align-items: flex-start;
}

.news-row__date {
  font-size: 0.83rem;
  color: var(--text-light);
  white-space: nowrap;
  flex-shrink: 0;
}

.news-row__link {
  font-size: 0.93rem;
  color: var(--navy);
  font-weight: 500;
}

.news-row__link:hover {
  text-decoration: underline;
}

/* ===== アラートボックス ===== */
.alert-box {
  border-radius: 6px;
  padding: 18px 22px;
  font-size: 0.93rem;
  line-height: 1.75;
  margin: 20px 0;
}

.alert-box--info {
  background: #e8f0fe;
  border-left: 4px solid var(--navy);
  color: var(--navy);
}

.alert-box--warn {
  background: #fff8e1;
  border-left: 4px solid #f59e0b;
  color: #78350f;
}

.alert-box--success {
  background: #f0fdf4;
  border-left: 4px solid var(--olive);
  color: #14532d;
}

/* ===== グリッドユーティリティ ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

/* ===== ユーティリティ ===== */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-navy    { color: var(--navy); }
.text-orange  { color: var(--orange); }
.text-light   { color: var(--text-light); }
.text-white   { color: var(--text-white); }
.text-gold    { color: var(--gold); }

.fw-bold   { font-weight: 700; }
.fs-sm     { font-size: 0.875rem; }
.fs-lg     { font-size: 1.15rem; }
.fs-xl     { font-size: 1.35rem; }

.mt-2  { margin-top:  8px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }

.mb-2  { margin-bottom:  8px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }

/* ===== レスポンシブ（共通） ===== */
@media (max-width: 768px) {
  :root {
    --section-py: 48px;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .price-card {
    padding: 28px 22px;
  }

  .price-card__amount {
    font-size: 2.4rem;
  }
}

@media (max-width: 480px) {
  :root {
    --section-py: 40px;
  }

  .container {
    padding: 0 16px;
  }

  .btn--orange-lg,
  .btn--white {
    padding: 16px 28px;
    font-size: 1.05rem;
  }

  .pain-grid {
    grid-template-columns: 1fr;
  }

  .data-table {
    font-size: 0.82rem;
  }

  .data-table th,
  .data-table td {
    padding: 10px 10px;
  }
}

/* ===== 印刷時 ===== */
@media print {
  #site-header,
  .float-cta {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
  }
}
