/**
 * 共通スタイル（内部ページ用）
 * 背景・ヘッダー・メイン・セクション・テーブル・HBメニュー
 * ※背景周りにエラーがある場合は次回以降 parts/ で分離・修正する
 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: 'IBM Plex Sans JP', sans-serif;
  background: linear-gradient(180deg, #f8f9ff 0%, #f0f2ff 50%, #e8ebff 100%);
  min-height: 100vh;
  color: #364153;
  overflow-x: hidden;
  position: relative;
}

/* p タグの本文サイズ（サイト全体で統一・小さめの基準） */
body.boatrace-page p {
  font-size: 18px;
  line-height: 1.7;
  color: #364153;
}

/* hr の上下マージン（0.8em相当・px指定） */
hr {
  margin-top: 13px;
  margin-bottom: 13px;
}

/* ===== 共通コンテナ（表示領域） ===== */
.site-main {
  padding-top: 81px;
  position: relative;
  z-index: 1;
}

/* 共通コンテナ内では子要素の header 用 padding を重複させない */
.site-main .main-container {
  padding-top: 0;
}

/* ===== 背景装飾 ===== */
.bg-decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  animation: bg-breathe 10s ease-in-out infinite;
  transform-origin: left bottom;
  will-change: transform;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
}

.bg-blob-1 {
  width: 1325px;
  height: 4249px;
  background: linear-gradient(180deg, #292668, #4a4b99);
  filter: blur(64px);
  opacity: 0.31;
  left: -1738px;
  top: -2050px;
  transform: rotate(34deg);
}

.bg-blob-2 {
  width: 1402px;
  height: 4497px;
  background: linear-gradient(180deg, #5151ca, #292668);
  filter: blur(64px);
  opacity: 0.33;
  left: -1008px;
  top: 1770px;
  transform: rotate(49deg);
}

.bg-blob-3 {
  width: 605px;
  height: 605px;
  background: linear-gradient(180deg, #7171e8, #5151ca);
  filter: blur(64px);
  opacity: 0.23;
  left: 374px;
  top: 917px;
}

.bg-blob-4 {
  width: 545px;
  height: 545px;
  background: linear-gradient(180deg, #292668, #7171e8);
  filter: blur(40px);
  opacity: 0.27;
  left: 301px;
  top: 2071px;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
}

.bg-circle-1 {
  width: 1161px;
  height: 1161px;
  left: -215px;
  top: 304px;
  border: 4px solid rgba(41, 38, 104, 0.4);
  opacity: 0.28;
}

.bg-circle-2 {
  width: 959px;
  height: 959px;
  left: 1px;
  top: 700px;
  border: 4px solid rgba(81, 81, 202, 0.4);
  opacity: 0.24;
}

.bg-circle-3 {
  width: 682px;
  height: 682px;
  left: 255px;
  top: 1134px;
  border: 4px solid rgba(41, 38, 104, 0.4);
  opacity: 0.14;
}

.bg-square {
  position: absolute;
  border-radius: 14px;
  filter: blur(15px);
  background: linear-gradient(180deg, #292668, #5151ca);
  opacity: 0.15;
}

.bg-square-1  { width: 150px; height: 150px; left: 1027px; top: 206px; }
.bg-square-2  { width: 165px; height: 165px; left: 76px;   top: 2886px; }
.bg-square-3  { width: 180px; height: 180px; left: 703px;  top: 2023px; }
.bg-square-4  { width: 195px; height: 195px; left: 1123px; top: 2701px; }
.bg-square-5  { width: 210px; height: 210px; left: 844px;  top: 2375px; }
.bg-square-6  { width: 225px; height: 225px; left: 394px;  top: 2374px; }
.bg-square-7  { width: 240px; height: 240px; left: 813px;  top: 1863px; }
.bg-square-8  { width: 255px; height: 255px; left: 892px;  top: 313px; }
.bg-square-9  { width: 270px; height: 270px; left: 368px;  top: 1333px; }

.bg-small-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(180deg, #5151ca, #7171e8);
  filter: blur(40px);
  opacity: 0.15;
}

.bg-small-circle-1 { width: 268px; height: 268px; left: 827px; top: 760px; }
.bg-small-circle-2 { width: 277px; height: 277px; left: 659px; top: 1334px; }
.bg-small-circle-3 { width: 265px; height: 265px; left: 502px; top: 1919px; }
.bg-small-circle-4 { width: 300px; height: 300px; left: 322px; top: 2480px; }
.bg-small-circle-5 { width: 350px; height: 350px; left: 134px; top: 3034px; }

/* ===== ヘッダー（共通） ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 81px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 0.8px solid rgba(41, 38, 104, 0.1);
  box-shadow: 0px 10px 15px 0px rgba(0, 0, 0, 0.1), 0px 4px 6px 0px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.site-header__logo-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
  object-fit: cover;
}

.site-header__logo-text {
  font-family: 'Noto Serif JP', serif;
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.75px;
  background: linear-gradient(180deg, #292668 0%, #5151ca 50%, #7171e8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  text-decoration: none;
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-header__menu {
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  cursor: pointer;
  border: none;
  background: none;
  border-radius: 14px;
}

.site-header__menu span {
  display: block;
  height: 2.67px;
  background: #292668;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.site-header__menu {
  position: relative;
  z-index: 210;
}

body.menu-open .site-header__menu span:nth-child(1) {
  transform: translateY(calc(8px + 2.67px / 2)) rotate(45deg);
}

body.menu-open .site-header__menu span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

body.menu-open .site-header__menu span:nth-child(3) {
  transform: translateY(calc(-8px - 2.67px / 2)) rotate(-45deg);
}

/* ===== フッター（共通） ===== */
.site-footer {
  background: rgba(255, 255, 255, 0.5);
  border-top: 0.8px solid rgba(41, 38, 104, 0.1);
  padding: 21px 0;
  margin-top: 24px;
}

.site-footer__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.site-footer__link {
  font-family: 'IBM Plex Sans JP', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #4a5565;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer__link:hover {
  color: #292668;
  text-decoration: none;
}

/* ===== メインコンテンツ ===== */
.main {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding-bottom: 32px;
}

.content {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 40px 40px;
  text-align: left;
}

/* タイトル帯があるページはヘッダー直下に密着（中身の上余白を消す） */
.content:has(.page-title) {
  padding-top: 0;
}

/* 広めのレイアウト用（2x2グリッド・横並びカード等） */
.content-wide {
  max-width: 1240px;
  padding: 40px 40px 40px;
}

/* ===== 固定ページ本文（汎用テンプレ以外の .entry-content） ===== */
/* `* { margin: 0 }` がコアの見出し・段落余白を消すため、直接の子だけ戻す */
.entry-content:not(.entry-content--hanyo) > p {
  margin: 0.9em 0;
}
.entry-content:not(.entry-content--hanyo) > p:first-child { margin-top: 0; }
.entry-content:not(.entry-content--hanyo) > p:last-child { margin-bottom: 0; }
.entry-content:not(.entry-content--hanyo) > :where(h1, h2, h3, h4, h5, h6):not(.boat-title) {
  margin: 1.6em 0 0.7em;
}
.entry-content:not(.entry-content--hanyo) > :where(h1, h2, h3, h4, h5, h6):not(.boat-title):first-child {
  margin-top: 0;
}

/* ===== 検定本文化用（kentei-honbun） ===== */
.kentei-honbun {
  margin: 2.5em 0;
}
.kentei-honbun p {
  font-family: 'IBM Plex Sans JP', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.8;
  color: #364153;
  margin: 1.2em 0;
}
.kentei-honbun p:first-child { margin-top: 0; }
.kentei-honbun p:last-child { margin-bottom: 0; }

.kentei-honbun h2 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 19px; /* 22px*0.85 2行防止 */
  margin: 1.5em 0 0.8em;
  color: #292668;
}

.kentei-honbun b,
.kentei-honbun strong {
  font-size: 1.12em;
  font-weight: 700;
  color: #292668;
}

/* ===== 和文用白抜き領域（kentei-mokuteki-card と同じデザイン） ===== */
.kentei-wakubun {
  background: rgba(255, 255, 255, 0.9);
  border: 0.8px solid rgba(41, 38, 104, 0.1);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(41, 38, 104, 0.12), 0 8px 32px rgba(81, 81, 202, 0.08);
  padding: 24px 28px;
  overflow: hidden;
}
.kentei-wakubun p {
  font-family: 'IBM Plex Sans JP', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.8;
  color: #364153;
  margin: 0 0 1em;
}
.kentei-wakubun p:last-child { margin-bottom: 0; }
.kentei-wakubun .kentei-honbun { margin: 0; }
.kentei-wakubun .kentei-honbun p { margin: 1.2em 0; }
.kentei-wakubun .kentei-honbun p:first-child { margin-top: 0; }
.kentei-wakubun .kentei-honbun p:last-child { margin-bottom: 0; }

/* ===== 実施概要：お申し込みから合否判定までの流れ（スマホ対応） ===== */
.jissigaiyou-flow-title { margin-bottom: 24px !important; }
.jissigaiyou-flow-body { padding-left: 30px; }
.jissigaiyou-flow-step {
  display: flex;
  align-items: flex-start;
  border: 2px solid rgba(113, 113, 232, 0.4);
  border-radius: 16px;
  padding: 20px 32px;
  margin-bottom: 16px;
  max-width: 620px;
  width: 100%;
  box-sizing: border-box;
}
.jissigaiyou-flow-step__num {
  font-size: 32px;
  font-weight: 700;
  color: #5151ca;
  min-width: 40px;
  line-height: 1.2;
  flex-shrink: 0;
}
.jissigaiyou-flow-step p { margin: 0 !important; }
.jissigaiyou-flow-note { font-size: 0.80em !important; }
@media (max-width: 768px) {
  .jissigaiyou-flow-body { padding-left: 0; }
  .jissigaiyou-flow-step { padding: 16px 20px; }
  .jissigaiyou-flow-step__num { font-size: 24px; min-width: 32px; }
}
@media (max-width: 480px) {
  .jissigaiyou-flow-step { padding: 12px 16px; }
  .jissigaiyou-flow-step__num { font-size: 20px; min-width: 28px; }
}

/* ===== 暖色系ボタンリンク（共通） ===== */
.kentei-btutnlink {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  padding: 20px 48px;
  background: linear-gradient(180deg, #ff9f43 0%, #ee5a24 50%, #d35400 100%) !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
  border-radius: 24px;
  box-shadow: 0px 25px 50px 0px rgba(211, 84, 0, 0.35);
  font-family: 'Noto Serif JP', serif;
  font-weight: 900;
  font-size: 36px;
  line-height: 1.2;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-align: center;
  text-decoration: none !important;
  transition: opacity 0.2s;
}
.kentei-btutnlink:link,
.kentei-btutnlink:visited,
.kentei-btutnlink:hover,
.kentei-btutnlink:active,
.kentei-btutnlink:focus {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-decoration: none !important;
}
.kentei-btutnlink:hover {
  opacity: 0.85;
}
.kentei-btutnlink:active {
  transform: scale(0.96);
  transition: transform 0.1s ease;
  box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.3);
}
/* ラッパー用：内部の juken-start-btn 等は各自のスタイルを維持 */
div.kentei-btutnlink {
  background: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  border-radius: 0;
}

/* ===== 検定とは カード背景色（共通で安定化） ===== */
.MRed   { background: #fef2f2 !important; }
.MBlue  { background: #eff6ff !important; }
.MYellow{ background: #fefce8 !important; }
.MGreen { background: #f0fdf4 !important; }

/* ===== カード内タイトル（検定とは・目的と意義 等で共通利用） ===== */
/* 左アイコン（56px）と並んだとき見劣りしないサイズ */
.kentei-card-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 900;
  font-size: 32px;
  line-height: 1.25;
  min-height: 56px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #8888ff 0%, #6d6dcc 89.135%, #525299 180%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
@media (max-width: 768px) {
  .kentei-card-title { font-size: 26px; line-height: 1.25; min-height: 48px; }
}

/*
 * ページトップタイトル＝全幅バナー（ビア検News参考）
 * 規則正しい波タイルを左→右へ流す。下端にボート6色バー。
 * 波周期は 120px（animation の移動量と一致させること）
 */
/*
 * 単調な正弦波のみ（装飾的な二重線はやめる）。
 * 1周期480px・振幅小さめ。左右端 Y 一致で継ぎ目なし。左→右へ流す。
 */
@keyframes page-title-wave-x {
  from { background-position-x: 0; }
  to   { background-position-x: 480px; }
}
@keyframes page-title-wave-inner {
  from { background-position: 0 36%, 160px 50%, 320px 64%, center; }
  to   { background-position: 480px 36%, 640px 50%, 800px 64%, center; }
}
@keyframes page-title-wave-bottom {
  from { background-position: center bottom, 0 bottom; }
  to   { background-position: center bottom, 480px bottom; }
}
.page-title {
  --page-title-wave-tile: 480px;
  position: relative;
  width: 100vw;
  margin: 0 0 48px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 48px 24px 56px;
  text-align: center;
  /* 紺グラデは固定。上に単調な白波線を3本（1/3周期ずらして奥行き） */
  background-color: #292668;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 40' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='rgba(255,255,255,0.24)' stroke-width='2' d='M0 22C60 22 60 8 120 8s60 14 120 14 60-14 120-14 60 14 120 14'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 40' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='rgba(255,255,255,0.16)' stroke-width='2' d='M0 22C60 22 60 8 120 8s60 14 120 14 60-14 120-14 60 14 120 14'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 40' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='rgba(255,255,255,0.10)' stroke-width='2' d='M0 22C60 22 60 8 120 8s60 14 120 14 60-14 120-14 60 14 120 14'/%3E%3C/svg%3E"),
    linear-gradient(165deg, #292668 0%, #3a3780 50%, #5151ca 100%);
  background-size: var(--page-title-wave-tile) 40px, var(--page-title-wave-tile) 40px, var(--page-title-wave-tile) 40px, auto;
  background-repeat: repeat-x, repeat-x, repeat-x, no-repeat;
  background-position: 0 36%, 160px 50%, 320px 64%, center;
  animation: page-title-wave-inner 10s linear infinite;
  overflow: hidden;
}
/* 上端：単純な山―谷の繰り返し */
.page-title::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 40px;
  z-index: 2;
  pointer-events: none;
  /* C で同じ形を繰り返すだけの波（開始・終了とも y=22） */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 40' preserveAspectRatio='none'%3E%3Cpath fill='%23f0f2ff' d='M0 0h480v22C420 22 420 8 360 8S300 22 240 22 180 8 120 8 60 22 0 22V0z'/%3E%3C/svg%3E");
  background-size: var(--page-title-wave-tile) 100%;
  background-repeat: repeat-x;
  background-position: 0 0;
  animation: page-title-wave-x 16s linear infinite;
}
/* 下端：同じ単調波＋ボート6色 */
.page-title::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 28px;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(90deg,
      #d1d5db 0 16.66%, #1f2937 16.66% 33.32%, #ef4444 33.32% 49.98%,
      #3b82f6 49.98% 66.64%, #eab308 66.64% 83.3%, #22c55e 83.3% 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 28' preserveAspectRatio='none'%3E%3Cpath fill='%23f0f2ff' d='M0 28V14C60 14 60 4 120 4s60 10 120 10 60-10 120-10 60 10 120 10v14H0z'/%3E%3C/svg%3E");
  background-size: 100% 5px, var(--page-title-wave-tile) 100%;
  background-repeat: no-repeat, repeat-x;
  background-position: center bottom, 0 bottom;
  animation: page-title-wave-bottom 16s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .page-title,
  .page-title::before,
  .page-title::after {
    animation: none;
  }
}
.page-title h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: 'Noto Serif JP', serif;
  font-weight: 900;
  font-size: clamp(2.1rem, 5.8vw, 3rem);
  line-height: 1.25;
  letter-spacing: 0.06em;
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none;
  filter: none;
  text-align: center;
}
/* body.boatrace-page p の本文色(#364153)に負けないよう詳細度を上げる */
body.boatrace-page .page-title__en,
.page-title__en {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  font-family: 'IBM Plex Sans JP', sans-serif;
  font-weight: 700;
  font-size: clamp(0.85rem, 1.9vw, 1.05rem);
  line-height: 1.4;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.9);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
}
/* 旧アンダーラインSVGはバナー内では非表示 */
.page-title .title-underline {
  display: none;
}

/* ページ内の中見出し（バナー外の .page-main-title 用。受験の流れなど） */
.page-main-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 900;
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #292668 0%, #5151ca 50%, #7171e8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.title-underline {
  width: min(360px, 70vw);
  height: 6px;
  margin: 14px auto 0;
  display: block;
}

.section {
  margin: 70px 0 40px;
  max-width: none;
}

.section-title {
  font-family: 'IBM Plex Sans JP', sans-serif;
  font-weight: 500;
  font-size: 34px; /* 40px*0.85 2行防止 */
  line-height: 60px;
  background: linear-gradient(180deg, #8888ff 0%, #6d6dcc 89.135%, #525299 180%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: left;
  margin-bottom: 4px;
}

.section-body {
  font-family: 'IBM Plex Sans JP', sans-serif;
  font-weight: 500;
  font-size: 25px;
  line-height: 50px;
  color: #364153;
  text-align: left;
}

.section-body p {
  margin: 0;
}

.bullet-list {
  list-style: none;
  display: inline-block;
  text-align: left;
  font-family: 'IBM Plex Sans JP', sans-serif;
  font-weight: 500;
  font-size: 36px;
  line-height: 60px;
  color: #364153;
}

.table-section {
  margin: 40px -150px;
  width: 1080px;
}

.exam-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  text-align: left;
}

.exam-table thead th {
  background: #292668;
  color: #fff;
  font-family: 'IBM Plex Sans JP', sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 60px;
  text-align: center;
  padding: 15px 20px;
  border: 1px solid #9299a4;
}

.exam-table tbody td {
  font-family: 'IBM Plex Sans JP', sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 54px;
  color: #364153;
  padding: 20px 30px;
  border: 1px solid #9299a4;
  vertical-align: top;
}

.exam-table tbody td.col-grade {
  font-weight: 700;
  font-size: 36px;
  line-height: 60px;
  color: #292668;
  text-align: center;
  white-space: nowrap;
}

.exam-table tbody td.col-topic {
  font-size: 36px;
  line-height: 54px;
}

/* ===== レスポンシブ ===== */
@media (max-width: 1024px) {
  .content { padding: 24px 24px 40px; }
  .page-title { padding: 44px 20px 48px; }
  .page-title::before { height: 48px; }
  .title-underline { width: min(300px, 70vw); }
  .section-title { font-size: 27px; line-height: 41px; } /* 32px*0.85 */
  .section-body { font-size: 22px; line-height: 38px; }
  .bullet-list { font-size: 22px; line-height: 38px; }
  .exam-table thead th { font-size: 24px; line-height: 36px; padding: 12px 16px; }
  .exam-table tbody td { font-size: 22px; line-height: 36px; padding: 14px 20px; }
  .exam-table tbody td.col-grade { font-size: 24px; line-height: 36px; }
  .exam-table tbody td.col-topic { font-size: 22px; }
}

@media (max-width: 768px) {
  .content { padding: 20px 16px 32px; }
  body.boatrace-page p { font-size: 17px; }
  .kentei-wakubun { padding: 20px 20px; }
  .kentei-btutnlink { padding: 18px 40px; font-size: 28px; }
  .page-title { padding: 40px 16px 44px; }
  .page-title::before { height: 40px; }
  .page-title::after { height: 24px; }
  .title-underline { width: min(220px, 68vw); }
  .section { margin: 28px auto; }
  .site-footer__nav { padding: 0 24px; gap: 24px; }
  .section-title { font-size: 20px; line-height: 31px; }
  .section-body { font-size: 18px; line-height: 30px; }
  .bullet-list { font-size: 18px; line-height: 30px; }
  .table-section { margin: 28px auto; }
  .exam-table { display: block; overflow-x: auto; }
  .exam-table thead th { font-size: 16px; line-height: 24px; padding: 10px 12px; white-space: nowrap; }
  .exam-table tbody td { font-size: 15px; line-height: 24px; padding: 10px 14px; }
  .exam-table tbody td.col-grade { font-size: 16px; }
  .exam-table tbody td.col-topic { font-size: 15px; }
}

@media (max-width: 640px) {
  .site-header { height: 64px; padding: 0 16px; }
  .site-main { padding-top: 64px; }
  .site-header__logo-img { width: 40px; height: 40px; }
  .site-header__logo-text { font-size: 20px; }
  .site-header__menu { width: 40px; height: 40px; gap: 6px; }
}

@media (max-width: 480px) {
  body.boatrace-page p { font-size: 16px; }
  .kentei-wakubun { padding: 16px 18px; }
  .kentei-btutnlink { padding: 16px 32px; font-size: 24px; border-radius: 16px; }
  .page-title { padding: 36px 14px 40px; }
  .page-title::before { height: 36px; }
  .section-title { font-size: 17px; line-height: 26px; } /* 20px*0.85 */
  .section-body { font-size: 16px; line-height: 26px; }
  .bullet-list { font-size: 16px; line-height: 26px; }
  .exam-table thead th { font-size: 14px; padding: 8px 10px; }
  .exam-table tbody td { font-size: 14px; padding: 8px 12px; }
}

/* 背景アニメーション（全ページ共通） */
@keyframes bg-breathe {
  0%, 100% { transform: scale(1.02) translate(0, 0) rotate(0deg); }
  25%     { transform: scale(1.08) translate(1.5%, 0.8%) rotate(1deg); }
  50%     { transform: scale(1.12) translate(0, 1%) rotate(0deg); }
  75%     { transform: scale(1.07) translate(-1%, 0.5%) rotate(-0.5deg); }
}
@keyframes bg-breathe-2 {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* ===== HB Menu ===== */
.hb-nav-separator { width: 100%; height: 12px; display: block; margin: 4px 0; }
.hb-nav-separator svg { width: 100%; height: 100%; }
.hb-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  text-decoration: none;
  transition: padding-left 0.2s;
  border-bottom: none !important;
  border-image: none !important;
}
.hb-nav-item:not(:last-child) { border-image: none !important; }
.hb-image-area {
  position: relative;
  flex: 1;
  min-height: 356px;
  overflow: hidden;
  margin: 0 !important;
}
.hb-image-placeholder { display: none !important; }
.hb-bg-water {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  overflow: hidden;
  pointer-events: none;
}
.hb-bg-water img {
  position: absolute;
  width: 155%;
  height: 148%;
  left: -43%;
  top: -45%;
  object-fit: cover;
  max-width: none;
}
.hb-main-image {
  position: absolute;
  bottom: 0;
  left: 50px;
  width: 600px;
  height: 356px;
  max-width: calc(100% - 100px);
}
.hb-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 640px) {
  .hb-image-area { min-height: 200px !important; margin: 0 !important; }
  .hb-main-image { left: 24px; width: calc(100% - 48px); max-width: none; height: auto; aspect-ratio: 600/356; }
}

/* ===== TOP 練習問題セクション（共通CSSで一元管理） ===== */
.top-practice { padding: 1.5em 0; position: relative; } /* 3emの半分 */
.top-practice__card {
  max-width: 1280px; margin: 0 auto;
  background: rgba(255,255,255,0.7);
  border: 0.8px solid rgba(41,38,104,0.2); border-radius: 48px;
  box-shadow: 0px 25px 50px -12px rgba(0,0,0,0.25);
  padding: 1.5em; position: relative; overflow: hidden;
}
.top-practice__card-bg {
  position: absolute; inset: 0; opacity: 0.05;
  background-image: url('../image/card_bg.png');
  background-size: cover; background-position: center; pointer-events: none;
}
.top-practice__title {
  font-family: 'Noto Serif JP', serif; font-weight: 900;
  font-size: 41px; line-height: 41px; text-align: center; /* 48px*0.85 2行防止 */
  background: linear-gradient(180deg, #292668 0%, #5151ca 50%, #7171e8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin: 0; border: none; padding: 0;
}
.top-practice__title::before, .top-practice__title::after { display: none; }
.top-practice__dots {
  display: flex; justify-content: center; align-items: center;
  gap: 10px; margin: 0.4em 0;
  min-height: 18px; flex-shrink: 0;
}
.top-practice__dots span {
  width: 13px; height: 13px; min-width: 13px; min-height: 13px;
  border-radius: 50%; flex-shrink: 0;
}
/* 右から順に：グリーン・イエロー・ブルー・レッド・ブラック・ライトグレー（足りないときは右の色を優先） */
.top-practice__dots span:nth-last-child(1) { background: #22c55e; } /* グリーン */
.top-practice__dots span:nth-last-child(2) { background: #eab308; } /* イエロー */
.top-practice__dots span:nth-last-child(3) { background: #3b82f6; } /* ブルー */
.top-practice__dots span:nth-last-child(4) { background: #ef4444; } /* レッド */
.top-practice__dots span:nth-last-child(5) { background: #1f2937; } /* ブラック */
.top-practice__dots span:nth-last-child(6) { background: #d1d5db; } /* ライトグレー */
.top-practice__desc {
  font-family: 'IBM Plex Sans JP', sans-serif; font-weight: 500;
  font-size: 20px; line-height: 28px; text-align: center; color: #4a5565;
  margin: 0.35em 0 0.5em;
}
@media (max-width: 1024px) {
  .top-practice__card { margin: 0 1em; padding: 1.5em; }
  .top-practice__title { font-size: 31px; } /* 36px*0.85 */
}
/* トップnav・HBメニュー・ニュース見出し・検定とは見出し：2行防止（約80%） ※top-nav__labelは元サイズ維持 */
.hb-nav-text { font-size: clamp(17px, 3.5vw, 28px) !important; }
.news-heading { font-size: 2.05rem !important; }
.kentei-sakumon-block__title { font-size: 40px !important; line-height: 40px !important; } /* 50px*0.8 */
.kentei-sakumon-name { font-size: 22px !important; } /* 28px*0.8 */
@media (max-width: 768px) {
  .kentei-sakumon-block__title { font-size: 29px !important; line-height: 29px !important; } /* 36px*0.8 */
}

@media (max-width: 640px) {
  .top-practice { padding: 1.5em 0; }
  .top-practice__card { margin: 0 0.75em; padding: 1.5em; border-radius: 24px; }
  .top-practice__title { font-size: 24px; line-height: 31px; } /* 28px*0.85 */
  .top-practice__desc { font-size: 14px; margin-bottom: 8px; }
}

/* ===== 練習問題ボタン（暖色・単独コピペ用） ===== */
.kentei-practice-btn {
  display: block; margin: 0 auto; width: 458px; height: 105px;
  background: linear-gradient(180deg, #d97706 0%, #ea580c 50%, #f97316 100%);
  border-radius: 24px;
  box-shadow: inset 0 1.5px 0 0 rgba(255,255,255,0.2), 0 12px 28px -4px rgba(234,88,12,0.4);
  font-family: 'Noto Serif JP', serif; font-weight: 900; font-size: 36px;
  color: #fff; text-align: center; line-height: 105px; text-decoration: none;
  transition: opacity .2s, transform .1s;
}
.kentei-practice-btn:hover { opacity: .88; color: #fff; text-decoration: none; }
.kentei-practice-btn:active {
  transform: scale(0.96);
  box-shadow: inset 0 1.5px 0 0 rgba(255,255,255,0.2), 0 6px 16px -2px rgba(234,88,12,0.35);
}
@media (max-width: 1024px) {
  .kentei-practice-btn { width: 360px; height: 80px; font-size: 28px; line-height: 80px; }
}
@media (max-width: 640px) {
  .kentei-practice-btn { width: 100%; max-width: 336px; height: 72px; font-size: 24px; line-height: 72px; border-radius: 16px; }
}

/* ===== TOPページ（top-mv, top-nav, top-disclaimer, HBオーバーレイ, news-section 等） ===== */
.top-wrapper {
  font-family: 'IBM Plex Sans JP', sans-serif;
  min-height: 100vh;
  background: linear-gradient(180deg, #f8f9ff 0%, #f0f2ff 50%, #e8ebff 100%);
  position: relative;
  overflow: hidden;
}
body.boatrace-top .site-header__logo-img { width: 56px; height: 56px; object-fit: cover; flex-shrink: 0; }
body.boatrace-top .site-header__logo-text { font-size: 30px; }

.top-mv { margin-top: 81px; position: relative; height: 807px; overflow: hidden; }
.top-mv__bg {
  position: absolute; inset: 0;
  background-image: url('../image/hero_bg2.png');
  background-size: cover; background-position: center 65%; opacity: 0.3;
}
.top-mv__content {
  position: relative; z-index: 1; height: 100%; max-width: 1280px;
  margin: 0 auto; padding: 0 48px; display: flex;
  align-items: flex-start; padding-top: 85px;
}
.top-mv__inner { width: 100%; }
.top-mv__catch-small {
  font-family: 'Noto Serif JP', serif; font-weight: 900;
  font-size: 61px; line-height: 77px; color: #292668; margin: 0; display: block;
}
.top-mv__catch-highlight {
  display: block; font-family: 'Noto Serif JP', serif; font-weight: 900;
  font-size: 61px; line-height: 77px;
  background: linear-gradient(180deg, #8B0000 0%, #E31C25 50%, #FF6B6B 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  position: relative; margin: 0;
}
.top-mv__catch-highlight::after { display: none; }
.top-mv__catch-large {
  font-family: 'Noto Serif JP', serif; font-weight: 900;
  font-size: 61px; line-height: 77px; color: #292668; margin: 24px 0 0; display: block;
}
.top-mv__desc {
  font-family: 'IBM Plex Sans JP', sans-serif; font-weight: 500;
  font-size: 24px; line-height: 32.5px; color: #354459; margin: 40px 0 0;
}
.top-mv__btn {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 35px; width: 100%; max-width: 400px; height: 100px;
  background: linear-gradient(180deg, #d97706 0%, #ea580c 50%, #f97316 100%);
  border-radius: 24px;
  box-shadow: inset 0px 1.5px 0px 0px rgba(255,255,255,0.2);
  font-family: 'Noto Serif JP', serif; font-weight: 900; font-size: 32px;
  color: #fff; text-decoration: none; transition: opacity 0.2s; position: relative;
}
.top-mv__btn::after { content: '\2192'; font-family: sans-serif; font-size: 28px; margin-left: 16px; }
.top-mv__btn:hover { opacity: 0.88; color: #fff; text-decoration: none; }

.top-nav {
  position: relative; padding: 51px 53px;
  background: linear-gradient(180deg, #f8f9ff 0%, #fff 50%, #f0f2ff 100%);
  overflow: hidden;
}
.top-nav__grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 24px;
}
.top-nav__item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 32px 44px; height: 114px;
  background: linear-gradient(180deg, #1a1a24 0%, #3f3d5a 50%, #4a4865 100%);
  border-radius: 24px;
  box-shadow: 0px 12px 36px 0px rgba(0,0,0,0.6), 0px 24px 72px 0px rgba(0,0,0,0.4),
              inset 0px 1.5px 0px 0px rgba(255,255,255,0.1);
  text-decoration: none; color: #fff; transition: opacity 0.2s;
}
.top-nav__item:hover { opacity: 0.85; color: #fff; text-decoration: none; }
.top-nav__item:active { transform: scale(0.96); transition: transform 0.1s ease; box-shadow: 0px 4px 12px 0px rgba(0,0,0,0.4); }
.top-nav__label {
  font-family: 'Noto Serif JP', serif; font-weight: 900;
  font-size: 30px; line-height: 42px; color: #fff;
}
.top-nav__arrow {
  display: flex; flex-direction: column; gap: 6px;
  width: 42px; height: 42px; flex-shrink: 0;
  justify-content: center; align-items: flex-end;
}
.top-nav__arrow span { display: block; background: #fff; border-radius: 2px; }
.top-nav__arrow span:nth-child(1) { width: 100%; height: 3.5px; }
.top-nav__arrow span:nth-child(2) { width: 60%; height: 3.5px; }

.top-disclaimer {
  padding: 58px 0;
  background: linear-gradient(180deg, #e8ebff 0%, #d6dcff 50%, #c9d1ff 100%);
  position: relative; overflow: hidden;
}
.top-disclaimer__card {
  max-width: 1280px; margin: 0 auto;
  background: rgba(255,255,255,0.9);
  border: 0.8px solid rgba(41,38,104,0.2); border-radius: 24px;
  box-shadow: 0px 8px 32px 0px rgba(41,38,104,0.15), 0px 16px 48px 0px rgba(81,81,202,0.1),
              inset 0px 1px 0px 0px rgba(255,255,255,0.8);
  padding: 32px;
}
.top-disclaimer__card p {
  font-family: 'IBM Plex Sans JP', sans-serif; font-weight: 700;
  font-size: 24px; line-height: 39px; color: #292668; text-align: center; margin: 0;
}

@keyframes mv-bg-zoom {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.08) translate(-1%, -1%); }
}
.top-mv__bg { animation: mv-bg-zoom 12s ease-in-out infinite alternate; }

@keyframes mv-appear {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mv-line { opacity: 0; animation: mv-appear 0.6s ease forwards; }
.mv-line--1 { animation-delay: 0.1s; }
.mv-line--2 { animation-delay: 0.5s; }
.mv-line--3 { animation-delay: 0.9s; }
.mv-line--4 { animation-delay: 1.3s; }
.mv-line--5 { animation-delay: 1.7s; }

.hb-overlay {
  position: fixed; inset: 0; z-index: 200;
  pointer-events: none; opacity: 0; transition: opacity 0.35s ease;
}
body.menu-open .hb-overlay { pointer-events: auto; opacity: 1; }
.hb-backdrop {
  position: absolute; inset: 0; background: rgba(26,26,46,0.6);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.35s ease;
}
body.menu-open .hb-backdrop { opacity: 1; }
.hb-card {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0.92);
  width: min(700px, calc(100vw - 32px)); max-height: calc(100vh - 40px);
  background: linear-gradient(to bottom, #a6b3ff, #d6dcff 50%, #e8ebff);
  border: 0.6px solid rgba(41,38,104,0.4);
  box-shadow: 0 5px 60px rgba(37,37,51,0.5);
  border-radius: 16px; overflow-y: auto; opacity: 0;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
}
body.menu-open .hb-card { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.hb-close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px;
  border: none; background: rgba(255,255,255,0.5); border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  z-index: 5; transition: background 0.2s;
}
.hb-close:hover { background: rgba(255,255,255,0.8); }
.hb-close svg { width: 20px; height: 20px; }
.hb-nav { padding: 48px 40px 24px; display: flex; flex-direction: column; flex-shrink: 0; }
.hb-nav-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; text-decoration: none;
  transition: padding-left 0.2s;
}
.hb-nav-item:hover { padding-left: 8px; }
.hb-nav-text {
  font-family: 'Noto Serif JP', serif; font-weight: 900;
  font-size: clamp(19px, 3.8vw, 30px); line-height: 1.4;
  background: linear-gradient(180deg, #292668 0%, #5151CA 50%, #7171E8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.15));
}
.hb-nav-arrow { width: 36px; height: 36px; flex-shrink: 0; }

.hb-image-area {
  position: relative; flex: 1; min-height: 356px;
  overflow: hidden; margin: 0;
}
.hb-bg-water {
  position: absolute; inset: 0;
  opacity: 0.3; overflow: hidden; pointer-events: none;
}
.hb-bg-water img {
  position: absolute; width: 155%; height: 148%;
  left: -43%; top: -45%; object-fit: cover; max-width: none;
}
.hb-main-image {
  position: absolute; bottom: 0;
  left: 50px; width: 600px; height: 356px;
  max-width: calc(100% - 100px);
}
.hb-main-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.hb-img-placeholder {
  width: 100%; height: 100%;
  background: #d1d5db; border: 2px dashed #9ca3af; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
}
.hb-img-placeholder svg { width: 48px; height: 48px; }
.hb-img-placeholder span { color: #6b7280; font-size: 14px; font-family: sans-serif; }

.top-page-chach {
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 15px 0;
  margin-top: 40px;
  margin-bottom: 25px;
  background-color: rgba(0, 0, 0, 0.5) !important;
  color: #ffffff !important;
  text-align: center;
  position: relative;
  z-index: 5;
  letter-spacing: -0.05em;
}
.top-page-chach p {
  font-size: 1.2rem; /* 1.5rem*0.8 */
  margin: 0;
  line-height: 1.6;
  letter-spacing: -0.02em;
}
.top-page-chach b,
.top-page-chach strong {
  font-size: 1.6rem; /* 2rem*0.8 */
  line-height: 1.2;
  display: inline-block;
  margin: 0 5px;
  vertical-align: middle;
  color: #ffffff;
  font-weight: 900;
}

.news-section {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
  text-align: left;
}
.news-heading {
  display: block;
  font-size: 2.05rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-bottom: 16px;
  padding-left: 20px;
  border-left: 10px solid #3b82f6;
  line-height: 1.0;
  color: #333;
  text-transform: uppercase;
}
.news-item {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
  text-decoration: none;
  color: #333;
  transition: 0.3s;
}
.news-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.news-date {
  display: block;
  font-size: 1.0rem;
  font-weight: bold;
  color: #888;
  margin-bottom: 5px;
}
.news-title {
  display: block;
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1.4;
}
.page-content-title {
  display: inline-block;
  background: linear-gradient(135deg, rgba(41, 38, 104, 0.12) 0%, rgba(81, 81, 202, 0.18) 50%, rgba(113, 113, 232, 0.12) 100%);
  padding: 4px 12px;
  border-left: 8px solid #3b82f6;
  border-radius: 4px;
  font-size: 1.12em;
}

@media (max-width: 1024px) {
  .top-mv { height: auto; min-height: 600px; }
  .top-mv__content { padding: 60px 40px 60px; }
  .top-mv__catch-small, .top-mv__catch-highlight, .top-mv__catch-large {
    font-size: 41px; line-height: 51px;
  }
  .top-mv__desc { font-size: 18px; }
  .top-mv__btn { width: 360px; height: 90px; font-size: 28px; }
  .top-nav { padding: 40px 24px; }
  .top-nav__grid { gap: 24px 24px; }
  .top-nav__item { padding: 24px 28px; height: auto; }
  .top-nav__label { font-size: 20px; line-height: 1.3; }
  .top-disclaimer { padding: 40px 24px; }
  .top-disclaimer__card { padding: 24px; }
  .top-disclaimer__card p { font-size: 18px; line-height: 30px; }
}
@media (max-width: 640px) {
  body.boatrace-top .site-header__logo-img { width: 40px; height: 40px; }
  body.boatrace-top .site-header__logo-text { font-size: 20px; }
  .top-mv { margin-top: 64px; min-height: auto; }
  .top-mv__content { padding: 40px 20px 40px; }
  .top-mv__catch-small, .top-mv__catch-highlight, .top-mv__catch-large {
    font-size: 27px; line-height: 36px;
  }
  .top-mv__desc { font-size: 14px; line-height: 24px; margin-top: 20px; }
  .top-mv__btn {
    width: 100%; max-width: 320px; height: 72px;
    font-size: 22px; border-radius: 16px; margin-top: 28px;
  }
  .top-nav { padding: 32px 16px; }
  .top-nav__grid { grid-template-columns: 1fr; gap: 16px; }
  .top-nav__item { padding: 20px 20px; height: auto; border-radius: 16px; }
  .top-nav__label { font-size: 17px; line-height: 1.3; }
  .top-nav__arrow { width: 32px; height: 32px; }
  .top-disclaimer { padding: 32px 16px; }
  .top-disclaimer__card { border-radius: 16px; padding: 20px; }
  .top-disclaimer__card p { font-size: 14px; line-height: 24px; }
  .hb-card { border-radius: 12px; width: calc(100vw - 24px); }
  .hb-nav { padding: 40px 24px 16px; }
  .hb-nav-item { padding: 14px 0; }
  .hb-nav-arrow { width: 28px; height: 28px; }
  .hb-image-area { min-height: 200px; }
  .hb-main-image { left: 24px; width: calc(100% - 48px); max-width: none; height: auto; aspect-ratio: 600/356; }
  .hb-close { top: 12px; right: 12px; width: 36px; height: 36px; }
}

/* ===== お問い合わせページ ===== */
.otoiawase-desc {
  font-family: 'IBM Plex Sans JP', sans-serif;
  font-weight: 500;
  line-height: 1.6;
  color: #364153;
  text-align: center;
  margin: 24px 0 40px;
}
.otoiawase-desc-main { font-size: 25px; }
.otoiawase-desc-note { font-size: 18px; color: #6b7280; }

.otoiawase-form-area {
  max-width: 800px;
  margin: 0 auto 48px;
}
.otoiawase-form-area .wpcf7-form {
  background: rgba(255, 255, 255, 0.85);
  border: 0.8px solid rgba(41, 38, 104, 0.12);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(41, 38, 104, 0.1), 0 8px 32px rgba(81, 81, 202, 0.06);
  padding: 48px 56px;
}
.otoiawase-form-area .form-group { margin-bottom: 28px; }
.otoiawase-form-area .wpcf7-form-control-wrap { display: block; }
.otoiawase-form-area .form-label {
  display: block;
  font-family: 'IBM Plex Sans JP', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: #364153;
  margin-bottom: 8px;
}
.otoiawase-form-area .required { color: #e53e3e; font-size: 14px; }
.otoiawase-form-area .form-input,
.otoiawase-form-area .form-textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: 'IBM Plex Sans JP', sans-serif;
  font-size: 16px;
  color: #364153;
  background: #fff;
  border: 1.5px solid rgba(41, 38, 104, 0.2);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.otoiawase-form-area .form-input:focus,
.otoiawase-form-area .form-textarea:focus {
  border-color: #7171e8;
  box-shadow: 0 0 0 3px rgba(113, 113, 232, 0.15);
}
.otoiawase-form-area .form-textarea { resize: vertical; min-height: 180px; }
.otoiawase-form-area .form-submit { text-align: center; margin-top: 36px; }
.otoiawase-form-area .form-submit-btn {
  display: inline-block;
  padding: 16px 64px;
  font-family: 'Noto Serif JP', serif;
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  background: linear-gradient(180deg, #292668 0%, #5151ca 50%, #7171e8 100%);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(41, 38, 104, 0.3);
  transition: opacity 0.2s;
  letter-spacing: 0.1em;
}
.otoiawase-form-area .form-submit-btn:hover { opacity: 0.85; }
.otoiawase-form-area .wpcf7-response-output { margin: 16px 0 0; padding: 12px; border-radius: 8px; }
.otoiawase-fallback { text-align: center; color: #6b7280; padding: 24px; }

@media (max-width: 768px) {
  .otoiawase-form-area .wpcf7-form { padding: 32px 24px; }
  .otoiawase-form-area .form-group { margin-bottom: 20px; }
  .otoiawase-desc-main { font-size: 20px; }
  .otoiawase-desc-note { font-size: 16px; }
}
