@charset "UTF-8";

/* =========================================================
   ay-farm base.css — design tokens & layout primitives
   ========================================================= */

/* box-sizing をグローバルに border-box へ統一。
   reset.css(html5doctor) は box-sizing を設定しないため、これが無いと
   width:100% + padding を持つ要素（.hero / .container / .btn 等）が
   コンテナ幅を超えて右側にはみ出し、FV が見切れる原因になる。 */
*, *::before, *::after { box-sizing: border-box; }

:root {
  /* Color */
  --c-bg: #fafaf9;
  --c-surface: #ffffff;
  --c-surface-alt: rgba(240, 242, 240, 0.3);
  --c-tint-green: rgba(62, 142, 65, 0.05);

  --c-primary: #4caf50;
  --c-primary-dark: #388e3c;
  --c-primary-deep: #3e8e41;
  --c-primary-darker: #2c3e2c;

  --c-text: #0f172a;
  --c-text-body: #475569;
  --c-text-muted: #64748b;
  --c-text-light: #94a3b8;

  --c-border: #f0f2f0;
  --c-border-strong: #e2e8f0;

  /* Layout */
  --container-max: 1280px;
  --container-pad: 40px;
  --header-h: 72px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Shadow */
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-btn: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);

  /* Typography */
  --font-jp: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
}

/* =========================
   Base
   ========================= */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .75; }

/* =========================
   Layout primitives
   ========================= */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section {
  padding-top: 64px;
  padding-bottom: 64px;
}
.section--lg { padding-top: 96px; padding-bottom: 96px; }
.section--tint { background: var(--c-surface-alt); }
.section--green-tint { background: var(--c-tint-green); }
.section--white { background: var(--c-surface); }

/* =========================
   Buttons
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  border: 0;
  transition: transform .15s, box-shadow .15s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--c-primary-deep);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0 32px;
  box-shadow: var(--shadow-btn);
}
.btn--primary:hover { background: var(--c-primary-dark); opacity: 1; }

.btn--header {
  background: var(--c-primary);
  color: #fff;
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: var(--radius-sm);
}

.btn--ghost {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid #fff;
  backdrop-filter: blur(6px);
}

.btn--outline {
  background: #fff;
  color: var(--c-text);
  border: 2px solid var(--c-border-strong);
  height: 56px;
  padding: 0 36px;
}

/* =========================
   Headings
   ========================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-primary-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--c-primary-dark);
}

.h-section {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.025em;
}
.h-section--center { text-align: center; }

/* 装飾付き見出し（やわらかな楕円の輪郭） */
.h-leaf {
  position: relative;
  color: var(--c-primary-dark);
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  padding: 14px 0;
  margin: 1.5em 0;
  line-height: 1.4;
}
.h-leaf::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 200px;
  height: 70px;
  border-radius: 50%;
  border: 5px solid #a6ddb0;
  border-left-color: transparent;
  border-right-color: transparent;
  transform: translateX(-50%);
  pointer-events: none;
}
@media (max-width: 600px) {
  .h-leaf { font-size: 22px; }
  .h-leaf::before { width: 160px; height: 60px; border-width: 4px; }
}

.lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--c-text-body);
}

/* =========================
   Header
   ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 249, 0.95);
  backdrop-filter: blur(2px);
  border-bottom: 1px solid var(--c-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px;
  max-width: none;
  min-height: var(--header-h);
}
.site-header__logo {
  display: inline-flex;
  align-items: center;
}
.site-header__logo img { height: 64px; width: auto; }
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.global-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.global-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
}
.global-nav a:hover { color: var(--c-primary-dark); opacity: 1; }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-text);
  margin: 5px 0;
  transition: transform .28s ease, opacity .2s ease;
}
/* 開いているとき：三本線を×印にモーフ */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* モーション控えめ設定では即時切替に */
@media (prefers-reduced-motion: reduce) {
  .site-header__nav,
  .nav-toggle span { transition: none; }
}

/* =========================
   Footer
   ========================= */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--c-border);
  padding: 49px 0 48px;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.site-footer__logo img { height: 88px; width: auto; }
.site-footer__address {
  color: var(--c-text-muted);
  font-size: 14px;
  letter-spacing: 0.05em;
  line-height: 1.5;
}
.site-footer__address p { margin: 0; }
.site-footer__links {
  font-size: 13px;
  color: var(--c-text-muted);
}
.site-footer__sns {
  display: flex;
  gap: 16px;
}
/* SNS：公式ロゴ（グラデーション）+ テキストラベルの横並び */
.site-footer__sns-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-text);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: opacity .2s ease;
}
.site-footer__sns-link:hover { opacity: 0.7; }
.site-footer__sns-icon { width: 28px; height: 28px; flex-shrink: 0; }
.site-footer__copyright {
  margin-top: 16px;
  color: var(--c-text-light);
  font-size: 12px;
}

/* =========================
   Cards (news / product)
   ========================= */
.card-news {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.card-news:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(15,23,42,.08); opacity: 1; }
a.card-news--link{ color: inherit; text-decoration: none; }
a.card-news--link:hover{ opacity: 1; }
.card-news__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-border);
}
.card-news__thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-news__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 0 auto;
}
.card-news__date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.card-news__date svg { width: 12px; height: 14px; }
.card-news__title {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--c-text);
  margin: 0;
}
.card-news__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text-body);
  margin: 0;
  flex: 1 0 auto;
}
.card-news__more {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  padding-top: 8px;
}

.card-product {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #1a1a1a;
}
.card-product img { width: 100%; height: 100%; object-fit: cover; }
.card-product::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.2) 50%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}
.card-product__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px;
  z-index: 1;
}
.card-product__name {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

/* =========================
   Page hero (sub pages)
   ========================= */
.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 24px;
  background: var(--c-tint-green);
  overflow: hidden;
}
.page-hero--image {
  background: #1a1a1a;
  color: #fff;
}
.page-hero--image::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(rgba(0,0,0,.3), rgba(0,0,0,.5));
  z-index: 1;
}
.page-hero--image .page-hero__inner { position: relative; z-index: 2; }
.page-hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.page-hero__eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--c-primary-dark);
  margin-bottom: 16px;
}
.page-hero--image .page-hero__eyebrow { color: rgba(255,255,255,.85); }
.page-hero__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-text);
}
.page-hero--image .page-hero__title { color: #fff; }
.page-hero__lead {
  margin-top: 16px;
  color: var(--c-text-body);
  font-size: 16px;
}
.page-hero--image .page-hero__lead { color: rgba(255,255,255,.85); }

/* =========================
   Sub hero (image, rounded card — for /about/)
   ========================= */
.sub-hero-wrap {
  /* container（最大1280px）に収めず、トップの .hero-wrap と同様に
     左右に container と同じガターだけ残して画面幅いっぱいに広げる。 */
  width: 100%;
  margin: 0 auto;
  padding: 24px var(--container-pad);
}
.sub-hero {
  position: relative;
  height: 420px;            /* 高さは固定（横幅のみ可変／画像は cover でクロップ） */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 72px 48px;
  text-align: center;
  color: #fff;
  isolation: isolate;
}
.sub-hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.sub-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.55) 100%);
  z-index: -1;
}
.sub-hero__inner {
  max-width: 768px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.sub-hero__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.85);
  margin: 0;
}
.sub-hero__title {
  font-size: 40px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0;
}
.sub-hero__lead {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
}

@media (max-width: 960px){
  .sub-hero { padding: 56px 24px; }
  .sub-hero__title { font-size: 28px; letter-spacing: 0.03em; }
}
@media (max-width: 600px){
  .sub-hero { height: 320px; }
  .sub-hero__title { font-size: 22px; }
}

/* =========================
   Text hero (no image, compact — for /company/, /contact/, /privacy/)
   ========================= */
.text-hero {
  background: var(--c-tint-green);
  padding: 56px 24px;
  text-align: center;
}
.text-hero__inner {
  max-width: 768px;
  margin: 0 auto;
}
.text-hero__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--c-primary-dark);
  margin: 0 0 12px;
}
.text-hero__title {
  font-size: 32px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--c-text);
  margin: 0;
}
.text-hero__lead {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text-body);
}

@media (max-width: 600px){
  .text-hero { padding: 40px 20px; }
  .text-hero__title { font-size: 24px; }
}

/* =========================
   Forms (素のフォーム + Contact Form 7 共通)
   ========================= */
.form-row { margin-bottom: 20px; }
/* CF7 の <p> 単位の段組も同じ余白に */
.wpcf7-form p { margin: 0 0 20px; }
.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 8px;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  color: var(--c-text);
  transition: border-color .2s, box-shadow .2s;
}
.form-row textarea { min-height: 160px; resize: vertical; }
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: 0;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, .15);
}

/* =========================
   Article body (single / privacy)
   ========================= */
.article-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-text-body);
}
.article-body h2 {
  margin: 48px 0 16px;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--c-text);
  padding-left: 16px;
  border-left: 4px solid var(--c-primary);
}
.article-body h3 {
  margin: 32px 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--c-text);
}
.article-body p { margin: 0 0 1em; }
.article-body ul,
.article-body ol { margin: 0 0 1em 1.5em; }
.article-body a { color: var(--c-primary-dark); text-decoration: underline; }

/* =========================
   Utility
   ========================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.grid-product {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-head--row {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  text-align: left;
  max-width: none;
}
.section-head__sub {
  font-size: 16px;
  color: var(--c-text-muted);
}

/* Definition table for company info */
.def-table {
  width: 100%;
  border-top: 1px solid var(--c-border-strong);
}
.def-table > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--c-border-strong);
  font-size: 15px;
}
.def-table dt,
.def-table > div > :first-child {
  color: var(--c-text-muted);
  font-weight: 700;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 960px) {
  :root { --container-pad: 24px; }
  .h-section { font-size: 28px; }
  .grid-3 { grid-template-columns: 1fr; gap: 20px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .grid-product { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }

  .nav-toggle { display: block; }

  /* モバイルのナビをドロップダウンパネル化（常に DOM 上にあり、開閉をアニメーション） */
  .site-header__nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    box-shadow: 0 14px 24px -16px rgba(0,0,0,0.3);
    /* 閉じた状態：透明・少し上にずらして無効化 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    /* 閉じるとき：フェード後に visibility を切り替え（表示中に消えないよう遅延） */
    transition: opacity .28s ease, transform .28s ease, visibility 0s linear .28s;
  }
  .site-header__nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity .28s ease, transform .28s ease, visibility 0s;
  }
  .site-header__nav .global-nav {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
  }

  .section-head--row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .def-table > div { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 600px) {
  .page-hero__title { font-size: 28px; }
  .h-section { font-size: 24px; }
  .grid-4 { grid-template-columns: 1fr; }
  .card-product__body { padding: 14px; }
  .card-product__name { font-size: 16px; }
}

/* =========================================================
   Contact Form 7
   ========================================================= */
.wpcf7 { max-width: none; }

/* Wrap & 入力欄 — base のフォーム入力スタイルを継承 */
.wpcf7-form-control-wrap { display: block; }

/* CF7 が自動付与する各入力タグも同じ見た目に */
.wpcf7-form .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance):not(.wpcf7-checkbox):not(.wpcf7-radio) {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  color: var(--c-text);
  transition: border-color .2s, box-shadow .2s;
}
.wpcf7-form textarea.wpcf7-form-control { min-height: 160px; resize: vertical; }
.wpcf7-form .wpcf7-form-control:focus {
  outline: 0;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, .15);
}

/* ラベル */
.wpcf7-form label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 8px;
}

/* チェックボックス / ラジオ（リスト形式） */
.wpcf7-form .wpcf7-list-item {
  display: inline-flex;
  align-items: center;
  margin: 0 16px 8px 0;
}
.wpcf7-form .wpcf7-list-item-label { font-weight: 400; font-size: 15px; }
.wpcf7-form input[type="checkbox"],
.wpcf7-form input[type="radio"] {
  width: 18px; height: 18px;
  margin-right: 8px;
  accent-color: var(--c-primary);
}

/* 送信ボタン — class:btn class:btn--primary 指定がない場合のフォールバック */
.wpcf7-form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  min-width: 240px;
  padding: 0 36px;
  background: var(--c-primary-deep);
  color: #fff;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform .15s, background .2s, opacity .2s;
}
.wpcf7-form .wpcf7-submit:hover { background: var(--c-primary-dark); transform: translateY(-1px); }
.wpcf7-form .wpcf7-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* 必須バッジを CF7 のラベル横に出すヘルパー（任意で <span class="form-row__req">必須</span> を併用） */
.wpcf7-form .form-row__req {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
  vertical-align: middle;
  letter-spacing: 0.05em;
}
.wpcf7-form .form-row__opt {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  background: var(--c-text-light);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
  vertical-align: middle;
  letter-spacing: 0.05em;
}

/* インラインのバリデーションエラー（各フィールド下） */
.wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  color: #ef4444;
  font-size: 13px;
  font-weight: 500;
}
.wpcf7-form .wpcf7-not-valid {
  border-color: #ef4444 !important;
  background: #fef2f2;
}
.wpcf7-form .wpcf7-not-valid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .15) !important;
}

/* フォーム送信時のレスポンスメッセージ */
.wpcf7 .wpcf7-response-output {
  margin: 24px 0 0 !important;
  padding: 14px 18px !important;
  border-radius: var(--radius-sm) !important;
  border-width: 0 0 0 4px !important;
  border-style: solid !important;
  font-size: 14px;
  line-height: 1.6;
}
.wpcf7 form.sent .wpcf7-response-output {
  background: #ecfdf5;
  border-color: #10b981 !important;
  color: #047857;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  background: #fffbeb;
  border-color: #f59e0b !important;
  color: #92400e;
}
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
  background: #fef2f2;
  border-color: #ef4444 !important;
  color: #b91c1c;
}

/* 送信中スピナー */
.wpcf7 .wpcf7-spinner {
  margin: 0 0 0 12px;
  background-color: var(--c-primary);
}

/* reCAPTCHA v3 バッジが固定で被るのが気になる場合の調整（必要なら） */
/* .grecaptcha-badge { visibility: hidden; } */

/* =========================
   画面遷移アニメーション
   ========================= */
body {
  opacity: 0;
  transition: opacity .5s cubic-bezier(.22, 1, .36, 1);
}
body.show { opacity: 1; }
body.is-leaving {
  opacity: 0;
  transition: opacity .28s ease-in;
}
body > main {
  transform: translateY(14px);
  transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}
body.show > main { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  body,
  body > main {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
