/* =========================================================
   style.css  ―  MIWA / プライバシーポリシー
   - html { font-size: 10px } 前提（reset.css）。1rem = 10px。
   - 共通パーツ（.page-title / .section-title / .button）には
     margin / width を指定しない（規約準拠）。
   - margin は片方向（top / left）に統一。
   ========================================================= */

:root {
  --color-primary: #0022a5;   /* ブルー */
  --color-brand: #c3181f;     /* ロゴの赤 */
  --color-ink: #393939;       /* 本文 */
  --color-ink-soft: #3b3c40;  /* 見出し系 */
  --color-brown: #392214;     /* STORE 系 */
  --color-bg-contact: #e5e7f3;
  --color-bg-store: #e1dedc;
  --color-line-store: #392214;
  --color-bg-detail: #e9e6e2; /* NEWS 詳細ページの地色 */
  --color-line: #e7e7e7;      /* 区切り線 */

  --bg-page: #fff;            /* ページ地色（詳細ページで上書き） */

  --font-en: "Marcellus", "Times New Roman", serif;
  --font-gothic: "Noto Sans JP", sans-serif;
  --font-mincho: "YuMincho", "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;

  --page-max: 1512px;
  --content-max: 1280px;
  --gutter: 40px;
}
p {
  font-family: --var(--font-mincho);
}

/* ---------- レイアウト土台 ---------- */
.page {
  position: relative;
  max-width: var(--page-max);
  margin: 0 auto;
  background-color: var(--bg-page);
}

main {
  position: relative;
}

main::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url(../images/common/page-bg.png) center top / cover no-repeat;
  opacity: 0.5;
  z-index: -1;
}

/* NEWS 詳細：地色をベージュへ（背景グラデーションも追従） */
.page--detail {
  --bg-page: var(--color-bg-detail);
}


.page-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1400px;
  z-index: 0;
}

.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../assets/hero.jpg) center top / cover no-repeat;
  opacity: .5;
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, var(--bg-page) 100%);
}

/* page 内の主要ブロックを背景より前面へ */
.info{
  position: relative;
  z-index: 1;
}

/* =========================================================
   共通クラス（規約指定：ページタイトル / セクションタイトル / ボタン）
   ※ margin・width は持たせない
   ========================================================= */

/* ページタイトル */
.page-title {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 70px;
  line-height: 1;
  letter-spacing: .05em;
  color: var(--color-ink-soft);
  margin: 0;
  max-width: unset;
  text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
}

/* セクションタイトル（CONTACT / STORE など） */
.section-title {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.13;
  letter-spacing: .05em;
  text-align: center;
}

/* ボタン */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 25px;
  font-family: var(--font-gothic);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .04em;
  text-align: center;
  color: var(--color-primary);
  background-color: #fff;
  border: 1px solid var(--color-primary);
}


/* =========================================================
   hero
   ========================================================= */
.hero__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 215px var(--gutter) 138px;
}

.page-title__sub {
  margin-top: 40px;
  font-family: var(--font-mincho);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .04em;
  color: #000;
}

/* =========================================================
   policy
   ========================================================= */
.policy {
  padding-bottom: 120px;
}

.policy__card {
  max-width: var(--content-max);
  margin: 0 auto;
  background-color: #fff;
}

.policy__body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 70px var(--gutter) 90px;
  font-family: var(--font-gothic);
  font-size: 14px;
  line-height: 1.85;
}

.policy__lead {
  margin-bottom: 10px;
}

.policy__block {
  margin-top: 55px;
}

.policy__heading {
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--color-ink-soft);
}

.policy__closing {
  margin-top: 55px;
}

.policy__sign {
  margin-top: 40px;
  text-align: right;
  line-height: 1.7;
}

/* =========================================================
   contact / store
   ========================================================= */
.info {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.info__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 40px 48px;
  text-align: center;
}

.info__contact {
  background-color: var(--color-bg-contact);
  border-top: 2px solid var(--color-primary);
}

.info__store {
  background-color: var(--color-bg-store);
  border-top: 2px solid var(--color-line-store);
}

/* セクションタイトルの色は文脈側で指定（共通クラスは無色） */
.info__contact .section-title {
  color: var(--color-primary);
}

.info__store .section-title {
  color: var(--color-brown);
}

.info__text {
  margin-top: 24px;
  font-family: var(--font-mincho);
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: -.02em;
}

.info__tel {
  margin-top: 16px;
  margin-bottom: 30px;
  font-family: var(--font-en);
  font-size: 44px;
  letter-spacing: .05em;
  color: var(--color-ink-soft);
}

.info__address {
  margin-top: 14px;
  margin-bottom: 30px;
  font-family: var(--font-mincho);
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: -.02em;
}

.info__contact .button {
  margin-top: auto;
}

.info__store .button {
  margin-top: auto;
}
/* =========================================================
   news（一覧）
   ========================================================= */
.news {
  padding-bottom: 100px;
}

.news__list {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  row-gap: 5px;
}

.news__item {
  display: flex;
  align-items: flex-start;
  gap: 55px;
  padding: 32px 36px 30px;
  background-color: #fff;
  color: inherit;
}

.news__meta {
  flex-shrink: 0;
  width: 120px;
}

/* カテゴリーバッジ（EVENT / NEWS / PRESS） */
.news__cat {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 25px;
  font-family: "Inter", var(--font-gothic);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .04em;
  color: #fff;
  background-color: var(--color-primary);
}

.news__date {
  display: block;
  margin-top: 16px;
  font-family: "Noto Sans", var(--font-gothic);
  font-size: 12px;
  color: #000;
}

.news__title {
  font-family: "Noto Sans", var(--font-gothic);
  font-size: 14px;
  line-height: 1.875;
  color: #000;
}

/* ページネーション */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 60px;
}

.pager__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 33px;
  color: var(--color-primary);
}

.pager__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  font-family: "Inter", var(--font-gothic);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-primary);
  background-color: #fff;
  border: 1px solid var(--color-primary);
}

.pager__num.is-current {
  color: #fff;
  background-color: var(--color-primary);
}

.news__pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 17px;
  margin-top: 56px;
}

.news__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  border: 1px solid #0022A5;
  color: #0022A5;
  background-color: #fff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  font-family: 'Inter';
}

.news__pagination .page-numbers.current {
  background: #0022A5;
  color: #fff;
  border-color: #0022A5;
}
.news__pagination .page-numbers.prev,
.news__pagination .page-numbers.next {
  border: none;
  width: 17px;
  height: 33px;
  background-color: unset;
}

.news__pagination .page-numbers.prev {
  margin-right: 23px;
}

.news__pagination .page-numbers.next {
  margin-left: 23px;
}

.news__pagination .page-numbers:hover {
  background: #0022A5;
  color: #fff;
  opacity: 1;
}
.news__pagination .page-numbers.prev:hover,
.news__pagination .page-numbers.next:hover {
  border: none;
  background-color: unset;
  color: unset;
}
.news__pagination .pagination__arrow--prev {
  transform: rotate(180deg);
}

/* =========================================================
   news-detail（記事）
   ========================================================= */
.article {
  padding-bottom: 90px;
}
.article__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-inline: 40px;
}
.article__card {
  background-color: #fff;
  padding: 50px 40px 150px;
}

.article__head {
  display: flex;
  align-items: flex-start;
  gap: 55px;
}

.article__title {
  font-family: "Noto Sans", var(--font-mincho);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.875;
  color: #000;
}

.article__body {
  position: relative;
  margin-top: 72px;
  padding-left: 175px;
}

.article__figure {
  width: 620px;
  max-width: 100%;
  margin: 0 auto;
}

.article__figure img {
  display: block;
  width: 100%;
}

.article__text {
  margin-top: 72px;
  font-family: "Noto Sans", var(--font-mincho);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.875;
  color: #000;
}

.article__text p {
  margin-block-end: 1em;
}

.article__text p:empty {
  margin-bottom: 1em;
  height: 1em;
}

.article__back {
  margin-top: 60px;
  text-align: center;
}
.article__back .button {
  max-width: 280px;
  width: 100%;
}

/* =========================================================
  レスポンシブ（SP）
========================================================= */
@media screen and (max-width: 767px){
  :root {
    --gutter: 24px;
  }

  .page-bg {
    height: 640px;
  }

  /* hero */
  .hero__inner {
    padding: 60px var(--gutter) 90px;
  }

  .page-title {
    font-size: 44px;
  }

  .page-title__sub {
    margin-top: 35px;
    font-size: 18px;
  }

  /* policy */
  .policy {
    padding-bottom: 70px;
  }

  .policy__body {
    padding: 40px var(--gutter) 50px;
    font-size: 12px;
    line-height: 1.9;
  }

  .policy__block {
    margin-top: 40px;
  }

  .policy__heading {
    font-size: 14px;
  }

  .policy__closing {
    margin-top: 40px;
  }

  /* contact / store */
  .info {
    grid-template-columns: 1fr;
  }

  .info__col {
    padding: 40px 24px 44px;
  }

  .section-title {
    font-size: 34px;
  }

  .info__text,
  .info__address {
    font-size: 12px;
  }

  .info__tel {
    font-size: 32px;
  }

  .info .button {
    width: 100%;
    max-width: 320px;
  }

  /* news（一覧） */
  .news {
    padding-bottom: 70px;
  }

  .news__item {
    flex-direction: column;
    gap: 14px;
    padding: 16px 16px;
  }

  .news__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    width: auto;
    margin-top: 0;
  }

  .news__date {
    margin-top: 0;
  }

  .news__title {
    font-size: 14px;
  }

  .pager {
    gap: 8px;
    margin-top: 40px;
  }

  .pager__num {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  .news__pagination .nav-links {
    margin-top: 30px;
  }

  /* news-detail（記事） */
  .article {
    padding-bottom: 70px;
  }

  .article__inner {
    padding-inline: 24px;
  }
  .article__card {
    padding: 16px 16px 40px;
  }

  .article__title {
    font-size: 14px;
  }

  .article__head {
    flex-direction: column;
    gap: 14px;
    padding-bottom: 24px;
  }

  .article__body {
    margin-top: 20px;
    min-height: 0;
    padding-left: 0;
  }

  .article__figure {
    position: static;
    width: 100%;
    margin-bottom: 24px;
  }

  .article__text {
    max-width: 100%;
    font-size: 12px;
  }

  .article__back {
    margin-top: 40px;
}

}

/* 中間（タブレット）：CONTACT / STORE の窮屈さを緩和 */
@media (min-width: 768px) and (max-width: 1024px) {
  .info__tel {
    font-size: 36px;
  }

  .hero__inner {
    padding-top: 160px;
  }

  .page-title {
    font-size: 62px;
  }
}
