/* 福袋カレンダー公式サイト。アイボリーと朱色。書体は自サイト配信(/fonts)。 */
@font-face { font-family: "Inter"; src: url("/fonts/inter-subset.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Noto Sans JP"; src: url("/fonts/noto-sans-jp-subset.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
:root {
  --ivory: #faf8f4; --white: #fff; --red: #be2f2b; --red-deep: #a32723; --ink: #262321; --muted: #6b635d; --line: #e8e1d9;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { font-family: "Inter", "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", sans-serif; background: var(--ivory); color: var(--ink); line-height: 1.8; overflow-x: clip; }
.nw { display: inline-block; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--red-deep); text-underline-offset: .25em; }
ul, ol { list-style: none; }
h1, h2, h3 { line-height: 1.4; text-wrap: balance; }
:focus-visible { outline: 3px solid #1d5fd1; outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1160px, 100% - 64px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--white); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(250, 248, 244, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 22px; height: 72px; }
.site-header a { color: var(--ink); text-decoration: none; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { border-radius: 9px; }
.brand b { display: block; font-size: 1.15rem; line-height: 1.3; }
.brand small { display: block; font-size: .68rem; letter-spacing: .04em; color: var(--muted); line-height: 1.4; }
.site-header nav { display: flex; gap: 28px; margin-left: auto; font-size: .88rem; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-header nav a:hover { color: var(--red); }
.pill { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.pill::before, .store::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--red); vertical-align: .1em; }

/* hero */
.hero { position: relative; overflow: hidden; }
.deco { position: absolute; inset: 0; pointer-events: none; }
.hill { position: absolute; bottom: 0; max-width: none; }
.hill-back { left: 0; width: 100%; height: 62%; }
.hill-front { right: -60px; width: min(58%, 880px); }
.cloud { position: absolute; right: 4%; top: 22%; width: 190px; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: center; min-height: min(700px, calc(100svh - 72px)); }
.hero-copy { padding-block: 64px; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-weight: 700; letter-spacing: .02em; line-height: 1.38; }
.hero h1 span { display: block; }
.red { color: var(--red); }
.lead { margin-top: 24px; font-size: 1.05rem; color: var(--muted); }
.store { margin-top: 32px; font-weight: 700; }
.store.light { margin-top: 20px; }
.store.light::before { background: var(--white); }
.req { margin-top: 12px; font-size: .84rem; color: var(--muted); }
.hero-phones { position: relative; align-self: stretch; min-height: 600px; }
.phone { --rim: 2.5px; position: relative; padding: var(--rim); border-radius: 47px; background: linear-gradient(145deg, #aaa7a3, #3d3c3b 22%, #6d6a67 55%, #2b2a29 80%, #8f8b87); box-shadow: 0 2px 4px rgba(40, 20, 15, .2), 0 36px 64px -28px rgba(80, 35, 25, .5); }
.phone img { width: 100%; border: 6px solid #0d0d0f; border-radius: 45px; }
.phone::after { content: ""; position: absolute; top: calc(var(--rim) + 6px + 1.2%); left: 50%; translate: -50% 0; width: 29%; aspect-ratio: 126 / 37; border-radius: 999px; background: #000; }
.p1, .p2 { position: absolute; width: min(52%, 290px); }
.p1 { left: 3%; top: 56px; rotate: -5deg; z-index: 2; }
.p2 { right: 2%; top: 96px; rotate: 6deg; }

/* notice, points */
.notice { margin-top: 24px; padding: 14px 20px; border: 1px solid #f0d9d4; border-radius: 12px; background: #fbeeea; font-size: .86rem; text-align: center; }
.points { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; }
.points li { display: flex; gap: 14px; padding: 0 20px; border-left: 1px solid var(--line); }
.points li:first-child { border-left: 0; padding-left: 0; }
.points svg { flex: none; color: var(--red); }
.points h2 { font-size: 1rem; }
.points p { margin-top: 6px; font-size: .84rem; color: var(--muted); }

/* sections */
.notify, .features, .price, .faq { padding-top: 128px; }
.title { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 700; }
.title.bar { padding-left: 18px; border-left: 5px solid var(--red); font-size: clamp(1.5rem, 2.4vw, 2rem); }
.notify-grid { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 56px; align-items: center; padding: 64px; border-radius: 32px; background: linear-gradient(135deg, #f9ebe6, #fdf7f2); }
.notify p { margin-top: 20px; color: var(--muted); max-width: 32em; }
.banner { margin-top: 40px; max-width: 680px; }
.banner img { width: 100%; border-radius: 28px; box-shadow: 0 20px 40px -22px rgba(80, 35, 25, .45); }
.banner figcaption { margin-top: 10px; font-size: .76rem; color: var(--muted); }
.notify-shot .phone { width: min(220px, 100%); margin-inline: auto; }

.feat-list { margin-top: 56px; }
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-block: 48px; }
.tag { font-size: .84rem; font-weight: 700; color: var(--red); letter-spacing: .08em; }
.feat h3 { margin-top: 10px; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.feat-text > p:last-child { margin-top: 16px; color: var(--muted); max-width: 28em; }
.feat-shot .phone { width: min(300px, 100%); margin-inline: auto; }
@media (min-width: 901px) {
  .features .wrap { width: min(960px, 100% - 64px); }
  .feat h3 { font-size: clamp(1.6rem, 2.7vw, 2.2rem); }
  .feat-text { max-width: 30rem; }
  .feat-text > p:last-child { font-size: 1.06rem; }
}
.demo { margin-top: 24px; text-align: center; font-size: .78rem; color: var(--muted); }
.stage { display: none; }
.pinned .feat-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; margin-top: 24px; }
.pinned .feat-list { margin-top: 0; }
.pinned .feat { display: flex; justify-content: flex-end; min-height: 72vh; padding-block: 0; }
.pinned .feat-shot { display: none; }
.pinned .feat-text { opacity: .38; transition: opacity .5s var(--ease); }
.pinned .feat.on .feat-text { opacity: 1; }
.pinned .stage { display: block; }
.pinned .stage > div { position: sticky; top: calc(50vh - 300px + 36px); height: 620px; }
.pinned .stage .phone { position: absolute; width: 285px; left: calc(50% - 142px); top: 0; opacity: 0; translate: 0 28px; scale: .96; transition: opacity .5s var(--ease), translate .7s var(--ease), scale .7s var(--ease); }
.pinned .stage .phone.on { opacity: 1; translate: 0 0; scale: 1; }

.intro { margin-top: 18px; color: var(--muted); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.plan { padding: 40px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); }
.plan.paid { border-color: var(--red); background: #fdf3f0; }
.plan h3 { font-size: 1.05rem; }
.paid h3, .paid .yen { color: var(--red-deep); }
.yen { margin-top: 8px; font-size: 1.3rem; font-weight: 700; }
.yen b { font-size: 3.2rem; line-height: 1.2; margin-right: 4px; }
.checks { margin-top: 20px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; font-size: .94rem; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); rotate: -45deg; }
.plan .note { margin-top: 18px; font-size: .78rem; color: var(--muted); }
.trust { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-top: 48px; }
.trust > div { padding-top: 20px; border-top: 1px solid var(--line); }
.trust h3 { font-size: 1rem; }
.trust p { margin-top: 8px; font-size: .9rem; color: var(--muted); }

.faq-list { max-width: 820px; margin-top: 36px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: block; padding: 22px 44px 22px 0; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; right: 8px; top: 20px; color: var(--red); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 22px; color: var(--muted); font-size: .94rem; }
.faq-list > p { margin-top: 24px; font-size: .9rem; }

.cta { margin-top: 128px; padding: 80px 0; text-align: center; color: var(--white); background: var(--red) url("/img/cloud.svg") no-repeat right 8% top 30px / 220px; }
.cta h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); }

/* subpages */
.sheet { max-width: 820px; padding-block: 72px 8px; }
.sheet h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.sheet .sub { margin: 8px 0 32px; color: var(--muted); }
.sheet h2 { margin: 48px 0 12px; padding-left: 14px; border-left: 4px solid var(--red); font-size: 1.2rem; }
.sheet p { margin-top: 12px; }
.sheet ul { margin: 12px 0 0 1.3em; list-style: disc; }
.sheet .note { margin-top: 40px; padding: 16px 20px; border-radius: 12px; background: #fbeeea; font-size: .9rem; }
.tablewrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .86rem; }
caption { padding: 12px 16px; text-align: left; font-weight: 700; }
th, td { padding: 12px 16px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: #fbeeea; }

@media (max-width: 700px) {
  table { display: block; min-width: 0; }
  caption, tbody, tr, tbody th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody th { background: #fbeeea; }
  td::before { content: attr(data-label); display: block; font-size: .76rem; font-weight: 700; color: var(--red-deep); }
}

/* footer */
.site-footer { margin-top: 96px; padding: 40px 0 48px; border-top: 1px solid var(--line); font-size: .86rem; }
.cta + * .site-footer, main:has(.cta) + .site-footer { margin-top: 0; }
.site-footer .fine { color: var(--muted); font-size: .8rem; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 18px; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.site-footer .copy { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--muted); }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 40px); }
  .site-header .wrap { height: 64px; gap: 12px; }
  .site-header nav { gap: 16px; }
  .site-header nav a:not(.keep) { display: none; }
  .pill { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; text-align: center; }
  .hero-copy { padding-block: 48px 8px; }
  .hero-phones { min-height: 0; height: 430px; width: min(440px, 100%); margin-inline: auto; overflow: hidden; }
  .p1, .p2 { width: 52%; max-width: 220px; }
  .p1 { top: 28px; left: 2%; } .p2 { top: 60px; right: 2%; }
  .phone { --rim: 2px; border-radius: 36px; } .phone img { border-width: 5px; border-radius: 34px; } .phone::after { top: calc(var(--rim) + 5px + 1.2%); }
  .hill-front { width: 130%; right: -15%; } .cloud { display: none; }
  .notice { text-align: left; }
  .points { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
  .points li { padding: 0; border-left: 0; }
  .points br { display: none; }
  .notify, .features, .price, .faq { padding-top: 56px; }
  .notify-grid { grid-template-columns: minmax(0, 1fr); padding: 32px 14px; gap: 32px; }
  .banner { margin-top: 28px; }
  .notify-shot .phone { width: min(190px, 62%); }
  .feat-shot .phone { width: min(230px, 72%); }
  .feat { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 24px; }
  .feat-list { margin-top: 16px; }
  .plans, .trust { grid-template-columns: minmax(0, 1fr); }
  .trust { gap: 24px; }
  .plan { padding: 28px 24px; }
  .cta { margin-top: 56px; padding: 56px 0; background-size: 140px; }
}
@media (max-width: 360px) { .hero h1 { font-size: 1.95rem; } }

/* ---------- 動き(動きを減らす設定の環境と、JS が無い環境では何も隠さない) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; translate: 0 70px; } to { opacity: 1; translate: 0 0; } }
  @keyframes float { from { transform: translateY(0); } to { transform: translateY(-10px); } }
  @keyframes drift { from { transform: translateX(-1.2%); } to { transform: translateX(1.2%); } }
  .js .hero-copy > * { animation: rise .9s var(--ease) backwards; }
  .js .hero-copy .lead { animation-delay: .12s; }
  .js .hero-copy .store, .js .hero-copy .req { animation-delay: .22s; }
  .js .p1 { animation: rise 1.2s var(--ease) .15s backwards, float 6s ease-in-out 1.4s infinite alternate; }
  .js .p2 { animation: rise 1.2s var(--ease) .32s backwards, float 7s ease-in-out 1.6s infinite alternate; }
  .js .hill-back { animation: drift 22s ease-in-out infinite alternate; scale: 1.04 1; }
  .js .cloud { animation: drift 14s ease-in-out infinite alternate; }
  .js .reveal, .js:not(.pinned) .feat { opacity: 0; translate: 0 24px; transition: opacity .8s var(--ease) var(--d, 0s), translate .9s var(--ease) var(--d, 0s); }
  .js .reveal.in, .js:not(.pinned) .feat.in { opacity: 1; translate: 0 0; }
  .js .banner img { translate: 0 -18px; opacity: 0; transition: translate .8s var(--ease) .35s, opacity .6s var(--ease) .35s; }
  .js .in .banner img { translate: 0 0; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
