@charset "utf-8";

/* =========================================================
   下層ページ（FAQ・ブログ・NEWS・規約類・記事・チラシ用ページ）の見た目
   base.css のあとに読み込む
   （方針は docs/redesign/DESIGN_MEMO.md）
   ========================================================= */

/* ---------- ページの枠 ---------- */
main .wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 52px var(--gutter) 88px;
}

main .section-title {
  margin-bottom: 36px;
}

/* チラシ用ページのヘッダーのロゴ（ほかのページと同じ見た目に） */
header h1 {
  margin: 0;
  font-size: 1.02rem;
}

header h1 a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
}

header h1 a::before {
  content: "";
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: #fffcf5 url("../img/parts/logo-mark.webp") center / 108% no-repeat;
}

/* ---------- 「戻る」のリンク ---------- */
.news-back,
.terms-back,
.back-link {
  margin-top: 56px;
  text-align: center;
}

.news-back-link,
.terms-back-link,
.back-link a {
  display: inline-block;
  padding: 4px 2px 5px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.news-back-link:hover,
.terms-back-link:hover,
.back-link a:hover {
  color: var(--yaki-dark);
  border-bottom-color: var(--yaki-dark);
}

/* ---------- FAQ ---------- */
.faq-category {
  margin-bottom: 36px;
}

.faq-category-title {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-radius: 16px;
  background-color: var(--kraft);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.faq-category-title::-webkit-details-marker,
.faq-question::-webkit-details-marker {
  display: none;
}

/* 開閉の矢印 */
.faq-category-title::after {
  content: "";
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  margin: -4px 4px 0 0;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-category[open] > .faq-category-title::after {
  margin-top: 4px;
  transform: rotate(-135deg);
}

.faq-item {
  border-bottom: 1px dashed var(--line);
}

.faq-question {
  list-style: none;
  cursor: pointer;
  position: relative;
  display: block;
  padding: 18px 36px 18px 34px;
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.75;
}

/* 質問の頭の「Q」（飾り） */
.faq-question::before {
  content: "Q";
  position: absolute;
  left: 6px;
  top: 16px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--yaki-dark);
}

/* 開閉の「＋」 */
.faq-question::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 26px;
  width: 13px;
  height: 13px;
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 1.5px
      no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 100% no-repeat;
  transition: transform 0.2s ease;
}

.faq-item[open] > .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 8px 24px 34px;
  font-size: 0.94rem;
  line-height: 2;
}

.faq-answer p + p {
  margin-top: 0.8em;
}

.faq-answer a {
  text-underline-offset: 3px;
}

/* ---------- NEWS一覧 ---------- */
.news-detail-list {
  border-top: 1px dashed var(--line);
}

.news-detail-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px dashed var(--line);
}

.news-detail-thumb-link {
  flex: 0 0 112px;
  display: block;
  line-height: 0;
}

.news-detail-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: var(--radius-s);
  background-color: #fff;
}

.news-detail-header {
  min-width: 0;
}

.news-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-bottom: 6px;
}

.news-detail-date {
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.news-detail-title {
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.7;
}

.news-detail-title-link {
  text-decoration: none;
}

.news-detail-title-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.news-detail-content {
  margin-top: 6px;
  font-size: 0.9rem;
  line-height: 1.9;
}

/* ---------- NEWSの記事（記事ごとの細かい見た目は各ページの中に書いてある） ---------- */
main .pressrelease-body {
  padding-left: 0;
  padding-right: 0;
}

.pressrelease-body .pr-title,
.pressrelease-body .pr-heading {
  font-family: var(--font-head);
  letter-spacing: 0.04em;
}

/* ---------- ブログの記事（記事ごとの細かい見た目は各ページの中に書いてある） ---------- */
.blog-article h2 {
  font-family: var(--font-head);
  letter-spacing: 0.04em;
}

/* ---------- 利用規約・プライバシーポリシー・特商法 ---------- */
.terms-main-title {
  margin-bottom: 36px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.36rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  font-feature-settings: "palt";
}

.terms-main-title {
  position: relative;
  z-index: 0;
  width: fit-content;
  padding-left: 1.55em;
}

.terms-main-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 1.15em;
  height: 1em;
  transform: translateY(-50%) rotate(-8deg);
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%22-20 -20 240 230%22%3E%3Cpath fill=%22%23fbdcbd%22 d=%22M40 30C80 4 150 6 180 46C206 82 196 140 150 162C104 184 44 172 18 130C-2 98 8 52 40 30Z%22/%3E%3C/svg%3E") center / contain no-repeat;
}

.terms-intro {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--line);
}

.terms-intro p,
.terms-section p,
.terms-list li {
  margin-bottom: 0.7em;
  font-size: 0.92rem;
  line-height: 1.95;
}

.terms-updated {
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-align: right;
}

.terms-meta {
  text-align: left;
}

.terms-section {
  margin-bottom: 36px;
}

.terms-section-title {
  margin-bottom: 12px;
  padding-left: 14px;
  border-left: 3px solid var(--line);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

/* 規約の本文は、太字にしない（前からの決まり） */
.terms-content strong,
.terms-content b {
  font-weight: inherit;
}

.terms-list {
  margin: 12px 0;
  padding-left: 6px;
  counter-reset: list-counter;
}

.terms-list li {
  position: relative;
  padding-left: 28px;
  counter-increment: list-counter;
}

.terms-list li::before {
  content: counter(list-counter) ".";
  position: absolute;
  left: 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.terms-link {
  display: inline-block;
  margin-top: 12px;
  text-underline-offset: 4px;
}

.terms-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.8;
}

.terms-content th,
.terms-content td {
  padding: 12px 10px;
  border-bottom: 1px dashed var(--line);
  text-align: left;
  vertical-align: top;
}

/* ---------- チラシ用ページ ---------- */
.promotion-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72vh;
  padding: 56px var(--gutter);
}

.promotion-content {
  max-width: 600px;
  text-align: center;
}

.promotion-title {
  margin-bottom: 18px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.4rem, 6.4vw, 2rem);
  line-height: 1.6;
  letter-spacing: 0.06em;
  font-feature-settings: "palt";
}

.promotion-subtitle {
  margin-bottom: 14px;
  font-size: 1.02rem;
  line-height: 1.8;
}

.promotion-description {
  margin-bottom: 36px;
  font-size: 0.94rem;
  line-height: 1.9;
}

.promotion-app-link {
  text-underline-offset: 4px;
}

@media (min-width: 900px) {
  main .wrapper {
    padding-top: 80px;
    padding-bottom: 120px;
  }

  main .section-title {
    font-size: 1.55rem;
    margin-bottom: 44px;
  }

  .news-detail-item {
    gap: 28px;
    padding: 26px 0;
  }

  .news-detail-thumb-link {
    flex-basis: 200px;
  }

  .news-detail-title {
    font-size: 1.05rem;
  }

  .faq-question {
    font-size: 1rem;
  }
}
