@charset "UTF-8";
/* ポートフォリオ v2 スタイル
   ------------------------------------------------------------------
   style.css / style_v2.css は残してあります。こちらは index_v5.html 専用です。
   色や余白を変えたいときは、まず下の :root の値を書き換えてください。
   ------------------------------------------------------------------ */

:root {
  --text: #2c2c2c;
  --sub: #77776f;
  --accent: #2c4a6e;
  --accent-soft: #eef2f7;
  --line: #e4e2dd;
  --bg-soft: #faf9f6;
  --inner: 980px;
  --serif: "Noto Serif JP", "Yu Mincho", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 10px 18px; z-index: 100;
}
.skip-link:focus { left: 0; }

.inner { max-width: var(--inner); margin: 0 auto; padding: 0 24px; width: 100%; }

h1, h2, h3, .lead { font-family: var(--serif); }

h2 { font-size: 1.45rem; font-weight: 700; text-align: center; line-height: 1.6; margin-bottom: 16px; }

.section-eyebrow {
  text-align: center; font-family: var(--serif);
  font-size: 0.72rem; letter-spacing: 0.28em; color: var(--sub); margin-bottom: 6px;
}
.section-note { text-align: center; font-size: 0.92rem; line-height: 1.8; color: var(--sub); margin-bottom: 44px; }
h2:last-of-type { margin-bottom: 44px; }
h2:has(+ .section-note) { margin-bottom: 24px; }  /* PC：見出しと説明文の間（スマホは16px） */
h2 + .section-note { margin-top: 0; }

section { padding: 88px 0; }
.is-soft { background: var(--bg-soft); }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  font-size: 0.92rem; letter-spacing: 0.08em; padding: 16px 40px;
  text-decoration: none; border-radius: 2px; transition: opacity 0.25s;
}
.btn:hover { opacity: 0.82; }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: #fff; opacity: 1; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ヘッダー */
.header {
  position: sticky; top: 0; z-index: 20;
  padding: 12px 0; background: rgba(255,255,255,0.93);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.header__logo { display: block; flex: none; }
.header__logo img { display: block; height: 52px; width: auto; margin-left: -26px; } /* ロゴ画像の左の余白を詰めて、本文の左端にそろえる */
.header__nav { display: flex; align-items: center; gap: 26px; }
.header__nav a { color: var(--text); text-decoration: none; font-size: 0.84rem; }
.header__nav a:hover { color: var(--accent); }
.header__nav .btn { padding: 10px 22px; font-size: 0.8rem; color: #fff; }
.header__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.header__toggle span { width: 22px; height: 1px; background: var(--text); }

/* ヒーロー */
.hero { position: relative; display: flex; align-items: center; min-height: calc(100dvh - 70px); padding: 0; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 85%; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 34%, rgba(255,255,255,0.15) 66%);
}
.hero__inner { position: relative; z-index: 1; padding-top: 40px; padding-bottom: 40px; }
/* 2重にずらした細い枠（参考：すっきり見やすく…のデザイン） */
.hero__frame {
  position: relative; display: inline-block; margin: 26px 0 44px;
  padding: 44px 64px 40px 48px; border: 1.5px solid var(--accent);
}
.hero__frame::before, .hero__frame::after { content: ""; position: absolute; pointer-events: none; }
.hero__frame::before {   /* 左上にずれた枠 */
  top: -16px; left: 28px; width: 46%; height: 58%;
  border-top: 1.5px solid var(--accent); border-left: 1.5px solid var(--accent);
}
.hero__frame::after {    /* 右下にずれた枠 */
  bottom: -16px; right: -26px; width: 50%; height: 55%;
  border-bottom: 1.5px solid var(--accent); border-right: 1.5px solid var(--accent);
}
.hero__title { color: var(--accent); font-weight: 500; line-height: 1.3; }
.hero__title-sm { display: block; font-size: 1.8rem; letter-spacing: 0.14em; }
.hero__title-lg { display: block; font-size: 3.7rem; letter-spacing: 0.1em; padding-left: 1.4em; white-space: nowrap; }
.hero__catch { font-family: var(--serif); color: var(--text); font-size: 1.5rem; letter-spacing: 0.04em; line-height: 1.7; margin-top: 30px; padding-left: 0.2em; }
.hero__catch span { display: inline-block; }
.hero__badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.hero__badges li {
  font-size: 0.78rem; letter-spacing: 0.04em; background: rgba(255,255,255,0.8);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px;
}

/* お悩み */
.nobr { display: inline-block; }
/* 吹き出し（会話風）：左右交互に並べる */
.talk { list-style: none; max-width: 640px; margin: 0 auto; display: grid; gap: 16px; }
.talk li { display: flex; align-items: flex-start; gap: 14px; }
.talk li:nth-child(even) { flex-direction: row-reverse; }
.talk__face { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #dfe6ee; display: flex; align-items: center; justify-content: center; }
.talk__face svg { width: 26px; height: 26px; fill: var(--accent); }
.talk__bubble { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; font-size: 0.95rem; line-height: 1.7; }
.talk__bubble::before {
  content: ""; position: absolute; top: 15px; left: -7px; width: 12px; height: 12px;
  background: #fff; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg);
}
.talk li:nth-child(even) .talk__bubble::before { left: auto; right: -7px; transform: rotate(-135deg); }
.talk__bubble span { display: inline-block; }   /* 言葉の区切りで折り返す */
.talk__icon { display: none; width: 40px; height: 40px; margin: 0 auto 12px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* パソコン：吹き出しではなく、アイコン付きのカードを横4列に並べる */
@media (min-width: 769px) {
  .talk { max-width: 720px; grid-template-columns: repeat(2, 1fr); gap: 20px; }  /* 小さめの画面は2列 */
  .talk li { display: block; }
  .talk__face, .talk__bubble .talk__dots { display: none; }
  .talk__icon { display: block; }
  .talk__bubble { height: 100%; text-align: center; border-radius: 10px; padding: 28px 14px 24px; font-size: 0.92rem; }
  .talk__bubble::before { display: none; }
}
@media (min-width: 1000px) {
  .talk { max-width: none; grid-template-columns: repeat(4, 1fr); }  /* 広い画面は横4列 */
}
.pains__answer { text-align: center; margin-top: 40px; font-family: var(--serif); font-size: 1.05rem; line-height: 2; }

/* 社外のWEB担当者とは */
.role__list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; margin-top: 8px; }
.role__list li { background: #fff; border: 1px solid var(--line); padding: 22px 24px; font-size: 0.9rem; }
.role__list b { display: block; font-family: var(--serif); font-size: 0.98rem; margin-bottom: 4px; }
.role__list span { color: var(--sub); font-size: 0.85rem; }
.role__close { text-align: center; margin-top: 36px; font-size: 0.95rem; line-height: 2.1; }

/* サービス */
.service__feature {
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
  background: var(--accent-soft); border: 1px solid #dbe3ec; padding: 36px 40px; margin-bottom: 40px;
}
.service__feature h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service__feature p { font-size: 0.9rem; }
.service__tag {
  display: inline-block; font-size: 0.7rem; letter-spacing: 0.16em; color: #fff;
  background: var(--accent); padding: 3px 12px; margin-bottom: 12px;
}
.service__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.service__card { text-align: center; }
.service__card img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 16px; }
.service__card h3 { font-size: 1rem; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.service__card p { font-size: 0.85rem; color: var(--sub); }

/* 料金 */
.price__group { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 34px 30px 30px; }
.price__group + .price__group { margin-top: 40px; }
.price__step { text-align: center; line-height: 1.6; }
.price__step span {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: 0.85rem; letter-spacing: 0.04em; padding: 6px 20px; border-radius: 999px;
}
.price__heading { font-size: 1.1rem; text-align: center; margin: 10px 0 24px; }
.price__heading small { display: block; margin-top: 6px; font-size: 0.74rem; font-weight: 400; letter-spacing: 0.08em; color: var(--sub); }
.price__groupnote { margin-top: 20px; text-align: center; font-size: 0.8rem; color: var(--sub); }
.price__lead { text-align: center; font-size: 0.88rem; color: var(--sub); margin: -10px 0 24px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plans--two { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); padding: 34px 26px 28px; text-align: center; }
.plan.is-featured { border: 2px solid var(--accent); }
.plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--accent); color: #fff; font-size: 0.72rem; letter-spacing: 0.1em; padding: 3px 16px; border-radius: 999px;
}
.plan.is-sub { border-color: #b9c6d6; }
.plan__badge--sub { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
.plan__name { font-family: var(--serif); font-size: 1.05rem; }
.plan__target { font-size: 0.78rem; color: var(--sub); margin-top: 2px; }
.plan__price { font-family: var(--serif); font-size: 2.1rem; font-weight: 700; color: var(--accent); line-height: 1.3; margin-top: 16px; }
.plan__price small, .plan__price span { font-size: 0.95rem; margin: 0 2px; }
.plan__tax { font-size: 0.75rem; color: var(--sub); }
.plan__pages { font-size: 0.82rem; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.plan__extra { font-size: 0.76rem; color: var(--accent); background: var(--accent-soft); padding: 10px 12px; margin-top: 14px; }
.plan__list { list-style: none; text-align: left; font-size: 0.84rem; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.plan__list li { position: relative; padding: 4px 0 4px 22px; }
.plan__list li::before { content: "✓"; position: absolute; left: 2px; color: var(--accent); }
.plan__prices { margin-top: 18px; text-align: left; }
.plan__prices div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.plan__prices dt { font-size: 0.76rem; line-height: 1.5; color: var(--sub); }
.plan__prices dd { text-align: right; font-size: 0.85rem; color: var(--accent); white-space: nowrap; }
.plan__prices b { font-family: var(--serif); font-size: 1.6rem; margin: 0 2px; }
.plan__prices small { display: block; font-size: 0.7rem; color: var(--sub); }
.price__label small { font-weight: 400; font-size: 0.75rem; color: var(--sub); margin-left: 6px; }
.price__label { font-family: var(--serif); font-weight: 700; font-size: 0.92rem; margin-bottom: 12px; }
.price__includes { background: #fff; border: 1px solid var(--line); padding: 24px 28px; margin-top: 24px; }
.price__includes ul { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 24px; font-size: 0.84rem; }
.price__includes li::before { content: "・"; color: var(--accent); }
.price__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.price__row--single { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
.price__box { border: 1px solid var(--line); padding: 22px 24px; }
.price__table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.price__table th, .price__table td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.price__table th { text-align: left; font-weight: 400; }
.price__table td { text-align: right; white-space: nowrap; padding-left: 12px; font-weight: 700; }
.price__note { font-size: 0.78rem; color: var(--sub); margin-top: 24px; }
.price__cta { text-align: center; margin-top: 32px; }
/* はじめ方（3ステップ） */
.steps { margin-top: 36px; }
.steps .price__label { text-align: center; }
.steps__list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps__list li { position: relative; background: #fff; border: 1px solid var(--line); padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 4px; }
.steps__list li:not(:last-child)::after { content: ""; position: absolute; right: -12px; top: 50%; width: 8px; height: 8px; border-top: 1.5px solid var(--accent); border-right: 1.5px solid var(--accent); transform: translateY(-50%) rotate(45deg); }
.steps__num { font-family: var(--serif); font-size: 0.75rem; color: #fff; background: var(--accent); width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.steps__list b { font-family: var(--serif); font-size: 1rem; margin-top: 6px; }
.steps__price { font-family: var(--serif); color: var(--accent); font-weight: 700; }
.steps__text { font-size: 0.82rem; color: var(--sub); line-height: 1.7; }
/* 担当者プランのお客様だけの特典 */
.perk { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; text-align: center; background: var(--accent-soft); border: 1px dashed #b9c6d6; padding: 16px 20px; margin-bottom: 28px; }
.perk__tag { font-size: 0.72rem; letter-spacing: 0.08em; color: #fff; background: var(--accent); padding: 3px 12px; border-radius: 999px; }
.perk p b { display: block; font-size: 0.95rem; color: var(--accent); }
.perk p span { font-size: 0.8rem; color: var(--sub); }
.price__table th small { display: block; font-size: 0.72rem; color: var(--sub); }
.plan__list small { display: block; font-size: 0.74rem; color: var(--sub); line-height: 1.5; }
.plan__term { font-size: 0.78rem; color: var(--sub); margin-top: 10px; }
.price__includes-note { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 0.84rem; color: var(--accent); }

/* 実績 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.card img { width: 100%; height: auto; aspect-ratio: 800 / 420; object-fit: cover; display: block; }
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__cat { font-size: 0.72rem; letter-spacing: 0.14em; color: var(--sub); }
.card h3 { font-size: 0.98rem; margin: 6px 0 10px; }
.card p { font-size: 0.84rem; color: var(--sub); }
.card__shot { display: block; overflow: hidden; }
.card__shot img { transition: transform 0.4s; }
.card__shot:hover img { transform: scale(1.03); }
.card__link { margin-top: 12px; font-size: 0.84rem; }
.card__link a { color: var(--accent); text-decoration: none; }
.card__link a::after { content: " →"; }
.card__link a:hover { text-decoration: underline; }
.card__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 16px; }
.card__tags li { font-size: 0.7rem; color: var(--accent); border: 1px solid #d5dde7; background: var(--accent-soft); padding: 2px 10px; border-radius: 999px; }

/* 制作サンプル */
.works__feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: center; background: #fff; border: 1px solid var(--line); padding: 24px; margin-bottom: 32px; }
.works__shot { display: block; overflow: hidden; border: 1px solid var(--line); }
.works__shot img { display: block; width: 100%; height: auto; transition: transform 0.4s; }
.works__shot:hover img { transform: scale(1.03); }
.works__body h3 { font-size: 1.2rem; margin: 4px 0 10px; }
.works__body > p:not(.card__cat) { font-size: 0.86rem; color: var(--sub); }
.works__body .card__tags { margin: 14px 0 22px; padding-top: 0; }
.works__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.works__grid figcaption { font-size: 0.8rem; color: var(--sub); margin-top: 8px; }
.works__grid img { width: 100%; height: auto; aspect-ratio: 800 / 500; object-fit: cover; object-position: center top; display: block; }

/* ご相談の流れ */
.flow { list-style: none; counter-reset: step; max-width: 720px; margin: 0 auto; }
.flow li { position: relative; counter-increment: step; padding: 0 0 34px 62px; }
.flow li::before {
  content: "0" counter(step); position: absolute; left: 0; top: 0;
  font-family: var(--serif); font-size: 0.85rem; letter-spacing: 0.1em; color: #fff;
  background: var(--accent); width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 46px; bottom: 6px; width: 1px; background: var(--line); }
.flow h3 { font-size: 1rem; margin-bottom: 4px; padding-top: 8px; }
.flow p { font-size: 0.87rem; color: var(--sub); }

/* よくあるご質問 */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 30px; position: relative; font-size: 0.93rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 2px; font-family: var(--serif); color: var(--accent); }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px;
  border-right: 1px solid var(--sub); border-bottom: 1px solid var(--sub);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.25s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .faq__a { padding: 0 30px 22px; font-size: 0.87rem; color: var(--sub); }

/* プロフィール */
.profile__grid { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.profile__name { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; }
.profile__name span { display: block; font-size: 0.72rem; letter-spacing: 0.16em; color: var(--sub); font-weight: 400; margin-top: 4px; }
.profile__meta { list-style: none; margin-top: 20px; font-size: 0.82rem; color: var(--sub); }
.profile__meta li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.profile__meta b { color: var(--text); font-weight: 500; margin-right: 8px; }
.profile__text p + p { margin-top: 18px; }
.profile__text { font-size: 0.92rem; }
.profile h3 { font-size: 0.95rem; margin: 30px 0 12px; }
.skills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.skills li { font-size: 0.76rem; color: var(--sub); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; }

/* お問い合わせ */
.contact { text-align: center; }
.contact__lead { font-size: 0.95rem; margin-bottom: 32px; }

/* お問い合わせフォーム */
.form { max-width: 640px; margin: 0 auto 40px; text-align: left; background: #fff; border: 1px solid var(--line); padding: 36px 40px 40px; }
.form__row { margin-bottom: 22px; }
.form label { display: block; font-size: 0.85rem; margin-bottom: 8px; }
.form .req {
  display: inline-block; font-size: 0.65rem; letter-spacing: 0.08em; color: #fff;
  background: #b4453f; padding: 1px 8px; margin-left: 8px; border-radius: 2px; vertical-align: 2px;
}
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 0.92rem; color: var(--text);
  border: 1px solid #d8d6d0; border-radius: 2px; padding: 12px 14px; background: #fff;
  transition: border-color 0.2s;
}
.form textarea { line-height: 1.8; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(44,74,110,0.12); }
.form input::placeholder, .form textarea::placeholder { color: #b3b1aa; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--sub) 50%), linear-gradient(135deg, var(--sub) 50%, transparent 50%); background-position: right 20px center, right 14px center; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.form__fieldset { border: 0; }
.form__fieldset legend { font-size: 0.85rem; margin-bottom: 8px; padding: 0; }
.form__checks { display: grid; gap: 10px; }
.form__checks label { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 0.88rem; cursor: pointer; }
.form__checks input { width: 18px; height: 18px; margin-top: 4px; flex: none; accent-color: var(--accent); }
.form__hint { font-size: 0.78rem; color: var(--sub); margin-top: 6px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__privacy { font-size: 0.8rem; color: var(--sub); margin: 28px 0 14px; }
.form__check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; cursor: pointer; }
.form__check input { width: 18px; height: 18px; margin-top: 5px; flex: none; accent-color: var(--accent); }
.form__submit { margin-top: 28px; text-align: center; }
.form__submit .btn { min-width: 260px; }
.form__submit .btn:disabled { opacity: 0.5; cursor: default; }
.form__status { margin-top: 16px; font-size: 0.85rem; text-align: center; }
.form__status.is-done { color: #2f6b46; }
.form__status.is-error { color: #b4453f; }
.form__status.is-sending { color: var(--sub); }
.contact__direct { font-size: 0.9rem; color: var(--sub); }
.contact__direct a { color: var(--text); text-decoration: none; font-size: 1.05rem; letter-spacing: 0.04em; }
.contact__direct a:hover { color: var(--accent); }
.contact__hours { display: block; font-size: 0.78rem; color: var(--sub); margin-top: 2px; }

/* フッター */
.footer { padding: 30px 0; text-align: center; font-size: 0.75rem; color: var(--sub); border-top: 1px solid var(--line); }

/* フッターのリンク */
.footer a { color: var(--sub); }
.footer p + p { margin-top: 4px; }

/* プライバシーポリシー */
.legal { padding: 72px 0 96px; }
.legal .inner { max-width: 760px; }
.legal h1 { font-size: 1.6rem; text-align: center; margin-bottom: 40px; }
.legal h2 { font-size: 1.05rem; text-align: left; margin: 40px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.legal p, .legal li { font-size: 0.92rem; }
.legal ul { margin: 8px 0 0 1.4em; }
.legal__contact div { display: flex; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.legal__contact dt { width: 5em; flex: none; color: var(--sub); }
.legal__date { margin-top: 32px; text-align: right; color: var(--sub); }
.legal__back { margin-top: 40px; text-align: center; }

/* スマホ用の固定ボタン */
.sp-cta { display: none; }

/* パソコン：枠とバッジだけを上へ（ボタンの位置は変えない）
   上下中央に並べているため、バッジ下の間隔と下の余白を同じだけ増やすと、
   枠とバッジはその分だけ上がり、ボタンは同じ位置に残ります */
@media (min-width: 769px) {
  .hero__inner { padding-bottom: 116px; }  /* 枠とバッジの位置を保ったまま、ボタンを近づける */
  .hero__badges { margin-bottom: 68px; }
}
.hero .btn-row .btn { min-width: 240px; }  /* 2つのボタンを同じ大きさに */
/* 高さの低いノートパソコンでは、ボタンが最初の画面に収まるよう間隔を控えめに */
@media (min-width: 769px) and (max-height: 760px) {
  .hero__inner { padding-top: 24px; padding-bottom: 56px; }
  .hero__frame { margin: 20px 0 36px; padding-top: 36px; padding-bottom: 32px; }
  .hero__badges { margin-bottom: 44px; }
}

@media (max-width: 900px) {
  .service__feature { grid-template-columns: 1fr; text-align: center; padding: 30px 24px; }
  .profile__grid { grid-template-columns: 1fr; gap: 28px; }
  .cards { grid-template-columns: 1fr; }
  .works__feature { grid-template-columns: 1fr; gap: 20px; padding: 16px; }
  .plans, .plans--two, .price__row { grid-template-columns: 1fr; gap: 28px; }
  .price__group { padding: 24px 16px 22px; border-radius: 10px; }
  .price__group + .price__group { margin-top: 28px; }
  .price__step span { font-size: 0.8rem; padding: 6px 14px; }
  .price__includes { padding: 20px 16px; }
}

/* 画面が狭いときは、メニューをハンバーガー（三本線）に切り替える */
@media (max-width: 920px) {
  .header__nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 22px 24px 28px;
  }
  .header__nav.is-open { display: flex; }
  .header__nav.is-simple { display: flex; position: static; padding: 0; border: 0; background: none; }
  .header__toggle { display: flex; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .form { padding: 28px 22px 32px; }
  .price__includes ul { grid-template-columns: 1fr; }
  .steps__list { grid-template-columns: 1fr; gap: 20px; }
  .steps__list li:not(:last-child)::after { right: 50%; top: auto; bottom: -14px; transform: translateX(50%) rotate(135deg); }
  .perk { flex-direction: column; gap: 8px; }
  .form__submit .btn { min-width: 0; }
  /* お悩み欄：スマホでは余白と説明文を詰める */
  .pains { padding: 48px 0; }
  h2:has(+ .section-note) { margin-bottom: 16px; }  /* 見出しと説明文の間を16pxにそろえる */
  h2 + .section-note { margin-top: 0; }
  .section-note { font-size: 0.85rem; }
  .pains .section-note { margin-bottom: 22px; }
  .pains__answer { margin-top: 24px; }
  .talk { gap: 12px; }
  .talk li { gap: 10px; }
  .talk__face { width: 36px; height: 36px; }
  .talk__face svg { width: 22px; height: 22px; }
  .talk__bubble { padding: 9px 13px; font-size: 0.84rem; line-height: 1.6; border-radius: 12px; }
  .talk__bubble::before { top: 12px; }
  h2 { font-size: 1.25rem; }
  .header__nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 22px 24px 28px;
  }
  .header__nav.is-open { display: flex; }
  .header__nav.is-simple { display: flex; position: static; padding: 0; border: 0; background: none; }
  .header__toggle { display: flex; }
  .header__logo img { height: 40px; margin-left: -20px; } /* ロゴ画像の左の余白（高さの40/70）を詰めて、ページの左余白にそろえる */
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero__img { position: static; height: 240px; }
  .hero::before { display: none; }
  .hero__inner { padding: 40px 24px 48px; }
  .hero__frame { display: block; padding: 34px 20px 30px 30px; margin: 18px 10px 40px 0; }
  .hero__frame::before { left: 12px; top: -12px; }
  .hero__frame::after { right: -10px; bottom: -12px; }
  .hero__title-sm { font-size: 1.3rem; }
  .hero__title-lg { font-size: 2.45rem; padding-left: 0.6em; }
  .hero__catch { font-size: 1.05rem; margin-top: 20px; letter-spacing: 0.02em; }
  .role__list { grid-template-columns: 1fr; }
  .service__grid { grid-template-columns: 1fr; gap: 36px; }
  .works__grid { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  body { padding-bottom: 68px; }
  .sp-cta {
    display: block; position: fixed;
    transform: translateY(120%); transition: transform 0.3s; left: 0; right: 0; bottom: 0; z-index: 30;
    background: rgba(255,255,255,0.96); border-top: 1px solid var(--line); padding: 10px 16px;
  }
  .sp-cta.is-visible { transform: none; }
  .sp-cta .btn { width: 100%; padding: 14px; }
}

@media (max-width: 360px) {
  .hero__title-sm { font-size: 1.15rem; }
  .hero__title-lg { font-size: 1.95rem; padding-left: 0.2em; }
  .hero__catch { font-size: 0.95rem; }
}

@media print { .header, .sp-cta { position: static; } }
