@charset "UTF-8";

/* ==========================================================================
   Shapes Franchise Management Delegation Model - Global Styles
   ========================================================================== */

:root {
  --black: #0a0a0a;
  --white: #fafaf8;
  --gold: #c9a96e;
  --gold-light: #e8d5b0;
  --navy: #1a2a3a;
  --rose: #d4a0a0;
  --charcoal: #2a2a2a;
  --mid: #666;
  --light: #f0ede8;
  --accent: #8b4a5c;
  --accent-pink: #ff69b4; /* 伝説のピンク器具の象徴色 */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--white);
  color: var(--charcoal);
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  border-bottom: 1px solid rgba(201,169,110,0.2);
}
.nav-logo { font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--gold); letter-spacing: 0.1em; }
.nav-logo span { font-size: 10px; display: block; color: rgba(201,169,110,0.6); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: #fff; text-decoration: none; font-size: 12px; transition: 0.3s; }
.nav-links a:hover { color: var(--gold); }
.nav-cta { background: var(--gold); color: var(--black) !important; padding: 8px 16px; border-radius: 2px; font-weight: bold; }

/* --- Hero Section --- */
.hero {
  height: 100vh; min-height: 700px; background: var(--black);
  position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(201,169,110,0.1) 0%, transparent 70%),
              linear-gradient(135deg, #0a0a0a 0%, #111 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; color: #fff; padding: 0 20px; }
.hero-eyebrow { color: var(--gold); font-size: 12px; letter-spacing: 0.4em; margin-bottom: 24px; text-transform: uppercase; }
.hero-title { font-family: 'Noto Serif JP', serif; font-size: clamp(32px, 5vw, 60px); line-height: 1.2; margin-bottom: 24px; }
.hero-title strong { display: block; background: linear-gradient(to right, var(--gold), #f3e5ab); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 1.2em; font-weight: 700;}
.hero-badge { border: 1px solid var(--gold); padding: 20px 40px; display: inline-block; margin-bottom: 40px; }
/* --- HEROの数字フォント修正 --- */
.hero-badge .num {
  font-family: 'Montserrat', 'Noto Sans JP', sans-serif; /* Montserratに変更し、力強さを出す */
  font-size: 64px; /* 少し大きくして視認性をアップ */
  color: var(--gold);
  line-height: 1;
  font-weight: 700; /* 太くしてインパクトを出す */
  font-variant-numeric: lining-nums; /* 数字の高さを揃える設定 */
  letter-spacing: 0; /* 数字間の隙間を詰め、塊感を出す */
}

.hero-badge .num span {
  font-size: 20px;
  margin-left: 4px;
  font-weight: 500;
}

/* --- Layout Sections --- */
section { padding: 80px 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.section-label { color: var(--gold); font-size: 12px; letter-spacing: 0.3em; margin-bottom: 16px; text-transform: uppercase; }
.section-title { font-family: 'Noto Serif JP', serif; font-size: 32px; margin-bottom: 24px; line-height: 1.4; }
.section-title strong { color: var(--accent); }

/* --- Management Delegation Cards --- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px;}
.why-card {
  background: #fff; padding: 40px; border: 1px solid #eee; position: relative;
  transition: all 0.4s ease;
}
.why-card:hover { background: var(--navy); color: #fff; transform: translateY(-10px); }
.why-num { font-family: 'Cormorant Garamond', serif; font-size: 60px; color: rgba(201,169,110,0.1); position: absolute; top: 10px; right: 20px; }
.why-card h3 { margin-bottom: 15px; font-size: 20px; }
.why-card p { font-size: 14px; color: var(--mid); transition: 0.3s; }
.why-card:hover p { color: rgba(255,255,255,0.7); }

/* --- Finance Models --- */
.finance { background: var(--black); color: #fff; }
.finance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px;}
/* --- 収益モデル：枠を消して文字崩れを防止 --- */
.finance-card {
  border: none; /* 枠を消す */
  background: transparent; /* 背景も透明に */
  padding: 20px 0; /* 上下の余白だけ残し、左右はパディングをゼロに */
  width: 100%;
}

.finance-card h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 20px;
  text-align: left; /* 左寄せにして可読性を上げる */
  border-left: 3px solid var(--gold); /* 見出しのアクセント */
  padding-left: 15px;
}

.finance-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.finance-table td {
  padding: 15px 0; /* 上下の間隔を広げてスマホでの誤読を防止 */
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
  text-align: left; /* 基本は左寄せ */
  color: rgba(255,255,255,0.8);
}

.finance-table td:last-child {
  text-align: right; /* 数字だけ右寄せにして見やすくする */
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #fff;
}

.profit td {
  color: var(--gold) !important;
  font-size: 18px !important;
  border-top: 1px solid var(--gold);
  border-bottom: none;
  padding-top: 25px !important;
}

/* スマホ専用の最終微調整 */
@media (max-width: 768px) {
  .finance-grid {
    gap: 60px; /* 項目間の距離をしっかり取る */
  }
  .finance-table td {
    font-size: 13px; /* スマホではわずかに小さくしてはみ出し防止 */
  }
}
.finance-table { width: 100%; border-collapse: collapse; }
.finance-table td { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 14px; }
.profit td { color: var(--gold); font-weight: bold; font-size: 18px !important; border-top: 2px solid var(--gold); }

/* --- Marquee Strip --- */
.appeal-strip { background: #000; color: var(--gold); padding: 15px 0; overflow: hidden; white-space: nowrap; }
.strip-inner { display: inline-block; animation: marquee 30s linear infinite; }
.strip-item { margin-right: 50px; font-size: 12px; letter-spacing: 0.2em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- Buttons --- */
.btn-primary { background: var(--gold); color: #000; padding: 18px 40px; text-decoration: none; font-weight: bold; display: inline-block; transition: 0.3s; cursor: pointer; border: none; }
.btn-primary:hover { background: #fff; }
.btn-outline { border: 1px solid #fff; color: #fff; padding: 18px 40px; text-decoration: none; display: inline-block; transition: 0.3s; }
.btn-outline:hover { background: #fff; color: #000; }

/* --- Sticky CTA --- */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.9); border-top: 1px solid var(--gold);
  padding: 15px 40px; display: flex; align-items: center; justify-content: space-between;
  transform: translateY(100%); transition: 0.4s; z-index: 1000;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-text { color: #fff; font-size: 14px; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .why-grid, .finance-grid { grid-template-columns: 1fr; }
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hero-title { font-size: 36px; }
}

/* --- スマホ専用の数字調整 --- */
@media (max-width: 768px) {
  .hero-badge .num {
    font-size: 56px; /* スマホでも迫力があるサイズに微調整 */
    letter-spacing: -0.05em; /* 画面が狭い分、少し詰めて塊感を出す */
  }
}

/* ...（中略：元々あるCSSの最後の方）... */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ★ここから下に貼り付けます★ */

/* --- LINEボタン：スマホ・PC共通 --- */
.btn-line {
  background: #06C755;
  color: #fff;
  padding: 14px 30px; 
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: all 0.3s ease;
  border-radius: 4px;
  font-size: 14px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.2);
  margin-top: 15px; /* ボタン同士がくっつかないように余白を追加 */
}

.btn-line:hover {
  background: #05b34c;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(6, 199, 85, 0.3);
}

/* スマホでのボタンの並び調整 */
@media (max-width: 768px) {
  .hero-ctas {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* スマホでボタン同士の隙間を確実に作る */
  }
  .btn-primary, .btn-line {
    width: 100%; 
    max-width: 300px;
    text-align: center;
    margin-left: 0 !important; /* スマホで横並びを解除 */
  }
}


/* --- スマホでのテキストはみ出し徹底防止 --- */
@media (max-width: 768px) {
  /* 文字が画面幅を超えないように自動改行させる */
  p, h1, h2, h3 {
    word-break: break-all; /* 英数字が長くても強制改行 */
    overflow-wrap: break-word; /* 単語の途中で改行を許可 */
    max-width: 100%; /* 親要素を絶対超えない */
  }

  /* お問い合わせ部分のリード文をスマホ用に調整 */
  .section-lead, #contact p {
    font-size: 13px; /* 少し小さくする */
    line-height: 1.6;
    padding: 0 10px; /* 左右に少し余白を作って画面端に付かないようにする */
    text-align: center;
    display: inline-block; /* 幅の計算を正確にする */
  }
}

/* --- 哲学セクションのスマホ調整 --- */
@media (max-width: 768px) {
  .section-title { font-size: 24px !important; }
  .section-title strong { display: block; font-size: 28px; }
  #concept + section div div {
    padding: 25px !important;
  }
}

@media (max-width: 768px) {
  /* 創業者セクションのスマホ最適化 */
  section[style*="background:#1a1a1a"] .container > div {
    grid-template-columns: 1fr !important; /* 縦並びにする */
    gap: 40px !important;
    text-align: center;
  }

  section[style*="background:#1a1a1a"] .section-title {
    font-size: 28px !important; /* スマホで文字サイズを調整 */
  }
}



/* --- 哲学セクション：スマホでの文字詰まりを解消 --- */
@media (max-width: 768px) {
  /* 外側の枠を画面いっぱいに広げる */
  div[style*="max-width: 900px"] {
    margin: 20px 0 !important; /* 上下余白のみ、左右はゼロ */
    width: 100% !important;
    padding: 0 10px !important; /* 画面端に少しだけ隙間を作る */
  }

  /* 内側の薄いグレーの枠（30日なら、どんな女性でも〜）の調整 */
  div[style*="background: var(--light)"] {
    padding: 25px 15px !important; /* 上下はしっかり、左右は狭く */
    margin-bottom: 30px !important;
    border-radius: 0 !important; /* スマホでは角を丸めない方がスッキリします */
  }

  /* 見出しのサイズ調整 */
  div[style*="background: var(--light)"] h3 {
    font-size: 18px !important;
    line-height: 1.4 !important;
    text-align: center !important;
  }

  /* 本文の読みやすさ向上 */
  div[style*="max-width: 900px"] p {
    font-size: 14px !important;
    line-height: 1.7 !important;
    text-align: justify; /* 日本語を綺麗に揃える */
  }
}


/* --- ヒーローエリア：スマホでの上下切れを解消 --- */
@media (max-width: 768px) {
  .hero {
    height: auto !important; /* 高さを固定せず、中身に合わせる */
    min-height: 100vh; /* 最低でも画面いっぱいの高さは確保 */
    padding: 80px 20px 60px !important; /* 上下にしっかり余白を作る */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-title {
    font-size: 28px !important; /* 文字を少し小さくして収まりを良くする */
    line-height: 1.4 !important;
  }

  .hero-title strong {
    font-size: 48px !important; /* Shapesの文字もスマホ用に調整 */
    display: block;
    margin: 10px 0;
  }

  .hero-badge {
    margin: 30px auto !important; /* バッジの上下余白を調整 */
  }

  /* 背景画像が切れないように調整 */
  .hero-bg {
    height: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-attachment: scroll !important; /* スマホでの挙動を安定させる */
  }
}

/* PCでは横に並べる */
.simple-comparison {
  display: flex;
  gap: 40px;
  margin: 40px 0;
  width: 100%;
}
.comp-item {
  flex: 1;
}

/* スマホでは装飾をすべて捨てて、幅を100%解放する */
@media (max-width: 768px) {
  .simple-comparison {
    display: block !important; /* 横並びを解除 */
    width: 100vw !important; /* 画面の横幅いっぱいを強制 */
    margin-left: calc(50% - 50vw) !important; /* 親要素の余白を無視して画面端まで広げる */
    margin-right: calc(50% - 50vw) !important;
    padding: 0 20px !important; /* 文字が端にくっつきすぎない程度の最小余白 */
    box-sizing: border-box !important;
  }

  .comp-item {
    width: 100% !important;
    margin-bottom: 30px !important;
    border: none !important; /* 枠なし */
    background: none !important; /* 背景なし */
    padding: 0 !important; /* 枠内余白なし */
  }

  .comp-item p {
    font-size: 16px !important; /* スマホで読みやすいサイズ */
    line-height: 1.6 !important;
    margin: 5px 0 !important;
    width: 100% !important;
    text-align: left !important;
  }
}



