/* ==========================================
   MY ROUTINE フリーページ共通CSS
   File: 08_freepage.css
   Version: 1.0
   適用範囲: .mr-free 内だけ
   ========================================== */

.mr-free {
  --mr-red: #c82026;
  --mr-red-hover: #a81920;
  --mr-text: #222;
  --mr-muted: #666;
  --mr-line: #e5e5e5;
  --mr-bg: #f7f7f7;

  color: var(--mr-text);
  font-size: 15px;
  line-height: 1.9;
  overflow-wrap: anywhere;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  box-sizing: border-box;
}

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

/* 基本文字 */
.mr-free p {
  margin: 0 0 20px;
  line-height: 1.9;
}

.mr-free strong {
  font-weight: 700;
}

.mr-free a {
  color: var(--mr-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mr-free a:hover {
  opacity: .8;
}

/* H1 ページタイトル */
.mr-free h1,
.mr-free .mr-h1 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  letter-spacing: .04em;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  background: none;
}

/* H2 セクション見出し */
.mr-free h2,
.mr-free .mr-h2 {
  font-size: clamp(21px, 3vw, 26px);
  font-weight: 700;
  line-height: 1.5;
  margin: 56px 0 24px;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid var(--mr-line);
  background: none;
}

.mr-free h2::after,
.mr-free .mr-h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 14px;
  background: var(--mr-red);
}

/* H3 小見出し */
.mr-free h3,
.mr-free .mr-h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  margin: 32px 0 16px;
  padding: 3px 0 3px 14px;
  border: 0;
  border-left: 3px solid var(--mr-red);
  background: none;
}

/* H4 */
.mr-free h4,
.mr-free .mr-h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 12px;
  padding: 0;
  border: 0;
  background: none;
}

/* ページタイトルエリア */
.mr-free .mr-page-header {
  text-align: center;
  margin-bottom: 48px;
}

.mr-free .mr-page-header h1 {
  margin-bottom: 12px;
}

.mr-free .mr-page-label {
  display: block;
  color: var(--mr-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  margin-bottom: 12px;
}

.mr-free .mr-page-lead {
  color: var(--mr-muted);
  margin: 0;
}

/* ボタン */
.mr-free .mr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 28px;
  background: var(--mr-red);
  border: 1px solid var(--mr-red);
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition: .2s ease;
}

.mr-free .mr-btn:hover {
  background: var(--mr-red-hover);
  border-color: var(--mr-red-hover);
  color: #fff;
  opacity: 1;
}

.mr-free .mr-btn-outline {
  background: #fff;
  color: var(--mr-red);
}

.mr-free .mr-btn-outline:hover {
  background: var(--mr-red);
  color: #fff;
}

.mr-free .mr-btn-dark {
  background: #222;
  border-color: #222;
}

.mr-free .mr-btn-dark:hover {
  background: #444;
  border-color: #444;
}

.mr-free .mr-btn-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 32px 0;
}

/* お知らせボックス */
.mr-free .mr-box {
  background: var(--mr-bg);
  padding: 24px;
  border-radius: 4px;
  margin: 24px 0;
}

.mr-free .mr-box-title {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
}

.mr-free .mr-box p:last-child {
  margin-bottom: 0;
}

/* 重要な案内 */
.mr-free .mr-box-alert {
  background: #fff7f7;
  border-left: 3px solid var(--mr-red);
}

/* テーブル */
.mr-free .mr-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
}

.mr-free .mr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.7;
}

.mr-free .mr-table th,
.mr-free .mr-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--mr-line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.mr-free .mr-table th {
  background: var(--mr-bg);
  font-weight: 700;
}

/* リスト */
.mr-free .mr-list {
  padding-left: 24px;
  margin: 20px 0;
}

.mr-free .mr-list li {
  margin-bottom: 8px;
}

/* 画像 */
.mr-free .mr-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px auto;
}

.mr-free .mr-img-caption {
  font-size: 12px;
  color: var(--mr-muted);
  text-align: center;
  margin-top: -12px;
}

/* 2カラム */
.mr-free .mr-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 28px 0;
}

/* カード */
.mr-free .mr-card {
  border: 1px solid var(--mr-line);
  border-radius: 4px;
  padding: 24px;
  min-width: 0;
}

.mr-free .mr-card-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 12px;
}

.mr-free .mr-card p:last-child {
  margin-bottom: 0;
}

/* 区切り線 */
.mr-free .mr-divider {
  height: 1px;
  border: 0;
  background: var(--mr-line);
  margin: 48px 0;
}

/* 余白調整 */
.mr-free .mr-mt-0 { margin-top: 0; }
.mr-free .mr-mt-20 { margin-top: 20px; }
.mr-free .mr-mt-40 { margin-top: 40px; }
.mr-free .mr-mb-0 { margin-bottom: 0; }
.mr-free .mr-center { text-align: center; }
.mr-free .mr-muted { color: var(--mr-muted); }

/* スマホ対応 */
@media (max-width: 767px) {
  .mr-free {
    padding: 24px 16px 56px;
    font-size: 14px;
  }

  .mr-free .mr-page-header {
    margin-bottom: 32px;
  }

  .mr-free h2,
  .mr-free .mr-h2 {
    margin-top: 40px;
  }

  .mr-free h3,
  .mr-free .mr-h3 {
    font-size: 17px;
  }

  .mr-free .mr-grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mr-free .mr-box,
  .mr-free .mr-card {
    padding: 18px;
  }

  .mr-free .mr-btn {
    width: 100%;
  }

  .mr-free .mr-btn-center {
    flex-direction: column;
  }

  .mr-free .mr-table th,
  .mr-free .mr-table td {
    padding: 12px;
    font-size: 13px;
  }
}

/* フリーページ 日付 */
.mr-free .mr-date {
  color: #777;
  font-size: 13px;
  text-align: center;
  letter-spacing: .05em;
  margin: 0 0 12px;
}

/* ==========================================
   フリーページ 記事テンプレート
   ========================================== */

/* 記事全体：中央配置 */
.mr-free .mr-article {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

/* 日付：左揃え */
.mr-free .mr-date {
  color: #777;
  font-size: 13px;
  letter-spacing: .05em;
  text-align: left;
  margin: 0 0 12px;
}

/* タイトル：左揃え */
.mr-free .mr-article h1 {
  text-align: left;
  margin-bottom: 32px;
}

/* メイン画像・商品画像 */
.mr-free .mr-article .mr-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px auto;
}

/* 商品画像の最大幅 */
.mr-free .mr-product-img {
  width: 100%;
  max-width: 300px;
}

/* スマホ */
@media (max-width: 767px) {
  .mr-free .mr-article {
    max-width: 100%;
  }

  .mr-free .mr-article h1 {
    margin-bottom: 24px;
  }
}
