/*
Theme Name: AquaVia LP
Theme URI: https://example.com/aquavia-lp
Author: Codex
Description: ウォーターサーバー比較・アフィリエイト向けの、7商品対応ランディングページテーマです。
Version: 1.1.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aquavia-lp
Tags: one-column, custom-logo, featured-images, theme-options, translation-ready
*/

:root {
  --aqua: #087f8c;
  --aqua-dark: #075b65;
  --aqua-soft: #e9f9f8;
  --blue: #176bce;
  --navy: #12344a;
  --coral: #ef6c5b;
  --yellow: #fff3b0;
  --ink: #17313f;
  --muted: #607783;
  --line: #dce9eb;
  --white: #fff;
  --shadow: 0 18px 50px rgba(17, 67, 77, .12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  color: var(--ink);
  background: #f8fbfb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
button, input, textarea, select { font: inherit; }
.container { width: min(1240px, calc(100% - 32px)); margin-inline: auto; }
.narrow { width: min(780px, calc(100% - 32px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 9999; width: auto; height: auto; clip: auto; padding: 10px 16px; background: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(220,233,235,.85);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-weight: 900; font-size: 1.18rem; letter-spacing: .02em; }
.custom-logo { display: block; width: auto; max-height: 48px; }
.brand-drop { display: grid; place-items: center; width: 34px; height: 40px; color: #fff; background: linear-gradient(145deg, #39c6cf, var(--aqua)); border-radius: 55% 55% 60% 60% / 70% 70% 42% 42%; transform: rotate(45deg); box-shadow: 0 7px 18px rgba(8,127,140,.25); }
.brand-drop span { transform: rotate(-45deg); font-size: 15px; }
.header-nav { display: flex; align-items: center; gap: 22px; }
.header-nav a { color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 700; }
.header-nav .header-cta { color: #fff; padding: 10px 18px; border-radius: 999px; background: var(--coral); box-shadow: 0 8px 20px rgba(239,108,91,.25); }

.hero { position: relative; overflow: hidden; background: linear-gradient(115deg, #eefbfb 0%, #fff 50%, #e7f6f9 100%); }
.hero::before { content: ""; position: absolute; width: 420px; height: 420px; left: -180px; bottom: -260px; border-radius: 50%; background: rgba(53,197,207,.14); }
.hero-inner { min-height: 640px; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 22px; padding-block: 64px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 14px; color: var(--aqua); font-weight: 900; letter-spacing: .08em; }
.hero h1 { margin: 0; color: var(--navy); font-size: clamp(2.2rem, 5.2vw, 4.6rem); line-height: 1.16; letter-spacing: -.035em; }
.hero h1 em { color: var(--aqua); font-style: normal; background: linear-gradient(transparent 66%, var(--yellow) 0); }
.hero-lead { max-width: 640px; margin: 24px 0 0; color: #3d5966; font-size: clamp(1rem, 1.7vw, 1.18rem); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 13px 26px; border: 0; border-radius: 999px; color: #fff; background: var(--coral); text-decoration: none; font-weight: 900; box-shadow: 0 12px 26px rgba(239,108,91,.25); transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(239,108,91,.32); }
.button-secondary { color: var(--aqua-dark); background: #fff; border: 2px solid #b7dfe1; box-shadow: none; }
.trust-note { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 24px 0 0; padding: 0; list-style: none; color: #476774; font-size: .88rem; font-weight: 700; }
.trust-note li::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 7px; color: #fff; background: var(--aqua); border-radius: 50%; font-size: 12px; }
.hero-visual { position: relative; min-height: 490px; }
.hero-visual img { width: 100%; height: 100%; min-height: 490px; object-fit: cover; object-position: 76% center; border-radius: 38% 20% 30% 22% / 24% 30% 24% 34%; box-shadow: var(--shadow); }
.hero-badge { position: absolute; left: -20px; bottom: 32px; display: grid; place-items: center; width: 128px; height: 128px; padding: 16px; color: var(--navy); background: #fff; border: 6px solid var(--yellow); border-radius: 50%; text-align: center; font-weight: 900; line-height: 1.35; transform: rotate(-6deg); box-shadow: var(--shadow); }

.disclosure { padding: 14px 0; color: #5c7078; background: #f2f7f7; border-block: 1px solid var(--line); font-size: .8rem; }
.quick-nav { padding: 38px 0; background: #fff; }
.quick-nav-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick-nav a { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 12px; color: var(--aqua-dark); background: var(--aqua-soft); border: 1px solid #cdebea; border-radius: 14px; text-decoration: none; font-weight: 900; text-align: center; }

.section { padding: 92px 0; }
.section-tint { background: linear-gradient(180deg, #effafa, #f8fbfb); }
.section-heading { margin: 0 0 46px; text-align: center; }
.section-kicker { display: block; margin-bottom: 8px; color: var(--aqua); font-weight: 900; letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: clamp(1.7rem, 3.6vw, 2.75rem); line-height: 1.35; }
.section-heading p { max-width: 700px; margin: 14px auto 0; color: var(--muted); }

.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.choice-card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 28px rgba(17,67,77,.06); }
.choice-number { display: grid; place-items: center; width: 46px; height: 46px; color: #fff; background: var(--aqua); border-radius: 14px; font-weight: 900; }
.choice-card h3 { margin: 17px 0 8px; color: var(--navy); }
.choice-card p { margin: 0; color: var(--muted); }

.ad-slot { position: relative; min-height: 90px; margin: 28px auto; padding: 24px; border: 2px dashed #b7d8db; border-radius: 18px; background: rgba(255,255,255,.78); text-align: center; overflow: auto; }
.ad-slot::before { content: "ADVERTISEMENT"; display: block; margin-bottom: 6px; color: #8aa1aa; font-size: .68rem; font-weight: 900; letter-spacing: .14em; }
.ad-placeholder { color: #7d929a; font-size: .9rem; }

.comparison-wrap { overflow-x: auto; border-radius: 20px; box-shadow: var(--shadow); }
.comparison-table { width: 100%; min-width: 760px; border-collapse: collapse; background: #fff; }
.comparison-table th, .comparison-table td { padding: 16px 14px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.comparison-table thead th { color: #fff; background: var(--aqua-dark); font-size: .88rem; }
.comparison-table tbody th { text-align: left; color: var(--navy); }
.comparison-table .mini-rank { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 8px; color: #fff; background: var(--aqua); border-radius: 50%; font-size: .78rem; }
.table-button { display: inline-block; padding: 8px 14px; color: #fff; background: var(--coral); border-radius: 999px; text-decoration: none; font-size: .82rem; font-weight: 900; white-space: nowrap; }

.products { display: grid; gap: 56px; }
.product-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 48px; background: #fff; border: 1px solid var(--line); border-radius: 32px; box-shadow: var(--shadow); }
.product-card:target { outline: 4px solid rgba(8,127,140,.22); }
.product-rank { position: absolute; top: -18px; left: 24px; z-index: 2; min-width: 96px; padding: 8px 14px; color: #fff; background: var(--aqua); border-radius: 999px; text-align: center; font-weight: 900; box-shadow: 0 8px 20px rgba(8,127,140,.25); }
.product-card:nth-child(1) .product-rank { background: linear-gradient(135deg, #dcae30, #f1cf65); color: #523e05; }
.product-card:nth-child(2) .product-rank { background: linear-gradient(135deg, #9eabb5, #dfe5e8); color: #31404b; }
.product-card:nth-child(3) .product-rank { background: linear-gradient(135deg, #b96f3d, #dfa579); }
.product-image { width: 100%; max-height: 620px; overflow: hidden; aspect-ratio: 16 / 7.5; background: linear-gradient(145deg, #e8f8f7, #fff); border: 1px solid var(--line); border-radius: 24px; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-image img.product-bundled { padding: 18px; object-fit: contain; background: #fff; }
.product-image-placeholder { height: 100%; min-height: 380px; display: grid; place-items: center; padding: 24px; color: #719099; text-align: center; font-weight: 700; }
.product-body { width: min(1060px, 100%); margin-inline: auto; }
.product-ribbon { display: inline-block; margin: 0 0 10px; padding: 5px 12px; color: var(--aqua-dark); background: var(--yellow); border-radius: 6px; font-size: .8rem; font-weight: 900; }
.product-card h3 { margin: 0; color: var(--navy); font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.35; }
.product-catch { margin: 10px 0 22px; color: var(--coral); font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 900; }
.product-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.meta-box { padding: 12px 10px; background: #f2f9f9; border-radius: 12px; text-align: center; }
.meta-label { display: block; color: var(--muted); font-size: .72rem; font-weight: 700; }
.meta-value { display: block; margin-top: 2px; color: var(--navy); font-weight: 900; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 30px; margin: 24px 0; padding: 24px; background: #f6fbfb; border-radius: 18px; list-style: none; }
.feature-list li { position: relative; padding-left: 30px; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; top: .18em; display: grid; place-items: center; width: 22px; height: 22px; color: #fff; background: var(--aqua); border-radius: 50%; font-size: 12px; font-weight: 900; }
.product-description { color: #405c68; font-size: 1.04rem; line-height: 1.95; }
.product-description > :first-child { margin-top: 0; }
.product-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.product-cta small { color: var(--muted); }
.product-card .ad-slot { grid-column: 1 / -1; width: 100%; margin: 0; }
.product-card .ad-slot img { max-width: 100%; height: auto; }

.faq-list { display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.faq-item summary { position: relative; padding: 20px 54px 20px 24px; cursor: pointer; color: var(--navy); font-weight: 900; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--aqua); font-size: 1.5rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 24px 22px; color: var(--muted); }

.final-cta { padding: 76px 0; color: #fff; background: linear-gradient(125deg, var(--aqua-dark), var(--aqua)); text-align: center; }
.final-cta h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.35; }
.final-cta p { margin: 14px auto 26px; max-width: 680px; color: #d9f2f1; }
.site-footer { padding: 38px 0 90px; color: #71858d; background: #112d3b; font-size: .82rem; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.site-footer a { color: #d7e7ea; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 0; list-style: none; }
.footer-menu a { text-decoration: none; }
.mobile-cta { display: none; }

.single-content { padding: 70px 0; }
.single-content article { padding: clamp(24px, 5vw, 52px); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.entry-title { color: var(--navy); line-height: 1.35; }
.entry-content h2 { margin-top: 2em; color: var(--navy); }

@media (max-width: 900px) {
  .header-nav a:not(.header-cta) { display: none; }
  .hero-inner { min-height: auto; grid-template-columns: 1fr; padding-block: 52px; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .trust-note { justify-content: center; }
  .hero-visual { min-height: 360px; width: min(680px, 100%); margin-inline: auto; }
  .hero-visual img { min-height: 360px; }
  .hero-badge { left: 12px; width: 108px; height: 108px; font-size: .82rem; }
  .quick-nav-grid { grid-template-columns: repeat(2, 1fr); }
  .choice-grid { grid-template-columns: 1fr; }
  .product-card { grid-template-columns: minmax(0, 1fr); padding: 34px 26px; }
  .product-image { aspect-ratio: 16 / 9; }
}

@media (max-width: 680px) {
  body.admin-bar .site-header { top: 46px; }
  .container { width: min(100% - 24px, 1240px); }
  .header-inner { min-height: 62px; }
  .site-brand { font-size: 1rem; }
  .brand-drop { width: 29px; height: 34px; }
  .header-cta { padding: 8px 13px !important; font-size: .78rem !important; }
  .hero-inner { padding-block: 38px 46px; }
  .hero h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .hero-visual { min-height: 300px; }
  .hero-visual img { min-height: 300px; border-radius: 24px; }
  .section { padding: 68px 0; }
  .quick-nav-grid { gap: 8px; }
  .quick-nav a { min-height: 58px; padding: 8px; font-size: .82rem; }
  .product-card { display: block; padding: 34px 18px 20px; }
  .product-image { max-width: none; margin: 0 auto 24px; aspect-ratio: 4 / 3; }
  .product-image-placeholder { min-height: 230px; }
  .product-meta { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; padding: 18px; }
  .product-cta { display: block; }
  .product-cta .button { width: 100%; }
  .product-cta small { display: block; margin-top: 10px; text-align: center; }
  .product-card .ad-slot { margin-top: 24px; }
  .footer-inner { display: block; }
  .footer-links { margin-top: 18px; }
  .footer-menu { display: grid; }
  .mobile-cta { position: fixed; z-index: 90; right: 12px; bottom: 12px; left: 12px; display: flex; align-items: center; justify-content: center; min-height: 54px; color: #fff; background: var(--coral); border-radius: 999px; text-decoration: none; font-weight: 900; box-shadow: 0 12px 32px rgba(73,43,40,.35); }
}

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