:root {
  --ink: #28222d;
  --muted: #685e6d;
  --line: #e9e3eb;
  --surface: #fff;
  --pink: #ed4eb5;
  --purple: #8e4eea;
  --soft: #fff7fb;
  --shadow: 0 18px 50px rgba(84, 43, 90, 0.12);
  --grad: linear-gradient(112deg, #ef529d 0%, #b94de9 53%, #8a58ea 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Noto Sans JP", sans-serif; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }

.skip-link { position: fixed; z-index: 100; top: -60px; left: 12px; padding: 8px 12px; border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }
button:focus-visible, a:focus-visible { outline: 3px solid #5921be; outline-offset: 3px; }

.site-header { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 74px; padding: 12px clamp(18px, 5vw, 72px); border-bottom: 1px solid rgba(231, 223, 234, 0.9); background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(14px); }
.brand { display: block; width: 112px; }
.header-actions, .hero-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.header-web-cta, .header-app-download, .hero-web-cta, .app-download-cta, .howto-app-download { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 800; line-height: 1.2; transition: transform 160ms ease, background 160ms ease; }
.header-web-cta, .hero-web-cta { border: 1px solid #d9cedd; background: #fff; }
.header-app-download, .app-download-cta, .howto-app-download { background: var(--ink); color: #fff; }
.header-web-cta:hover, .hero-web-cta:hover { background: #f8f2fa; }
.header-app-download:hover, .app-download-cta:hover, .howto-app-download:hover { transform: translateY(-1px); background: #46364e; }

.hero { overflow: hidden; padding: clamp(54px, 6vw, 94px) 24px clamp(62px, 7vw, 96px); background: #fff4fa url("../assets/backgrounds/fv-background.webp") center / cover no-repeat; }
.hero-inner { display: grid; grid-template-columns: minmax(360px, 0.88fr) minmax(540px, 1.12fr); gap: clamp(28px, 4vw, 68px); align-items: center; max-width: 1280px; margin: 0 auto; }
.hero-copy { padding-bottom: 18px; }
.hero-lead { margin: 0 0 14px; color: #4b424f; font-size: clamp(14px, 1.25vw, 17px); letter-spacing: -0.035em; line-height: 1.55; }
.hero h1 { margin: 0 0 30px; font-size: clamp(40px, 4.1vw, 58px); line-height: 1.19; letter-spacing: -0.06em; }
.hero h1 span { display: block; }
.hero h1 span + span { margin-top: 4px; }

.hero-product .app-frame { border-color: #29232d; }
.app-frame { overflow: hidden; border: 7px solid rgba(255, 255, 255, 0.85); border-radius: 28px; background: #fff; box-shadow: 0 27px 70px rgba(74, 38, 82, 0.2); }
.desktop-screen { min-height: 434px; }
.app-topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 48px; padding: 10px 15px; border-bottom: 1px solid #eee9ef; color: #655b67; font-size: 12px; }
.app-topbar img { width: 82px; }
.app-topbar span:last-child { justify-self: end; }
.web-app-columns { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr); min-height: 378px; }
.web-chat { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #fdfbfe; }
.chat-scroll { flex: 1; padding: 20px; }
.user-message { width: fit-content; max-width: 92%; margin: 0 0 18px auto; padding: 10px 12px; border-radius: 14px 14px 3px 14px; background: #ece2f2; color: #443b48; font-size: 12px; line-height: 1.6; }
.assistant-message { display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: start; }
.assistant-mark { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; font-size: 14px; font-weight: 900; }
.assistant-message b { font-size: 12px; }
.assistant-message p { margin: 4px 0 0; color: #514653; font-size: 12px; line-height: 1.7; }
.assistant-message .message-detail { color: #766b78; font-size: 12px; line-height: 1.7; }
.app-input { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px; padding: 9px 10px 9px 13px; border: 1px solid #e4dbe7; border-radius: 10px; background: #fff; color: #8a7e8d; font-size: 10px; }
.app-input b { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; font-size: 14px; }
.app-input.is-static { margin-top: auto; }
.web-results { padding: 18px; background: #fff; }
.result-meta { display: flex; align-items: center; gap: 9px; }
.result-meta b { font-size: 15px; }
.result-meta span { color: #9a8e9d; font-size: 11px; }
.result-category { margin: 13px 0 8px; color: #6e6273; font-size: 10px; font-weight: 800; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mock-product { min-width: 0; overflow: hidden; border: 1px solid #eee8ef; border-radius: 11px; background: #fff; }
.mock-product-image { aspect-ratio: 1 / 1; overflow: hidden; background: linear-gradient(145deg, #f7eafa, #f3e7ed); }
.mock-product-image img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.mock-product > span { display: block; padding: 7px; }
.mock-product b, .mock-product small, .mock-product em { display: block; overflow: hidden; font-size: 8px; font-style: normal; line-height: 1.45; white-space: nowrap; text-overflow: ellipsis; }
.mock-product small { color: #918693; }
.mock-product em { color: #5b4d60; font-weight: 800; }
.mobile-app { display: none; }

.section { padding: clamp(74px, 9vw, 126px) 24px; }
.section-intro { max-width: 780px; margin: 0 auto 40px; }
.centered { text-align: center; }
.section-intro h2, .questions h2, .news-inner h2 { margin: 0; font-size: clamp(28px, 2.8vw, 38px); line-height: 1.35; letter-spacing: -0.045em; }

.recipes { background: #fff7fb url("../assets/backgrounds/search-recipe-background.webp") center / cover no-repeat; }
.recipe-flow { display: flex; align-items: center; justify-content: center; gap: 19px; max-width: 660px; margin: 0 auto 24px; }
.recipe-piece { width: 180px; padding: 15px 10px; border: 1px solid #f0dce9; border-radius: 14px; background: #fff; text-align: center; }
.recipe-piece img { width: 100%; aspect-ratio: 1 / 0.66; margin-bottom: 13px; border-radius: 10px; object-fit: cover; box-shadow: 0 8px 18px rgba(96, 34, 77, 0.08); }
.recipe-piece b { display: block; margin: 4px 0 3px; color: var(--purple); font-size: 11px; }
.recipe-piece strong { display: block; font-size: 15px; line-height: 1.35; letter-spacing: -0.03em; }
.recipe-flow > i { color: var(--pink); font-size: 27px; font-style: normal; font-weight: 900; }
.recipe-result { display: flex; align-items: center; gap: 12px; max-width: 800px; margin: 0 auto 32px; padding: 15px 18px; border: 2px solid #e26dea; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(165, 69, 177, 0.09); font-size: 16px; font-weight: 800; line-height: 1.55; }
.recipe-result-arrow { display: grid; flex: 0 0 auto; width: 30px; height: 30px; margin-left: auto; place-items: center; border-radius: 50%; background: #f1e5f8; color: #6f3aa7; font-size: 16px; }
.recipe-web-result { max-width: 1000px; min-height: 0; margin: 0 auto; }
.recipe-web-result .web-app-columns { min-height: 390px; }
.recipe-web-result .web-chat { min-height: 390px; }

.questions { max-width: 1000px; margin: clamp(64px, 8vw, 100px) auto 0; }
.questions h2 { margin-bottom: 24px; text-align: center; }
.question-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.question-card { display: flex; flex-direction: column; min-height: 190px; padding: 22px; border: 1px solid #e7dce9; border-radius: 18px; background: #fff; box-shadow: 0 8px 20px rgba(83, 48, 91, 0.08); }
.question-card h3 { margin: 0; font-size: 17px; line-height: 1.55; letter-spacing: -0.03em; }
.question-card-cta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: auto 0 0; padding-top: 18px; color: #6f3aa7; font-size: 12px; font-weight: 800; }
.question-card-arrow { display: grid; flex: 0 0 auto; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #f1e5f8; color: #6f3aa7; font-size: 15px; }
.question-card:hover { border-color: #cdb3dc; box-shadow: 0 12px 26px rgba(83, 48, 91, 0.12); }
.questions-note { margin: 16px 0 0; color: #746877; font-size: 12px; text-align: center; }

.how-to { max-width: 1120px; margin: 0 auto; }
.howto-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 1050px; margin: 0 auto; padding: 0; list-style: none; }
.howto-list li { display: flex; gap: 14px; padding: 25px 20px; border-top: 2px solid #2e2631; background: #fff; }
.howto-list > li > span { color: #c048d7; font-size: 12px; font-weight: 900; }
.howto-list h3 { margin: 0; font-size: 17px; }
.howto-list p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.howto-app-download { margin-top: 14px; font-size: 12px; }

.news-section { background: #fff5fa; }
.news-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.news-inner h2 { margin-bottom: 25px; font-size: clamp(28px, 2.8vw, 38px); }
.news-list { border-top: 1px solid #dfd4e2; text-align: left; }
.news-row { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; padding: 19px 4px; border-bottom: 1px solid #dfd4e2; }
.news-row time { color: #776a79; font-size: 13px; font-weight: 800; }
.news-row a { font-size: 16px; font-weight: 800; }
.news-row a:hover { text-decoration: underline; }

.site-footer { padding: 46px 24px 54px; background: #241c28; color: #fff; text-align: center; }
.site-footer > img { width: 136px; margin: 0 auto; }
.site-footer div { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 20px 0; font-size: 12px; }
.site-footer a:hover { text-decoration: underline; }
.site-footer small { color: #aa9eae; font-size: 10px; }

.download-dialog { width: min(520px, calc(100% - 32px)); padding: 32px; border: 0; border-radius: 22px; background: #fff; color: var(--ink); text-align: center; box-shadow: 0 24px 70px rgba(32, 15, 37, 0.3); }
.download-dialog::backdrop { background: rgba(35, 23, 40, 0.45); backdrop-filter: blur(2px); }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f3edf5; color: #554c58; font-size: 22px; line-height: 1; cursor: pointer; }
.dialog-eyebrow { margin: 0; color: #9a4ec4; font-size: 11px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.download-dialog h2 { margin: 8px 0 7px; font-size: 20px; line-height: 1.45; }
.download-dialog p:not(.dialog-eyebrow) { margin: 0; color: #625867; font-size: 13px; }
.dialog-qr-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px 0 16px; }
.dialog-qr-option { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.dialog-qr-option p { margin: 0 0 8px; color: var(--ink); font-size: 12px; font-weight: 800; }
.dialog-qr { width: 140px; margin: 0 auto 12px; }
.dialog-store-link { display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; }
.dialog-fallback-link { display: inline-block; margin-top: 14px; color: #6f3aa7; font-size: 12px; text-decoration: underline; }

@media (max-width: 900px) {
  .site-header { min-height: 64px; padding: 9px 16px; }
  .brand { width: 92px; }
  .header-actions { gap: 6px; }
  .header-web-cta, .header-app-download { min-height: 36px; padding: 8px 10px; font-size: 10px; }
  .hero { padding: 40px 18px 56px; background-position: 63% center; }
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero-copy { max-width: 620px; margin: 0 auto; padding: 0; text-align: center; }
  .hero-lead { margin: 0 auto 12px; font-size: clamp(11px, 3.25vw, 14px); text-align: center; white-space: nowrap; }
  .hero h1 { margin-bottom: 26px; font-size: clamp(32px, 8.2vw, 47px); }
  .hero-actions { justify-content: center; }
  .desktop-screen { display: none; }
  .mobile-app { display: block; max-width: 360px; min-height: 495px; margin: 0 auto; border-radius: 30px; }
  .mobile-results { padding: 15px 13px 124px; background: linear-gradient(180deg, #fff, #f7f2fb); }
  .mobile-product-rail { display: flex; gap: 10px; margin-top: 12px; overflow: hidden; }
  .mobile-product-rail .mock-product { flex: 0 0 122px; }
  .mobile-chat { position: relative; margin: -100px 10px 10px; padding: 13px; border-radius: 19px; background: #fff; box-shadow: 0 -8px 22px rgba(82, 39, 95, 0.1); }
  .sheet-handle { display: block; width: 32px; height: 3px; margin: 0 auto 12px; border-radius: 999px; background: #cfc4d2; }
  .mobile-chat .user-message { font-size: 10px; }
  .mobile-chat .assistant-message p { font-size: 10px; }
  .mobile-chat .app-input { margin: 12px 0 0; }
  .section { padding: 68px 18px; }
  .section-intro { margin-bottom: 30px; }
  .section-intro h2, .questions h2 { font-size: 24px; }
  .recipe-flow { gap: 6px; margin-bottom: 18px; }
  .recipe-piece { width: 31%; padding: 10px 4px; }
  .recipe-piece img { margin-bottom: 8px; }
  .recipe-piece b { margin: 3px 0 2px; font-size: 9px; }
  .recipe-piece strong { font-size: 11px; letter-spacing: -0.07em; }
  .recipe-flow > i { font-size: 18px; }
  .recipe-result { padding: 11px; font-size: 12px; }
  .recipe-result-arrow { width: 26px; height: 26px; font-size: 14px; }
  .recipe-web-result .web-app-columns { display: flex; flex-direction: column; min-height: 0; }
  .recipe-web-result .web-results { order: 1; }
  .recipe-web-result .web-chat { order: 2; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .recipe-web-result .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .questions { margin-top: 62px; }
  .question-grid { display: flex; gap: 14px; overflow-x: auto; padding: 2px 1px 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .question-grid::-webkit-scrollbar { display: none; }
  .question-card { flex: 0 0 calc(100% - 28px); min-height: 0; padding: 19px; scroll-snap-align: start; }
  .question-card h3 { font-size: 16px; }
  .question-card-cta { margin-top: 16px; padding-top: 0; }
  .howto-list { grid-template-columns: 1fr; gap: 0; }
  .howto-list li { padding: 20px 8px; }
  .news-row { grid-template-columns: 1fr; gap: 2px; padding: 16px 0; }
  .news-row a { font-size: 15px; }
}

@media (max-width: 420px) {
  .header-web-cta, .header-app-download { padding-right: 8px; padding-left: 8px; font-size: 9px; }
  .hero { padding-right: 8px; padding-left: 8px; }
  .hero h1 { font-size: clamp(29px, 8vw, 36px); }
  .hero-lead { font-size: clamp(9px, 2.95vw, 11px); }
  .hero-web-cta, .app-download-cta { min-height: 40px; padding: 9px 13px; font-size: 12px; }
  .recipe-piece strong { font-size: 10px; }
  .recipe-result { font-size: 11px; letter-spacing: -0.04em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media (max-width: 520px) {
  .dialog-qr-options { grid-template-columns: 1fr; }
}
