/* SSL期限確認LP（C案）
   ブレークポイントはデザインの判定と同じ：本文幅 1040px 未満で縦積み、640px 未満でスマホ表示 */

body { margin: 0; background: #F2F3EC; }
a { color: #24291F; }
a:hover { color: #C8342C; }

.lp {
  container: lp / inline-size;
  background: #F2F3EC;
  color: #24291F;
  font-family: 'BIZ UDPGothic', sans-serif;
  font-size: 18px;
  line-height: 2;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
.lp p { margin: 0; }
.lp img { display: block; }
.ib { display: inline-block; }
.bold { font-weight: 700; }
.measure-34 { max-width: 34em; }

/* ボタン */
.btn,
.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #24291F;
  color: #F2F3EC;
  border: 2px solid #24291F;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover,
.btn-sm:hover { background: #C8342C; border-color: #C8342C; color: #F2F3EC; }
.btn:focus-visible,
.btn-sm:focus-visible { outline: 2px solid #24291F; outline-offset: 3px; }
.btn {
  min-height: 64px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 16px clamp(14px, 3cqi, 28px);
  font-size: 19px;
  letter-spacing: .02em;
  line-height: 1.5;
  text-align: center;
  box-shadow: 5px 5px 0 #A8B29E;
}
.btn-sm {
  min-height: 40px;
  padding: 0 clamp(10px, 1.6cqi, 18px);
  font-family: 'BIZ UDPGothic', sans-serif;
  font-size: clamp(13px, 1.3cqi, 15px);
  letter-spacing: 0;
}

/* ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #F2F3EC;
  border-bottom: 1px solid #24291F;
  padding: 0 clamp(16px, 5cqi, 72px);
}
.site-header__inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px clamp(8px, 2cqi, 24px);
  min-height: clamp(52px, 6cqi, 68px);
  font-family: 'BIZ UDGothic', monospace;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .06em;
}
.site-header__name {
  font-weight: 700;
  font-size: clamp(13px, 1.4cqi, 16px);
  letter-spacing: .02em;
  white-space: nowrap;
}
.site-header__actions { display: flex; align-items: center; }

/* 01 ファーストビュー */
.fv {
  position: relative;
  overflow: hidden;
  background: #F2F3EC;
  padding: 0 clamp(20px, 5cqi, 72px);
}
.fv__inner { max-width: 1160px; margin: 0 auto; padding: 0 clamp(4px, 2cqi, 24px); }
.fv__title {
  margin: clamp(20px, 2.6cqi, 40px) 0 0;
  font-family: 'Noto Serif JP', serif;
  font-weight: 900;
  font-size: clamp(26px, 2.9cqi, 44px);
  line-height: 1.45;
  letter-spacing: .02em;
}
.fv__body {
  display: flex;
  flex-wrap: wrap;
  gap: 28px clamp(36px, 5cqi, 64px);
  align-items: flex-start;
  padding: clamp(20px, 2.4cqi, 32px) 0 clamp(40px, 5cqi, 72px);
}
.fv__left {
  flex: 1 1 380px;
  min-width: 0;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.fv__note {
  order: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 28em;
  background: #F2F3EC;
  padding: 16px 20px;
  border: 1px solid #24291F;
}
.fv__cta { order: 1; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.fv__cta p { font-size: 15px; line-height: 1.8; color: #3E463A; max-width: 30em; background: #F2F3EC; }
.fv__visual {
  order: 0;
  flex: 0 1 clamp(380px, 40cqi, 580px);
  min-width: 0;
  padding: 0 10px 10px 0;
  box-sizing: border-box;
}
.fv__anim { animation: fv-move .32s steps(4, end) .7s both, fv-fade .32s steps(2, end) .7s both; }
@keyframes fv-move { from { transform: translate(28px, -18px); } to { transform: translate(0, 0); } }
@keyframes fv-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .fv__anim { animation: none; }
}
.pc-frame { border: 2px solid #24291F; background: #FFFFFF; box-shadow: 10px 10px 0 #24291F; }
.pc-frame__bar { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 10px; background: #24291F; }
.pc-frame__dot { width: 10px; height: 10px; background: #C8342C; }
.pc-frame__label { font-family: 'BIZ UDGothic', monospace; font-size: 12px; color: #D4E3D3; letter-spacing: .08em; }
.pc-frame img { width: 100%; height: auto; }
.sp-frame {
  display: none;
  width: clamp(120px, 36cqi, 150px);
  aspect-ratio: 1512 / 2420;
  border: 2px solid #24291F;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 6px 6px 0 #24291F;
  overflow: hidden;
}
.sp-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* セクション共通 */
.sec { padding: clamp(72px, 10cqi, 128px) clamp(20px, 6cqi, 80px); border-top: 1px solid #24291F; }
.sec--first { border-top-width: 3px; }
.sec--alt { background: #E8EBE1; }
.sec__inner { max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }
.sec__inner--32 { gap: 32px; }
.sec__inner--profile { gap: clamp(32px, 4cqi, 48px); }
.sec__head { display: flex; align-items: stretch; border-top: 2px solid #24291F; border-bottom: 1px solid #24291F; }
.sec__head h2,
.plain-h2 {
  margin: 0;
  font-family: 'Noto Serif JP', serif;
  font-weight: 900;
  font-size: clamp(24px, 2.8cqi, 34px);
  line-height: 1.5;
}
.sec__head h2 { padding: 14px 18px; }

/* 02 何が起きるか */
.what { display: flex; flex-wrap: wrap; gap: 40px clamp(36px, 6cqi, 80px); align-items: flex-start; }
.what__text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 24px; max-width: 32em; }
.quote { border: 1px solid #24291F; padding: 20px 24px; }
.quote__main { font-family: 'Noto Serif JP', serif; font-weight: 700; font-size: clamp(20px, 2.2cqi, 24px); line-height: 1.7; }
.lp .quote__sub { margin: 8px 0 0; }
.what__fig {
  flex: 0 1 320px;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 8px 8px 0;
  box-sizing: border-box;
}
.phone {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1512 / 2420;
  border: 2px solid #24291F;
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: 8px 8px 0 #24291F;
  overflow: hidden;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.what__fig figcaption { margin-top: 10px; font-size: 16px; line-height: 1.8; color: #3E463A; max-width: 20em; }

/* 03 なぜ2027年3月か（有効期限の表） */
.term { margin: 0; background: #FFFFFF; color: #1B2620; border: 1.5px solid #1B2620; box-shadow: 10px 10px 0 #A8B29E; }
.term__row {
  display: grid;
  grid-template-columns: 35% 20% 45%;
  border-bottom: 1px solid #738479;
  background: #FFFFFF;
}
.term__row--head {
  background: #E4EBE3;
  font-family: 'BIZ UDGothic', monospace;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  color: #1B2620;
}
.term__row--hi { background: #FBEAE7; box-shadow: inset 6px 0 0 #B3342C; }
.term__cell { min-width: 0; padding: 20px 20px; }
.term__row--head .term__cell { padding: 14px 20px; }
.term__cell:not(:last-child) { border-right: 1px solid #738479; }
.term__cell--nowrap { white-space: nowrap; }
.term__date { font-weight: 700; font-size: 20px; line-height: 1.6; color: #3E4F44; }
.term__days {
  font-family: 'BIZ UDGothic', monospace;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.5;
  white-space: nowrap;
  color: #1B2620;
}
.term__cycle { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.term__cycle-text { flex: none; font-size: 18px; line-height: 1.6; color: #1B2620; white-space: nowrap; }
.ticks { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.ticks span { width: 16px; height: 16px; background: #2F5D46; }
.term__row--hi .ticks span { background: #B3342C; }
.term__caption {
  padding: 14px 20px 18px;
  font-size: 16px;
  line-height: 1.8;
  color: #4A5A50;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.small-note { max-width: 40em; font-size: 15px; line-height: 1.85; color: #3E463A; }
.lp .lead-em {
  margin: 12px 0 0;
  max-width: 34em;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: clamp(20px, 2.2cqi, 24px);
  line-height: 1.8;
}

/* 04・06 2列の比較枠 */
.pair { display: flex; flex-wrap: wrap; border: 2px solid #24291F; background: #FFFFFF; }
.pair__col { flex: 1 1 340px; min-width: 0; }
.pair__col--stack { display: flex; flex-direction: column; }
.pair__col--second { box-shadow: -1px -1px 0 #24291F; }
.pair__h { margin: 0; border-bottom: 1px solid #24291F; font-family: 'Noto Serif JP', serif; font-weight: 700; background: #DCE6D2; }
.pair__h--fit { padding: 14px 22px; font-size: 21px; line-height: 1.5; }
.pair__h--dark { background: #24291F; color: #F2F3EC; display: flex; align-items: center; gap: 12px; }
.pair__mark { width: 12px; height: 12px; background: #C8342C; flex: none; }
.pair__p { padding: 22px; }
.pair__h--can { padding: 12px 22px; font-size: 20px; }
.pair__h--cannot { background: #E8EBE1; }
.marks { margin: 0; padding: 0 22px; list-style: none; }
.marks li { display: flex; gap: 14px; padding: 14px 0; }
.marks__m { flex: none; font-weight: 700; }
.marks__m--x { color: #C8342C; }
.cta-block { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

/* 05 分かること */
.checklist { margin: 0; padding: 0; list-style: none; border-top: 1px solid #24291F; max-width: 760px; }
.checklist li { display: flex; gap: 18px; align-items: flex-start; padding: 16px 4px; border-bottom: 1px solid #24291F; }
.checklist__box { flex: none; width: 20px; height: 20px; margin-top: 8px; border: 2px solid #24291F; box-sizing: border-box; }

/* 07 費用 */
.price { max-width: 760px; background: #FFFFFF; color: #1B2620; border: 1.5px solid #1B2620; }
.price__row { display: flex; flex-wrap: wrap; border-bottom: 1px solid #738479; }
.price__row:last-child { border-bottom: none; }
.price__k { flex: 1 1 220px; padding: 20px 22px; font-weight: 700; font-size: 20px; color: #3E4F44; }
.price__v { flex: 1 1 260px; padding: 20px 22px; font-family: 'BIZ UDGothic', monospace; font-weight: 700; font-size: 22px; color: #1B2620; }
.price__v--text { font-family: inherit; font-weight: 400; font-size: inherit; }

/* 08 ご相談の流れ */
.flow { margin: 0; padding: 0; list-style: none; border-top: 1px solid #24291F; max-width: 820px; }
.flow li {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 28px;
  padding: 22px 4px;
  border-bottom: 1px solid #24291F;
}
.flow__step {
  flex: 0 0 5.6em;
  box-sizing: border-box;
  padding: 2px 0;
  background: #24291F;
  color: #F2F3EC;
  font-family: 'BIZ UDGothic', monospace;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .06em;
  text-align: center;
}
.flow__body { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.flow__title { font-family: 'Noto Serif JP', serif; font-weight: 700; font-size: 20px; line-height: 1.6; }
.flow__desc { max-width: 34em; }

/* よくある質問 */
.faq { margin: 0; }
.faq__item { border-bottom: 1px solid #24291F; }
.faq dt { margin: 0; }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  box-sizing: border-box;
  padding: 16px 0;
  margin: 0;
  background: none;
  border: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.7;
}
.faq__q:focus { outline: none; }
.faq__q:focus-visible { outline: 2px solid #24291F; outline-offset: 2px; }
.faq__q-text { flex: 1; min-width: 0; }
.faq__mark {
  flex: none;
  width: 44px;
  text-align: center;
  font-family: 'BIZ UDGothic', monospace;
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
}
.faq__a { margin: 0; padding: 0 60px 24px 0; max-width: 34em; }

/* 代表紹介 */
.profile { display: flex; flex-wrap: wrap; gap: 32px clamp(36px, 6cqi, 72px); align-items: flex-start; }
.profile__photo { flex: 0 1 300px; width: 100%; max-width: 340px; aspect-ratio: 3 / 4; background: #E8EBE1; overflow: hidden; }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.profile__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; max-width: 34em; }
.profile__role { font-size: 17px; line-height: 1.8; }
.lp .profile__name {
  margin: 6px 0 0;
  font-family: 'Noto Serif JP', serif;
  font-weight: 900;
  font-size: clamp(30px, 3.4cqi, 40px);
  line-height: 1.4;
  letter-spacing: .06em;
}
.lp .profile__roman { margin: 2px 0 0; font-size: 15px; line-height: 1.8; color: #5E6757; letter-spacing: .06em; }
.lp .profile__bio { margin: 24px 0 0; }

/* 会社概要 */
.company { margin: 0; max-width: 820px; background: #FFFFFF; color: #1B2620; border: 1.5px solid #1B2620; }
.company > div { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 20px 22px; border-bottom: 1px solid #738479; }
.company > div:last-child { border-bottom: none; }
.company dt { flex: 0 0 8em; font-weight: 700; font-size: 20px; color: #3E4F44; }
.company dd { flex: 1 1 260px; min-width: 0; margin: 0; }

/* フッター */
.site-footer { background: #1E2A21; color: #D4E3D3; padding: 56px clamp(20px, 6cqi, 80px) 44px; font-size: 16px; line-height: 1.9; }
.site-footer__inner { max-width: 1040px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 28px 64px; justify-content: space-between; }
.site-footer__co { display: flex; flex-direction: column; gap: 4px; }
.site-footer__name { font-family: 'Noto Serif JP', serif; font-weight: 700; font-size: 18px; }
.site-footer__sub { color: #A9C0AA; }
.site-footer__links { display: flex; flex-direction: column; gap: 8px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__nav a,
.site-footer__nav a:hover { color: #D4E3D3; }
.site-footer__src { color: #A9C0AA; font-size: 14px; }
.site-footer__src a,
.site-footer__src a:hover { color: #A9C0AA; }

/* 本文幅 1040px 未満：ファーストビューの画像を上に */
@container lp (max-width: 1039.98px) {
  .fv__body { gap: 20px; }
  .fv__visual { order: -1; flex: 1 1 100%; }
}

/* 本文幅 640px 未満：スマホ表示 */
@container lp (max-width: 639.98px) {
  .fv__left { gap: 20px; }
  .fv__note { order: 2; }
  .fv__visual { flex: 0 0 auto; }
  .pc-frame { display: none; }
  .sp-frame { display: block; }

  .term__row { grid-template-columns: 29% 34% 37%; }
  .term__cell,
  .term__row--head .term__cell { padding-left: 6px; padding-right: 6px; }
  .term__row--head { font-size: 15px; }
  .term__date { font-size: 15px; }
  .term__days { font-size: 19px; }
  .term__cycle { flex-direction: column; align-items: flex-start; }
  .term__cycle-text { font-size: 14px; }
  .ticks span { width: 14px; height: 14px; }
}
