/*
Theme Name: 上司予報
Theme URI: https://bossweather.com
Author: 上司予報 開発チーム
Description: 上司の機嫌を予報するAI搭載アプリ「上司予報」の公式ランディングページテーマ。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bossweather
*/

:root {
  --sky-1: #f5f9fe;
  --sky-2: #e6f1fb;
  --blue: #2f7fd6;
  --blue-dark: #1c4f8a;
  --navy: #14213a;
  --coral: #e2574c;
  --gold-1: #ffd700;
  --gold-2: #ffa000;
  --text: #24313f;
  --text-soft: #647184;
  --card-bg: #ffffff;
  --border: #e7edf5;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 40px -18px rgba(20, 33, 58, 0.18);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-feature-settings: "palt";
  letter-spacing: 0.02em;
  line-height: 1.4;
  margin: 0;
  color: var(--navy);
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow { max-width: 720px; }

.eyebrow {
  display: block;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 8px;
}
.center { text-align: center; }

.section-title {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 900;
}
.section-sub {
  color: var(--text-soft);
  margin-top: 10px;
  font-size: 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark {
  background: var(--navy);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-small { padding: 11px 20px; font-size: 14px; }
.btn-block { width: 100%; margin: 18px 0; }

/* HEADER */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  padding: 0 24px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px -20px rgba(20,33,58,0.3);
  padding: 14px 12px 14px 22px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 23px;
  color: var(--navy);
}
.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}
.site-nav {
  display: flex;
  gap: 26px;
}
.site-nav a {
  font-weight: 500;
  font-size: 14px;
  color: var(--text-soft);
}
.site-nav a:hover { color: var(--blue-dark); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  border: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  width: 16px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.site-nav-mobile {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 14px;
  right: 14px;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 10px;
  box-shadow: var(--shadow);
}
.site-nav-mobile a {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.site-nav-mobile a:hover { background: var(--sky-1); }
.site-nav-mobile.open { display: flex; }

/* HERO */
.hero {
  padding: 60px 0 0;
  text-align: center;
}
.hero-inner { max-width: 720px; }
.pill-badge {
  display: inline-block;
  background: var(--sky-2);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 900;
  margin-bottom: 18px;
}
.hero .lead {
  color: var(--text-soft);
  font-size: 16px;
  max-width: 46ch;
  margin: 0 auto 30px;
}

.hero-panel {
  margin: 56px auto 0;
  max-width: 900px;
  background: var(--sky-2);
  border-radius: 40px;
  padding: 56px 40px 0;
  display: flex;
  justify-content: center;
  gap: 24px;
  overflow: hidden;
}
.hero-caption {
  display: inline-block;
  margin-top: -18px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  position: relative;
  z-index: 2;
}

.phone-mock {
  width: 220px;
  background: var(--navy);
  border-radius: 32px;
  padding: 10px;
  box-shadow: var(--shadow);
  transform: translateY(20px) rotate(-4deg);
}
.phone-mock-2 { transform: translateY(50px) rotate(4deg); }
.phone-notch {
  width: 60px;
  height: 8px;
  background: rgba(255,255,255,0.2);
  border-radius: 6px;
  margin: 0 auto 8px;
}
.phone-screen {
  background: #fff;
  border-radius: 24px;
  padding: 18px 16px 22px;
  min-height: 240px;
}
.phone-title { font-size: 12px; color: var(--text-soft); font-weight: 700; margin-bottom: 14px; }
.phone-score-row { display: flex; align-items: baseline; gap: 10px; }
.phone-emoji { font-size: 28px; }
.phone-score { font-size: 40px; font-weight: 900; color: var(--navy); }
.phone-caption { font-size: 12px; color: var(--blue-dark); font-weight: 700; margin: 4px 0 18px; }
.phone-chart { width: 100%; height: 60px; }

.donut-wrap { position: relative; width: 100px; height: 100px; margin: 6px auto 18px; }
.donut { width: 100%; height: 100%; }
.donut-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  color: var(--navy);
}
.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 50px;
}
.mini-bars span {
  flex: 1;
  background: var(--sky-2);
  border-radius: 4px;
}
.mini-bars span:nth-child(2),
.mini-bars span:nth-child(4) { background: var(--blue); }

/* BENEFITS */
.benefits { padding: 110px 0 90px; }
.benefit-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.benefit-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  text-align: center;
}
.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sky-2);
  font-size: 26px;
  margin-bottom: 18px;
}
.benefit-card h3 { font-size: 17px; font-weight: 900; margin-bottom: 10px; }
.benefit-card p { font-size: 14px; color: var(--text-soft); }

/* HOW */
.how { padding: 90px 0; background: var(--sky-1); }
.how-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.how-visual { display: flex; justify-content: center; }

.forecast-card {
  width: 100%;
  max-width: 300px;
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: #fff;
  box-shadow: var(--shadow);
}
.forecast-card-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 18px;
}
.forecast-card-body {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.fc-emoji { font-size: 44px; line-height: 1; }
.fc-title { font-size: 18px; font-weight: 900; margin: 0 0 4px; }
.fc-score { font-size: 12px; opacity: 0.7; margin: 0; }
.forecast-card-alert {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
}

.step-list { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.step-item {
  display: flex;
  gap: 18px;
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  border-left: 4px solid var(--blue);
}
.step-blue { border-left-color: var(--blue); }
.step-coral { border-left-color: var(--coral); }
.step-navy { border-left-color: var(--navy); }
.step-num { font-weight: 900; font-size: 13px; color: var(--text-soft); }
.step-item h3 { font-size: 16px; font-weight: 900; margin-bottom: 6px; }
.step-item p { font-size: 14px; color: var(--text-soft); }

/* QUOTE */
.quote-band {
  background: var(--navy);
  color: #fff;
  padding: 90px 0;
  text-align: center;
}
.quote-text {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 32px;
}
.quote-attr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.quote-attr img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.quote-name { font-weight: 700; font-size: 14px; }
.quote-role { font-size: 13px; opacity: 0.6; }

/* PRICING */
.pricing { padding: 90px 0; }
.pricing-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.price-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
}
.price-card h3 { font-size: 17px; font-weight: 900; }
.price-card .price {
  font-size: 22px;
  font-weight: 900;
  color: var(--blue);
  margin: 10px 0 4px;
}
.price-unit {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  margin-left: 2px;
}
.price-list li {
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-soft);
  border-top: 1px solid var(--border);
}
.price-list li:first-child { border-top: none; }

.price-card.featured {
  background: var(--sky-2);
  border-color: transparent;
}
.price-badge {
  position: absolute;
  top: -13px;
  right: 24px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: 999px;
}
.price-badge-alt {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: #3a2a00;
}
.price-note {
  text-align: center;
  color: var(--text-soft);
  font-size: 12px;
  margin-top: 26px;
}

/* METRICS */
.metrics { padding: 90px 0; background: var(--sky-1); }
.metrics-list {
  margin-top: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.metric-row {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  margin-bottom: 14px;
}
.metric-icon {
  font-size: 26px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--sky-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.metric-row h3 { font-size: 15px; font-weight: 900; margin-bottom: 4px; }
.metric-row p { font-size: 13px; color: var(--text-soft); }

/* FAQ */
.faq { padding: 90px 0; }
.faq-list { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--blue);
  font-weight: 900;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 14px;
}

/* FINAL CTA */
.final-cta {
  padding: 100px 0;
  text-align: center;
}
.final-cta-inner { display: flex; flex-direction: column; align-items: center; }
.final-cta h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 900; margin-bottom: 14px; }
.final-cta p { color: var(--text-soft); margin-bottom: 30px; }
.cta-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-form input {
  padding: 15px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  min-width: 260px;
  font-size: 15px;
  font-family: inherit;
}
.cta-form-msg {
  margin-top: 16px;
  font-size: 14px;
  color: var(--blue-dark);
  font-weight: 700;
}

/* FOOTER */
.site-footer { padding: 60px 0 30px; background: var(--sky-1); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 14px;
}
.footer-logo img { width: 40px; height: 40px; border-radius: 11px; }
.footer-brand p { font-size: 15px; color: var(--text-soft); }
.footer-col-title { font-size: 12px; font-weight: 900; color: var(--navy); margin-bottom: 12px; letter-spacing: 0.06em; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; color: var(--text-soft); }
.footer-col a:hover { color: var(--navy); }
.copyright { text-align: center; font-size: 12px; color: var(--text-soft); margin-top: 24px; }

/* GENERIC PAGES (利用規約・プライバシーポリシーなど) */
.page-main { padding: 60px 0 90px; }
.page-main article { margin-bottom: 60px; }
.page-title {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 900;
  margin-bottom: 28px;
}
.page-content h2 { font-size: 20px; margin: 36px 0 12px; }
.page-content h3 { font-size: 17px; margin: 28px 0 10px; }
.page-content p { margin: 0 0 16px; }
.page-content ul { list-style: disc; padding-left: 1.4em; margin: 0 0 16px; }
.page-content ol { list-style: decimal; padding-left: 1.4em; margin: 0 0 16px; }
.page-content a { color: var(--blue); text-decoration: underline; }
.page-content a.btn { color: #fff; text-decoration: none; margin: 8px 0 24px; }
.page-content strong { color: var(--navy); }
.page-content figure.wp-block-table { margin: 0 0 16px; overflow-x: auto; }
.page-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.page-content th,
.page-content td {
  border: 1px solid var(--border);
  padding: 13px 18px;
  text-align: left;
  vertical-align: top;
}
.page-content tr td:first-child {
  background: var(--sky-1);
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  width: 32%;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .benefit-grid { grid-template-columns: 1fr; }
  .how-inner { grid-template-columns: 1fr; }
  .how-visual { order: 2; margin-top: 20px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; text-align: center; row-gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col { align-items: center; }
  .footer-logo { justify-content: center; }
}

@media (max-width: 640px) {
  .site-header { padding: 0 14px; }
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero-panel { flex-direction: column; align-items: center; padding: 40px 20px 0; border-radius: 28px; }
  .phone-mock, .phone-mock-2 { transform: none; width: 240px; }
}
