/* =========================================================
   SAKURA DOGWARE FREEPAGE SYSTEM v1
   共通フリーページCSS
========================================================= */
.sd-page {
  --sd-ink: #292722;
  --sd-text: #4d4942;
  --sd-muted: #777168;
  --sd-paper: #f5f1e9;
  --sd-surface: #fffdf9;
  --sd-line: #ded7cc;
  --sd-brass: #98722f;
  --sd-brass-dark: #785721;
  --sd-leather: #704a36;
  --sd-alert: #934f43;
  --sd-radius: 4px;
  color: var(--sd-text);
  background: var(--sd-surface);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: .025em;
  overflow: hidden;
}
.sd-page *, .sd-page *::before, .sd-page *::after { box-sizing: border-box; }
.sd-page img { display: block; width: 100%; height: auto; }
.sd-page a { color: var(--sd-leather); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.sd-page a:hover { color: var(--sd-brass-dark); }
.sd-shell { width: min(100% - 40px, 960px); margin-inline: auto; }
.sd-reading { width: min(100%, 760px); margin-inline: auto; }

/* HERO */
.sd-hero { padding: clamp(54px, 8vw, 104px) 0 0; }
.sd-kicker {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 19px; color: var(--sd-brass-dark);
  font-size: 11px; font-weight: 700; line-height: 1.4;
  letter-spacing: .19em; text-transform: uppercase;
}
.sd-kicker::after { content: ""; width: 54px; height: 1px; background: var(--sd-brass); }
.sd-title {
  max-width: 720px; margin: 0;
  color: var(--sd-ink); font-family: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: clamp(34px, 6.1vw, 64px); font-weight: 500;
  line-height: 1.35; letter-spacing: .06em;
}
.sd-lead {
  max-width: 650px; margin: 27px 0 0;
  color: var(--sd-text); font-size: clamp(16px, 2vw, 18px); line-height: 2;
}
.sd-hero-media { margin: clamp(36px, 6vw, 64px) auto 0; width: min(100%, 1180px); }
.sd-hero-media img { aspect-ratio: 16 / 8.7; object-fit: cover; object-position: center; }
.sd-caption { margin: 9px 0 0; color: var(--sd-muted); font-size: 12px; line-height: 1.7; }

/* PAGE INTRO */
.sd-intro { padding: clamp(48px, 7vw, 82px) 0; }
.sd-points { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--sd-line); }
.sd-point { position: relative; padding: 27px 28px 27px 55px; min-height: 115px; }
.sd-point + .sd-point { border-left: 1px solid var(--sd-line); }
.sd-point-num { position: absolute; top: 29px; left: 20px; color: var(--sd-brass); font-family: Georgia, serif; font-size: 13px; }
.sd-point strong { display: block; color: var(--sd-ink); font-size: 15px; font-weight: 600; line-height: 1.7; }
.sd-point span { display: block; margin-top: 4px; color: var(--sd-muted); font-size: 13px; line-height: 1.7; }

/* CONTENTS */
.sd-toc { margin-top: 50px; padding: 30px 32px; background: var(--sd-paper); }
.sd-toc-title { margin: 0 0 16px; color: var(--sd-ink); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.sd-toc ol { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 38px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.sd-toc li { counter-increment: toc; border-bottom: 1px solid rgba(112, 74, 54, .14); }
.sd-toc a { display: flex; gap: 12px; padding: 11px 2px; color: var(--sd-text); text-decoration: none; font-size: 14px; line-height: 1.65; }
.sd-toc a::before { content: "0" counter(toc); color: var(--sd-brass); font-family: Georgia, serif; font-size: 12px; }

/* SECTION */
.sd-section { scroll-margin-top: 110px; padding: clamp(62px, 9vw, 108px) 0; border-top: 1px solid var(--sd-line); }
.sd-section:first-of-type { border-top: 0; }
.sd-section-head { margin-bottom: clamp(35px, 5vw, 54px); }
.sd-section-no { margin: 0 0 12px; color: var(--sd-brass); font-family: Georgia, serif; font-size: 12px; letter-spacing: .15em; }
.sd-h2 { margin: 0; color: var(--sd-ink); font-family: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Noto Serif JP", serif; font-size: clamp(27px, 4vw, 40px); font-weight: 500; line-height: 1.5; letter-spacing: .045em; }
.sd-section-summary { max-width: 650px; margin: 20px 0 0; }
.sd-h3 { margin: clamp(44px, 6vw, 66px) 0 18px; color: var(--sd-ink); font-size: clamp(19px, 2.6vw, 23px); font-weight: 600; line-height: 1.55; letter-spacing: .04em; }
.sd-h3::before { content: ""; display: block; width: 30px; height: 1px; margin-bottom: 16px; background: var(--sd-brass); }
.sd-page p { margin: 0 0 1.45em; }
.sd-page strong { color: var(--sd-ink); font-weight: 600; }
.sd-page ul, .sd-page ol { margin: 18px 0 24px; padding-left: 1.45em; }
.sd-page li { margin: 8px 0; padding-left: .2em; }
.sd-page li::marker { color: var(--sd-brass); }
.sd-text-link { font-weight: 600; }

/* VISUALS */
.sd-media { margin: 28px 0 31px; }
.sd-media img { border-radius: var(--sd-radius); }
.sd-media-wide { width: min(100vw - 40px, 960px); margin-left: 50%; transform: translateX(-50%); }
.sd-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 34px 0; }
.sd-duo img { height: 100%; object-fit: cover; }

/* QUIET INFORMATION COMPONENTS */
.sd-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 34px 0 8px; border-top: 1px solid var(--sd-line); }
.sd-fact { padding: 25px 24px 25px 0; border-bottom: 1px solid var(--sd-line); }
.sd-fact:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--sd-line); }
.sd-fact-label { display: block; margin-bottom: 8px; color: var(--sd-brass-dark); font-family: Georgia, serif; font-size: 11px; letter-spacing: .12em; }
.sd-fact h3 { margin: 0 0 8px; color: var(--sd-ink); font-size: 17px; font-weight: 600; line-height: 1.65; }
.sd-fact p { margin: 0; color: var(--sd-muted); font-size: 14px; line-height: 1.8; }
.sd-note { margin: 34px 0; padding: 27px 30px; border-left: 2px solid var(--sd-brass); background: var(--sd-paper); }
.sd-note-title { display: block; margin-bottom: 8px; color: var(--sd-ink); font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.sd-note p:last-child, .sd-note ul:last-child { margin-bottom: 0; }
.sd-caution { border-left-color: var(--sd-alert); }
.sd-small { color: var(--sd-muted); font-size: 13px; line-height: 1.8; }
.sd-details { margin: 22px 0; border-block: 1px solid var(--sd-line); }
.sd-details summary { position: relative; padding: 17px 38px 17px 0; color: var(--sd-ink); cursor: pointer; font-weight: 600; list-style: none; }
.sd-details summary::-webkit-details-marker { display: none; }
.sd-details summary::after { content: "+"; position: absolute; right: 4px; top: 13px; color: var(--sd-brass); font-size: 24px; font-weight: 300; line-height: 1; }
.sd-details[open] summary::after { content: "−"; }
.sd-details > :not(summary) { margin-right: 38px; }

/* CTA */
.sd-cta-wrap { padding: 0 0 clamp(74px, 10vw, 120px); }
.sd-cta { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(270px, .8fr); background: var(--sd-ink); color: #ece7de; }
.sd-cta-copy { padding: clamp(38px, 6vw, 66px); }
.sd-cta-eyebrow { margin: 0 0 15px; color: #c8ad75; font-size: 11px; font-weight: 700; letter-spacing: .17em; }
.sd-cta h2 { margin: 0; color: #fffdf8; font-family: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", serif; font-size: clamp(25px, 3.6vw, 36px); font-weight: 500; line-height: 1.55; }
.sd-cta p { margin: 18px 0 0; font-size: 14px; line-height: 1.9; }
.sd-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 52px; margin-top: 27px; padding: 12px 18px; border: 1px solid #c8ad75; color: #fffdf8 !important; text-decoration: none; font-size: 14px; font-weight: 600; }
.sd-button::after { content: "→"; color: #c8ad75; font-size: 17px; }
.sd-button:hover { background: #fffdf8; color: var(--sd-ink) !important; }
.sd-cta-aside { display: flex; align-items: center; justify-content: center; padding: 35px; border-left: 1px solid rgba(255,255,255,.16); }
.sd-cta-list { width: 100%; margin: 0 !important; padding: 0 !important; list-style: none; counter-reset: cta; }
.sd-cta-list li { counter-increment: cta; display: flex; gap: 13px; margin: 0; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.16); font-size: 13px; }
.sd-cta-list li::before { content: "0" counter(cta); color: #c8ad75; font-family: Georgia, serif; }
.sd-footnote { margin-top: 16px; color: var(--sd-muted); font-size: 12px; line-height: 1.8; }



/* =========================================================
   MAKESHOP THEME COMPATIBILITY v2
   MakeShop本体のh1/h2/h3スタイル干渉をフリーページ内で無効化
========================================================= */

/* HERO TITLE */
.main-contents .sd-page .sd-hero .sd-shell > .sd-title {
  display: block !important;
  position: static !important;
  float: none !important;
  clear: none !important;
  width: 100% !important;
  max-width: 820px !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  text-indent: 0 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  transform: none !important;
}

/* SECTION HEADINGS */
.main-contents .sd-page .sd-section-head > .sd-h2,
.main-contents .sd-page .sd-h3 {
  display: block !important;
  position: static !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
  text-indent: 0 !important;
  transform: none !important;
}

/* Hero周辺の文章もテーマ側の中央揃えを受けないよう固定 */
.main-contents .sd-page .sd-hero .sd-kicker,
.main-contents .sd-page .sd-hero .sd-lead {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Mobile */
@media (max-width: 767px) {
  .main-contents .sd-page .sd-hero .sd-shell > .sd-title {
    max-width: 100% !important;
  }
}

/* RESPONSIVE */
@media (max-width: 767px) {
  .sd-shell { width: min(100% - 36px, 960px); }
  .sd-page { line-height: 1.9; }
  .sd-hero { padding-top: 45px; }
  .sd-title { letter-spacing: .035em; }
  .sd-lead { margin-top: 22px; font-size: 16px; }
  .sd-hero-media { margin-top: 35px; }
  .sd-hero-media img { aspect-ratio: 4 / 3; }
  .sd-points { grid-template-columns: 1fr; }
  .sd-point { min-height: 0; padding: 20px 15px 20px 48px; }
  .sd-point + .sd-point { border-left: 0; border-top: 1px solid var(--sd-line); }
  .sd-point-num { top: 22px; left: 12px; }
  .sd-toc { margin-top: 36px; padding: 24px 20px; }
  .sd-toc ol { grid-template-columns: 1fr; gap: 0; }
  .sd-section { scroll-margin-top: 78px; }
  .sd-facts { grid-template-columns: 1fr; }
  .sd-fact, .sd-fact:nth-child(even) { padding: 22px 0; border-left: 0; }
  .sd-note { padding: 23px 22px; }
  .sd-duo { grid-template-columns: 1fr; }
  .sd-cta { grid-template-columns: 1fr; }
  .sd-cta-copy { padding: 36px 25px; }
  .sd-cta-aside { padding: 24px 25px 32px; border-top: 1px solid rgba(255,255,255,.16); border-left: 0; }
  .sd-button { display: flex; width: 100%; }
}
@media (max-width: 420px) {
  .sd-shell { width: calc(100% - 32px); }
  .sd-title { font-size: 32px; }
  .sd-h2 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .sd-page *, .sd-page *::before, .sd-page *::after { scroll-behavior: auto !important; transition: none !important; }
}
