@charset "UTF-8";
/* =========================================================
   合同会社フリラ・プラス 新サイト 共通スタイル
   旧サイト（Studio版）の余白・配色・文字サイズをそのまま引き継いでいます。
   ブレークポイント：840px（タブレット以下）／540px（スマホ）
   ========================================================= */

:root {
  --text: #333333;
  --white: #ffffff;
  --gray: #f5f5f5;
  --sky: #b9e2ff;
  --sky-light: #eaf6ff;
  --yellow: #fff201;
  --navy: #1f5cb0;
  --orange: #ec6300;
  --red: #ff0000;
  --marker: #ffff00cb;
  --line-green: #49c655;
  --link: #0288d1;
  --logo-blue: #5aa5f8;
  --font: "Noto Sans JP", sans-serif;
}

/* ---------- リセット ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}
body {
  color: var(--text);
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.7;
  word-spacing: 1px;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  background: var(--white);
  overflow-wrap: anywhere;
  word-break: break-word;
}
a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: #00000026;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
ul,
ol {
  list-style: none;
}
h1,
h2,
h3,
h4 {
  font-weight: 700;
}

/* =========================================================
   ページ骨格（中央550pxのカラム＋PC時の左右）
   ========================================================= */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100vh;
}

/* PC時の左右：ドット背景・ロゴとメニュー・LINEのQR */
.side-layer {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 100vh;
  background: url("../images/bg-pattern.svg") center / cover no-repeat;
}
/* 左右とも上から並べる（メニューとLINEを画面上段に表示） */
.side-layer__side {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  height: 100vh;
  min-width: 0;
  padding: 40px 16px 0;
}
.side-layer__center {
  flex: none;
  width: 550px;
  max-width: 100%;
}
.side-logo {
  display: block;
  width: 130px;
  max-width: 100%;
}
.side-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 200px;
  max-width: 100%;
}
.side-nav a {
  display: block;
  padding: 8px 12px;
  border-left: 4px solid transparent;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: rgba(255, 255, 255, 0.85);
  transition: border-color 0.2s, color 0.2s;
}
.side-nav a:hover,
.side-nav a[aria-current="page"] {
  border-left-color: var(--navy);
  color: var(--navy);
}
.side-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 200px;
  max-width: 100%;
  padding: 18px 16px 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--line-green);
  text-align: center;
  transition: opacity 0.3s;
}
.side-qr:hover {
  opacity: 0.85;
}
.side-qr__title {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
.side-qr img {
  width: 140px;
}
.side-qr__btn {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border-radius: 24px;
  color: var(--white);
  background: var(--line-green);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

/* スマホ・タブレット時のヘッダーとメニュー（PCでは非表示） */
.sp-header,
.sp-nav {
  display: none;
}

/* 中央のカラム */
.main {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 550px;
  max-width: 100%;
  overflow: hidden;
  background: var(--white);
  border-left: 2px solid var(--text);
  border-right: 2px solid var(--text);
}

/* =========================================================
   セクション共通
   ========================================================= */
.sec {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 50px 35px 60px;
}
.sec--gray { background: var(--gray); }
.sec--sky { background: var(--sky); }
.sec--yellow { background: var(--yellow); }
.sec--navy { background: var(--navy); }
.sec--white { background: var(--white); }
.sec--top-space { padding-top: 95px; }

/* 見出し（小さい一行＋大きい見出し） */
.sec-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
  text-align: center;
}
.sec-head__lead {
  margin-bottom: 5px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}
.sec-head__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
}
.sec-head__title--xl {
  font-size: 36px;
}
.sec-head--shadow .sec-head__title {
  text-shadow: 3px 3px 0 var(--white);
}
.sec--navy .sec-head {
  color: var(--white);
}

/* 黄色いマーカー（文字の下に引く線） */
.mk {
  padding: 0 2px;
  background: linear-gradient(transparent 64%, var(--marker) 64%, var(--marker) 90%, transparent 90%);
}
.red { color: var(--red); }
.navy { color: var(--navy); }

/* 下向きのひし形（セクションのつなぎ） */
.sec--arrow::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: -50px;
  width: 100px;
  height: 100px;
  background: inherit;
  translate: -50% 0;
  rotate: 45deg;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.sec--arrow + .sec {
  padding-top: 95px;
}

/* 本文 */
.text {
  font-size: 18px;
  line-height: 1.7;
  text-align: center;
}
.text--left { text-align: left; }
.text--small {
  font-size: 14px;
  line-height: 1.7;
}
.note-mark {
  font-size: 14px;
  line-height: 1.7;
}

/* =========================================================
   部品
   ========================================================= */
/* 黒枠の白カード */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 20px 30px 25px;
  background: var(--white);
  border: 2px solid #000000;
}
.card-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
/* カード上部の色帯 */
.card__label {
  width: 100%;
  margin-bottom: 15px;
  padding: 10px 8px;
  color: var(--white);
  background: var(--red);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}
.card__label--navy { background: var(--navy); }
.card__label--orange { background: var(--orange); }

/* POINTカード（黄色いバッジ付き） */
.points {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}
/* 見出しの直後にPOINTカードが来るときはバッジの分だけ空ける（旧サイトと同じ50px） */
.sec-head + .points {
  margin-top: 20px;
}
.point {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 50px 30px 35px;
  background: var(--white);
  border: 2px solid var(--text);
}
.point__badge {
  position: absolute;
  top: -25px;
  left: 50%;
  translate: -50% 0;
  padding: 10px 15px;
  background: var(--yellow);
  border: 2px solid #000000;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.point__sub {
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
.point__title {
  margin-bottom: 22px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}
.point__img {
  width: 150px;
  margin-bottom: 25px;
}
.point__box {
  width: 100%;
  margin: 20px 0;
  padding: 20px;
  background: var(--gray);
  font-size: 17px;
  line-height: 1.6;
}
.point__box li + li {
  margin-top: 6px;
}

/* チェック付きリスト */
.checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.checks li {
  position: relative;
  padding-left: 30px;
  font-size: 17px;
  line-height: 1.6;
  text-align: left;
}
.checks li::before {
  content: "check_circle";
  position: absolute;
  top: 2px;
  left: 0;
  font-family: "Material Icons";
  font-size: 22px;
  font-weight: normal;
  line-height: 1;
  color: var(--navy);
  font-feature-settings: "liga";
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 220px;
  max-width: 100%;
  padding: 12px 40px;
  border-radius: 30px;
  color: var(--white);
  background: var(--navy);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  transition: opacity 0.3s;
}
.btn:hover {
  opacity: 0.8;
}
.btn--line { background: var(--line-green); }
.btn--orange { background: var(--orange); }
.btn--outline {
  color: var(--navy);
  background: var(--white);
  border: 2px solid var(--navy);
}
.btn--note {
  color: var(--white);
  background: #222222;
}
.btn .material-icons {
  font-size: 20px;
}
.btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
}

/* 料金プラン */
.plans {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.plan {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 0 25px;
  background: var(--white);
  border: 2px solid #000000;
}
.plan__head small {
  font-size: 0.75em;
  font-weight: 600;
}
.sec--navy .plan__head {
  color: var(--text);
  background: var(--yellow);
  border-bottom: 2px solid #000000;
}
.plan--recommend {
  border: 4px solid var(--orange);
}
.plan__head {
  width: 100%;
  padding: 12px 10px;
  color: var(--white);
  background: var(--navy);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}
.plan--recommend .plan__head {
  background: var(--orange);
}
.plan__tag {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 10px;
  color: var(--orange);
  background: var(--white);
  font-size: 13px;
  line-height: 1.5;
}
.plan__price {
  margin: 20px 0 5px;
  color: var(--navy);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
}
.plan__price small {
  margin-left: 4px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}
.plan__tax {
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.5;
}
.plan .checks {
  width: auto;
  max-width: calc(100% - 40px);
}
.plan .btn {
  margin-top: 25px;
}

/* 表（会社概要など） */
.table {
  width: 100%;
}
.table__row {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--text);
}
.table__th {
  flex: none;
  width: 125px;
  font-size: 16px;
  line-height: 1.7;
}
.table__td {
  flex: 1;
  font-size: 16px;
  line-height: 1.7;
}

/* よくある質問 */
.faq {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}
.faq details {
  background: var(--white);
  border: 2px solid #000000;
}
.faq summary {
  position: relative;
  display: block;
  padding: 16px 48px 16px 50px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::before {
  content: "Q";
  position: absolute;
  top: 14px;
  left: 16px;
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}
.faq summary::after {
  content: "expand_more";
  position: absolute;
  top: 50%;
  right: 14px;
  translate: 0 -50%;
  font-family: "Material Icons";
  font-size: 26px;
  font-weight: normal;
  line-height: 1;
  font-feature-settings: "liga";
  transition: rotate 0.3s;
}
.faq details[open] summary::after {
  rotate: 180deg;
}
.faq__a {
  position: relative;
  padding: 0 20px 18px 50px;
  font-size: 16px;
  line-height: 1.8;
}
.faq__a::before {
  content: "A";
  position: absolute;
  top: -2px;
  left: 16px;
  color: var(--orange);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}

/* 流れ（ステップ） */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 20px 30px 25px;
  background: var(--white);
}
.step + .step {
  margin-top: 43px;
}
/* ステップの間の下向き三角 */
.step + .step::before {
  content: "";
  position: absolute;
  top: -33px;
  left: 50%;
  translate: -50% 0;
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-top: 22px solid var(--white);
}
.step__label {
  width: 100%;
  margin-bottom: 15px;
  padding: 10px 8px;
  color: var(--white);
  background: var(--orange);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

/* 注意書きボックス */
.notice {
  width: 100%;
  padding: 20px;
  background: var(--white);
  border: 2px dashed var(--navy);
  font-size: 15px;
  line-height: 1.8;
  text-align: left;
}
.notice__title {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
}
.notice li {
  position: relative;
  padding-left: 1em;
}
.notice li::before {
  content: "・";
  position: absolute;
  left: 0;
}

/* note記事カード */
.note-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-bottom: 20px;
}
.note-card {
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
  background: var(--white);
  border: 2px solid #000000;
}
.note-card__thumb {
  flex: none;
  width: 45%;
  height: 150px;
  background-position: center;
  background-size: cover;
}
.note-card__title {
  flex: 1;
  margin: 20px 30px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
.link {
  color: var(--link);
  text-decoration: underline;
}

/* アプリカード */
.app-card__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 15px;
}
.chip {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--navy);
  border-radius: 20px;
  color: var(--navy);
  background: var(--white);
  font-size: 13px;
  line-height: 1.6;
}
.chip--status {
  color: var(--white);
  background: var(--orange);
  border-color: var(--orange);
}

/* 代表紹介 */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.profile__img {
  width: 180px;
  margin-bottom: 20px;
}
.profile__role {
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}
.profile__name {
  margin-bottom: 15px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
}

/* 下層ページの見出しエリア */
.page-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 35px;
  background: var(--sky-light);
  text-align: center;
}
.page-hero__en {
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.page-hero__title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.4;
  text-shadow: 3px 3px 0 var(--white);
}
.page-hero__lead {
  margin-top: 15px;
  font-size: 17px;
  line-height: 1.7;
}
.page-hero__img {
  width: 170px;
  margin-top: 25px;
}

/* 規約などの文章ページ */
.legal {
  width: 100%;
  padding: 40px 35px 60px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.9;
}
.legal h2 {
  margin: 35px 0 10px;
  padding-left: 12px;
  border-left: 5px solid var(--navy);
  font-size: 19px;
  line-height: 1.5;
}
.legal h2:first-child {
  margin-top: 0;
}
.legal p + p {
  margin-top: 10px;
}
.legal ol {
  padding-left: 1.4em;
  list-style: decimal;
}
.legal ul {
  padding-left: 1.2em;
  list-style: disc;
}
.legal li + li {
  margin-top: 4px;
}
.legal dl {
  border-top: 1px solid #cccccc;
}
.legal dl > div {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #cccccc;
}
.legal dt {
  flex: none;
  width: 150px;
  padding: 14px 10px 14px 0;
  font-weight: 700;
}
.legal dd {
  flex: 1;
  min-width: 200px;
  padding: 14px 0;
}
.legal .draft-note {
  margin-bottom: 25px;
  padding: 12px 15px;
  color: #8a4b00;
  background: #fff4e9;
  border: 1px solid var(--orange);
  font-weight: 600;
}
.todo {
  padding: 0 4px;
  color: #b00020;
  background: #ffe8ec;
  font-weight: 700;
}

/* フッター */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 40px 20px 15px;
  background: var(--white);
  border-top: 1px solid #dddddd;
}
.footer__logo {
  width: 110px;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  font-size: 13px;
  line-height: 1.6;
}
.footer__nav a:hover {
  text-decoration: underline;
}
.footer__copy {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.7;
}

/* =========================================================
   トップページ：メインビジュアル
   （旧サイトのメイン画像の構成をHTMLで再現）
   ========================================================= */
/* 元サイトのメイン画像と同じく「カラム幅に比例」して拡大縮小する。
   --u はカラム幅の1%（PC：546px×1%＝5.46px／840px以下：画面幅の1%）。
   高さの内訳（単位 u）：上余白7.69＋帯13.85＋余白3＋見出し39.75＋写真91.59＋青背景58.42＝214.3
   → PCで1,170px、幅390pxで836px（元サイトと同じ） */
.hero {
  --u: 5.46px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  background:
    radial-gradient(120% 60% at 110% 30%, #ffffff 0 45%, transparent 46%),
    linear-gradient(180deg, #f7f7f5 0%, #eeeeea 100%);
}
.hero__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(1.8 * var(--u));
  margin: calc(7.69 * var(--u)) calc(5.86 * var(--u)) 0;
  padding: calc(3 * var(--u)) calc(2.2 * var(--u));
  background: var(--navy);
  color: var(--white);
  font-size: calc(4.5 * var(--u));
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.hero__badge span {
  padding: calc(1 * var(--u)) calc(2.6 * var(--u));
  color: var(--navy);
  background: var(--white);
}
.hero__title {
  position: relative;
  z-index: 2;
  margin-top: calc(3 * var(--u));
  color: #22325a;
  font-size: calc(10.6 * var(--u));
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-shadow: 3px 3px 0 var(--white);
}
.hero__visual {
  position: relative;
  width: 100%;
  height: calc(91.59 * var(--u));
}
/* 右肩まで入った写真（元画像の金の円の部分は背景で補正済み） */
.hero__photo {
  position: absolute;
  right: 0;
  bottom: 0;
  width: calc(68.5 * var(--u));
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 100%);
}
.hero__circle {
  position: absolute;
  left: calc(3 * var(--u));
  top: calc(9 * var(--u));
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(41 * var(--u));
  height: calc(41 * var(--u));
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f7e27a 0%, #dcb73a 55%, #b8921f 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  color: var(--navy);
  font-size: calc(7.9 * var(--u));
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}
/* 青背景：元サイトと同じ高さ（カラム幅の58.42%） */
.hero__band {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: calc(58.42 * var(--u));
  padding: 0 calc(3 * var(--u)) calc(5 * var(--u));
  background: var(--navy);
  color: var(--white);
  text-align: center;
}
.hero__tags {
  display: flex;
  justify-content: center;
  gap: calc(2.4 * var(--u));
  margin-top: calc(-12 * var(--u));
  margin-bottom: calc(3 * var(--u));
}
.hero__tags li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(29.5 * var(--u));
  height: calc(29.5 * var(--u));
  border: 3px solid var(--navy);
  border-radius: 50%;
  color: var(--navy);
  background: var(--white);
  font-size: calc(4.3 * var(--u));
  font-weight: 900;
  line-height: 1.4;
}
.hero__lead {
  margin: auto 0;
  font-size: calc(4.3 * var(--u));
  font-weight: 700;
  line-height: 1.55;
}
@media screen and (max-width: 840px) {
  .hero {
    --u: 1vw;
  }
  .hero__title {
    text-shadow: 2px 2px 0 var(--white);
  }
  .hero__tags li {
    border-width: 2px;
  }
}

/* お悩みリスト */
.worry-img {
  width: 140px;
  margin-bottom: 25px;
}
.worry-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.worry-list li {
  padding: 20px;
  background: var(--white);
  border: 2px solid #000000;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  text-align: justify;
}

/* =========================================================
   スクロールで表示されるアニメーション（旧サイトと同じ動き）
   ========================================================= */
.js [data-appear] {
  opacity: 0;
  translate: 0 var(--appear-y, 10px);
  transition: opacity 0.4s ease var(--appear-delay, 200ms),
    translate 0.4s ease var(--appear-delay, 200ms);
}
.js [data-appear].is-in {
  opacity: 1;
  translate: 0 0;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-appear] {
    opacity: 1;
    translate: none;
    transition: none;
  }
}

/* =========================================================
   841〜1000px（左右の余白が狭いPC）：メニューを1行に収める
   ========================================================= */
@media screen and (min-width: 841px) and (max-width: 1000px) {
  .side-layer__side { padding: 40px 8px 0; }
  .side-nav a {
    padding: 8px 6px;
    font-size: 12px;
    white-space: nowrap;
  }
  .side-qr { padding: 14px 10px 16px; }
  .side-qr__title { font-size: 14px; }
}

/* =========================================================
   〜840px（タブレット以下）
   ========================================================= */
@media screen and (max-width: 840px) {
  html { scroll-padding-top: 75px; }
  .side-layer { display: none; }

  .sp-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 60px;
    padding: 0 8px 0 16px;
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }
  .sp-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--logo-blue);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
  }
  .sp-header__brand img {
    width: 40px;
  }
  .sp-header__menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--navy);
    font-size: 10px;
    line-height: 1.2;
  }
  .sp-header__menu .material-icons {
    font-size: 28px;
  }
  .sp-nav {
    display: block;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 29;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 10px 20px 25px;
    background: var(--white);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    translate: 0 -10px;
    transition: opacity 0.25s, translate 0.25s, visibility 0.25s;
  }
  .sp-nav.is-open {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
  }
  .sp-nav a {
    display: block;
    padding: 14px 6px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 16px;
    line-height: 1.5;
  }
  .sp-nav a[aria-current="page"] {
    color: var(--navy);
  }
  .sp-nav .btn {
    display: flex;
    margin-top: 20px;
    border-bottom: 0;
    color: var(--white);
  }

  .main {
    width: 100%;
    margin-top: 60px;
    border-left: 0;
    border-right: 0;
  }

  .sec { padding: 50px 15px 60px; }
  .sec--top-space,
  .sec--arrow + .sec { padding-top: 85px; }
  .sec-head { margin-bottom: 25px; }
  .sec-head__lead { font-size: 16px; }
  .sec-head__title { font-size: 22px; }
  .sec-head__title--xl { font-size: 28px; }
  .sec-head--shadow .sec-head__title { text-shadow: 2px 2px 0 var(--white); }
  .sec--arrow::after {
    bottom: -39px;
    width: 80px;
    height: 80px;
  }

  .text { font-size: 16px; }
  .card { padding: 20px 20px 25px; }
  .step { padding: 20px 20px 25px; }
  .point { padding: 50px 20px 35px; }
  .point__title { font-size: 22px; }
  .point__img { width: 130px; }
  .point__box { font-size: 15px; }
  .checks li { font-size: 15px; }
  .checks li::before { font-size: 18px; top: 3px; }
  .btn { font-size: 16px; }
  .plan__price { font-size: 34px; }

  .table__row { padding: 15px 10px; }
  .table__th { width: 110px; font-size: 14px; }
  .table__td { font-size: 14px; }

  .faq summary { font-size: 15px; }
  .faq__a { font-size: 14px; }
  .notice { font-size: 14px; }

  .page-hero { padding: 40px 15px; }
  .page-hero__title { font-size: 24px; text-shadow: 2px 2px 0 var(--white); }
  .page-hero__lead { font-size: 15px; }
  .legal { padding: 30px 15px 50px; font-size: 14px; }
  .legal h2 { font-size: 17px; }
  .legal dt { width: 100%; padding-bottom: 0; }

  .worry-img { width: 110px; }
  .worry-list li { font-size: 16px; }

  .profile__img { width: 150px; }
  .profile__name { font-size: 22px; }
}

/* =========================================================
   〜540px（スマホ）
   ========================================================= */
@media screen and (max-width: 540px) {
  .note-card__thumb { width: 40%; height: 120px; }
  .note-card__title { margin: 15px 20px; font-size: 14px; }
}

/* 〜360px（小さいスマホ）：大きい見出しを1行に収める */
@media screen and (max-width: 360px) {
  .sec-head__title--xl { font-size: 24px; }
}
