/*
Theme Name: MCプロデュース
Theme URI:
Author: MCプロデュース
Author URI:
Description: MCプロデュース株式会社 コーポレートサイト用テーマ。静的サイトをWordPress化したもの。
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mcproduce
*/

/* ============================================================
   CSS Variables
============================================================ */
:root {
  --color-primary: #007c36;
  --color-primary-dark: #005a28;
  --color-text: #252525;
  --color-text-light: #333;
  --color-text-muted: #666;
  --color-bg: #fff;
  --color-bg-gray: #f3f6f4;
  --color-border: #e0e0e0;
  --content-width: 1296px;
  --header-height: 144px;
  --font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
}

/* ============================================================
   Reset & Base
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  /* 固定ヘッダーにアンカー先セクションが隠れないよう上余白を確保 */
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   Header
============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-bg);
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 下層ページはヒーローと同色・影なしで一体化 */
.header--subpage {
  background: var(--color-bg-gray);
  box-shadow: none;
}

.header__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo img {
  height: 80px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header__nav-link {
  font-size: 18px;
  color: var(--color-text);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  transition: color 0.2s;
}

.header__nav-link:hover {
  color: var(--color-primary);
}

.header__nav-link--active {
  color: var(--color-primary);
}

.header__nav-link--contact {
  background: var(--color-primary);
  color: #fff !important;
  padding: 10px 30px;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.2s;
}

.header__nav-link--contact:hover {
  background: var(--color-primary-dark);
}

/* Hamburger (SP) */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.header__hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.header__hamburger.is-open .header__hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__hamburger.is-open .header__hamburger-line:nth-child(2) {
  opacity: 0;
}

.header__hamburger.is-open .header__hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   ヘッダー：ドロップダウン子メニュー
   親=各ページへのリンク / 子=ページ内セクションのアンカーリンク
   PC(≥1025px)＝ホバーで展開 / SP・タブレット(≤1024px)＝キャレットで開閉
============================================================ */
.header__nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

/* 親リンク横のキャレット（▼）。PCではホバー表示の目印でクリック不可、SPではタップ領域 */
.header__nav-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 4px;
  padding: 0;
  border: none;
  background: none;
  color: var(--color-text);
  cursor: pointer;
  pointer-events: none;
}

.header__nav-caret::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s;
}

/* 子メニュー本体（PC：親の下に絶対配置） */
.header__submenu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  padding: 8px 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.13);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
  z-index: 101;
}

/* ホバーが切れないための透明ブリッジ */
.header__submenu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.header__nav-item:hover .header__submenu,
.header__nav-item:focus-within .header__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s;
}

.header__nav-item:hover .header__nav-caret::before,
.header__nav-item:focus-within .header__nav-caret::before {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.header__submenu-link {
  display: block;
  padding: 10px 22px;
  font-size: 15px;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--color-text);
  transition: background 0.18s, color 0.18s;
}

.header__submenu-link:hover {
  background: var(--color-bg-gray);
  color: var(--color-primary);
}

/* ---- SP・タブレット：ハンバーガー内でアコーディオン開閉 ---- */
@media (max-width: 1024px) {
  .header__nav-item {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    position: static;
  }

  .header__nav-item > .header__nav-link {
    flex: 1 1 auto;
    width: auto;
  }

  /* キャレットをタップ領域として有効化 */
  .header__nav-caret {
    pointer-events: auto;
    flex: 0 0 auto;
    width: 56px;
    height: auto;
    margin-left: 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .header__submenu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    width: 100%;
    min-width: 0;
    padding: 0;
    background: var(--color-bg-gray);
    border-radius: 0;
    box-shadow: none;
    transition: none;
    z-index: auto;
  }

  .header__submenu::before {
    display: none;
  }

  /* タッチ端末で残る :hover による子メニューのズレ・誤表示を無効化（開閉はis-openのみで制御） */
  .header__nav-item:hover .header__submenu,
  .header__nav-item:focus-within .header__submenu {
    transform: none;
  }

  .header__nav-item:hover .header__nav-caret::before,
  .header__nav-item:focus-within .header__nav-caret::before {
    transform: rotate(45deg);
    margin-top: -3px;
  }

  .header__nav-item.is-open .header__submenu {
    display: block;
  }

  .header__nav-item.is-open .header__nav-caret::before {
    transform: rotate(-135deg);
    margin-top: 3px;
  }

  .header__submenu-link {
    padding: 12px 24px 12px 40px;
    font-size: 14px;
    white-space: normal;
    border-bottom: 1px solid #eee;
  }
}

/* ============================================================
   Hero
============================================================ */
.hero {
  margin-top: var(--header-height);
  background: var(--color-bg);
}

.hero__inner {
  /* FVカルーセル全幅化（2026-06-25）。
     ▼元に戻す場合: 下の max-width を `var(--content-width)` に変更（1296px・中央寄せ）。
     高さ(height:684px ほかレスポンシブ値)は変更していません。 */
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  height: 684px;
  overflow: hidden;
}

.hero__carousel {
  position: absolute;
  inset: 0;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}

.hero__img.is-active {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(6, 47, 4, 0.3) 0%,
    rgba(6, 47, 4, 0.3) 20%,
    rgba(6, 47, 4, 0) 50%
  );
}

.hero__text {
  position: absolute;
  top: 289px;
  /* FV画像は全幅でも、テキストはコンテンツ幅(1296px)基準の位置に揃える。
     ▼元に戻す場合: left を `40px` に変更（2026-06-25 変更前の値）。 */
  left: max(40px, calc((100% - var(--content-width)) / 2 + 40px));
  color: #fff;
}

.hero__title {
  font-size: 64px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero__title-bracket {
  font-weight: 100;
}

.hero__subtitle {
  font-size: 28px;
  margin-top: 26px;
  letter-spacing: 2.8px;
}

/* ============================================================
   About
============================================================ */
.about {
  position: relative;
  padding: 160px 0;
  background: var(--color-bg);
}

.about__bg-text {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
}

.about__bg-mountain {
  position: absolute;
  left: calc((100% - var(--content-width)) / 2 - 50px);
  top: 45%;
  transform: translateY(-50%);
  width: 620px;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.about__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.about__left {
  flex: 1;
}

.about__heading {
  /* 1440px基準48px、ビューポート幅に連動してスケール */
  font-size: clamp(24px, 3.333vw, 48px);
  font-weight: 400;
  color: var(--color-primary);
  line-height: 1.3;
  letter-spacing: 0.15em;
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.about__heading-word {
  position: relative;
  display: inline-block;
}

.about__heading-word::before {
  content: '・・';
  position: absolute;
  top: -1.1em;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 100;
  color: var(--color-primary);
  white-space: nowrap;
  pointer-events: none;
}

.about__heading-line {
  display: block;
}

.about__heading-line--1 { padding-left: 40px; }
.about__heading-line--2 { padding-left: 152px; }
.about__heading-line--3 { padding-left: 264px; }

.about__right {
  flex: 0 0 57.7%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.about__text {
  font-size: 18px;
  color: var(--color-text);
  line-height: 2;
  margin-bottom: 30px;
  width: 100%;
}

.about__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  height: 48px;
  padding: 0 16px 0 24px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 18px;
  font-weight: 500;
  border-radius: 4px;
  margin-top: 8px;
  transition: background 0.2s;
  cursor: pointer;
}

.about__btn::after {
  content: '→';
  font-size: 16px;
}

.about__btn:hover {
  background: var(--color-primary-dark);
}

/* ============================================================
   Features
============================================================ */
.features {
  background: var(--color-bg-gray);
  padding: 40px 0 100px;
}

.features__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.features__item {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 60px 0;
}

.features__item:last-child {
  border-bottom: none;
}

.features__item--reverse {
  flex-direction: row-reverse;
}

.features__text {
  flex: 1;
}

.features__label {
  font-family: 'Manrope', sans-serif; 
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 10px;
  margin-left: 15px;
  position: relative;
}

.features__label::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 50%;
}

.features__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 40px;
  letter-spacing: 0.15em;
  line-height: 1;
}

.features__description {
  font-size: 18px;
  color: var(--color-text);
  line-height: 2;
}

.features__img {
  flex: 0 0 622px;
}

.features__img img {
  width: 100%;
  height: 377px;
  object-fit: cover;
  border-radius: 8px;
}

/* ============================================================
   Banner
============================================================ */
.banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.banner__item {
  display: block;
  position: relative;
  height: 360px;
  overflow: hidden;
  cursor: pointer;
}

.banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.banner__item:hover .banner__img {
  transform: scale(1.04);
}

.banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.banner__content {
  position: absolute;
  top: 148px;
  left: 72px;
  color: #fff;
}

.banner__label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 8px;
  opacity: 0.9;
}

.banner__label::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  margin-bottom: 1px;
}

.banner__title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.banner__arrow {
  position: absolute;
  right: 72px;
  top: 164px;
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  padding-bottom: 7px;
}

/* ============================================================
   News
============================================================ */
.news {
  padding: 80px 0;
  background: var(--color-bg);
}

.news__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.news__header {
  flex: 0 0 auto;
}

.news__label {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
  margin-left: 15px;
  position: relative;
}

.news__label::before {
  content: '⚫︎';
  font-size: 10px;
  position: absolute;
  left: -15px;
  top: 5px;
}

.news__title {
  font-size: 32px;
  font-weight: 700;
  color: #222;
  margin-bottom: 28px;
  letter-spacing: 0.15em;
  line-height: 1;
}

.news__btn {
  display: inline-flex;
  align-items: center;
  position: relative;
  background: var(--color-primary);
  color: #fff;
  padding: 15px 60px 15px 24px;
  font-size: 18px;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.2s;
  line-height: 1;
}

.news__btn::after {
  content: '→';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.news__btn:hover {
  background: var(--color-primary-dark);
}

.news__list {
  flex: 1;
  list-style: none;
}

.news__item {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #e8e8e8;
}

.news__item:first-child {
  border-top: 1px solid #e8e8e8;
}

/* 投稿タイトル（リンク）：行全体をクリック可能にする */
a.news__text {
  text-decoration: none;
  color: var(--color-text-light);
  transition: color 0.2s;
}

a.news__text::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.news__item:hover a.news__text {
  color: var(--color-primary);
}

.news__date {
  font-family: 'Manrope', sans-serif;
  flex: 0 0 90px;
  font-size: 16px;
  color: var(--color-primary);
  font-weight: 500;
}

.news__text {
  flex: 1;
  font-weight: 400;
  font-size: 18px;
  color: var(--color-text-light);
  line-height: 1;
}

.news__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--color-primary);
  border-radius: 50%;
  color: var(--color-primary);
  font-size: 22px;
  line-height: 1;
  padding-bottom: 7px;
}

/* ============================================================
   Footer
============================================================ */
.footer {
  background: var(--color-bg-gray);
  padding: 60px 0 30px;
}

.footer__inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.footer__top {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 161px;
  padding-bottom: 40px;
  border-bottom: 1px solid #ddd;
}

.footer__logo {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.footer__logo-img {
  height: 80px;
  width: auto;
}

.footer__address {
  font-size: 18px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.footer__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.footer__nav-links {
  display: flex;
  gap: 16px 30px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer__nav-link {
  font-size: 18px;
  font-weight: 500;
  color: #444;
  transition: color 0.2s;
}

.footer__nav-link:hover {
  color: var(--color-primary);
}

.footer__privacy {
  font-size: 14px;
  font-weight: 500;
  color: #444;
  transition: color 0.2s;
}

.footer__privacy:hover {
  color: var(--color-primary);
}

.footer__copy {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
  color: #999;
}

/* ============================================================
   Responsive — Small desktop (1301px〜1440px)
   header / footer は base に水平 padding がないので 72px 確保。
   コンテンツ inners は max-width: 1296px の auto-centering に任せ、
   内側 24px padding で端への近接を防ぐ。
============================================================ */
@media (min-width: 1301px) and (max-width: 1440px) {

  .header__inner {
    max-width: 100%;
    padding-left: 72px;
    padding-right: 72px;
  }

  .about__bg-mountain {
    left: -10px;
  }

  .about__inner,
  .features__inner,
  .news__inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .footer__inner {
    max-width: 100%;
    padding-left: 72px;
    padding-right: 72px;
  }
}

/* ============================================================
   Responsive — Tablet landscape (1025px〜1300px)
============================================================ */
@media (min-width: 1025px) and (max-width: 1300px) {

  :root {
    --header-height: 96px;
  }

  /* Header */
  .header__inner {
    padding: 20px 40px;
    max-width: 100%;
  }

  .header__logo img {
    height: 56px;
  }

  .header__nav {
    gap: 20px;
  }

  .header__nav-link {
    font-size: 15px;
  }

  /* Hero */
  .hero__inner {
    height: 560px;
  }

  .hero__text {
    top: 220px;
    left: 40px;
  }

  .hero__title {
    font-size: 52px;
  }

  .hero__subtitle {
    font-size: 22px;
    margin-top: 20px;
  }

  /* About */
  .about {
    padding: 120px 40px;
    overflow: hidden;
  }

  .about__bg-mountain {
    left: -20px;
  }

  .about__inner {
    padding: 0;
  }

  .about__heading-line--1 { padding-left: 24px; }
  .about__heading-line--2 { padding-left: 110px; }
  .about__heading-line--3 { padding-left: 196px; }

  .about__right {
    flex: 0 0 55%;
  }

  .about__btn {
    font-size: 16px;
  }

  /* Features */
  .features__inner {
    padding: 0 40px;
  }

  .features__item {
    gap: 40px;
  }

  .features__img {
    flex: 0 0 46%;
  }

  .features__img img {
    height: 300px;
  }

  /* Banner */
  .banner__content {
    left: 40px;
    top: 120px;
  }

  .banner__arrow {
    right: 40px;
    top: 134px;
  }

  /* News */
  .news__inner {
    padding: 0 40px;
    gap: 40px;
  }

  /* Footer */
  .footer__inner {
    padding: 0 40px;
  }

  .footer__nav-links {
    gap: 20px;
  }
}

/* ============================================================
   Responsive — Tablet portrait (769px〜1024px)
============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {

  :root {
    --header-height: 72px;
  }

  /* Header — ハンバーガーメニュー */
  .header__inner {
    padding: 14px 32px;
    max-width: 100%;
  }

  .header__logo img {
    height: 44px;
  }

  .header__nav {
    display: flex;
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--color-bg);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
    padding: 16px 0 24px;
    z-index: 99;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0.32s;
  }

  .header__nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0s;
  }

  .header__nav-link {
    width: 100%;
    padding: 14px 32px;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
  }

  .header__nav-link--contact {
    margin: 16px 32px 0;
    width: calc(100% - 64px);
    text-align: center;
    display: flex;
    justify-content: center;
    border-bottom: none;
    border-radius: 4px;
    padding: 10px 30px;
  }

  .header__hamburger {
    display: flex;
  }

  /* Hero */
  .hero__inner {
    height: 440px;
  }

  .hero__text {
    top: 160px;
    left: 32px;
  }

  .hero__title {
    font-size: 42px;
  }

  .hero__subtitle {
    font-size: 18px;
    margin-top: 16px;
    letter-spacing: 1.8px;
  }

  /* About */
  .about {
    padding: 80px 32px;
    overflow: hidden;
  }

  .about__bg-mountain {
    left: -30px;
    width: 380px;
    top: 50%;
  }

  .about__inner {
    padding: 0;
    flex-direction: column;
    gap: 40px;
    max-width: 720px;
  }

  .about__left {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .about__heading {
    display: inline-flex;
    font-size: clamp(24px, 4vw, 40px);
    white-space: nowrap;
  }

  .about__heading-line--1 { padding-left: 24px; }
  .about__heading-line--2 { padding-left: 90px; }
  .about__heading-line--3 { padding-left: 156px; }

  .about__right {
    flex: none;
    width: 100%;
    align-items: flex-start;
  }

  .about__text {
    font-size: 17px;
  }

  /* Features */
  .features__inner {
    max-width: 720px;
    padding: 0 32px;
  }

  .features__item,
  .features__item--reverse {
    flex-direction: column;
    gap: 28px;
    padding: 48px 0;
  }

  .features__img {
    flex: none;
    width: 100%;
  }

  .features__img img {
    height: 280px;
  }

  /* Banner */
  .banner__content {
    left: 32px;
    top: 100px;
  }

  .banner__label {
    font-size: 13px;
  }

  .banner__title {
    font-size: 24px;
  }

  .banner__arrow {
    right: 32px;
    top: 110px;
  }

  /* News */
  .news {
    padding: 60px 0;
  }

  .news__inner {
    flex-direction: column;
    gap: 28px;
    padding: 0 32px;
    max-width: 720px;
  }

  .news__title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  /* Footer */
  .footer__inner {
    padding: 0 32px;
  }

  .footer__top {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .footer__logo {
    align-items: center;
    text-align: center;
  }

  .footer__nav {
    align-items: center;
    width: 100%;
  }

  .footer__nav-links {
    justify-content: center;
    gap: 20px;
  }
}

/* ============================================================
   Responsive — SP (768px以下)
============================================================ */
@media (max-width: 768px) {

  /* SP用のヘッダー高さを上書き（ロゴ36px + 上下16px = 68px） */
  :root {
    --header-height: 68px;
  }

  /* Header */
  .header__inner {
    padding: 16px 20px;
  }

  .header__logo img {
    height: 36px;
  }

  .header__nav {
    display: flex;
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--color-bg);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
    padding: 16px 0 24px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0.32s;
  }

  .header__nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0s;
  }

  .header__nav-link {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0;
  }

  .header__nav-link--contact {
    margin: 16px 24px 0;
    width: calc(100% - 48px);
    text-align: center;
    justify-content: center;
    border-bottom: none;
  }

  .header__hamburger {
    display: flex;
  }

  /* Hero */
  .hero__inner {
    height: 60vh;
    min-height: 300px;
  }

  .hero__text {
    top: auto;
    bottom: 32px;
    left: 24px;
  }

  .hero__title {
    font-size: 28px;
  }

  .hero__subtitle {
    font-size: 16px;
    margin-top: 10px;
    letter-spacing: 1px;
  }

  /* About */
  .about {
    padding: 30px 0 50px;
    overflow: hidden;
  }

  .about__bg-mountain {
    left: -40px;
    top: auto;
    bottom: 80px;
    transform: none;
    width: 280px;
    opacity: 0.6;
  }

  .about__inner {
    flex-direction: column;
    padding: 0 20px;
    gap: 40px;
  }

  .about__left {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .about__heading {
    display: inline-flex;
    font-size: clamp(20px, 8vw, 36px);
    white-space: nowrap;
    padding-top: 20px;
  }

  .about__heading-line--1 { 
    padding-left: 0.5em; 
    margin-bottom: 8px;
  }
  .about__heading-line--2 { 
    padding-left: 1.5em; 
    margin-bottom: 8px;
  }
  .about__heading-line--3 { padding-left: 2.5em; }

  .about__heading-word::before {
    top: -0.7em;
  }

  .about__right {
    flex: none;
    width: 100%;
    align-items: flex-start;
  }

  .about__text {
    font-size: 15px;
    margin-bottom: 16px;
  }

  .about__btn {
    align-self: flex-end;
  }

  /* Features */
  .features {
    padding: 40px 0 60px;
  }

  .features__inner {
    padding: 0 20px;
  }

  .features__item,
  .features__item--reverse {
    flex-direction: column;
    gap: 24px;
    padding: 40px 0;
  }

  .features__label {
    font-size: 13px;
  }

  .features__title {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .features__description {
    font-size: 15px;
  }

  .features__img {
    flex: none;
    width: 100%;
  }

  .features__img img {
    height: 220px;
  }

  /* Banner */
  .banner {
    grid-template-columns: 1fr;
  }

  .banner__item {
    height: 220px;
  }

  .banner__content {
    left: 24px;
  }

  .banner__label {
    font-size: 12px;
  }

  .banner__title {
    font-size: 20px;
  }

  /* News */
  .news {
    padding: 48px 0;
  }

  .news__inner {
    flex-direction: column;
    gap: 32px;
    padding: 0 20px;
  }

  .news__label {
    font-size: 13px;
  }

  .news__title {
    font-size: 24px;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
  }

  .news__btn {
    font-size: 15px;
    padding: 13px 50px 13px 20px;
  }

  .news__item {
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
  }

  .news__date {
    flex: 0 0 auto;
    font-size: 13px;
  }

  .news__text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
  }

  .news__icon {
    width: 22px;
    height: 22px;
    font-size: 18px;
    flex-shrink: 0;
  }

  /* Footer */
  .footer {
    padding: 48px 0 24px;
  }

  .footer__inner {
    padding: 0 20px;
  }

  .footer__top {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .footer__logo {
    align-items: center;
    text-align: center;
  }

  .footer__logo-img {
    height: 50px;
  }

  .footer__address {
    font-size: 14px;
    text-align: center;
  }

  .footer__nav {
    align-items: center;
    width: 100%;
  }

  .footer__nav-links {
    justify-content: center;
    gap: 16px;
  }

  .footer__nav-link {
    font-size: 14px;
  }
}

/* ============================================================
   投稿（お知らせ）個別ページ  single.php
   固定ヘッダーに本文が隠れないよう、ヘッダー高さ分の上余白を確保。
   --header-height は各ブレークポイントで可変（PC/タブレット/SP対応）。
============================================================ */
.post {
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 120px;
  background: var(--color-bg);
}

.post__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.post__label {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post__date {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  color: var(--color-primary);
  margin-top: 12px;
}

.post__title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.5;
  color: #222;
  margin-top: 10px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e8e8e8;
}

.post__body {
  margin-top: 40px;
  font-size: 16px;
  line-height: 2;
  color: var(--color-text);
}

.post__body > * {
  margin-bottom: 1.6em;
}

.post__body h2 { font-size: 24px; font-weight: 700; margin: 1.8em 0 0.8em; line-height: 1.5; }
.post__body h3 { font-size: 20px; font-weight: 700; margin: 1.6em 0 0.6em; line-height: 1.5; }
.post__body a { color: var(--color-primary); text-decoration: underline; }
.post__body img { height: auto; margin: 1em 0; border-radius: 4px; }
.post__body ul, .post__body ol { margin: 0 0 1.6em 1.5em; }
.post__body li { margin-bottom: 0.4em; }
.post__body ul li { list-style: disc; }
.post__body ol li { list-style: decimal; }
.post__body blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: 16px;
  color: #555;
  margin: 1.6em 0;
}

.post__back {
  margin-top: 56px;
}

.post__back-link {
  display: inline-block;
  font-weight: 500;
  color: var(--color-primary);
}

.post__back-link:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .post {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 80px;
  }
  .post__title { font-size: 23px; }
  .post__body { font-size: 15px; line-height: 1.9; }
}

/* ============================================================
   Contact Form 7 調整（既存フォームデザインに合わせる）
============================================================ */
/* CF7が各項目を包む span を block 化して、入力欄を本来の幅で表示 */
.wpcf7-form-control-wrap {
  display: block;
}

/* ラジオ（採用区分・性別）を横並びに */
.wpcf7-radio {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
}
.wpcf7-radio .wpcf7-list-item {
  margin: 0;
}
.wpcf7-radio .wpcf7-list-item-label {
  margin-left: 8px;
}
.wpcf7-radio input[type="radio"] {
  accent-color: var(--color-primary);
}

/* 年齢欄の「歳」を入力欄の横に並べる */
.ent-age-wrap .wpcf7-form-control-wrap {
  display: inline-block;
}

/* バリデーション（必須漏れ等）メッセージ */
.wpcf7-not-valid-tip {
  color: #d33;
  font-size: 13px;
  margin-top: 6px;
}
.wpcf7-form-control.wpcf7-not-valid {
  border-color: #d33 !important;
}

/* 送信結果メッセージ */
.wpcf7-response-output {
  margin: 28px 0 0 !important;
  padding: 14px 18px !important;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.7;
}

/* 送信中スピナー */
.wpcf7-spinner {
  margin: 0 0 0 12px;
}

/* ============================================================
   CF7 入力内容の確認ステップ（送信前確認）
============================================================ */
.form-confirm {
  margin-top: 8px;
  /* 確認画面表示時、固定ヘッダーに先頭が隠れないようオフセット */
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.form-confirm__title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: var(--color-text);
  margin-bottom: 10px;
}

.form-confirm__note {
  text-align: center;
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.form-confirm__list {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-top: 1px solid #e8e8e8;
  margin-bottom: 40px;
}

.form-confirm__list dt,
.form-confirm__list dd {
  padding: 18px 16px;
  border-bottom: 1px solid #e8e8e8;
  font-size: 16px;
  line-height: 1.7;
}

.form-confirm__list dt {
  font-weight: 700;
  color: var(--color-text);
  background: var(--color-bg-gray);
}

.form-confirm__list dd {
  color: var(--color-text);
  white-space: pre-wrap;
  word-break: break-word;
}

.form-confirm__actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.form-confirm__back {
  height: 48px;
  padding: 0 28px;
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  background: #fff;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-family);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.form-confirm__back:hover {
  background: var(--color-primary);
  color: #fff;
}

@media (max-width: 768px) {
  .form-confirm__list {
    grid-template-columns: 1fr;
  }
  .form-confirm__list dt {
    border-bottom: none;
    padding-bottom: 4px;
  }
  .form-confirm__list dd {
    padding-top: 4px;
  }
}
