/*
Theme Name: Wide One
Theme URI:
Template: twentytwentyone
Author: -
Description: 株式会社WideOne のオリジナルテーマ。セールスプロモーション／イベントコンサルティング／通信販売代理店事業のコーポレートサイト用に制作した、Twenty Twenty-One の子テーマ（クラシックテーマ）です。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: -
Text Domain: wideone
Tags: custom-menu, one-column, custom-logo
*/

/* ==================================================================
   ※ Twenty Twenty-One の子テーマです。
      親テーマ（twentytwentyone）のインストールが必須です。
      ※有効化は不要。インストールだけしておいてください。

      デフォルトテーマのうち、クラシックテーマとして使える最新版が
      Twenty Twenty-One のため、テンプレート階層の「器」として使っています。
      親テーマのCSS/JSは functions.php の wo_dequeue_parent() で全停止しており、
      デザイン資産は一切継承していません。
   ================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --brand: #C8102E;
  --brand-dark: #a80f27;
  --gold: #C8922A;
  --ink: #1a1a1a;
  --bg: #fff;
  --bg-soft: #f8f6f2;
  --bg-dark: #0e0e0e;
  --maxw: 1200px;
  --serif: 'Noto Serif JP', serif;
  --sans: 'Noto Sans JP', sans-serif;
}

/* ---------- Reset / base ---------- */
/* scroll-padding-top: 固定ナビ(70px)にアンカー先が潜り込まないようにする */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }

/* ---------- Keyframes ---------- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes spinAnim { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ---------- Form placeholders / scrollbar ---------- */
/* 濃色フォーム(.contact)専用。明色フォームを足しても壊れないようクラスで限定する */
.input::placeholder, .textarea::placeholder { color: rgba(255,255,255,0.45); }
select option { background: #1a1a1a; color: #fff; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #090909; }
::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 2px; }

/* =========================================================
   ローディング画面（ロゴ・プリローダー）
   ========================================================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.is-loaded {
  opacity: 0;
  visibility: hidden;
}
.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.preloader__logo {
  height: 110px;
  width: auto;
  display: block;
  animation: preloaderPulse 1.6s ease-in-out infinite;
}
@keyframes preloaderPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.97); }
  50%      { opacity: 1;    transform: scale(1); }
}
.preloader__bar {
  position: relative;
  width: 170px;
  height: 2px;
  background: rgba(200,16,46,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.preloader__bar span {
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(to right, var(--brand), var(--gold));
  animation: preloaderBar 1.15s ease-in-out infinite;
}
@keyframes preloaderBar {
  0%   { left: -40%; }
  100% { left: 100%; }
}

/* ---------- Shared buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 2px;
  font-weight: 500;
  letter-spacing: 0.12em;
  transition: all 0.3s;
}
.btn--primary {
  background: var(--brand);
  color: #fff;
  padding: 17px 44px;
  font-size: 14px;
}
.btn--primary:hover { background: var(--brand-dark); }
.btn--outline {
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  color: #fff;
  padding: 15px 42px;
  font-size: 14px;
}
.btn--outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}
/* スクロール後 / メニュー展開中: 背景あり + 文字色を反転（濃色） */
.nav.is-scrolled,
.nav.is-menu-open {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(200,16,46,0.12);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  gap: 30px;
  height: 70px;
}
.nav__brand { display: flex; align-items: center; text-decoration: none; }
.nav__logo {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.35));
  transition: filter 0.35s ease;
}
.nav.is-scrolled .nav__logo,
.nav.is-menu-open .nav__logo { filter: none; }
/* margin-left:auto でロゴを左、メニュー+CTA を右に寄せる */
.nav__menu { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav__link {
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  letter-spacing: 0.13em;
  font-weight: 500;
  text-decoration: none;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
  transition: color 0.35s ease, text-shadow 0.35s ease;
}
.nav__link:hover { color: #fff; }
/* スクロール後 / メニュー展開中は濃色に反転 */
.nav.is-scrolled .nav__link,
.nav.is-menu-open .nav__link { color: rgba(0,0,0,0.65); text-shadow: none; }
.nav.is-scrolled .nav__link:hover,
.nav.is-menu-open .nav__link:hover { color: #000; }
.nav__cta {
  background: var(--brand);
  color: #fff;
  padding: 11px 28px;
  font-size: 13px;
  letter-spacing: 0.13em;
  font-weight: 600;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}
.nav__cta:hover { background: var(--brand-dark); }

/* ---------- ハンバーガーボタン（560px以下で表示） ---------- */
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-right: -10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
  transition: transform 0.3s ease, opacity 0.2s ease, background 0.35s ease, box-shadow 0.35s ease;
}
.nav.is-scrolled .nav__toggle-bar,
.nav.is-menu-open .nav__toggle-bar { background: var(--ink); box-shadow: none; }
/* 展開中は × に変形 */
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #fff url("assets/images/hero.webp") center / cover no-repeat;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  pointer-events: none;
}
.hero__content {
  text-align: center;
  padding: 120px 48px 100px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.9s cubic-bezier(0.22,1,0.36,1) both;
}
.hero__logo-wrap { display: inline-block; margin-bottom: 28px; }
.hero__logo { height: 180px; width: auto; display: block; object-fit: contain; }
/* モットー（経営理念）をMVに反映。2行とも同サイズ */
.hero__title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 44px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  text-wrap: pretty;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7), 0 2px 12px rgba(0,0,0,0.45);
}

/* Gold ornament (diamond between two lines) */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 36px;
}
.ornament__line { width: 72px; height: 1px; }
.ornament__line--l { background: linear-gradient(to right, transparent, rgba(200,146,42,0.6)); }
.ornament__line--r { background: linear-gradient(to left, transparent, rgba(200,146,42,0.6)); }

/* Service tags */
.tags {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.tag {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 10px 20px;
  font-size: 12px;
  letter-spacing: 0.15em;
  font-weight: 500;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero__ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Scroll indicator */
@keyframes scrollNudge {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(10px); }
}
@keyframes scrollDot {
  0%   { transform: translateY(-110%); opacity: 0; }
  25%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { transform: translateY(140%); opacity: 0; }
}
.scroll-indicator {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fadeIn 1s 1s both, scrollNudge 2.4s ease-in-out 1s infinite;
}
.scroll-indicator__label {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.scroll-indicator__line {
  position: relative;
  width: 1px;
  height: 56px;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}
/* 流れ落ちるハイライト */
.scroll-indicator__line::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 45%;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollDot 1.9s ease-in-out infinite;
}

/* =========================================================
   Shared section header
   ========================================================= */
.section { padding: 128px 48px; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); }

.section__head { text-align: center; margin-bottom: 80px; }
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--gold);
  font-weight: 400;
  margin: 0 0 18px;
  text-transform: uppercase;
}
.section__title {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 28px;
  letter-spacing: 0.06em;
}
.section__title--light { color: #fff; }

/* Divider: line · dot · line */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.divider__line { width: 48px; height: 1px; background: rgba(200,146,42,0.35); }
.divider__dot { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }

/* =========================================================
   GREETING
   ========================================================= */
.greeting { position: relative; overflow: hidden; }
/* JS制御のパララックス（PC・スマホ共通で動作） */
.greeting__bg {
  position: absolute;
  left: 0;
  right: 0;
  top: -20%;
  height: 140%;
  background: url("assets/images/greeting.webp") center / cover no-repeat;
  will-change: transform;
}
.greeting__fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(255,255,255,1) 0%,
    rgba(255,255,255,0.8) 25%,
    rgba(255,255,255,0.4) 50%,
    rgba(255,255,255,0) 100%);
}
.greeting__inner {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
/* MVのサービスタグと同じ透かし + グラス透過。ボーダーなし */
.greeting__card {
  position: relative;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none;
  border-radius: 4px;
  padding: 48px 44px;
}
.greeting__text {
  font-size: 15px;
  color: rgba(0,0,0,0.72);
  line-height: 2.2;
  margin: 0;
  text-wrap: pretty;
}

/* =========================================================
   SERVICES (3 cards)
   ========================================================= */
.services__inner { max-width: var(--maxw); margin: 0 auto; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(0,0,0,0.04);
}
.card {
  background: #fff;
  padding: 52px 44px 48px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.card:hover { background: #faf8f5; }
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(to right, var(--brand), var(--gold));
}
.card__ring {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(200,16,46,0.04);
  border-radius: 50%;
}
.card__num {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(200,16,46,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  flex-shrink: 0;
}
.card__num span {
  color: var(--brand);
  font-size: 18px;
  font-weight: 700;
  font-family: var(--serif);
}
.card__title {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: 0.04em;
  font-weight: 600;
  line-height: 1.4;
}
.card__sub {
  font-size: 12px;
  color: var(--gold);
  margin: 0 0 22px;
  letter-spacing: 0.18em;
  font-weight: 400;
}
.card__line {
  width: 36px;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin-bottom: 24px;
}
.card__desc {
  font-size: 14px;
  color: rgba(0,0,0,0.55);
  line-height: 2;
  margin: 0;
  text-wrap: pretty;
}

/* =========================================================
   DETAILS
   ========================================================= */
.details__inner { max-width: 1000px; margin: 0 auto; }
.detail-list { display: flex; flex-direction: column; gap: 48px; }
.detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.detail__title {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.detail__text {
  font-size: 14px;
  color: rgba(0,0,0,0.6);
  line-height: 2.2;
  margin: 0;
}
.detail__media {
  background-color: rgba(200,146,42,0.08);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 240px;
  border-radius: 4px;
}
.detail__media--promotion { background-image: url("assets/images/service-promotion.webp"); }
.detail__media--event { background-image: url("assets/images/service-event.webp"); }
.detail__media--agency { background-image: url("assets/images/service-agency.webp"); }

/* =========================================================
   アクセス / 地図
   ========================================================= */
.access__inner { max-width: 880px; margin: 0 auto; }
.access__address {
  text-align: center;
  font-size: 15px;
  color: rgba(0,0,0,0.7);
  letter-spacing: 0.04em;
  margin: 0 0 36px;
}
.access__map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 2px solid var(--brand);
  border-radius: 4px;
  overflow: hidden;
}
.access__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.access__link-wrap { text-align: center; margin-top: 24px; }
.access__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.access__link:hover { border-bottom-color: var(--brand); }

/* =========================================================
   COMPANY PROFILE（会社概要）
   ========================================================= */
.company__inner { max-width: 880px; margin: 0 auto; }
.profile { width: 100%; border-collapse: collapse; }
.profile th,
.profile td {
  text-align: left;
  padding: 22px 8px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-size: 14px;
  vertical-align: top;
}
.profile tr:first-child th,
.profile tr:first-child td { border-top: 1px solid rgba(0,0,0,0.08); }
.profile th {
  width: 28%;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.profile td {
  color: rgba(0,0,0,0.72);
  line-height: 1.9;
}
/* 会社概要内の tel:/mailto: リンク。本文と同じ見た目で、hover時のみ強調 */
.profile__tel {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.18);
  transition: color 0.2s, border-color 0.2s;
}
.profile__tel:hover { color: var(--brand); border-bottom-color: var(--brand); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact__inner { max-width: 720px; margin: 0 auto; }
.contact__head { margin-bottom: 72px !important; }
.contact__lead {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  line-height: 2;
  margin: 28px 0 0;
}

.form { display: flex; flex-direction: column; gap: 28px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field__label {
  display: block;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 10px;
  font-weight: 500;
}
.req { color: var(--brand); }
.input, .textarea, .select {
  width: 100%;
  background: #161616;
  border: 1px solid rgba(255,255,255,0.07);
  color: #fff;
  padding: 14px 18px;
  font-size: 14px;
  font-family: var(--sans);
  outline: none;
  border-radius: 2px;
  transition: border-color 0.2s;
}
.input:focus, .textarea:focus, .select:focus { border-color: rgba(200,16,46,0.5); }
.textarea { resize: vertical; line-height: 1.8; }

.select-wrap { position: relative; }
.select {
  color: rgba(255,255,255,0.75);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.select__icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.form__submit { text-align: center; padding-top: 8px; }
.btn-submit {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 18px 72px;
  font-size: 14px;
  letter-spacing: 0.18em;
  font-weight: 500;
  cursor: pointer;
  border-radius: 2px;
  min-width: 260px;
  font-family: var(--sans);
  transition: background 0.2s;
}
.btn-submit:hover { background: var(--brand-dark); }

/* Sending / Sent states */
.form-state { text-align: center; padding: 100px 0; }
.spinner {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(200,16,46,0.2);
  border-top-color: var(--brand);
  border-radius: 50%;
  margin: 0 auto 28px;
  animation: spinAnim 0.8s linear infinite;
}
.form-state__hint { color: rgba(255,255,255,0.4); font-size: 13px; letter-spacing: 0.2em; }
.sent__icon {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(200,146,42,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 36px;
}
.sent__title {
  font-family: var(--serif);
  font-size: 26px;
  color: #fff;
  margin: 0 0 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.sent__text {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  line-height: 2.2;
  margin: 0;
}
.is-hidden { display: none !important; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: #1a1a1a;
  border-top: 1px solid rgba(200,146,42,0.15);
  padding: 80px 48px 48px;
}
.footer__inner { max-width: var(--maxw); margin: 0 auto; }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}
.footer__logo { height: 50px; width: auto; display: block; object-fit: contain; margin-bottom: 28px; }
.footer__about-text {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin: 0;
  line-height: 2;
  text-wrap: pretty;
}
.footer__h {
  font-family: var(--serif);
  font-size: 14px;
  color: #fff;
  margin: 0 0 28px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer__link {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.footer__link:hover { color: var(--gold); }
.footer__contact-item {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
}
.footer__contact-item .label { color: rgba(255,255,255,0.65); font-weight: 500; }
/* 連絡先は tel:/mailto: リンク。コントラスト比7.3:1を確保し、
   hoverはフッター内の他リンクと同じゴールドに揃える */
.footer__contact-item .val {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__contact-item a.val:hover { color: var(--gold); }

.footer__divider { height: 1px; background: rgba(200,146,42,0.15); margin-bottom: 48px; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer__copy {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  margin: 0;
  letter-spacing: 0.1em;
}
/* =========================================================
   Scroll reveal（スクロール連動アニメーション）
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1),
              transform 0.8s cubic-bezier(0.22,1,0.36,1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* グループ内のスタッガー（時間差） */
.cards .card:nth-child(2) { transition-delay: 0.1s; }
.cards .card:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-indicator,
  .scroll-indicator__line::after,
  .preloader__logo,
  .preloader__bar span { animation: none; }
  .nav__menu,
  .nav__toggle-bar { transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .section { padding: 88px 24px; }
  .nav__inner { padding: 0 24px; gap: 24px; }
  .nav__menu { gap: 24px; }
  .cards { grid-template-columns: 1fr; }
  .detail-row { grid-template-columns: 1fr; gap: 24px; }
  /* スマホでは3行とも タイトル→本文→画像 の順に統一（反転行の画像を最後へ） */
  .detail-row--reverse .detail__media { order: 1; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero__title { font-size: 24px; }
  .section__title { font-size: 28px; }
}

@media (max-width: 560px) {
  /* ナビ: ロゴ + CTA + ハンバーガー。リンクはドロワーへ格納する */
  .nav__inner { gap: 12px; }
  .nav__toggle { display: flex; }
  .nav__cta { margin-left: auto; padding: 10px 18px; font-size: 12px; }

  .nav__menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200,16,46,0.12);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    /* 既定は非表示。visibility も切ってタブ移動の対象から外す */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }
  .nav__menu.is-open { opacity: 1; visibility: visible; transform: none; }

  /* ドロワー内は常に濃色 + 44px のタップ領域を確保 */
  .nav__menu .nav__link,
  .nav.is-scrolled .nav__menu .nav__link {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: rgba(0,0,0,0.72);
    text-shadow: none;
    font-size: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .nav__menu .nav__link:last-child { border-bottom: none; }

  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .profile th, .profile td { display: block; width: 100%; }
  .profile th { border-bottom: none; padding-bottom: 4px; }
  .profile td { padding-top: 4px; }
  .hero__logo { height: 120px; }
  .hero__title { font-size: 19px; }
}

/* =========================================================
   Contact Form 7
   ---------------------------------------------------------
   CF7 が生成するラッパー要素に、静的版の .field / .input
   と同じ見た目を継承させるための最小限の調整。
   ========================================================= */

/* CF7 は各入力を <span class="wpcf7-form-control-wrap"> で包むため、
   これをブロック化しないと .input の width:100% が効かない */
.wpcf7-form-control-wrap { display: block; }

/* 送信ボタンを中央に置くためのラッパー（CF7側の <p> 自動挿入は無効化済み） */
.form .wpcf7-spinner { margin: 0 0 0 12px; vertical-align: middle; }

/* バリデーションエラー */
.wpcf7-not-valid-tip {
  display: block;
  margin-top: 8px;
  color: #ff6b6b;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.input.wpcf7-not-valid,
.textarea.wpcf7-not-valid,
.select.wpcf7-not-valid { border-color: rgba(255,107,107,0.6); }

/* 送信結果メッセージ（成功時は #formSent を出すため主にエラー用） */
.wpcf7-response-output {
  margin: 28px 0 0 !important;
  padding: 16px 20px !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  border-radius: 2px;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  line-height: 1.9;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output { border-color: rgba(255,107,107,0.5) !important; }
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output { border-color: rgba(200,16,46,0.6) !important; }
.wpcf7 form.sent .wpcf7-response-output { display: none !important; }

/* CF7未設定時に出す確認用フォームの注意書き */
.form__notice {
  margin: 0 0 28px;
  padding: 14px 18px;
  border: 1px dashed rgba(200,146,42,0.5);
  border-radius: 2px;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  line-height: 1.9;
}
.btn-submit:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-submit:disabled:hover { background: var(--brand); }

/* =========================================================
   WordPress 本体まわり
   ========================================================= */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* 管理バー表示時に固定ナビが隠れないように */
body.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nav { top: 46px; } }
@media (max-width: 560px) { body.admin-bar .nav__menu { top: 116px; } }

/* 固定ページ / 404 の汎用レイアウト */
.page-hero { padding: 150px 48px 0; }
.page-body { max-width: 880px; margin: 0 auto; padding: 0 0 40px; }
.page-body h2 { font-family: var(--serif); font-size: 24px; margin: 48px 0 16px; }
.page-body h3 { font-family: var(--serif); font-size: 19px; margin: 36px 0 12px; }
.page-body p,
.page-body li { font-size: 15px; line-height: 2.1; color: rgba(0,0,0,0.72); }
.page-body img { height: auto; }
