/*
Theme Name: メール番人LP
Author: 株式会社古城
Version: 1.0
*/


/* =========================================================
   メール番人 LP - style.css
   ========================================================= */

:root {
  --color-text: #060D4B;
  --color-nav: #313134;
  --color-blue-1: #1354AE;
  --color-blue-2: #1E65C8;
  --color-blue-3: #085CD0;
  --color-green: #3BC478;
  --color-orange: #F87533;
  --color-orange-hover: #e0651f;
  --color-bg-top: #F0F6FE;
  --color-card: #F0F4FA;
  --color-gray-text: #C3CBD4;
  --color-white: #FFFFFF;

  /* 外部Webフォントを使わず、各端末の標準フォントで表示する */
  --font-jp: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans",
             "Yu Gothic Medium", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
  --font-body: "Roboto", var(--font-jp);

  /* 2種類のコンテナ幅：ヘッダー/フッターは余白が狭く帯が広い、
     それ以外のコンテンツセクションは余白が広く帯が狭い（Figma原本の比率を維持） */
  --width-header: 1320px;
  --width-content: 1180px;
  --gutter-header: clamp(16px, 3vw, 32px);
  --gutter-content: clamp(20px, 6vw, 64px);

  /* Roboto の日本語グリフ欠落時の見た目を安定させるため文字幅を明示調整 */
  font-synthesis: none;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.07em;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: var(--color-white);
}
img { max-width: 100%; display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; background: none; border: none; cursor: pointer; }

.text-nowrap {
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: var(--width-content);
  margin-inline: auto;
  padding-inline: var(--gutter-content);
}

/* ---------- Shared components ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-blue-1);
  margin-bottom: 10px;
}
.eyebrow--center { text-align: center; }
.eyebrow--on-orange { color: var(--color-white); opacity: 0.9; }

.section-title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.06em;
  margin-bottom: 40px;
}
.section-title--center { text-align: center; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 45px;
  font-weight: 600;
  letter-spacing: 0.07em;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.button--orange {
  background-color: var(--color-orange);
  color: var(--color-white);
  padding: 14px 28px;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(248, 117, 51, 0.25);
}
.button--orange:hover {
  background-color: var(--color-orange-hover);
}
.button--lg { padding: 18px 36px; font-size: 18px; }
.button__arrow { transition: transform 0.2s ease; }
.button:hover .button__arrow { transform: translateX(4px); }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  padding-top: 16px;
}
.header__inner {
  max-width: var(--width-header);
  margin-inline: auto;
  padding: 16px var(--gutter-header);
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(6, 13, 75, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
/* ロゴとナビ文字(16px)のジャンプ率をFigma同様に大きく保つ */
.header__logo img { height: 62px; width: auto; }

.header__menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  z-index: 110;
}
.header__menu-btn span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.header__nav-list {
  display: flex;
  gap: 30px;
}
.header__nav-list a {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-nav);
  letter-spacing: 0.07em;
}
.header__nav-list a:hover { color: var(--color-blue-2); }
.header__cta { padding: 13px 26px; font-size: 15px; }

/* Mobile nav */
@media (max-width: 900px) {
  .header__logo img { height: 48px; }
  .header__menu-btn { display: flex; }
  .header__nav {
    position: fixed;
    inset: 88px 0 0 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    padding: 28px 24px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .header__nav.is-open { transform: translateX(0); }
  .header__nav-list { flex-direction: column; gap: 20px; text-align: center; }
  .header__cta { align-self: center; }
  .header__menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header__menu-btn.is-open span:nth-child(2) { opacity: 0; }
  .header__menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (min-width: 901px) {
  .header__nav { display: flex !important; transform: none !important; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero { background: var(--color-bg-top); }
.hero__inner {
  max-width: var(--width-content);
  margin-inline: auto;
  padding-block: 64px 80px;
  padding-inline: var(--gutter-content);
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero__content { flex: 1 1 480px; min-width: 0; }
.hero__title {
  font-family: var(--font-body);
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.06em;
  line-height: 1.5;
  margin-bottom: 24px;
}
.hero__lead {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
  margin-bottom: 28px;
  max-width: 32em;
  word-break: normal;
  word-break: auto-phrase;
}
.hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-bottom: 36px;
}
.hero__feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
}
.hero__feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-green);
  color: var(--color-white);
  font-size: 13px;
  flex-shrink: 0;
}

.hero__visual { flex: 1 1 420px; min-width: 0; }

/* ---- Hero flip-card animation ---- */
.hero__flip-outer {
  width: 100%;
  aspect-ratio: 1448 / 1086;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(6, 13, 75, 0.14);
  perspective: 1600px; /* perspective lives on the outer, non-rotating wrapper */
}
.hero__flip-card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation:
    heroFlipRotate 8.8s ease-in-out infinite,
    heroFlipGate 8.8s ease-in-out infinite;
}
.hero__flip-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.hero__flip-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__flip-face--front { transform: rotateY(0deg) translateZ(0.01px); }
.hero__flip-face--back  { transform: rotateY(180deg) translateZ(0.01px); }

@keyframes heroFlipRotate {
  0%    { transform: rotateY(0deg); }
  40%   { transform: rotateY(0deg); }
  50%   { transform: rotateY(180deg); }
  90%   { transform: rotateY(180deg); }
  100%  { transform: rotateY(360deg); }
}
/* briefly dips opacity while the card is edge-on to the viewer,
   masking any backface z-fighting/ghosting during the crossover */
@keyframes heroFlipGate {
  0%      { opacity: 1; }
  43.5%   { opacity: 1; }
  45%     { opacity: 0; }
  46.5%   { opacity: 1; }
  93.5%   { opacity: 1; }
  95%     { opacity: 0; }
  96.5%   { opacity: 1; }
  100%    { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__flip-card {
    animation: heroFlipInstant 8.8s steps(1, jump-none) infinite;
  }
  @keyframes heroFlipInstant {
    0%     { transform: rotateY(0deg); }
    50%    { transform: rotateY(180deg); }
    100%   { transform: rotateY(360deg); }
  }
}

@media (max-width: 900px) {
  .hero__inner { flex-direction: column; padding-block: 40px 56px; padding-inline: var(--gutter-content); gap: 32px; }
  .hero__content { order: 1; }
  .hero__visual { order: 2; width: 100%; }
}

/* =========================================================
   About / メール番人について
   ========================================================= */
.about { padding: 88px 0; }
.about__inner {
  max-width: var(--width-content);
  margin-inline: auto;
  padding-inline: var(--gutter-content);
  display: flex;
  flex-direction: column;
  gap: 88px;
}

.about__worries {
  background: var(--color-bg-top);
  border-radius: 10px;
  padding: 56px 40px 64px;
}
.about__worries-title {
  text-align: center;
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 48px;
  letter-spacing: 0.06em;
}
.about__worries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 32px;
  max-width: 1020px;
  margin-inline: auto;
}
.about__worry-card {
  position: relative;
  min-height: 120px;
  display: flex;
  align-items: center;
  padding: 26px 40px 26px 56px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-blue-1);
  line-height: 1.6;
  background-image: url("images/fukidasi.svg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
  filter: drop-shadow(0 6px 16px rgba(6, 13, 75, 0.05));
}
.about__worry-card::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 11px;
  height: 11px;
  background: var(--color-orange);
  border-radius: 3px;
}

.about__intro { text-align: center; }
.about__intro-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 32px;
}
.about__intro-logo { height: 40px; width: auto; }
.about__intro-title span {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.06em;
}
.about__intro-text {
  max-width: 640px;
  margin-inline: auto;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
}
.about__intro-photos {
  display: flex;
  gap: 20px;
  max-width: 700px;
  margin: 48px auto 0;
}
.about__intro-photo--placeholder {
  flex: 1;
  aspect-ratio: 292 / 219;
  background: var(--color-card);
  border-radius: 10px;
}

.about__showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.about__showcase-item { text-align: center; }
.about__showcase-photo {
  width: 100%;
  aspect-ratio: 292 / 219;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 16px;
}
.about__showcase-label {
  font-weight: 600;
  font-size: 16px;
  color: var(--color-text);
}

@media (max-width: 720px) {
  .about__worries { padding: 40px 20px 48px; }
  .about__worries-grid { grid-template-columns: 1fr; }
  .about__worry-card { background-size: 100% 100%; }
  .about__intro-photos { flex-direction: column; }
  .about__showcase { grid-template-columns: 1fr; }
}

/* =========================================================
   Reasons / 選ばれる理由
   ========================================================= */
.reasons { padding: 88px 0; }
.reasons__inner { max-width: var(--width-content); margin-inline: auto; padding-inline: var(--gutter-content); }
.reasons__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.reasons__card {
  background: var(--color-card);
  border-radius: 10px;
  padding: 40px 32px 44px;
  text-align: center;
}
.reasons__point {
  display: inline-block;
  background: var(--color-blue-1);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.07em;
  padding: 6px 18px;
  border-radius: 40px;
  margin-bottom: 28px;
}
.reasons__icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 24px;
}
.reasons__card-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.reasons__card-text {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--color-text);
}

@media (max-width: 900px) {
  .reasons__grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}

/* =========================================================
   Price / 料金
   ========================================================= */
.price { padding: 88px 0; }
.price__inner { max-width: var(--width-content); margin-inline: auto; padding-inline: var(--gutter-content); }
.price__card {
  max-width: 600px;
  margin-inline: auto;
  background: var(--color-white);
  border: 2px solid #CED6E0;
  border-radius: 10px;
  padding: 44px 40px;
}
.price__amount {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 32px;
}
.price__yen { font-family: var(--font-body); font-size: 25px; font-weight: 600; color: var(--color-text); }
.price__number { font-family: var(--font-jp); font-size: 44px; font-weight: 800; color: var(--color-blue-3); letter-spacing: 0.05em; }
.price__unit { font-family: var(--font-body); font-size: 18px; font-weight: 600; color: var(--color-text); margin-left: 4px; }
.price__tax-note {
  flex: 0 0 100%;
  color: var(--color-gray-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}
.price__divider { border: none; border-top: 1px solid #E1E6F0; margin-bottom: 28px; }
.price__list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.price__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
}
.price__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-green);
  color: var(--color-white);
  font-size: 13px;
  flex-shrink: 0;
}
.price__note { font-size: 13px; font-weight: 500; line-height: 1.8; color: var(--color-text); }

@media (max-width: 600px) {
  .price__card { padding: 32px 24px; }
  .price__number { font-size: 36px; }
}

/* =========================================================
   Flow / 導入の流れ
   ========================================================= */
.flow { padding: 88px 0; background: var(--color-card); }
.flow__inner { max-width: var(--width-content); margin-inline: auto; padding-inline: var(--gutter-content); }
.flow__content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
}
.flow__card {
  flex: 0 1 560px;
  background: var(--color-white);
  border-radius: 10px;
  padding: 48px 56px;
  box-shadow: 0 1px 15px rgba(0, 0, 0, 0.03);
}
.flow__steps { position: relative; }
.flow__step {
  position: relative;
  padding-left: 40px;
  padding-bottom: 44px;
}
.flow__step:last-child { padding-bottom: 0; }
.flow__step-num {
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-blue-2);
  box-shadow: 0 0 0 4px rgba(30, 101, 200, 0.15);
}
.flow__step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 22px;
  bottom: -6px;
  width: 2px;
  background: #D7E2F4;
}
.flow__step-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.flow__step-text { font-size: 16px; font-weight: 500; line-height: 1.7; }
.flow__illustration {
  flex: 0 1 400px;
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  object-fit: cover;
  align-self: center;
}

@media (max-width: 980px) {
  .flow__content { flex-direction: column; }
  .flow__card {
    flex: none;
    width: 100%;
    height: auto;
    padding: 48px 40px 40px;
  }
  .flow__illustration {
    order: 0;
    max-width: 360px;
  }
}
@media (max-width: 600px) {
  .flow__card { padding: 36px 24px; }
}

/* =========================================================
   FAQ / よくある質問
   ========================================================= */
.faq { padding: 88px 0; }
.faq__inner {
  max-width: var(--width-content);
  margin-inline: auto;
  padding-inline: var(--gutter-content);
  display: flex;
  gap: 56px;
}
.faq__heading { flex: 0 0 260px; position: relative; }
.faq__heading::after {
  content: '';
  position: absolute;
  top: 0;
  right: -28px;
  bottom: 0;
  width: 1px;
  background: #E1E6F0;
}
.faq__body { flex: 1 1 auto; min-width: 0; }
.faq__list { display: flex; flex-direction: column; gap: 15px; }
.faq__item {
  background: var(--color-card);
  border-radius: 10px;
  overflow: hidden;
}
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 30px;
  text-align: left;
}
.faq__q-mark { font-weight: 600; color: var(--color-blue-1); font-size: 20px; flex-shrink: 0; }
.faq__q-text { flex: 1; font-weight: 600; font-size: 18px; color: var(--color-text); letter-spacing: 0.04em; }
.faq__arrow {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--color-blue-1);
  border-bottom: 2px solid var(--color-blue-1);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-top: -4px;
}
.faq__item.is-open .faq__arrow { transform: rotate(-135deg); margin-top: 4px; }
.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq__answer > p {
  overflow: hidden;
  padding: 0 30px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--color-text);
}
.faq__item.is-open .faq__answer { grid-template-rows: 1fr; }
.faq__item.is-open .faq__answer > p { padding: 0 30px 26px; }

.faq__support-note {
  margin-top: 32px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--color-text);
}

@media (max-width: 900px) {
  .faq__inner { flex-direction: column; gap: 24px; }
  .faq__heading { flex: none; }
  .faq__heading::after { display: none; }
}

/* =========================================================
   Notice / ご利用にあたって
   ========================================================= */
.notice { padding: 64px 0; background: var(--color-white); }
.notice__inner { max-width: var(--width-content); margin-inline: auto; padding-inline: var(--gutter-content); }
.notice__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}
.notice__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 970px;
}
.notice__list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.9;
  color: var(--color-text);
}
.notice__list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-text);
}

/* =========================================================
   Contact / お問い合わせ（未確定セクション）
   ========================================================= */
.contact { padding: 88px 0 100px; text-align: center; }
.contact__inner { max-width: 880px; margin-inline: auto; padding-inline: var(--gutter-content); }
.contact__heading {
  background: var(--color-orange);
  border-radius: 10px;
  padding: 32px 24px;
  margin-bottom: 36px;
}
.contact__title {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.06em;
}
.contact__lead {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.9;
  margin-bottom: 40px;
  color: var(--color-text);
}
.contact__wip {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  border: 2px dashed #C9D3E6;
  border-radius: 10px;
  color: #8A93AC;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--color-white); padding: 56px 0 40px; border-top: 1px solid #EEF1F6; }
.footer__inner {
  max-width: var(--width-header);
  margin-inline: auto;
  padding-inline: var(--gutter-header);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}
.footer__logo img { height: 42px; width: auto; }
.footer__nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}
.footer__nav-list a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}
.footer__nav-list a:hover { color: var(--color-blue-2); }
.footer__bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid #EEF1F6;
}
.footer__company-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}
.footer__company-link:hover { color: var(--color-blue-2); }
.footer__company-arrow { display: inline-block; transform: rotate(45deg); }
.footer__copyright { font-size: 14px; font-weight: 500; color: var(--color-gray-text); letter-spacing: 0.03em; }

@media (max-width: 700px) {
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* =========================================================
   Figma "デザインカンプ" (1280px) fidelity pass
   ========================================================= */
:root {
  --width-header: 1280px;
  --width-content: 1154px;
  --gutter-header: 39px;
  --gutter-content: 0px;
}

body {
  letter-spacing: 0;
  line-height: 1.625;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.07em;
  margin-bottom: 20px;
}

.section-title {
  font-size: 46px;
  line-height: 1.25;
  letter-spacing: 0.07em;
  margin-bottom: 82px;
}

.header {
  position: relative;
  height: 103px;
  padding: 0 20px;
  background: var(--color-bg-top);
}

.header__inner {
  width: 100%;
  height: 103px;
  padding: 0 30px 0 39px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 1px 15px rgba(0, 0, 0, 0.08);
}

.header__logo img {
  width: 165px;
  height: 62px;
}

.header__nav {
  gap: 68px;
}

.header__nav-list {
  gap: 35px;
}

.header__nav-list a {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.07em;
}

.header__cta {
  width: 199px;
  height: 59px;
  padding: 0 24px 0 32px;
  justify-content: space-between;
  font-size: 18px;
}

.hero {
  height: 709px;
}

.hero__inner {
  width: 100%;
  max-width: 1280px;
  height: 709px;
  padding: 109px 70px 0 83px;
  gap: 72px;
  align-items: flex-start;
}

.hero__content {
  flex: 0 0 533px;
}

.hero__title {
  font-size: 52px;
  line-height: 1.27;
  letter-spacing: 0.11em;
  margin-bottom: 51px;
  white-space: nowrap;
}

.hero__lead {
  width: 492px;
  max-width: none;
  margin-left: 6px;
  margin-bottom: 36px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.07em;
}

.hero__features {
  width: 500px;
  gap: 20px 29px;
  margin-bottom: 49px;
}

.hero__feature {
  gap: 12px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.07em;
}

.hero__feature-icon {
  width: 24px;
  height: 24px;
}

.hero__cta {
  width: 280px;
  height: 61px;
  padding: 0 34px;
  justify-content: space-between;
}

.hero__visual {
  flex: 0 0 522px;
  margin-top: 135px;
}

.hero__flip-outer {
  border-radius: 0;
  box-shadow: none;
}

.about {
  padding: 0 0 202px;
}

.about__inner {
  max-width: 1280px;
  padding: 0;
  gap: 0;
}

.about__worries {
  width: 1138px;
  height: 550px;
  margin: 0 auto 144px;
  padding: 58px 78px 54px;
  background: #2468C8;
  border-radius: 10px;
}

.about__worries-title {
  margin-bottom: 30px;
  color: #fff;
  font-size: 32px;
  line-height: 1.45;
  letter-spacing: 0.07em;
}

.about__worries-grid {
  max-width: none;
  gap: 3px 0;
}

.about__worry-card {
  width: 100%;
  height: 188px;
  min-height: 0;
  padding: 54px 48px;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0.07em;
  filter: none;
}

.about__worry-card::before {
  display: none;
}

.about__intro {
  margin-bottom: 62px;
}

.about__intro-title {
  gap: 12px;
  margin-bottom: 61px;
}

.about__intro-logo {
  width: 316px;
  height: auto;
}

.about__intro-title span {
  font-size: 46px;
  line-height: 1.25;
  letter-spacing: 0.07em;
}

.about__intro-text {
  max-width: 720px;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0.07em;
}

.about__intro-photos {
  display: none;
}

.about__showcase {
  width: 1000px;
  margin: 0 auto;
  gap: 0;
}

.about__showcase-item {
  padding: 0 36px;
}

.about__showcase-item + .about__showcase-item {
  border-left: 1px solid #CED6E0;
}

.about__showcase-photo {
  width: 250px;
  margin: 0 auto 28px;
  border-radius: 0;
}

.about__showcase-label {
  display: inline-flex;
  min-height: 48px;
  padding: 9px 22px;
  align-items: center;
  justify-content: center;
  border-radius: 40px;
  background: var(--color-bg-top);
  color: var(--color-blue-1);
  font-size: 16px;
  letter-spacing: 0.07em;
}

.reasons {
  padding: 64px 0 115px;
}

.reasons__inner {
  width: 1100px;
  padding: 0;
}

.reasons__grid {
  gap: 40px;
}

.reasons__card {
  height: 431px;
  padding: 53px 31px 38px;
}

.reasons__point {
  min-width: 102px;
  margin-bottom: 22px;
  padding: 3px 18px 2px;
  font-size: 14px;
  line-height: 24px;
}

.reasons__icon {
  width: 141px;
  height: 141px;
  margin-bottom: 13px;
}

.reasons__card-title {
  margin-bottom: 22px;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: 0.07em;
}

.reasons__card-text {
  text-align: left;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0.07em;
}

.price {
  min-height: 986px;
  padding: 34px 0 90px;
}

.price__inner {
  padding: 0;
}

.price .section-title {
  margin-bottom: 82px;
}

.price__card {
  width: 544px;
  height: 548px;
  padding: 52px 82px 37px;
}

.price__amount {
  margin-bottom: 29px;
}

.price__number {
  font-size: 40px;
  letter-spacing: 0.07em;
}

.price__unit {
  font-size: 20px;
  letter-spacing: 0.07em;
}

.price__divider {
  margin-bottom: 30px;
}

.price__list {
  gap: 20px;
  margin-bottom: 27px;
}

.price__item {
  gap: 7px;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0.07em;
}

.price__check {
  width: 24px;
  height: 24px;
  color: var(--color-blue-1);
  background: transparent;
  font-size: 19px;
}

.price__note {
  width: 570px;
  margin: 24px 0 0 -69px;
  font-size: 13px;
  line-height: 26px;
  letter-spacing: 0.07em;
}

.flow {
  min-height: 952px;
  padding: 66px 0 102px;
}

.flow__inner {
  width: 1072px;
  padding: 0;
}

.flow .section-title {
  margin-bottom: 104px;
}

.flow__content {
  gap: 70px;
}

.flow__card {
  flex-basis: 619px;
  height: 580px;
  padding: 79px 68px;
}

.flow__step {
  padding-left: 56px;
  padding-bottom: 39px;
}

.flow__step-num {
  width: 16px;
  height: 16px;
  top: 4px;
  box-shadow: none;
  border: 2px solid var(--color-blue-2);
  background: #fff;
}

.flow__step:first-child .flow__step-num,
.flow__step:last-child .flow__step-num {
  background: var(--color-blue-2);
}

.flow__step:not(:last-child)::before {
  left: 7px;
  top: 18px;
  bottom: -4px;
  width: 2px;
  background: var(--color-blue-2);
}

.flow__step-title {
  margin-bottom: 4px;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: 0.07em;
}

.flow__step-text {
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0.07em;
}

.flow__illustration {
  flex-basis: 360px;
  max-width: 360px;
  border-radius: 0;
}

.faq {
  padding: 99px 0 100px;
}

.faq__inner {
  width: 1120px;
  padding: 0;
  gap: 66px;
}

.faq__heading {
  flex-basis: 369px;
}

.faq__heading::after {
  right: 0;
}

.faq__body {
  padding-top: 3px;
}

.faq__list {
  gap: 15px;
}

.faq__question {
  min-height: 82px;
  padding: 18px 24px;
}

.faq__q-mark {
  font-size: 24px;
}

.faq__q-text {
  font-size: 18px;
  line-height: 26px;
  letter-spacing: 0.07em;
}

.faq__answer > p {
  padding-inline: 62px 30px;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0.07em;
}

.faq__item.is-open .faq__answer > p {
  padding: 0 30px 23px 62px;
}

.faq__support-note {
  margin-top: 33px;
  font-size: 13px;
  line-height: 24px;
  letter-spacing: 0.07em;
}

.notice {
  min-height: 395px;
  padding: 49px 0 56px;
}

.notice__inner {
  width: 971px;
  padding: 0;
}

.notice__title {
  margin-bottom: 23px;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: 0.07em;
}

.notice__list {
  max-width: none;
  gap: 0;
}

.notice__list li {
  font-size: 14px;
  line-height: 26px;
  letter-spacing: 0.07em;
}

.contact {
  min-height: 1670px;
  padding: 69px 0 48px;
}

.contact__inner {
  width: 837px;
  max-width: none;
  padding: 0;
}

.contact__heading {
  height: 154px;
  padding: 28px 24px;
  margin-bottom: 70px;
}

.contact__heading .eyebrow {
  margin-bottom: 8px;
}

.contact__title {
  font-size: 46px;
  line-height: 1.25;
  letter-spacing: 0.07em;
}

.contact__lead {
  margin-bottom: 101px;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0.07em;
}

.contact__form {
  text-align: left;
}

.contact__field {
  margin-bottom: 34px;
}

.contact__field label {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0.07em;
}

.contact__required {
  color: #F70C0C;
}

.contact__field input,
.contact__field textarea {
  display: block;
  width: 100%;
  height: 46px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: #F4F4F4;
  color: var(--color-text);
  font: inherit;
}

.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact__radios {
  display: flex;
  gap: 44px;
  padding: 0;
  margin: 5px 0 34px;
  border: 0;
}

.contact__radios label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0.07em;
}

.contact__radios input {
  accent-color: var(--color-text);
}

.contact__field textarea {
  height: 182px;
  resize: vertical;
}

.contact__submit {
  width: 100%;
  height: 56px;
  margin-top: 39px;
  border-radius: 10px;
  background: var(--color-orange);
  color: #fff;
  font-size: 20px;
  letter-spacing: 0.07em;
  transition: background-color .2s ease, transform .2s ease;
}

.contact__submit:hover {
  background: var(--color-orange-hover);
  transform: translateY(-1px);
}

.contact__privacy {
  margin-top: 16px;
  text-align: center;
  color: #A3A3A3;
  font-size: 14px;
  line-height: 26px;
  letter-spacing: 0.07em;
}

.contact__privacy a {
  color: var(--color-orange);
}

.footer {
  min-height: 1349px;
  padding: 67px 58px 50px;
  border-top: 2px solid #CED6E0;
}

.footer__inner {
  width: 1164px;
  max-width: none;
  padding: 0;
  align-items: flex-start;
}

.footer__nav-list {
  flex-direction: column;
  gap: 15px;
}

.footer__nav-list a {
  font-size: 14px;
  line-height: 26px;
  letter-spacing: 0.07em;
}

.footer__brand {
  margin-left: auto;
}

.footer__logo img {
  width: 380px;
  height: auto;
}

.footer__bottom {
  padding-top: 40px;
  border: 0;
  gap: 75px;
}

.footer__company-link,
.footer__copyright {
  color: var(--color-gray-text);
  font-size: 14px;
  line-height: 26px;
}

@media (max-width: 1100px) {
  :root {
    --gutter-header: 24px;
    --gutter-content: 32px;
  }

  .header {
    height: 88px;
    padding: 0;
  }

  .header__inner {
    height: 88px;
    border-radius: 0;
  }

  .hero,
  .hero__inner {
    height: auto;
  }

  .hero__inner,
  .about__inner,
  .reasons__inner,
  .price__inner,
  .flow__inner,
  .faq__inner,
  .notice__inner,
  .contact__inner,
  .footer__inner {
    width: 100%;
    max-width: 100%;
    padding-inline: var(--gutter-content);
  }

  .hero__inner {
    padding-top: 64px;
    padding-bottom: 72px;
    gap: 40px;
  }

  .hero__content,
  .hero__visual {
    flex: 1 1 50%;
  }

  .hero__visual {
    margin-top: 90px;
  }

  .hero__title {
    font-size: 42px;
    white-space: normal;
  }

  .hero__lead,
  .hero__features {
    width: 100%;
  }

  .about__worries,
  .about__showcase,
  .price__card {
    max-width: calc(100% - 64px);
  }

  .reasons__grid {
    gap: 24px;
  }

  .flow__content {
    gap: 36px;
  }

  .faq__heading {
    flex-basis: 30%;
  }

  .contact__inner {
    max-width: 900px;
  }
}

/* =========================================================
   Visual corrections from review screenshots
   ========================================================= */
body {
  font-weight: 600;
}

.hero__lead,
.about__intro-text,
.reasons__card-text,
.price__item,
.flow__step-text,
.faq__answer > p,
.faq__support-note,
.notice__list li,
.contact__lead {
  font-weight: 600;
}

/* Continue the hero tint behind the overlapping worries panel. */
.about {
  padding-top: 20px;
  padding-bottom: 182px;
  background: linear-gradient(
    to bottom,
    var(--color-bg-top) 0,
    var(--color-bg-top) 100px,
    var(--color-white) 100px,
    var(--color-white) 100%
  );
}

/* Center against the rounded rectangle, excluding the speech-bubble tail. */
.about__worry-card {
  padding-top: 44px;
  padding-bottom: 64px;
}

.about__intro-text {
  max-width: 760px;
}

.price__number {
  font-family: "Noto Sans JP", var(--font-jp);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.price__yen,
.price__unit {
  font-weight: 800;
}

.price__note {
  width: 570px;
  margin: 24px auto 0;
  font-weight: 600;
}

.flow__step-num {
  width: 24px;
  height: 24px;
  top: 0;
  border-width: 3px;
}

.flow__step:not(:last-child)::before {
  left: 11px;
  top: 24px;
  bottom: -8px;
}

.footer {
  min-height: 0;
}

/* Before is brief; after is the primary, longer-lived state. */
.hero__flip-card {
  animation-duration: 10s, 10s;
}

@keyframes heroFlipRotate {
  0%   { transform: rotateY(0deg); }
  18%  { transform: rotateY(0deg); }
  25%  { transform: rotateY(180deg); }
  88%  { transform: rotateY(180deg); }
  95%  { transform: rotateY(360deg); }
  100% { transform: rotateY(360deg); }
}

@keyframes heroFlipGate {
  0%    { opacity: 1; }
  20%   { opacity: 1; }
  21.5% { opacity: 0; }
  23%   { opacity: 1; }
  90%   { opacity: 1; }
  91.5% { opacity: 0; }
  93%   { opacity: 1; }
  100%  { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__flip-card {
    animation: heroFlipInstant 10s steps(1, jump-none) infinite;
  }

  @keyframes heroFlipInstant {
    0%   { transform: rotateY(0deg); }
    25%  { transform: rotateY(180deg); }
    95%  { transform: rotateY(360deg); }
    100% { transform: rotateY(360deg); }
  }
}

@media (max-width: 720px) {
  .about {
    padding-top: 16px;
    padding-bottom: 80px;
    background: linear-gradient(
      to bottom,
      var(--color-bg-top) 0,
      var(--color-bg-top) 72px,
      var(--color-white) 72px,
      var(--color-white) 100%
    );
  }

  .about__worry-card {
    padding-top: 44px;
    padding-bottom: 64px;
  }

  .price__note {
    width: auto;
    margin-top: 24px;
  }
}

@media (max-width: 900px) {
  .header__logo img {
    width: auto;
    height: 48px;
  }

  .header__nav {
    inset: 88px 0 0;
  }

  .hero__inner {
    flex-direction: column;
  }

  .hero__visual {
    width: 100%;
    margin-top: 0;
  }

  .hero__title {
    font-size: 40px;
  }

  .about__worries {
    width: calc(100% - 64px);
    height: auto;
    padding-inline: 48px;
  }

  .about__worries-grid {
    grid-template-columns: 1fr;
  }

  .about__worry-card {
    width: min(507px, 100%);
    margin-inline: auto;
  }

  .about__worries-grid {
    gap: 30px;
  }

  .about__intro-logo {
    width: 250px;
  }

  .about__showcase,
  .reasons__grid {
    width: 100%;
  }

  .reasons__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .reasons__card {
    height: auto;
  }

  .flow__content,
  .faq__inner {
    flex-direction: column;
  }

  .flow__card {
    width: 100%;
  }

  .flow__illustration {
    order: 0;
  }

  .faq__heading {
    flex-basis: auto;
  }

  .faq__heading::after {
    display: none;
  }

  .footer__logo img {
    width: min(380px, 100%);
  }

  .footer {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter-content: 20px;
  }

  .eyebrow {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .section-title {
    font-size: 32px;
    margin-bottom: 48px;
  }

  .hero__inner {
    padding-top: 44px;
    padding-bottom: 56px;
  }

  .hero__title {
    font-size: 31px;
    line-height: 1.45;
    letter-spacing: .06em;
    margin-bottom: 28px;
  }

  .hero__lead {
    margin-left: 0;
    line-height: 1.8;
  }

  .hero__features {
    flex-direction: column;
    gap: 14px;
  }

  .about {
    padding-bottom: 96px;
  }

  .about__worries {
    width: calc(100% - 32px);
    max-width: none;
    margin-bottom: 96px;
    padding: 44px 20px;
  }

  .about__worries-title {
    font-size: 25px;
    margin-bottom: 36px;
  }

  .about__worries-grid {
    grid-template-columns: 1fr;
  }

  .about__worry-card {
    min-height: 110px;
    padding: 14px 28px 34px;
  }

  .about__intro {
    padding-inline: 20px;
  }

  .about__intro-title {
    flex-direction: column;
    margin-bottom: 42px;
  }

  .about__intro-logo {
    width: 240px;
  }

  .about__intro-title span {
    font-size: 32px;
  }

  .about__showcase {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .about__showcase-item {
    padding: 34px 20px;
  }

  .about__showcase-item + .about__showcase-item {
    border-left: 0;
    border-top: 1px solid #CED6E0;
  }

  .price {
    min-height: auto;
    padding-bottom: 96px;
  }

  .price__card {
    width: 100%;
    max-width: 100%;
    height: auto;
    padding: 36px 24px;
  }

  .price__amount {
    gap: 2px;
  }

  .price__number {
    font-size: 34px;
  }

  .price__unit {
    font-size: 14px;
  }

  .price__note {
    width: auto;
    margin: 24px 0 0;
  }

  .flow {
    min-height: auto;
    padding-block: 72px;
  }

  .flow__card {
    height: auto;
    padding: 44px 24px;
  }

  .flow__step {
    padding-left: 40px;
  }

  .faq,
  .notice,
  .contact {
    padding-block: 72px;
  }

  .faq__question {
    padding: 18px;
  }

  .faq__q-text {
    font-size: 16px;
  }

  .faq__answer > p,
  .faq__item.is-open .faq__answer > p {
    padding-left: 48px;
  }

  .notice {
    min-height: auto;
  }

  .contact {
    min-height: auto;
  }

  .contact__heading {
    height: auto;
    margin-bottom: 48px;
  }

  .contact__title {
    font-size: 34px;
  }

  .contact__lead {
    margin-bottom: 64px;
  }

  .contact__row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact__radios {
    flex-direction: column;
    gap: 12px;
  }

  .footer {
    min-height: auto;
    padding: 52px 0;
  }

  .footer__inner {
    flex-direction: column;
    gap: 52px;
  }

  .footer__brand {
    width: 100%;
    margin: 0;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Final override: 3D card flip and responsive speech bubbles. */
.hero__flip-outer {
  perspective: 1600px;
}

.hero__flip-card {
  transform-style: preserve-3d;
  animation: heroCardFlip 8.2s ease-in-out infinite;
}

.hero__flip-card::after {
  display: none;
  content: none;
}

.hero__flip-face,
.hero__flip-face--front,
.hero__flip-face--back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero__flip-face--front {
  z-index: 1;
  opacity: 1;
  transform: rotateY(0deg) translateZ(0.1px);
  animation: none;
}

.hero__flip-face--back {
  z-index: 1;
  opacity: 1;
  background: var(--color-bg-top);
  clip-path: none;
  transform: rotateY(180deg) translateZ(0.1px);
  animation: none;
}

@keyframes heroCardFlip {
  0%,
  21.95% {
    transform: rotateY(0deg);
  }
  30.5%,
  85.35% {
    transform: rotateY(180deg);
  }
  93.9%,
  100% {
    transform: rotateY(360deg);
  }
}

.about__worry-card {
  height: auto;
  min-height: 146px;
  padding: 42px 48px 52px;
  overflow: visible;
  border-radius: 16px;
  background: var(--color-white);
}

.about__worry-card::before {
  display: none;
}

.about__worry-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 36px;
  bottom: -17px;
  width: 34px;
  height: 18px;
  background: url("images/fukidasi-tuno.svg") center / 100% 100% no-repeat;
}

.about__worries-grid {
  position: relative;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero__flip-card {
    transform: rotateY(180deg);
    animation: none;
  }

  .hero__flip-face--front {
    animation: none;
  }

  .hero__flip-face--back {
    clip-path: none;
    animation: none;
  }

  .hero__flip-card::after {
    display: none;
    animation: none;
  }
}

@media (max-width: 720px) {
  .about__worry-card {
    min-height: 120px;
    padding: 28px 28px 38px;
  }

  .about__worry-card::after {
    left: 28px;
  }
}

/* Enlarge the desktop hero artwork into the unused right gutter. */
@media (min-width: 1101px) {
  .hero__inner {
    padding-right: 0;
    gap: 0;
  }

  .hero__content {
    flex-basis: clamp(450px, calc(46.4vw - 60.86px), 533px);
    position: relative;
    z-index: 2;
  }

  .hero__lead,
  .hero__features {
    width: 100%;
  }

  .hero__title {
    font-size: clamp(44px, calc(4.47vw - 5.21px), 52px);
  }

  .hero__visual {
    flex-basis: clamp(536px, calc(35.8vw + 141.84px), 600px);
    margin-right: clamp(32px, calc(17.9vw - 165.08px), 64px);
    margin-top: 120px;
    position: relative;
    z-index: 1;
  }
}

/* Medium screens: headline spans the row; details and artwork form two columns. */
@media (min-width: 901px) and (max-width: 1100px) {
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 32px;
    row-gap: 30px;
  }

  .hero__content {
    display: contents;
  }

  .hero__title {
    grid-column: 1 / -1;
    margin-bottom: 0;
    white-space: nowrap;
  }

  .hero__details {
    grid-column: 1;
    min-width: 0;
  }

  .hero__visual {
    grid-column: 2;
    width: 100%;
    margin-top: 0;
  }

  .hero__lead {
    max-width: none;
  }
}

/* =========================================================
   Contact Form 7
   The field set can change without losing the common visual rhythm.
   ========================================================= */
.contact__form-wrap,
.contact .wpcf7 {
  width: 100%;
  text-align: left;
}

.contact .wpcf7-form > p {
  margin: 0 0 34px;
}

/* CF7の自動整形で生じた空段落に、項目間余白を持たせない */
.contact .wpcf7-form > p:empty,
.contact .wpcf7-form > p:has(> br:only-child) {
  display: none;
  margin: 0;
}

.contact .wpcf7-form .contact__field {
  margin-top: 0;
  margin-bottom: 34px;
}

.contact .wpcf7-form label {
  display: block;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0.07em;
}

.contact .wpcf7-form-control-wrap {
  display: block;
  margin-top: 10px;
}

.contact .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-radio):not(.wpcf7-checkbox),
.contact .wpcf7-form select {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  outline: none;
  background: #F4F4F4;
  color: var(--color-text);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact .wpcf7-form textarea.wpcf7-form-control {
  min-height: 182px;
  resize: vertical;
}

.contact .wpcf7-form-control:focus {
  border-color: var(--color-blue-2);
  box-shadow: 0 0 0 3px rgba(30, 101, 200, 0.14);
}

.contact .wpcf7-list-item {
  margin: 0;
}

.contact .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.contact .wpcf7-list-item input {
  accent-color: var(--color-text);
}

.contact .contact__radios {
  display: block;
  margin: 5px 0 34px;
}

.contact .contact__radios legend {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0.07em;
}

.contact .contact__radios .wpcf7-form-control-wrap {
  margin-top: 0;
}

.contact .contact__radios .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
}

.contact .contact__radios .wpcf7-list-item-label {
  line-height: 1.6;
}

.contact__actions {
  position: relative;
  width: 100%;
}

.contact .wpcf7-submit {
  display: block;
  width: 100%;
  height: 56px;
  margin-top: 39px;
  border: 0;
  border-radius: 10px;
  background: var(--color-orange);
  color: var(--color-white);
  font-size: 20px;
  letter-spacing: 0.07em;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact .wpcf7-submit:hover {
  background: var(--color-orange-hover);
  transform: translateY(-1px);
}

.contact .wpcf7-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.contact .wpcf7-spinner {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: block;
  margin: 0;
}

.contact .wpcf7-not-valid-tip {
  margin-top: 7px;
  color: #C62828;
  font-size: 13px;
  line-height: 1.6;
}

.contact .wpcf7-not-valid {
  border-color: #C62828 !important;
}

.contact .wpcf7-response-output {
  margin: 24px 0 0 !important;
  padding: 14px 18px !important;
  border-width: 1px !important;
  border-radius: 10px;
  background: var(--color-white);
  font-size: 14px;
  line-height: 1.8;
}

/* Contact Form 7: prominent, brand-colored submission feedback. */
.contact .wpcf7 form.sent .wpcf7-response-output {
  position: relative;
  margin-top: 28px !important;
  padding: 24px 28px 24px 82px !important;
  border: 2px solid var(--color-blue-2) !important;
  border-radius: 14px;
  background: var(--color-bg-top);
  box-shadow: 0 10px 28px rgba(6, 13, 75, 0.12);
  color: var(--color-text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.8;
  animation: contactMessageIn 0.35s ease-out both;
}

.contact .wpcf7 form.sent .wpcf7-response-output::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 26px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-orange);
  color: var(--color-white);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
}

.contact .wpcf7 form.invalid .wpcf7-response-output,
.contact .wpcf7 form.failed .wpcf7-response-output,
.contact .wpcf7 form.spam .wpcf7-response-output {
  border-color: #C62828 !important;
  background: #FFF5F5;
  color: #8E1B1B;
}

@keyframes contactMessageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact__plugin-notice {
  padding: 18px 20px;
  border-radius: 10px;
  background: var(--color-white);
  color: #C62828;
  text-align: center;
}

@media (max-width: 720px) {
  .contact .wpcf7-form > p {
    margin-bottom: 26px;
  }

  .contact .wpcf7-form .contact__field {
    margin-bottom: 26px;
  }

  .contact .contact__radios .wpcf7-radio {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .contact .wpcf7-submit {
    margin-top: 28px;
    font-size: 18px;
  }

  .contact .wpcf7 form.sent .wpcf7-response-output {
    padding: 58px 20px 20px !important;
    font-size: 15px;
    text-align: center;
  }

  .contact .wpcf7 form.sent .wpcf7-response-output::before {
    top: 16px;
    left: 50%;
    width: 32px;
    height: 32px;
    font-size: 18px;
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact .wpcf7 form.sent .wpcf7-response-output {
    animation: none;
  }
}

.reasons__card:nth-child(3) .reasons__card-title {
  white-space: nowrap;
  font-size: clamp(18px, 5.4vw, 24px);
}

.reasons__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reasons__card {
  min-width: 0;
  width: 100%;
}

@media (min-width: 901px) and (max-width: 1100px) {
  .reasons__grid {
    gap: 20px;
    align-items: stretch;
  }

  .reasons__card {
    height: 100%;
    padding-inline: 20px;
  }

  .reasons__card:nth-child(3) .reasons__card-title {
    white-space: normal;
    font-size: 24px;
    letter-spacing: 0.07em;
  }
}

@media (max-width: 900px) {
  .reasons__grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   SP layout refinements
   ========================================================= */
@media (max-width: 720px) {
  /* Keep the compact header visible while reading the page. */
  .header {
    position: fixed;
    inset: 0 0 auto;
    width: 100%;
    height: 88px;
    padding: 0 12px;
    z-index: 100;
  }

  .header__inner {
    height: 88px;
    padding-inline: 16px;
  }

  .header__nav {
    inset: 88px 0 0;
  }

  main {
    padding-top: 88px;
  }

  /* On mobile, introduce each feature by its label, followed by the visual. */
  .about__showcase-item {
    display: flex;
    flex-direction: column;
    padding-block: 36px;
  }

  .about__showcase-label {
    order: 1;
    margin-bottom: 28px;
  }

  .about__showcase-photo {
    order: 2;
    margin-bottom: 0;
  }

  /* Use one consistent heading-to-content rhythm across SP sections. */
  .reasons .section-title,
  .price .section-title,
  .flow .section-title {
    margin-bottom: 48px;
  }

  .faq__inner {
    gap: 40px;
  }

  .faq .section-title {
    margin-bottom: 0;
  }

  /* Prevent the desktop flex-basis from becoming excess card height. */
  .flow__card {
    flex: none;
    height: auto;
    padding: 40px 24px 32px;
  }

  .flow__step:last-child {
    padding-bottom: 0;
  }

  .flow__illustration {
    width: 60%;
    max-width: 240px;
    flex: none;
    margin-inline: auto;
  }

  .footer__logo img {
    width: 228px;
    max-width: 60vw;
    height: auto;
  }
}

/* PC worry panel: restore the spacing and proportions from the Figma comp. */
@media (min-width: 901px) {
  .about__worries {
    padding: 58px 100px 54px;
  }

  .about__worries-title {
    margin-bottom: 56px;
  }

  .about__worries-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
    row-gap: 70px;
  }

  .about__worry-card {
    width: 100%;
    height: 120px;
    min-height: 120px;
    padding: 25px 36px 35px;
    border-radius: 14px;
  }

  .about__worry-card::after {
    left: 36px;
  }
}

/* The fixed SP header is a full-width white band. */
@media (max-width: 720px) {
  .header {
    padding: 0;
    background: var(--color-white);
  }

  .header__inner {
    width: 100%;
    border-radius: 0;
  }
}

/* Medium and small flow layout: steps first, illustration second. */
@media (max-width: 980px) {
  .flow__content {
    flex-direction: column;
  }

  .flow__card {
    flex: none;
    width: 100%;
    height: auto;
    padding: 48px 40px 40px;
  }

  .flow__illustration {
    order: 0;
    flex: none;
    width: min(60%, 360px);
    max-width: 360px;
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .flow__card {
    padding: 40px 24px 32px;
  }
}

/* Card rhythm: reserve space using the most text-heavy sibling as the basis. */
.reasons__grid {
  align-items: stretch;
}

.reasons__card {
  height: 100%;
  padding: 40px 28px 38px;
}

.reasons__point {
  margin-bottom: 16px;
}

.reasons__icon {
  margin-bottom: 10px;
}

.reasons__card-title {
  min-height: 65px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1101px) {
  .reasons__card-text {
    min-height: 78px;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .reasons__card-text {
    min-height: 104px;
  }
}

@media (max-width: 900px) {
  .reasons__card {
    height: auto;
  }

  .reasons__card-title {
    min-height: 33px;
  }

  .reasons__card-text {
    min-height: 78px;
  }
}

.price__card {
  height: auto;
}

.price__list {
  margin-bottom: 0;
}

@media (min-width: 981px) {
  .flow__card {
    height: auto;
    padding: 56px 68px 48px;
  }
}

/* Review feedback (2026-07-31). */
.button__arrow {
  width: 16.5px;
  height: 33px;
  object-fit: contain;
  flex: none;
}

.button:hover .button__arrow {
  transform: translateX(4px);
}

@media (min-width: 1101px) {
  .flow__content {
    gap: 60px;
  }

  .flow__illustration {
    flex-basis: 390px;
    width: 390px;
    max-width: 390px;
  }
}

@media (min-width: 1200px) {
  .contact__lead {
    width: min(1100px, calc(100vw - 64px));
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }
}

.footer__nav-list a,
.footer__company-link,
.footer__copyright {
  font-weight: 600;
}

.footer__company-arrow {
  transform: none;
  font-size: 17px;
  line-height: 1;
}

@media (max-width: 900px) {
  .faq__heading {
    width: 100%;
    text-align: center;
  }

  .faq__heading .eyebrow {
    text-align: center;
  }
}

@media (max-width: 720px) {
  .hero__features {
    width: fit-content;
    margin-inline: auto;
    align-items: stretch;
  }

  .hero__feature {
    justify-content: flex-start;
  }

  .hero__cta {
    display: flex;
    width: fit-content;
    margin-inline: auto;
  }

  .price__list {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
  }
}

/* Keep the global header visible at every viewport width. */
.header {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
}

@media (min-width: 1101px) {
  .header {
    background: var(--color-bg-top);
  }

  .header.is-scrolled {
    background: transparent;
  }
}

main {
  padding-top: 103px;
  background: linear-gradient(
    to bottom,
    var(--color-bg-top) 0,
    var(--color-bg-top) 103px,
    transparent 103px
  );
}

html {
  scroll-padding-top: 119px;
}

@media (max-width: 1100px) {
  main {
    padding-top: 88px;
    background: linear-gradient(
      to bottom,
      var(--color-bg-top) 0,
      var(--color-bg-top) 88px,
      transparent 88px
    );
  }

  html {
    scroll-padding-top: 104px;
  }
}

.hero__title-line {
  display: inline-block;
  white-space: nowrap;
}

/* 長い正式キャッチコピーは、意味のまとまり単位でのみ折り返す */
.hero__title--long {
  font-size: clamp(28px, 3vw, 40px);
  white-space: normal;
}

.hero__title-segment {
  display: inline-block;
  white-space: nowrap;
}

@media (min-width: 901px) and (max-width: 1100px) {
  .hero__title--long {
    font-size: 40px;
    line-height: 1.3;
    letter-spacing: 0.07em;
    white-space: normal;
  }
}

/*
 * Keep the two-line catch copy strong at tablet / narrow-laptop widths.
 * The slightly tighter tracking leaves room to scale the type instead of
 * shrinking it to the 28px floor of the generic long-title rule.
 */
@media (min-width: 600px) and (max-width: 900px) {
  .hero__inner {
    padding-inline: clamp(17px, 3vw, 28px);
  }

  .hero__title--long {
    font-size: clamp(28px, calc(4.1vw + 3.4px), 38px);
    line-height: 1.32;
    letter-spacing: 0.06em;
  }
}

/* 1カラム幅では2行を優先し、足りないときだけ文節境界で自然に折り返す */
@media (max-width: 1100px) {
  .hero__break--detail {
    display: none;
  }
}

@media (max-width: 420px) {
  .hero__title {
    font-size: clamp(24px, 7.4vw, 28px);
    letter-spacing: 0.04em;
  }
}

/* SP hero reading order: catch copy, artwork, then supporting details. */
@media (max-width: 720px) {
  .hero__inner {
    align-items: stretch;
    gap: 28px;
  }

  .hero__content {
    display: contents;
  }

  .hero__title {
    order: 1;
    width: 100%;
    margin-bottom: 0;
  }

  .hero__visual {
    order: 2;
    width: 100%;
    margin: 0;
  }

  .hero__details {
    order: 3;
    min-width: 0;
  }
}

/* Keep the full navigation on one line at tablet / medium widths. */
@media (min-width: 901px) and (max-width: 1279px) {
  .header__inner {
    padding-inline: clamp(16px, 2.2vw, 24px);
    gap: clamp(24px, 2.8vw, 30px);
  }

  .header__logo {
    flex: 0 0 auto;
  }

  .header__logo img {
    width: clamp(130px, 14vw, 150px);
    height: auto;
  }

  .header__nav {
    flex: 1 1 auto;
    min-width: 0;
    gap: clamp(24px, 2.8vw, 30px);
  }

  .header__nav-list {
    flex: 1 1 auto;
    justify-content: center;
    gap: clamp(20px, 2.4vw, 26px);
    min-width: 0;
  }

  .header__nav-list li,
  .header__nav-list a {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .header__nav-list a {
    font-size: clamp(12px, 1.35vw, 15px);
    letter-spacing: 0.04em;
  }

  .header__cta {
    flex: 0 0 clamp(150px, 17vw, 180px);
    width: auto;
    height: 52px;
    padding-inline: clamp(20px, 2.4vw, 26px) clamp(16px, 2vw, 22px);
    font-size: clamp(14px, 1.45vw, 16px);
    white-space: nowrap;
  }
}

/*
 * Bridge the narrow gap above the main 1100px breakpoint. Fixed desktop
 * section widths must not create a horizontal canvas while the viewport is
 * being resized through small-laptop widths.
 */
@media (min-width: 1101px) and (max-width: 1279px) {
  .about__worries {
    max-width: calc(100% - 64px);
  }

  .faq__inner {
    width: 100%;
    padding-inline: 32px;
  }

  .footer {
    padding-inline: 32px;
  }

  .footer__inner {
    width: 100%;
    max-width: 100%;
  }
}

/* Comparison variant: keep the medium-width hero composition on wide screens. */
@media (min-width: 1101px) {
  .hero-layout--two-line .hero,
  .hero-layout--two-line .hero__inner {
    height: auto;
  }

  .hero-layout--two-line .hero__inner {
    min-height: 709px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
    grid-template-rows: max-content max-content;
    align-content: center;
    align-items: center;
    max-width: 1280px;
    padding: 64px;
    column-gap: 48px;
    row-gap: 14px;
  }

  .hero-layout--two-line .hero__content {
    display: contents;
  }

  .hero-layout--two-line .hero__title--long {
    grid-column: 1 / -1;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
    font-size: clamp(40px, 4.06vw, 52px);
    line-height: 1.3;
    letter-spacing: 0.07em;
    white-space: normal;
  }

  .hero-layout--two-line .hero__break--detail {
    display: none;
  }

  .hero-layout--two-line .hero__details {
    grid-column: 1;
    min-width: 0;
    align-self: start;
    margin-top: 20px;
  }

  .hero-layout--two-line .hero__visual {
    grid-column: 2;
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0;
    align-self: start;
    transform: translateY(-75px) scale(1.2);
    transform-origin: center top;
  }
}

/* Hero copy hierarchy: supporting thought first, primary promise second. */
.hero__title-sentence {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.45;
  letter-spacing: 0.08em;
}

.hero__break--main {
  display: none;
}

.hero__break--detail,
.hero-layout--two-line .hero__break--detail {
  display: inline;
}

@media (min-width: 1101px) {
  .hero-layout--two-line .hero__title--long {
    line-height: 1.18;
  }

  .hero__title-sentence {
    font-size: clamp(28px, 2.4vw, 32px);
  }
}

@media (max-width: 599px) {
  .hero__title-sentence {
    font-size: clamp(14px, 4.4vw, 20px);
    line-height: 1.5;
    letter-spacing: 0.04em;
  }

  .hero__lead {
    font-size: clamp(14px, 3.4vw, 15px);
    line-height: 1.85;
    letter-spacing: 0.04em;
    text-wrap: wrap;
    word-break: normal;
  }
}

@media (min-width: 721px) and (max-width: 900px) {
  .hero__title {
    margin-bottom: 28px;
  }

  .hero__lead {
    width: min(100%, 38em);
    text-wrap: pretty;
  }
}
