/* =====================
  制作ページ共通
===================== */

:root {
  --prd-bg: #D8DAD2;
  --prd-ink: #28332e;
  --prd-dim: #7a857f;
  --prd-accent: #1f3a32;
  --prd-button-bg: #3c5a45;
  --prd-button-border: #3c5a45;
}

/* このテンプレのときだけ背景とフォントを指定 */
body.page-template-page-production {
  background: var(--prd-bg);
  color: var(--prd-ink);
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

body.page-template-page-production h1,
body.page-template-page-production h2 {
  font-family: "A-OTF Shuei Mincho Pro", "游明朝",
    "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
}

body.page-template-page-production h2 {
  font-size: 42px;
  letter-spacing: 0.25em;
}

.production img {
  max-width: 100%;
  height: auto;
  display: block;
}

.production p {
  font-size: 14px;
  line-height: 2;
}

/* =============== ヘッダーをヒーローの上に乗せる =============== */

body.page-template-page-production .site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  box-shadow: none;
  z-index: 40;
}

body.page-template-page-production .site-header,
body.page-template-page-production .site-header a {
  color: #fff;
}

body.page-template-page-production .site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0)
  );
  pointer-events: none;
}


/* =============== HERO =============== */

.prd-hero {
  position: relative;
  height: 800px;
  margin: 0;
  overflow: hidden;
}

.prd-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: translateX(155px) scale(1.2);
}

.prd-hero__overlay {
  position: absolute;
  inset: 0;
}

.prd-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.prd-hero__eyebrow {
  letter-spacing: 5px;
  font-size: 42px;
  margin-bottom: -10px;
}

.prd-hero__title {
  font-size: 42px;
  margin: 0 0 18px;
}

.prd-hero__lead {
  font-size: 13px;
  max-width: 420px;
  margin: 5vw auto;
}

/* =============== BLOCK 共通 =============== */

.prd-block {
  padding: 80px 0 40px;
}

.prd-block__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
  margin-left: 5vw;
}

.prd-block__inner--reverse {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  margin-left: auto;
}

.prd-block__text {
  display: flex;
  gap: 180px;
  flex-direction: column;
  align-items: center;
}
.prd-block__media {
  height: 800px;
  margin-left: auto;
}
.prd-block__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.production .prd-block__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prd-block__vlead {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 26px;
  letter-spacing: 0.25em;
  line-height: 2;
}

.prd-block__body {
  font-size: 14px;
}


/* CTA ボタン */
.prd-block__cta {
  text-align: center;
  padding: 40px 16px 80px;
  border-radius: 4px;
}

/* ボタン共通 */
.prd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 350px;
  padding: 12px 36px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-decoration: none;
  border: 1px solid var(--prd-button-border);
  color: #000;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  margin-top: 100px;
  border-radius: 4px;
}

.prd-button:hover {
  opacity: 0.9;
}

.prd-button--outline {
  background: transparent;
  color: var(--prd-button-bg);
}


/* ==========================
   768px 以下：PRODUCTION
   ========================== */
@media screen and (max-width: 768px) {

  /* ===== HERO ===== */
  .prd-hero {
    height: 560px;
  }

  .prd-hero__bg {
    transform: none;               /* SP では中央に素直に表示 */
    background-size: 325% auto;    /* ちょいアップ */
    background-position: 30% 35%;  /* やや左寄せ */
  }

  .prd-hero__inner {
    padding: 0 8vw;
    text-align: center;
    justify-content: center;
  }

  .prd-hero__eyebrow {
    font-size: 28px;
    letter-spacing: .0em;
    margin-bottom: -4px;
  }

  .prd-hero__title {
    font-size: 26px;
    margin: 0 0 10px;
  }

  .prd-hero__lead {
    max-width: 300px;
    margin: 50px auto 0;
    line-height: 1.9;
  }

  /* ===== BLOCK 共通（画像＋縦書き＋本文） ===== */
  .prd-block {
    padding: 40px 0 32px;
  }

  .prd-block__inner,
  .prd-block__inner--reverse {
    grid-template-columns: 1fr;  /* 1カラム */
    gap: 32px;
    margin-left: 0;
  }

  .prd-block__media {
    height: 360px;
    margin: 5vw 0 0 15vw;
    order: 0;
  }

  .prd-block__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .prd-block__text {
    margin: 15vw 6vw 0;
    gap: 70px;
    order: 1;

  }

  .prd-block__vlead {
    font-size: 22px;
    letter-spacing: 0.6em;
    line-height: 2;
    FONT-WEIGHT: 500;
  }

  .prd-block__body {
    font-size: 14px;
  }
  .production .prd-block__body p {
    line-height: 2;
  }

  .production .prd-block__body p:has(a) {
    line-height: 2.5;
    margin: 6px 0;
  }

  .production .prd-block__body a {
    text-decoration: underline;
    color: #3c5a45;
    font-weight: 600;
  }


  /* ===== CTA ボタン ===== */
  .prd-block__cta {
    padding: 32px 6vw 56px;
  }

  .prd-button {
    min-width: 0;
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
    margin-top: 24px;
  }
}
