/* ========================================
   Theme Variables
   サイト全体で使用するカラー・共通変数
======================================== */
:root {
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #ffedd5;

  --text: #1f2937;
  --muted: #64748b;

  --line: #fed7aa;

  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-soft: #ffedd5;
  --accent-deep: #9a3412;

  --navy: #172033;

  --shadow: 0 16px 42px rgba(154, 52, 18, 0.10);
}

/* ========================================
   Base Layout
   全体レイアウト・基本設定
======================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.75;

  background: var(--bg);
  color: var(--text);
}

/* ========================================
   Hero Section
   トップヒーローエリア
======================================== */
.hero {
  background:
    radial-gradient(
      circle at top left,
      rgba(249, 115, 22, 0.18),
      transparent 36%
    ),
    linear-gradient(
      135deg,
      #fff7ed 0%,
      #ffffff 58%,
      #fffbeb 100%
    );

  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: 1040px;

  margin: 0 auto;
  padding: 72px 24px 64px;

  text-align: center;
}

/* 小見出しラベル共通 */
.eyebrow,
.section-label,
.card-label {
  margin: 0 0 8px;

  color: var(--accent-deep);

  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* メインタイトル */
h1 {
  margin: 0;

  font-size: clamp(2.3rem, 6vw, 4.2rem);
  letter-spacing: 0.02em;

  color: var(--navy);
}

/* サブタイトル */
.lead {
  margin: 16px 0 0;

  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 800;

  color: var(--navy);
}

/* ヒーロー説明文 */
.hero-text {
  max-width: 760px;

  margin: 18px auto 0;

  color: var(--muted);
}

/* Heroリンク群 */
.hero-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;

  gap: 12px;

  margin-top: 28px;
}

/* ========================================
   Buttons / Links
   ボタン・リンク共通
======================================== */
.button,
.text-link,
.link-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 6px;

  border-radius: 999px;

  font-weight: 800;
  text-decoration: none;

  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease;
}

/* 標準ボタン */
.button {
  min-width: 112px;

  padding: 11px 20px;

  border: 1px solid var(--line);

  background: var(--surface);
  color: var(--accent-deep);

  box-shadow: 0 8px 20px rgba(154, 52, 18, 0.08);
}

/* 強調ボタン */
.button.primary {
  background: var(--accent);
  border-color: var(--accent);

  color: #ffffff;

  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.28);
}

/* Hover共通 */
.button:hover,
.text-link:hover,
.link-list a:hover {
  transform: translateY(-1px);
}

/* 通常ボタンHover */
.button:hover {
  border-color: var(--accent);

  color: var(--accent-hover);

  box-shadow: 0 12px 26px rgba(154, 52, 18, 0.14);
}

/* PrimaryボタンHover */
.button.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);

  color: #ffffff;
}

/* ========================================
   Main Layout
   メインコンテンツエリア
======================================== */
main {
  max-width: 1040px;

  margin: 0 auto;
  padding: 40px 24px 72px;
}

/* ========================================
   Section Common
   セクション共通
======================================== */
.section {
  margin: 0 0 56px;
}

.section-heading {
  margin-bottom: 18px;
}

/* セクションタイトル */
h2 {
  position: relative;

  margin: 0;
  padding-bottom: 10px;

  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.35;

  color: var(--navy);
}

/* セクションタイトル下線 */
h2::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: 0;

  width: 72px;
  height: 3px;

  border-radius: 999px;

  background: linear-gradient(
    90deg,
    var(--accent),
    #fbbf24
  );
}

/* カードタイトル */
h3 {
  margin: 0 0 12px;

  font-size: 1.25rem;
  line-height: 1.45;

  color: var(--navy);
}

p {
  margin: 0 0 14px;
}

/* ========================================
   Card Layout
   記事・アプリ紹介カード
======================================== */
.card-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 18px;

  margin-top: 18px;
}

/* 1カラム専用 */
.card-grid.single {
  grid-template-columns: 1fr;
}

/* カード共通 */
.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  min-height: 210px;

  padding: 24px;

  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 20px;

  background: var(--surface);

  box-shadow: var(--shadow);
}

/* ========================================
   Metric Highlight
   実績表示エリア
======================================== */
.metric {
  padding: 14px 16px;

  border: 1px solid #fdba74;
  border-radius: 14px;

  background: var(--accent-soft);
  color: var(--accent-deep);

  font-weight: 800;
}

/* ========================================
   Text Links
   カード内リンクボタン
======================================== */
.text-link {
  align-self: flex-start;

  margin-top: 12px;
  padding: 9px 15px;

  background: var(--accent);

  color: #ffffff;

  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.24);
}

/* リンク矢印 */
.text-link::after {
  content: "→";
  font-weight: 900;
}

/* リンクHover */
.text-link:hover {
  background: var(--accent-hover);

  color: #ffffff;

  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.28);
}

/* ========================================
   Result Image
   実績画像表示
======================================== */
.result-image {
  margin: 20px 0 0;
  padding: 16px;

  border: 1px solid var(--line);
  border-radius: 20px;

  background: var(--surface);

  box-shadow: var(--shadow);
}

/* 実績画像 */
.result-image img {
  display: block;

  width: 100%;
  height: auto;

  border-radius: 12px;
}

/* 画像説明 */
figcaption {
  margin-top: 10px;

  color: var(--muted);

  font-size: 0.9rem;
  text-align: center;
}

/* ========================================
   Link List
   関連リンク一覧
======================================== */
.link-list {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;
}

/* 関連リンク */
.link-list a {
  padding: 10px 16px;

  border: 1px solid #fdba74;

  background: var(--surface);
  color: var(--accent-deep);

  box-shadow: 0 8px 18px rgba(154, 52, 18, 0.08);
}

/* 関連リンクHover */
.link-list a:hover {
  border-color: var(--accent);

  background: var(--accent-soft);
  color: var(--accent-hover);

  box-shadow: 0 12px 24px rgba(154, 52, 18, 0.14);
}

/* ========================================
   About Section
   作成者プロフィール
======================================== */
.about-container {
  display: flex;
  align-items: center;

  gap: 20px;
}

/* プロフィール画像 */
.profile-image {
  width: 88px;
  height: 88px;

  border-radius: 50%;

  border: 2px solid #f97316;
}

/* ========================================
   Footer
   フッター
======================================== */
footer {
  padding: 28px 24px;

  border-top: 1px solid var(--line);

  color: var(--muted);

  text-align: center;

  background: var(--surface);
}

/* ========================================
   Responsive Layout
   タブレット・スマホ対応
======================================== */
@media (max-width: 760px) {

  .hero-inner {
    padding: 56px 20px 48px;
  }

  main {
    padding: 32px 20px 56px;
  }

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

  .card {
    min-height: auto;
  }

  .button,
  .text-link,
  .link-list a {
    width: 100%;
  }
}

/* ========================================
   Mobile About Section
   Aboutセクションのスマホ対応
======================================== */
@media (max-width: 600px) {

  .about-container {
    flex-direction: column;
    text-align: center;
  }
}