/* xpotential.fun 共通スタイル
   色と書体は haruki.xpotential.fun・LINEのリッチメニューとそろえる */
:root {
  --paper: #F3EDE3;
  --paper2: #EAE2D4;
  --card: #FFFCF6;
  --ink: #1B2233;
  --soft: #5B5A57;
  --accent: #A8432F;
  --accent-edge: #6E2618;
  --accent-soft: #E0A58F;
  --line: #D9CFBF;
  --green: #06C755;
  --green-edge: #038A3A;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
       font-size: 17px; line-height: 1.9; letter-spacing: 0.02em; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.mincho { font-family: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif; }
.en { font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 500; }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 720px; margin: 0 auto; padding-inline: 20px; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 92%, transparent);
               backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.logo { text-decoration: none; font-size: 24px; line-height: 1; }
.logo b { font-family: "Cormorant Garamond", serif; font-weight: 700; color: var(--accent); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 700; }
.nav a { text-decoration: none; }
.nav a:not(.nav-line):hover { color: var(--accent); }
.nav-line { background: var(--green); color: #fff; border-radius: 999px; padding: 8px 16px; box-shadow: 0 3px 0 var(--green-edge); }
@media (max-width: 760px) { .nav a:not(.nav-line) { display: none; } }

/* 見出しまわり */
section { padding-block: 72px 8px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 16px; letter-spacing: 0.16em; }
.eyebrow .en { font-size: 22px; letter-spacing: 0.02em; margin-right: 12px; padding-right: 14px; border-right: 1.5px solid currentColor; }
h2 { font-size: clamp(24px, 4vw, 34px); line-height: 1.5; font-weight: 800; margin: 12px 0 18px; }
.lead { font-size: 18px; color: var(--soft); max-width: 40em; }
p + p { margin-top: 1em; }

/* ボタン（haruki.xpotential.fun と同じ、押せると一目でわかる形） */
.btn { --base: var(--ink); --edge: #0B0F18; --fg: #fff; --arrow: var(--ink);
       position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 60px;
       padding: 0 68px 0 28px; border-radius: 999px; background: var(--base); color: var(--fg);
       font-weight: 700; font-size: 17px; text-decoration: none; letter-spacing: 0.06em;
       box-shadow: 0 6px 0 var(--edge), 0 14px 22px -6px rgba(27,34,51,0.35);
       transition: transform .12s ease, box-shadow .12s ease, filter .12s ease; -webkit-tap-highlight-color: transparent; }
.btn .arr { position: absolute; right: 8px; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%;
            background: #fff; color: var(--arrow); display: grid; place-items: center; box-shadow: inset 0 -3px 0 rgba(0,0,0,0.12); }
.btn .arr svg { width: 22px; height: 22px; transition: transform .15s ease; }
.btn:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 8px 0 var(--edge), 0 18px 26px -6px rgba(27,34,51,0.4); }
.btn:hover .arr svg { transform: translateX(3px); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--edge), 0 4px 8px -4px rgba(27,34,51,0.4); }
.btn-line { --base: var(--green); --edge: var(--green-edge); --arrow: var(--green-edge); }
.btn-accent { --base: var(--accent); --edge: var(--accent-edge); --arrow: var(--accent); }
.btn-ghost { --base: #fff; --edge: var(--ink); --fg: var(--ink); border: 2px solid var(--ink); }
.btn-ghost .arr { background: var(--ink); color: #fff; box-shadow: none; }
.btns { display: flex; flex-wrap: wrap; gap: 18px 16px; margin-top: 26px; }
@media (max-width: 520px) { .btns .btn { width: 100%; } }
@media (max-width: 400px) { .btn { font-size: 16px; letter-spacing: 0.02em; padding: 0 60px 0 20px; } }

/* カード類 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* メールでの問い合わせ（会社の方向け） */
.mail-note { margin-top: 18px; font-size: 15px; color: var(--soft); }
.mail-note a { font-weight: 700; color: var(--ink); }

/* 金額：数字は明朝、円は小さく */
.yen { font-family: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 800; font-size: 32px !important; letter-spacing: 0.02em; }
.yen small { font-size: 0.55em; margin-left: 2px; }

/* 日本語の折り返し（文節で改行。linebreak.js が効かない環境の保険） */
h1, h2, h3, h4 { word-break: auto-phrase; }

/* パソコンでLINEを押したときのQRコード */
.qr-dialog { border: 0; border-radius: 22px; padding: 28px 28px 22px; max-width: 380px; width: calc(100% - 32px); text-align: center; color: var(--ink); background: var(--card); box-shadow: 0 24px 60px -20px rgba(27,34,51,0.5); }
.qr-dialog::backdrop { background: rgba(27,34,51,0.55); }
.qr-dialog img { margin: 14px auto 6px; width: 220px; height: 220px; }
.qr-title { font-weight: 700; font-size: 18px; }
.qr-msg { font-size: 15px; margin-top: 8px; }
.qr-sub { font-size: 14px; color: var(--soft); margin-top: 8px; }
.qr-sub a { color: var(--accent); font-weight: 700; }
.qr-close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--soft); }

/* フッター */
.site-footer { margin-top: 88px; padding-block: 40px 52px; background: var(--ink); color: var(--paper); }
.site-footer .wrap { display: grid; gap: 18px; }
.site-footer .brand { font-size: 28px; }
.site-footer .brand b { font-family: "Cormorant Garamond", serif; font-weight: 700; color: var(--accent-soft); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; }
.site-footer nav a { text-decoration: none; opacity: .85; }
.site-footer small { color: #CFC8BA; }

/* ページ内リンクで飛んだとき、上に固定したヘッダーに隠れないように */
section[id] { scroll-margin-top: 72px; }
