/*
Theme Name: Medic East
Theme URI: https://medic-east.jp/
Author: Medic East
Description: メディックイースト株式会社 コーポレートサイト用テーマ。お問い合わせはテーマ内蔵フォーム（自動返信・Google Chat通知対応）。各セクションは「外観→カスタマイズ」から編集できます。
Version: 1.6.4
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: medic-east
*/

/* ============================================================
   メディックイースト株式会社 - スタイルシート（骨組み）
   メインカラー: ブルー
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --blue:        #1573d4;   /* メインブルー */
  --blue-dark:   #0d4f99;
  --blue-light:  #e8f2fd;
  --blue-pale:   #f4f9ff;
  --accent:      #25c0d6;   /* アクセント（水色） */
  --red:         #e1261c;   /* ロゴの赤・差し色 */
  --red-dark:    #b81d15;
  --text:        #243140;
  --text-light:  #5b6b7b;
  --white:       #ffffff;
  --line:        #e2e8f0;
  --radius:      16px;
  --shadow:      0 12px 30px rgba(21, 115, 212, 0.10);
  --maxw:        1100px;
  --header-h:    70px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Zen Maru Gothic", sans-serif;
  color: var(--text);
  line-height: 1.8;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
/* ダブルタップによる拡大を無効化（ピンチ操作での拡大は可能） */
button, a, input, select, textarea, label {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: 0s;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Layout helpers ---------- */
.container { width: min(var(--maxw), 88%); margin-inline: auto; }

.section { padding: clamp(60px, 9vw, 110px) 0; }
.section.news     { background: var(--white); }
.section.business { background: var(--blue-pale); }
.section.about    { background: var(--white); }
.section.company  { background: var(--blue-pale); }
.section.access   { background: var(--white); }
.section.contact  { background: var(--blue-pale); }

.section-head { text-align: center; margin-bottom: clamp(36px, 5vw, 60px); }
.section-en {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--red);
  font-size: .85rem;
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 500;
  letter-spacing: .03em;
}
.section-head .section-title { padding-bottom: 16px; position: relative; }
.section-head .section-title::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 46px; height: 3px;
  border-radius: 3px;
  background: var(--red);
}
.section-desc { color: var(--text-light); margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 34px;
  border-radius: 999px;
  font-weight: 500;
  font-size: .98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(21, 115, 212, .28);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .8);
}
.btn-outline:hover { background: rgba(255, 255, 255, .15); transform: translateY(-2px); }
.btn-ghost {
  color: var(--blue);
  border-color: var(--blue);
  /* ホバーで青が左から流れ込む */
  background: linear-gradient(90deg, var(--blue) 50%, transparent 50%);
  background-size: 220% 100%;
  background-position: 100% 0;
  transition: background-position .4s cubic-bezier(.2, .7, .2, 1), color .3s ease;
}
.btn-ghost:hover { background-position: 0 0; color: var(--white); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(20, 50, 90, .08);
  z-index: 1000;
}
.header-inner {
  height: 100%;
  width: min(1200px, 92%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: static; /* ハンバーガーは .site-header 基準で配置 */
}
.site-logo img { height: 54px; width: auto; }

.gnav-list { display: flex; align-items: center; gap: 34px; }
.gnav-list a {
  font-weight: 500;
  font-size: 1.06rem;
  position: relative;
  padding: 6px 4px;
  transition: color .25s ease;
}
/* ホバー：中央から広がる上品な下線＋色変化（お問い合わせも同じ） */
.gnav-list a:hover { color: var(--blue); }
.gnav-list a::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  transition: left .3s cubic-bezier(.2, .7, .2, 1), right .3s cubic-bezier(.2, .7, .2, 1);
}
.gnav-list a:hover::after { left: 2px; right: 2px; }

/* Hamburger（青い丸の中に白い三本線） */
.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: none;
  cursor: pointer;
  background: var(--blue);
  border-radius: 50%;
  transition: background .3s ease;
}
.hamburger span {
  display: block;
  height: 2.5px;
  border-radius: 3px;
  background: #fff;
  transition: transform .3s, opacity .3s, width .3s;
}
.hamburger:hover { background: var(--blue-dark); }
.hamburger.is-open { background: var(--blue-dark); }

/* ============================================================
   Hero : 俯瞰ミニチュアの街
   ============================================================ */
/* トップ画面は sticky で固定。下のコンテンツが覆いかぶさり、
   ページ最下部まで進むと自然に隠れる（フッター下に残らない） */
.hero {
  position: sticky;
  top: var(--header-h);
  margin-top: var(--header-h);
  width: 100%;
  height: calc(100vh - var(--header-h));
  overflow: hidden;
  z-index: 0;
  background: linear-gradient(180deg, #dff1ff 0%, #e7f4ee 58%, #eef9f2 100%);
  perspective: 2000px;
}
/* 行き過ぎスクロール（バウンド）時は白地が見えるようにする
   （html の背景が画面外まで描画されるため、トップ画面は覗かない） */
html { background: var(--white); }
/* スクロールすると、下のコンテンツが固定トップ画像の上に重なっていく */
.scroll-content {
  position: relative;
  z-index: 1;
  background: var(--white);
}
/* カスタマイズで設定したトップ画像／動画（未設定ならアニメの街） */
.hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.diorama {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.diorama svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: 50% 50%;
  transform: rotateX(7deg) scale(1.02);
  filter: saturate(1.07) contrast(1.01);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
/* ミニチュアにカーソルを合わせると、少し起き上がって（傾き+3°）ふわっと拡大 */
.diorama:hover svg { transform: rotateX(10deg) scale(1.06); }

/* ティルトシフト風（ミニチュア街ヒーローのみ／Aboutヒーローには適用しない） */
.hero:not(.hero-about)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.5) 7%, transparent 15%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.5) 7%, transparent 15%, transparent 100%);
}
@media (max-width: 768px) {
  .diorama svg { transform: rotateX(6deg) scale(1.1); }
}

/* ============================================================
   Hero =「私たちについて」デザイン
   ============================================================ */
.hero-about {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: none;
}
.hero-about-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  grid-template-areas:
    "phil visual"
    "paras visual";
  column-gap: clamp(28px, 5vw, 64px);
  row-gap: clamp(14px, 2vw, 26px);
  align-items: center;
}
.ha-phil   { grid-area: phil; }
.ha-visual { grid-area: visual; align-self: center; }
.ha-paras  { grid-area: paras; }

.ha-phil .about-philosophy {
  font-size: clamp(1.9rem, 4.6vw, 3.2rem);
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.4;
  color: var(--text);
}
.ha-phil .about-yomi {
  display: block;
  margin-top: 12px;
  color: var(--blue);
  font-size: clamp(.85rem, 1.6vw, 1rem);
  letter-spacing: .12em;
}
.ha-paras p { color: var(--text-light); line-height: 1.9; font-size: clamp(.9rem, 1.5vw, 1rem); }
.ha-paras p + p { margin-top: 14px; }

/* 右のイラストを大きめに */
.hero-about .about-illust { width: min(100%, 500px); margin-inline: auto; }

/* 画面遷移時の順次表示（ゆっくり） */
.hero-about .seq {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1);
}
.hero-about.is-in .seq { opacity: 1; transform: none; }
.hero-about.is-in .seq-1 { transition-delay: .15s; }
.hero-about.is-in .seq-2 { transition-delay: .95s; }
.hero-about.is-in .seq-3 { transition-delay: 1.75s; }
.hero-about.is-in .seq-4 { transition-delay: 2.45s; }
@media (prefers-reduced-motion: reduce) {
  .hero-about .seq { opacity: 1; transform: none; transition: none; }
}

/* スマホ：理念は左に縦書き／右にイラスト／下に本文（横書き） */
@media (max-width: 768px) {
  .hero-about-inner {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "phil visual"
      "paras paras";
    column-gap: 14px;
    row-gap: 6px;
    align-items: center;
  }
  .ha-phil {
    writing-mode: vertical-rl;
    justify-self: start;
    align-self: center;
  }
  .ha-phil .about-philosophy { font-size: clamp(1.7rem, 8.5vw, 2.4rem); letter-spacing: .16em; line-height: 1.4; }
  .ha-phil .about-yomi { margin: 0 10px 0 0; font-size: .82rem; letter-spacing: .16em; }
  .ha-visual { align-self: start; margin-top: 16px; }
  .hero-about .about-illust { width: min(100%, 220px); }
  /* スクロール進捗バーはスマホでは非表示 */
  .scroll-progress { display: none; }
  .ha-paras { margin-top: -6px; }
  .ha-paras p { font-size: .85rem; line-height: 1.78; }
  .ha-paras p + p { margin-top: 10px; }
}

/* 太陽（CSS・アニメーション付き） */
.hero-sun {
  position: absolute;
  top: calc(var(--header-h) + 10px);
  right: 5%;
  width: 92px; height: 92px;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 0 16px rgba(255, 206, 107, .65));
}
.hero-sun .sun-rays { transform-box: fill-box; transform-origin: center; animation: spin 26s linear infinite; }
.hero-sun .sun-core { transform-box: fill-box; transform-origin: center; animation: sunPulse 4s ease-in-out infinite; }
@keyframes sunPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.08); opacity: .92; }
}
@media (max-width: 768px) {
  .hero-sun { width: 64px; height: 64px; right: 6%; }
}

/* --- ミニチュアの動き --- */
.cloud  { animation: drift 60s linear infinite; }
.cloud2 { animation-duration: 80s; }
.cloud3 { animation-duration: 95s; }
@keyframes drift {
  from { transform: translateX(-120px); }
  to   { transform: translateX(1320px); }
}

.bob  { animation: bob 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bob2 { animation: bob 2.4s ease-in-out infinite .6s; transform-box: fill-box; transform-origin: center; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

.note {
  transform-box: fill-box;
  transform-origin: center;
  animation: noteUp 3s ease-in infinite;
  opacity: 0;
}
.note.n2 { animation-delay: 1s; }
.note.n3 { animation-delay: 2s; }
@keyframes noteUp {
  0%   { transform: translateY(0) scale(.7); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateY(-46px) scale(1); opacity: 0; }
}

.spot { animation: sweep 5s ease-in-out infinite; transform-box: fill-box; }
@keyframes sweep {
  0%, 100% { transform: rotate(-12deg); }
  50%      { transform: rotate(12deg); }
}

.rec { animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: .15; } }

.crane { animation: craneSwing 6s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom left; }
@keyframes craneSwing {
  0%, 100% { transform: rotate(-2deg); }
  50%      { transform: rotate(2deg); }
}

.sway { animation: sway 4s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom center; }
@keyframes sway {
  0%, 100% { transform: rotate(-3deg); }
  50%      { transform: rotate(3deg); }
}

.balloon { animation: bob 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

.blades { animation: spin 5s linear infinite; transform-box: fill-box; transform-origin: center; }
.ferris { animation: spin 18s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .cloud, .bob, .bob2, .note, .spot, .rec, .crane, .sway, .balloon, .blades, .ferris { animation: none; }
}

/* スクロール誘導 */
.scroll-cue {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(13, 79, 153, .55);
  border-radius: 16px;
  z-index: 5;
}
.scroll-cue span {
  position: absolute;
  left: 50%; top: 9px;
  width: 5px; height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--blue-dark);
  animation: cueMove 1.6s ease-in-out infinite;
}
@keyframes cueMove {
  0%   { opacity: 0; transform: translateY(0); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(16px); }
}

/* ============================================================
   About
   ============================================================ */
.about-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.about-lead {
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 22px;
}
.about-text p { margin-bottom: 18px; color: var(--text-light); }
.about-sign { font-weight: 500; color: var(--text); }
.about-image { position: relative; }
.about-photo {
  aspect-ratio: 4 / 3.4;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--blue));
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}
.about-image::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 3px solid var(--blue-light);
  border-radius: var(--radius);
  z-index: -1;
}

/* ============================================================
   Stats
   ============================================================ */
.stats { background: var(--white); padding: clamp(40px, 6vw, 64px) 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-item {
  text-align: center;
  padding: 26px 14px;
  border-radius: var(--radius);
  background: var(--blue-pale);
}
.stat-num {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 500;
  color: var(--blue);
  line-height: 1;
}
.stat-unit {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--blue);
  margin-left: 2px;
}
.stat-label { margin-top: 12px; color: var(--text-light); font-size: .92rem; }

/* ============================================================
   Service
   ============================================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 26px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(21, 115, 212, .16); }
.service-icon {
  width: 70px; height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  font-weight: 500;
}
.service-card-title {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 12px;
}
.service-card p { color: var(--text-light); font-size: .95rem; }

/* ============================================================
   Feature
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-item {
  position: relative;
  padding: 40px 30px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.feature-num {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--blue);
  opacity: .25;
  line-height: 1;
}
.feature-item h3 { font-size: 1.2rem; margin: 12px 0 12px; }
.feature-item p { color: var(--text-light); font-size: .95rem; }

/* ============================================================
   Company table
   ============================================================ */
.company-table {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  border-collapse: collapse;
  background: none;
}
.company-table th,
.company-table td {
  text-align: left;
  padding: 24px 12px;
  border-bottom: 1px solid rgba(21, 115, 212, .28);
  font-size: 1.02rem;
  line-height: 1.7;
  vertical-align: top;
}
.company-table th {
  width: 32%;
  background: none;
  color: var(--blue);
  font-weight: 500;
  letter-spacing: .04em;
  white-space: nowrap;
}
.company-table td { color: var(--text); background: none; }

/* ============================================================
   Recruit
   ============================================================ */
.recruit-card {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: clamp(20px, 4vw, 32px);
  padding: clamp(40px, 6vw, 70px);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.recruit-text .section-en { color: #b9eefc; }
.recruit-text .section-title { color: var(--white); }
.recruit-text p { margin-top: 16px; opacity: .95; }
.recruit-card .btn-primary { background: var(--white); color: var(--blue-dark); }
.recruit-card .btn-primary:hover { background: var(--blue-light); }

/* ============================================================
   Contact
   ============================================================ */
.contact-wrap {
  max-width: 720px;
  margin-inline: auto;
}
.contact-tel {
  text-align: center;
  margin-bottom: 44px;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-label { color: var(--text-light); font-size: .92rem; margin-bottom: 6px; }
.contact-number {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 500;
  color: var(--blue);
  letter-spacing: .04em;
}
.contact-form {
  background: var(--white);
  padding: clamp(28px, 5vw, 44px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 22px; }
.form-row label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: .95rem;
}
.form-row label span {
  background: var(--red);
  color: var(--white);
  font-size: .7rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--blue-pale);
  transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 115, 212, .15);
  background: var(--white);
}
.form-submit { text-align: center; margin-top: 10px; }

/* ============================================================
   Gallery slider
   ============================================================ */
.section.gallery { background: var(--white); overflow: hidden; }
.slider {
  position: relative;
  width: min(var(--maxw), 92%);
  margin: 0 auto;
}
.slider-track {
  display: flex;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}
.slide {
  flex: 0 0 100%;
  padding: 0 10px;
}
.slide-img {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--blue-dark));
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}
.slide-cap {
  text-align: center;
  margin-top: 18px;
  font-weight: 500;
  color: var(--text);
}
.slider-btn {
  position: absolute;
  top: calc(50% - 30px);
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--blue);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(4, 30, 66, .18);
  transition: background .2s, color .2s, transform .2s;
  z-index: 2;
}
.slider-btn:hover { background: var(--blue); color: var(--white); }
.slider-btn.prev { left: -6px; }
.slider-btn.next { right: -6px; }
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.slider-dots button {
  width: 10px; height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.slider-dots button.active { background: var(--blue); transform: scale(1.3); }

/* ============================================================
   Page top
   ============================================================ */
.pagetop {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 48px; height: 48px;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(21, 115, 212, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s, background .2s;
  z-index: 900;
}
.pagetop.is-visible { opacity: 1; visibility: visible; transform: none; }
.pagetop:hover { background: var(--blue-dark); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 1;
  background: #eef1f4;
  color: var(--text-light);
  padding: 56px 0 24px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid #dbe0e6;
}
.footer-logo { height: 42px; margin-bottom: 14px; }
.footer-brand p { font-size: .9rem; color: var(--text-light); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 26px; }
.footer-nav a { font-size: .92rem; color: var(--text); transition: color .2s; }
.footer-nav a:hover { color: var(--blue); }
.copyright {
  text-align: center;
  margin-top: 24px;
  font-size: .82rem;
  color: var(--text-light);
  opacity: .8;
}

/* ============================================================
   News
   ============================================================ */
.news-list {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.news-item {
  display: grid;
  grid-template-columns: 130px 96px 1fr;
  align-items: center;
  gap: 18px;
  padding: 22px 6px;
  border-bottom: 1px solid var(--line);
}
.news-item time {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 500;
  color: var(--text-light);
  font-size: .92rem;
}
.news-tag {
  justify-self: start;
  background: var(--red);
  color: #fff;
  font-size: .76rem;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.news-tag.tag-event   { background: var(--blue); }
.news-tag.tag-recruit { background: #f2a93b; }
.news-item a {
  font-weight: 500;
  transition: color .2s;
}
.news-item a:hover { color: var(--blue); }
.news-more { text-align: center; margin-top: 36px; }

/* ============================================================
   Business
   ============================================================ */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.biz-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 22px 30px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.biz-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(21, 115, 212, .16); }
.biz-illust { border-radius: 12px; overflow: hidden; margin-bottom: 22px; }
.biz-illust svg { width: 100%; height: auto; display: block; }
.biz-name {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 14px;
  padding-left: 14px;
  position: relative;
}
.biz-name::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 1.1em;
  border-radius: 3px;
  background: var(--red);
}
.biz-text { color: var(--text-light); font-size: .96rem; }

/* View More タブ */
.biz-card { display: flex; flex-direction: column; }
.biz-text { flex: 1; }
.biz-more {
  align-self: center;
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border: 2px solid var(--red);
  border-radius: 999px;
  color: var(--red);
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .02em;
  /* ホバーで赤が左から流れ込む */
  background: linear-gradient(90deg, var(--red) 50%, transparent 50%);
  background-size: 220% 100%;
  background-position: 100% 0;
  transition: background-position .4s cubic-bezier(.2, .7, .2, 1), color .3s ease;
}
.biz-more span { transition: transform .2s; }
.biz-more:hover { background-position: 0 0; color: #fff; }
.biz-more:hover span { transform: translateX(4px); }

/* ============================================================
   About / 理念
   ============================================================ */
.section.about { position: relative; overflow: hidden; }
.about-watermark {
  position: absolute;
  top: 50%; right: -4%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: clamp(8rem, 26vw, 22rem);
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--blue);
  opacity: .04;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}
.about .container { position: relative; z-index: 1; }
.about-body {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(34px, 6vw, 72px);
  align-items: center;
}
.about-text .section-en { text-align: left; }
.about-text .section-title { text-align: left; margin-bottom: 26px; }
.about-philosophy {
  font-size: clamp(1.8rem, 4.4vw, 2.6rem);
  font-weight: 500;
  color: var(--text);
  letter-spacing: .1em;
  line-height: 1.4;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--blue-light);
}
.about-yomi {
  display: block;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--blue);
  margin-top: 10px;
}
.about-text p { color: var(--text-light); margin-bottom: 16px; line-height: 1.95; }
.note-edit { color: #b0bcc9; font-size: .82rem; }

.about-visual { display: flex; justify-content: center; }
.about-illust {
  position: relative;
  width: min(100%, 420px);
  border-radius: 46% 54% 62% 38% / 48% 40% 60% 52%;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(21, 115, 212, .18);
  background: #eaf7ff;
  animation: blobMorph 14s ease-in-out infinite;
}
@keyframes blobMorph {
  0%, 100% { border-radius: 46% 54% 62% 38% / 48% 40% 60% 52%; }
  33%      { border-radius: 60% 40% 38% 62% / 56% 58% 42% 44%; }
  66%      { border-radius: 38% 62% 56% 44% / 62% 46% 54% 38%; }
}
.about-illust::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  border: 8px solid #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.about-illust svg { display: block; width: 100%; height: auto; }
@media (prefers-reduced-motion: reduce) {
  .about-illust { animation: none; }
}

/* ============================================================
   下層ページ（事業詳細）
   ============================================================ */
.page-hero {
  margin-top: var(--header-h);
  background:
    radial-gradient(circle at 85% 25%, rgba(37, 192, 214, .25), transparent 45%),
    linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  padding: clamp(48px, 8vw, 86px) 0;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.10) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .breadcrumb {
  font-size: .85rem;
  opacity: .9;
  margin-bottom: 14px;
}
.page-hero .breadcrumb a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.page-hero .page-en {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 500;
  letter-spacing: .14em;
  color: #ffd2cd;
  font-size: .9rem;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4.6vw, 2.8rem);
  font-weight: 500;
  margin-top: 8px;
}
.detail-lead {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  font-weight: 500;
  color: var(--blue-dark);
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(36px, 5vw, 54px);
  line-height: 1.9;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.detail-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--red);
}
.detail-item h3 { font-size: 1.15rem; margin-bottom: 12px; }
.detail-item p { color: var(--text-light); font-size: .95rem; }
.detail-back { text-align: center; margin-top: clamp(40px, 6vw, 60px); }

/* ============================================================
   個人情報保護方針ページのヘッダー
   ============================================================ */
/* 背景画像の帯。見出し（英字ラベル・タイトル・赤い線）は帯の上に表示。
   背景は固定ヘッダーの背後まで伸ばして隙間をなくす */
.page-head {
  padding-top: calc(var(--header-h) + clamp(44px, 6vw, 78px));
  padding-bottom: clamp(44px, 6vw, 78px);
  background: linear-gradient(180deg, #dff1ff 0%, #e7f4ee 58%, #eef9f2 100%);
  background-size: cover;
  background-position: center;
  text-align: center;
}
.page-head .section-head { margin-bottom: 0; }
.page-head .section-en { color: var(--red); }
.page-head .section-title { color: var(--text); }
.page-head-date { margin-top: 16px; color: var(--text-light); font-size: .88rem; letter-spacing: .06em; }

/* ============================================================
   会社概要：上=テキスト／下=地図
   ============================================================ */
.company-body { max-width: 760px; margin-inline: auto; }
.company-body .company-table { max-width: none; margin: 0; }
.company-map {
  margin-top: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
}
.company-map iframe { display: block; width: 100%; height: 360px; }
@media (max-width: 640px) {
  .company-map iframe { height: 300px; }
}

/* ============================================================
   スクロール進捗バー & ホバーの動き
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue));
  z-index: 1100;
  will-change: transform;
}

/* ============================================================
   オープニング（ロゴ → トップ画面）
   ============================================================ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 46%, #ffffff 0%, #eef8ff 45%, #e3f1fb 100%);
}
.intro-stage {
  position: relative;
  width: min(48vw, 210px);
  aspect-ratio: 600 / 480;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 後光（ふわっと脈動する光） */
.intro-halo {
  position: absolute;
  width: 150%; height: 150%;
  left: -25%; top: -25%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 200, 240, .55), rgba(120, 200, 240, 0) 62%);
  filter: blur(18px);
  animation: haloPulse 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes haloPulse {
  0%, 100% { transform: scale(.86); opacity: .45; }
  50%      { transform: scale(1.12); opacity: .9; }
}
/* エンブレム本体：幻想的に出現 */
.intro-emblem {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transform-origin: center 60%;
  animation: emblemIn 1.6s cubic-bezier(.2, .7, .2, 1) forwards;
}
@keyframes emblemIn {
  0%   { opacity: 0; transform: scale(.5) rotate(-14deg); filter: blur(18px) brightness(2.1); }
  55%  { opacity: 1; transform: scale(1.06) rotate(2deg); filter: blur(0) brightness(1.2); }
  100% { opacity: 1; transform: scale(1) rotate(0); filter: blur(0) brightness(1); }
}
.intro-emblem .em-rays { transform-box: view-box; transform-origin: 300px 332px; animation: emRayTurn 22s linear infinite; }
@keyframes emRayTurn { to { transform: rotate(8deg); } }
.intro-emblem .em-flames { animation: emFlicker 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center bottom; }
@keyframes emFlicker { 0%, 100% { opacity: 1; } 50% { opacity: .92; transform: scaleY(1.015); } }

/* きらめき */
.spark {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  animation: twinkle 2.4s ease-in-out infinite;
  pointer-events: none;
}
.spark.s1 { top: 6%;  left: 18%; animation-delay: .3s; }
.spark.s2 { top: 16%; left: 78%; animation-delay: .9s; transform: scale(.7); }
.spark.s3 { top: 60%; left: 8%;  animation-delay: 1.4s; transform: scale(.9); }
.spark.s4 { top: 72%; left: 86%; animation-delay: .6s; transform: scale(.6); }
.spark.s5 { top: 30%; left: 50%; animation-delay: 1.8s; transform: scale(.5); }
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.4); }
  50%      { opacity: 1; transform: scale(1); }
}

/* 退場：光に溶けて消える → トップが現れる */
.intro.is-done {
  animation: introOut 1s ease forwards;
  pointer-events: none;
}
@keyframes introOut {
  0%   { opacity: 1; }
  100% { opacity: 0; transform: scale(1.06); visibility: hidden; }
}
.intro.is-done .intro-emblem { animation: emblemOut .85s ease forwards; }
@keyframes emblemOut {
  to { opacity: 0; transform: scale(1.7); filter: blur(22px) brightness(2.4); }
}
.intro.is-done .intro-halo { animation: haloBurst .85s ease forwards; }
@keyframes haloBurst {
  to { transform: scale(3.2); opacity: 0; background: radial-gradient(circle, rgba(255, 255, 255, .95), transparent 60%); }
}

/* オープニング中はスクロールを止める */
body.intro-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  body.intro-lock { overflow: auto; }
}


/* ロゴ */


/* お知らせ行 */
.news-item { transition: background .25s, transform .25s, padding-left .25s; border-radius: 8px; }
.news-item:hover { background: var(--blue-pale); transform: translateX(4px); padding-left: 14px; }

/* 事業カードのイラストを軽くズーム */
.biz-illust svg { transition: transform .4s ease; }
.biz-card:hover .biz-illust svg { transform: scale(1.06); }

/* 詳細ページのカード */
.detail-item { transition: transform .25s, box-shadow .25s; }
.detail-item:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(21, 115, 212, .16); }

/* 私たちについての円形イラスト */
.about-illust { transition: transform .5s ease; }
.about-illust:hover { transform: rotate(-2deg) scale(1.02); }

/* マップ */
.company-map { transition: box-shadow .3s, transform .3s; }
.company-map:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(21, 115, 212, .16); }

/* select の体裁を input に合わせる */
.form-row select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--blue-pale);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231573d4' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.form-row select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 115, 212, .15);
  background-color: var(--white);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .biz-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .about-body { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .site-logo img { height: 44px; }

  /* Nav -> drawer（おしゃれ版） */
  /* ハンバーガー：右上の青い角丸パネル。帯から少し下にはみ出す */
  /* 青い丸。ヘッダーの帯の中央に配置 */
  .hamburger {
    display: flex;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px; height: 42px;
    padding: 0;
    box-shadow: 0 4px 12px rgba(21, 115, 212, .3);
  }
  .hamburger span { width: 20px; }
  .hamburger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .hamburger.is-open span:nth-child(2) { opacity: 0; }
  .hamburger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  /* ドロワーはヘッダー直下から少し離して表示 */
  .gnav { inset: calc(var(--header-h) + 8px) 12px auto 12px; }
  .gnav {
    position: fixed;
    inset: var(--header-h) 12px auto 12px;
    background: #ffffff;
    box-shadow: 0 22px 44px rgba(20, 50, 90, .18);
    border: 1px solid var(--line);
    border-radius: 22px;
    transform: translateY(-16px) scale(.98);
    opacity: 0;
    visibility: hidden;
    transition: transform .45s cubic-bezier(.34, 1.4, .5, 1), opacity .3s ease, visibility .45s;
    padding: 12px;
    overflow: hidden;
  }
  .gnav.is-open { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }
  .gnav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .gnav-list li {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .4s ease, transform .5s cubic-bezier(.34, 1.4, .5, 1);
  }
  .gnav.is-open .gnav-list li { opacity: 1; transform: none; }
  .gnav.is-open .gnav-list li:nth-child(1) { transition-delay: .06s; }
  .gnav.is-open .gnav-list li:nth-child(2) { transition-delay: .12s; }
  .gnav.is-open .gnav-list li:nth-child(3) { transition-delay: .18s; }
  .gnav.is-open .gnav-list li:nth-child(4) { transition-delay: .24s; }
  .gnav.is-open .gnav-list li:nth-child(5) { transition-delay: .30s; }
  .gnav.is-open .gnav-list li:nth-child(6) { transition-delay: .36s; }
  .gnav-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 18px;
    font-size: 1.02rem;
    font-weight: 500;
    border-radius: 14px;
    transition: background .2s ease, color .2s ease, padding-left .2s ease;
  }
  .gnav-list a::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--blue);
    flex: none;
    opacity: .35;
    transition: opacity .2s, transform .2s;
  }
  .gnav-list a::after { display: none; }
  .gnav-list a:hover,
  .gnav-list a:active {
    background: var(--blue-light);
    color: var(--blue-dark);
    padding-left: 22px;
  }
  .gnav-list a:hover::before { opacity: 1; transform: scale(1.25); }

  .news-item { grid-template-columns: auto 1fr; row-gap: 2px; }
  .news-item a { grid-column: 1 / -1; }

  .company-table th { width: 34%; padding: 16px; }
  .company-table td { padding: 16px; }
}

@media (max-width: 520px) {
  .hero { height: 88vh; }
  .company-table,
  .company-table tbody,
  .company-table tr,
  .company-table th,
  .company-table td { display: block; width: 100%; }
  .company-table th { border-bottom: none; padding-bottom: 4px; }
  .company-table td { padding-top: 4px; }
}

/* ============================================================
   WordPress 用追記（事業カード画像・詳細本文・投稿）
   ============================================================ */
.biz-illust img { width: 100%; height: auto; display: block; }
.biz-card:hover .biz-illust img { transform: scale(1.06); }
.biz-illust img { transition: transform .4s ease; }
.detail-body { max-width: 820px; margin: 0 auto; color: var(--text-light); line-height: 1.95; }
.detail-body > * + * { margin-top: 1em; }
.detail-body h2 { font-size: 1.5rem; font-weight: 500; color: var(--text); margin-top: 1.6em; }
.detail-body h3 { font-size: 1.2rem; font-weight: 500; color: var(--text); margin-top: 1.4em; padding-left: 14px; border-left: 5px solid var(--red); }
.detail-body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.detail-body a { color: var(--blue); text-decoration: underline; }
.news-pagination { text-align: center; margin-top: 40px; }
.news-pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 3px; border-radius: 8px; background: var(--white); color: var(--blue); box-shadow: var(--shadow); }
.news-pagination .page-numbers.current { background: var(--blue); color: #fff; }
.biz-empty { text-align: center; color: var(--text-light); grid-column: 1 / -1; }

/* ============================================================
   Contact Form 7（CF7）をサイトデザインに合わせる
   ============================================================ */
.wpcf7 { max-width: 720px; margin: 0 auto; }
.wpcf7 p { margin: 0; }
.wpcf7-form .form-row { margin-bottom: 22px; }
.wpcf7-form label { display: block; font-weight: 500; margin-bottom: 8px; font-size: .95rem; }
.wpcf7-form .wpcf7-form-control-wrap { display: block; margin-top: 8px; }

/* 入力欄 */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="number"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--blue-pale);
  transition: border-color .2s, box-shadow .2s;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 115, 212, .15);
  background: var(--white);
}

/* 送信ボタン（青枠・青文字・中は白／ホバーで青が左から流れ込み白文字に） */
.wpcf7-form .wpcf7-submit,
.wpcf7-form input[type="submit"],
.wpcf7-form button[type="submit"] {
  display: block;
  margin: 12px auto 0;
  cursor: pointer;
  font-family: inherit;
  background-image: linear-gradient(90deg, var(--blue) 50%, #ffffff 50%) !important;
  background-size: 220% 100% !important;
  background-position: 100% 0 !important;
  color: var(--blue) !important;
  border: 2px solid var(--blue) !important;
  padding: 14px 46px !important;
  border-radius: 999px !important;
  font-weight: 500;
  font-size: 1rem;
  transition: background-position .4s cubic-bezier(.2, .7, .2, 1), color .3s ease;
  -webkit-appearance: none;
  appearance: none;
}
.wpcf7-form .wpcf7-submit:hover,
.wpcf7-form input[type="submit"]:hover,
.wpcf7-form button[type="submit"]:hover { background-position: 0 0 !important; color: #fff !important; }

/* CF7の入力欄を包むspanは装飾しない（左右の赤バー対策） */
.wpcf7-form .wpcf7-form-control-wrap {
  display: block;
  background: none !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 8px 0 0 !important;
  color: inherit !important;
}

/* 必須バッジ（包みspanは除外して、純粋な<span>必須</span>だけ赤に） */
.wpcf7-form label > span:not(.wpcf7-form-control-wrap) {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: .7rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin: 0 6px;
  vertical-align: middle;
}

/* 送信ボタン下のメッセージ：四角い囲みなし・文字だけ */
.wpcf7 .wpcf7-response-output {
  border: none !important;
  background: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 16px 0 0 !important;
  text-align: center;
  font-weight: 500;
  font-size: .95rem;
}
/* エラーは赤字、送信成功は緑字 */
.wpcf7 .wpcf7-response-output.wpcf7-validation-errors,
.wpcf7 .wpcf7-response-output.wpcf7-acceptance-missing { color: var(--red) !important; }
.wpcf7 .wpcf7-response-output.wpcf7-mail-sent-ok { color: #1a8f5a !important; }
/* 各項目の入力漏れ表示：赤字で分かりやすい文言に差し替え（既定のバナー文言は隠す） */
.wpcf7-form .wpcf7-not-valid-tip {
  display: block;
  color: var(--red);
  font-weight: 500;
  font-size: .82rem;
  margin-top: 6px;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  /* 既定メッセージのテキストを隠す */
  font-size: 0;
}
.wpcf7-form .wpcf7-not-valid-tip::before {
  content: "必須項目に記入もれがあります。";
  font-size: .82rem;
}
.wpcf7-form .wpcf7-not-valid { border-color: var(--red) !important; }
.wpcf7-spinner { margin: 0 0 0 12px; }

/* カスタマイズで設定した画像のフィット */
.about-illust img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.biz-illust img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ============================================================
   お問い合わせ（テーマ自作フォーム）
   ============================================================ */
.cform-error { display: block; color: var(--red); font-size: .82rem; font-weight: 500; margin-top: 6px; }
.cform-error[hidden] { display: none; }
.form-row input.is-invalid,
.form-row textarea.is-invalid,
.form-row select.is-invalid { border-color: var(--red); background: #fff5f4; }
.cform-result { text-align: center; font-weight: 500; margin: 34px 0 0; }
.cform-result.is-success { color: var(--text); }
.cform-result.is-error { color: var(--red); }
.cform .form-submit { text-align: center; margin-top: 8px; }

/* お問い合わせフォーム：送信結果メッセージ・送信中の状態 */
.cform-result[hidden] { display: none; }
.wpcf7-form .wpcf7-submit[disabled],
.cform [type="submit"][disabled] { opacity: .6; cursor: default; }
