/*
Theme Name: EC Banzuke
Description: EC番付 公式サイト用オリジナルテーマ。楽天市場・Yahoo!ショッピング検索順位取得サービスのトップページデザイン。
Author: EC番付
Version: 1.0.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ec-banzuke
*/

/* ===== Base ===== */
:root {
  --navy: #14304F;
  --navy-dark: #0D2038;
  --blue: #1D5BBF;
  --blue-light: #E8F0FB;
  --ink: #1B2735;
  --ink-2: #33415C;
  --ink-3: #4A5568;
  --muted: #64748B;
  --border: #E3E8EF;
  --bg-soft: #F7F9FC;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--ink);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  line-height: 1.8;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #143F86; }
h1, h2, h3 { line-height: 1.4; }
.container { max-width: 1184px; margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 72px;
  border-bottom: 1px solid var(--border);
  background: #FFFFFF;
  position: sticky; top: 0; z-index: 100;
}
.site-header .logo img { height: 48px; width: auto; display: block; }
.global-nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.global-nav a { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.global-nav a:hover { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-login {
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  padding: 9px 16px; border: 1px solid #CBD5E1; border-radius: 8px; display: inline-block;
}
.btn-login:hover { color: var(--blue); border-color: var(--blue); }
.btn-primary {
  font-size: 14px; font-weight: 700; color: #FFFFFF !important; background: var(--blue);
  padding: 10px 20px; border-radius: 8px; display: inline-block; border: none; cursor: pointer;
}
.btn-primary:hover { background: #174A9C; color: #FFFFFF; }
.menu-toggle { display: none; }

/* ===== Hero ===== */
.hero { background: var(--navy); color: #FFFFFF; padding: 72px 48px 80px; }
.hero-inner {
  max-width: 1184px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 480px; gap: 56px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 500; margin-bottom: 24px;
}
.hero-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6FA8FF; }
.hero h1 { margin: 0 0 20px; font-size: 44px; line-height: 1.35; font-weight: 900; letter-spacing: 0.01em; text-wrap: pretty; }
.hero-lead { margin: 0 0 32px; font-size: 16px; line-height: 1.9; color: #C4D2E4; max-width: 480px; text-wrap: pretty; }
.hero-lead small { font-size: 13px; color: #8FA6C2; }
.hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-hero-primary {
  font-size: 16px; font-weight: 700; color: var(--navy) !important; background: #FFFFFF;
  padding: 14px 28px; border-radius: 10px; display: inline-block;
}
.btn-hero-primary:hover { background: #E8F0FB; }
.btn-hero-ghost {
  font-size: 15px; font-weight: 500; color: #FFFFFF !important;
  border: 1px solid rgba(255,255,255,0.4); padding: 13px 24px; border-radius: 10px; display: inline-block;
}
.btn-hero-ghost:hover { border-color: #FFFFFF; }
.hero-note { margin-top: 20px; font-size: 12.5px; color: #8FA6C2; }

/* Hero mock card */
.rank-card {
  background: #FFFFFF; color: var(--ink); border-radius: 14px; padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.30);
}
.rank-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.rank-card-head strong { font-size: 14px; }
.rank-card-head span { font-size: 12px; color: var(--muted); }
.rank-rows { display: grid; gap: 10px; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #F4F7FB; border-radius: 10px; }
.mall-tag { font-size: 11px; font-weight: 700; border-radius: 5px; padding: 3px 8px; flex-shrink: 0; }
.mall-tag.rakuten { color: #B02A26; background: #FBEAE9; }
.mall-tag.yahoo { color: #8A5A00; background: #FBF2DE; }
.rank-kw { flex: 1; font-size: 13.5px; font-weight: 500; }
.rank-num { font-size: 20px; font-weight: 900; }
.rank-num small { font-size: 12px; font-weight: 500; color: var(--muted); }
.rank-delta { font-size: 12px; font-weight: 700; }
.rank-delta.up { color: #1A7F4E; }
.rank-delta.down { color: #B02A26; }
.rank-chart { margin-top: 16px; display: flex; align-items: flex-end; gap: 6px; height: 64px; padding: 0 4px; }
.rank-chart i { flex: 1; background: #D7E3F4; border-radius: 4px 4px 0 0; display: block; }
.rank-chart i.mid { background: #A9C4E8; }
.rank-chart i.hi { background: var(--blue); }
.rank-chart-labels { display: flex; justify-content: space-between; font-size: 10.5px; color: #94A3B8; padding: 4px 4px 0; }

/* ===== Sections ===== */
.section { padding: 72px 48px; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--blue); margin-bottom: 8px; }
.section-head h2 { margin: 0; font-size: 30px; font-weight: 900; }
.section-head p { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

/* About */
.about-grid {
  max-width: 1184px; margin: 0 auto;
  display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center;
}
.about-grid h2 { margin: 0; font-size: 26px; font-weight: 900; }
.about-grid p { margin: 0; font-size: 15px; line-height: 2.0; color: var(--ink-2); text-wrap: pretty; }

/* Features */
.features-grid { max-width: 1184px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card { background: #FFFFFF; border: 1px solid var(--border); border-radius: 12px; padding: 28px 24px; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--navy); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 900; margin-bottom: 18px;
}
.feature-card h3 { margin: 0 0 10px; font-size: 16.5px; font-weight: 700; }
.feature-card p { margin: 0; font-size: 13.5px; line-height: 1.9; color: var(--ink-3); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; align-items: stretch; }
.plan { border: 1px solid var(--border); border-radius: 14px; padding: 32px 28px; position: relative; background: #FFFFFF; }
.plan.recommended { border: 2px solid var(--blue); }
.plan-ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #FFFFFF; font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.plan-name { font-size: 15px; font-weight: 700; color: var(--ink-2); margin-bottom: 14px; }
.plan-price { margin-bottom: 20px; }
.plan-price strong { font-size: 36px; font-weight: 900; }
.plan-price span { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan-specs { display: grid; gap: 10px; font-size: 13.5px; color: var(--ink-2); border-top: 1px solid #EDF1F6; padding-top: 20px; margin: 0; list-style: none; }
.plan-specs li { display: flex; gap: 8px; }
.plan-specs li::before { content: "✓"; color: var(--blue); font-weight: 700; }
.pricing-note { text-align: center; margin: 24px 0 0; font-size: 13px; color: var(--muted); }

/* Flow */
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1100px; margin: 0 auto; }
.flow-step { background: #FFFFFF; border: 1px solid var(--border); border-radius: 12px; padding: 26px 22px; }
.flow-step .step-no { font-size: 12px; font-weight: 900; color: var(--blue); letter-spacing: 0.1em; margin-bottom: 10px; }
.flow-step h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.flow-step p { margin: 0; font-size: 13px; line-height: 1.8; color: var(--ink-3); }

/* FAQ + News */
.faq-news { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; max-width: 1100px; margin: 0 auto; }
.faq-news h2 { margin: 0 0 24px; font-size: 24px; font-weight: 900; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; margin-bottom: 14px; }
.faq-q, .faq-a { display: flex; gap: 12px; }
.faq-q { margin-bottom: 12px; }
.faq-q .mark, .faq-a .mark {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900;
}
.faq-q .mark { background: var(--navy); color: #FFFFFF; }
.faq-a .mark { background: var(--blue-light); color: var(--blue); }
.faq-q p { margin: 0; font-size: 14.5px; font-weight: 700; line-height: 1.7; }
.faq-a p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--ink-3); }
.news-list { margin: 0; padding: 0; list-style: none; }
.news-list li { border-bottom: 1px solid var(--border); }
.news-list a { padding: 16px 4px; display: flex; gap: 18px; align-items: baseline; color: var(--ink); }
.news-list a:hover .news-title { color: var(--blue); }
.news-date { flex-shrink: 0; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.news-title { font-size: 14px; font-weight: 500; line-height: 1.7; }
.news-more { padding: 16px 4px; }
.news-more a { font-size: 13px; font-weight: 700; }

/* ===== Contact / CTA ===== */
.contact-section { background: var(--navy); color: #FFFFFF; padding: 72px 48px; }
.contact-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.contact-inner h2 { margin: 0 0 12px; font-size: 30px; font-weight: 900; }
.contact-inner > p { margin: 0 0 40px; font-size: 14.5px; line-height: 1.9; color: #C4D2E4; }
.contact-form-card {
  background: #FFFFFF; color: var(--ink); border-radius: 14px; padding: 36px 40px; text-align: left;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-field { margin-bottom: 18px; }
.form-row .form-field { margin-bottom: 0; }
.form-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"],
.form-field textarea,
.contact-form-card .wpcf7 input[type="text"],
.contact-form-card .wpcf7 input[type="tel"],
.contact-form-card .wpcf7 input[type="email"],
.contact-form-card .wpcf7 textarea {
  width: 100%; height: 44px; border: 1px solid #CBD5E1; border-radius: 8px;
  background: #FAFBFC; padding: 0 12px; font-family: inherit; font-size: 14px; color: var(--ink);
}
.form-field textarea, .contact-form-card .wpcf7 textarea { height: 110px; padding: 10px 12px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus,
.contact-form-card .wpcf7 input:focus, .contact-form-card .wpcf7 textarea:focus {
  outline: 2px solid var(--blue); outline-offset: -1px; background: #FFFFFF;
}
.form-submit { display: flex; justify-content: center; margin-top: 24px; }
.form-submit .btn-primary,
.contact-form-card .wpcf7 input[type="submit"] {
  font-size: 15px; font-weight: 700; color: #FFFFFF; background: var(--blue);
  padding: 14px 56px; border-radius: 10px; border: none; cursor: pointer; height: auto; width: auto;
}
.form-submit .btn-primary:hover,
.contact-form-card .wpcf7 input[type="submit"]:hover { background: #174A9C; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-dark); color: #A9BBD1; padding: 48px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; max-width: 1100px; margin: 0 auto; }
.footer-logo img { height: 44px; width: auto; display: block; margin-bottom: 16px; filter: invert(1); }
.footer-info { line-height: 2.0; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col strong { color: #FFFFFF; font-weight: 700; margin-bottom: 4px; }
.footer-col a { color: #A9BBD1; }
.footer-col a:hover { color: #FFFFFF; }
.footer-copy {
  text-align: center; margin-top: 40px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.10); font-size: 12px; color: #7C92AC;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .features-grid, .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .faq-news { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .site-header { padding: 0 18px; height: 60px; }
  .site-header .logo img { height: 38px; }
  .global-nav {
    display: none;
    position: absolute; top: 60px; left: 0; right: 0;
    background: #FFFFFF; border-bottom: 1px solid var(--border);
    padding: 12px 18px 20px;
  }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .global-nav li { border-bottom: 1px solid #EDF1F6; }
  .global-nav a { display: block; padding: 14px 4px; font-size: 15px; }
  .btn-login { display: none; }
  .menu-toggle {
    display: grid; gap: 4px; padding: 10px 6px; background: none; border: none; cursor: pointer;
  }
  .menu-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; }

  .hero { padding: 44px 22px 48px; }
  .hero h1 { font-size: 27px; line-height: 1.45; }
  .hero-lead { font-size: 13.5px; }
  .hero-cta { display: grid; gap: 10px; }
  .btn-hero-primary, .btn-hero-ghost { text-align: center; }
  .rank-card { padding: 16px; }

  .section, .contact-section { padding: 40px 22px; }
  .section-head { text-align: left; margin-bottom: 20px; }
  .section-head h2 { font-size: 21px; }
  .features-grid, .flow-grid, .pricing-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; }
  .feature-icon { flex-shrink: 0; width: 38px; height: 38px; font-size: 16px; margin-bottom: 0; }
  .contact-form-card { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .site-footer { padding: 32px 22px; }
}
