@charset "UTF-8";

/* =========================================================
   利用ガイド（親ページ）
   レイアウト＝Figmaカンプ 652:2（SP 652:7／PC 652:64）
   色・書体＝子ページ guide-01〜10 の実測（2026-10-23）
   ========================================================= */

:root {
  /* 子ページの実測値 */
  --text: #333;           /* 本文（.information_body） */
  --text-sub: #666;       /* 注記・パンくず（カンプ） */
  --green-link: #3e8724;  /* 本文リンク・日付（md_date） */
  --green: #6aa638;       /* 本文の見出し【 】・強調の数字 */
  --box: #f4f4f3;         /* 本文の囲み（blockquote） */
  --line: #d9d9d9;        /* 区切り線（カンプ） */
  --alert: #c0392b;       /* 注意（変更不可） */
  --alert-bg: #fdf1ee;
  --dummy: #e0e0e0;       /* 既存ヘッダー/フッターの代わり（カンプ） */
  --tracking: 0.02em;     /* 子ページの字間（14px→0.28px） */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Noto Sans JP", YuGothic, "Yu Gothic Medium", "Yu Gothic", sans-serif;
  letter-spacing: var(--tracking);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p,
ul,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

a {
  color: inherit;
}

/* ---------- 既存ヘッダー/フッターの代わり（グレー塗り） ---------- */
.dummy-header,
.dummy-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dummy);
  color: var(--text-sub);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.dummy-header {
  height: 60px;
}

.dummy-footer {
  height: 320px;
}

/* ---------- 本体 ---------- */
.guide {
  display: flex;
  flex-direction: column;
  gap: 36px;
  width: calc(100% - 32px);
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 0 56px;
  font-feature-settings: "palt"; /* 約物（「」・（））を詰める */
}

/* 1_タイトル・リード */
.guide-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.guide-breadcrumb {
  color: var(--text-sub);
  font-size: 11px;
  line-height: 1.6;
}

.guide-breadcrumb a {
  text-decoration: none;
}

.guide-breadcrumb a:hover {
  color: var(--green-link);
  text-decoration: underline;
}

.guide-breadcrumb__sep {
  margin: 0 1em;
}

/* 子ページのタイトル（.information_header .md_title）に合わせる */
.guide-intro__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}

/* 子ページの本文（.information_body p）に合わせる */
.guide-intro__lead {
  font-size: 14px;
  line-height: 2;
}

.guide-intro__lead--pc {
  display: none;
}

/* ボタン（補助扱いのアウトライン） */
.guide-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  border: 1px solid var(--green-link);
  border-radius: 999px;
  background: #fff;
  color: var(--green-link);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.guide-button:hover {
  background: var(--green-link);
  color: #fff;
}

/* ボタン（主ボタン：マイページにログイン） */
.guide-button--primary {
  background: var(--green-link);
  color: #fff;
  font-weight: 700;
  padding: 14px 32px;
  transition: opacity 0.2s;
}

.guide-button--primary:hover {
  opacity: 0.85;
}

.guide-login {
  display: flex;
}

/* 見出し（子ページの【 】見出しの緑・大きさは本文見出しの18px） */
.guide-heading {
  color: var(--green);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

/* 2_変更の締切 */
.guide-deadline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 16px;
  border-radius: 8px;
  background: var(--box);
  line-height: 1.6;
}

.guide-deadline__head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.guide-deadline__label {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.guide-deadline__title {
  color: var(--text);
  font-size: 20px;
}

/* 締切カード */
.guide-deadline__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.guide-deadline__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: #fff;
}

.guide-deadline__card dt {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.guide-deadline__card dd {
  color: var(--text-sub);
  font-size: 13px;
  white-space: nowrap;
}

.guide-deadline__card strong {
  margin: 0 2px;
  color: var(--green);
  font-size: 16px;
  font-weight: 700;
}

.guide-deadline__num {
  font-size: 32px;
  line-height: 1;
  vertical-align: -3px;
}

/* 具体例 */
.guide-deadline__example {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
}

.guide-deadline__example-tag {
  flex-shrink: 0;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.9;
}

/* 注意（変更不可） */
.guide-deadline__alert {
  position: relative;
  padding: 10px 12px 10px 36px;
  border-radius: 6px;
  background: var(--alert-bg);
  color: var(--alert);
  font-size: 13px;
  font-weight: 700;
}

.guide-deadline__alert::before {
  content: "!";
  position: absolute;
  top: 13px;
  left: 12px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--alert);
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}

/* 補足（苦手メニューの反映タイミング） */
.guide-deadline__sub {
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--text-sub);
  font-size: 12px;
  line-height: 1.7;
}

.guide-deadline__sub-label {
  display: block;
  color: var(--text);
  font-weight: 700;
}

.guide-br--pc {
  display: none;
}

/* 3〜7_カテゴリ別一覧 */
.guide-categories {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.guide-category {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.guide-list {
  border-top: 1px solid var(--line);
}

/* GuideLinkRow：行全体がリンク */
.guide-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 16px 4px 15px; /* 下線1px込みで行高56（カンプ） */
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-size: 14px; /* 子ページの本文と同じ */
  font-weight: 500;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.2s;
}

.guide-row span {
  flex: 1 0 0;
  min-width: 0;
}

.guide-row::after {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background: url("https://d2w53g1q050m78.cloudfront.net/masteryourmealjp/uploads/md/pages/guide/images/chevron-right.svg?1792733409311") no-repeat center / 16px 16px;
}

.guide-row:hover {
  color: var(--green-link);
}

/* 8_解決しないときは */
.guide-help {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 16px;
  border-radius: 8px;
  background: var(--box);
}

.guide-help__title {
  width: 100%;
  text-align: center;
}

.guide-help__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* ---------- PC（カンプ 1280） ---------- */
@media (min-width: 768px) {
  .dummy-header {
    height: 88px;
  }

  .dummy-footer {
    height: 240px;
  }

  .guide {
    gap: 48px;
    padding: 40px 0 96px;
  }

  .guide-intro__title {
    font-size: 28px;
  }

  .guide-intro__lead--sp {
    display: none;
  }

  .guide-intro__lead--pc {
    display: block;
  }

  .guide-button {
    width: auto;
  }

  .guide-deadline {
    padding: 20px 32px;
  }

  .guide-deadline__title {
    font-size: 22px;
  }

  .guide-deadline__cards {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .guide-deadline__card {
    gap: 8px;
    padding: 16px 20px;
  }

  .guide-deadline__card strong {
    font-size: 18px;
  }

  .guide-deadline__num {
    font-size: 40px;
  }

  .guide-br--pc {
    display: inline;
  }

  .guide-button--primary {
    min-width: 280px;
  }

  .guide-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    row-gap: 40px;
    align-items: start;
  }

  .guide-help {
    padding: 24px 32px;
  }

  .guide-help__buttons {
    flex-direction: row;
    justify-content: center;
    width: auto;
  }

  .guide-help__buttons .guide-button {
    width: 240px;
  }
}
