/*
Theme Name: 制作プロ LP テーマ
Theme URI: https://seisakupro.com
Author: 制作プロ
Description: AI自動ブログ投稿 × GBP連携 × 月次レポート × 障害監視パッケージサービス「制作プロ」の公式サイト用テーマ。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: seisakupro
*/

/* ==========================================================================
   0. リセット & 基本設定
   ========================================================================== */
:root {
  --color-navy: #0f2540;
  --color-navy-light: #16345c;
  --color-teal: #1abc9c;
  --color-teal-dark: #149c81;
  --color-bg: #f7f9fb;
  --color-white: #ffffff;
  --color-text: #24313f;
  --color-text-light: #5b6b7a;
  --color-border: #e3e8ee;
  --radius: 14px;
  --max-width: 1120px;
  --shadow-soft: 0 10px 30px rgba(15, 37, 64, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; }
p { margin: 0 0 1em; }

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

.section { padding: 96px 0; }
.section--alt { background: var(--color-white); }

.section-head { text-align: center; margin-bottom: 56px; }

.section-eyebrow {
  display: inline-block;
  color: var(--color-teal-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 13px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 16px;
}

.section-lead {
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn--primary {
  background: var(--color-teal);
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(26, 188, 156, 0.35);
}

.btn--primary:hover { background: var(--color-teal-dark); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn--outline {
  background: transparent;
  border-color: var(--color-navy);
  color: var(--color-navy);
}

.btn--outline:hover { background: var(--color-navy); color: var(--color-white); }

/* ==========================================================================
   1. ヘッダー
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.site-logo { font-size: 20px; font-weight: 800; color: var(--color-navy); letter-spacing: 0.02em; }
.site-logo span { color: var(--color-teal-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--color-navy);
  cursor: pointer;
}

.primary-nav ul { display: flex; gap: 32px; align-items: center; }
.primary-nav a { font-weight: 600; font-size: 14px; color: var(--color-text); }
.primary-nav a:hover { color: var(--color-teal-dark); }
.primary-nav .btn { padding: 10px 24px; font-size: 13px; }

/* ==========================================================================
   2. ヒーロー
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  color: var(--color-white);
  padding: 120px 0 100px;
  text-align: center;
}

.hero__eyebrow {
  display: inline-block;
  background: rgba(26, 188, 156, 0.18);
  color: #6be0c8;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero h1 { font-size: clamp(28px, 5vw, 46px); font-weight: 800; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--color-teal); }
.hero p { color: #cbd8e6; max-width: 620px; margin: 0 auto 40px; font-size: 16px; }

.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero__badges {
  margin-top: 56px;
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  color: #9db3c8;
  font-size: 13px;
}

.hero__badges strong { display: block; color: var(--color-white); font-size: 22px; margin-bottom: 4px; }

/* ==========================================================================
   3. 課題 (Problem)
   ========================================================================== */
.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.problem-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}

.problem-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #fdeee9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.problem-card h3 { font-size: 17px; color: var(--color-navy); margin-bottom: 10px; }
.problem-card p { color: var(--color-text-light); font-size: 14px; margin-bottom: 0; }

/* ==========================================================================
   4. サービス3本柱
   ========================================================================== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.service-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 36px 30px;
  border-top: 4px solid var(--color-teal);
}

.service-card .num { font-size: 13px; font-weight: 800; color: var(--color-teal-dark); letter-spacing: 0.08em; margin-bottom: 14px; }
.service-card h3 { font-size: 19px; color: var(--color-navy); margin-bottom: 12px; }
.service-card p { color: var(--color-text-light); font-size: 14px; margin-bottom: 0; }

/* ==========================================================================
   5. 料金
   ========================================================================== */
.pricing-note { text-align: center; color: var(--color-text-light); font-size: 13px; margin-bottom: 40px; }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }

.plan-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan-card--featured {
  border: 2px solid var(--color-teal);
  box-shadow: var(--shadow-soft);
  transform: translateY(-8px);
}

.plan-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-teal);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 999px;
}

.plan-card h3 { font-size: 18px; color: var(--color-navy); text-align: center; margin-bottom: 8px; }
.plan-card .plan-tagline { text-align: center; color: var(--color-text-light); font-size: 13px; margin-bottom: 24px; }
.plan-card .price { text-align: center; margin-bottom: 8px; }
.plan-card .price .initial { font-size: 13px; color: var(--color-text-light); }
.plan-card .price .monthly { font-size: 32px; font-weight: 800; color: var(--color-navy); }
.plan-card .price .monthly span { font-size: 14px; font-weight: 500; color: var(--color-text-light); }
.plan-card ul { margin: 24px 0 32px; flex-grow: 1; }

.plan-card li {
  padding: 8px 0 8px 26px;
  position: relative;
  font-size: 14px;
  color: var(--color-text);
  border-bottom: 1px dashed var(--color-border);
}

.plan-card li:before { content: "✓"; position: absolute; left: 0; color: var(--color-teal-dark); font-weight: 800; }
.plan-card .btn { width: 100%; }

/* ==========================================================================
   6. 導入の流れ
   ========================================================================== */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.flow-step {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--color-border);
}

.flow-step .step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.flow-step h3 { font-size: 15px; color: var(--color-navy); margin-bottom: 8px; }
.flow-step p { font-size: 13px; color: var(--color-text-light); margin-bottom: 0; }

/* ==========================================================================
   7. FAQ
   ========================================================================== */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700;
  color: var(--color-navy);
  font-size: 15px;
}

.faq-question .q-mark { color: var(--color-teal-dark); margin-right: 10px; }
.faq-toggle-icon { font-size: 20px; transition: transform 0.2s ease; color: var(--color-text-light); }
.faq-item.is-open .faq-toggle-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 24px;
  color: var(--color-text-light);
  font-size: 14px;
}

.faq-item.is-open .faq-answer { max-height: 400px; padding-bottom: 20px; }

/* ==========================================================================
   8. CTA
   ========================================================================== */
.cta-band {
  background: linear-gradient(135deg, var(--color-teal-dark), var(--color-teal));
  color: #fff;
  text-align: center;
  padding: 80px 0;
}

.cta-band h2 { font-size: clamp(22px, 3.5vw, 30px); margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.9); margin-bottom: 32px; }

/* ==========================================================================
   9. フッター
   ========================================================================== */
.site-footer { background: var(--color-navy); color: #b9c6d4; padding: 56px 0 28px; font-size: 13px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 32px; }
.footer-brand { max-width: 320px; }
.footer-brand .site-logo { color: #fff; margin-bottom: 12px; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-links h4 { color: #fff; font-size: 13px; margin-bottom: 14px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; text-align: center; color: #7d8fa0; }

/* ==========================================================================
   10. お問い合わせフォーム / 固定ページ
   ========================================================================== */
.contact-wrap { max-width: 640px; margin: 0 auto; }
.contact-form .form-row { margin-bottom: 22px; }

.contact-form label { display: block; font-weight: 700; font-size: 14px; color: var(--color-navy); margin-bottom: 8px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--color-teal); }

.contact-form .required { color: #e0554f; font-size: 12px; margin-left: 6px; }

.form-notice { padding: 16px 20px; border-radius: 10px; margin-bottom: 24px; font-size: 14px; }
.form-notice--success { background: #e6f8f2; color: #0f7a5e; }
.form-notice--error { background: #fdeceb; color: #b3352d; }

.page-hero { background: var(--color-navy); color: #fff; padding: 72px 0; text-align: center; }
.page-hero h1 { font-size: clamp(24px, 4vw, 34px); }

.legal-content h2 { color: var(--color-navy); font-size: 18px; margin: 32px 0 12px; }
.legal-content table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }

.legal-content table th,
.legal-content table td {
  border: 1px solid var(--color-border);
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  vertical-align: top;
}

.legal-content table th { width: 30%; background: var(--color-bg); color: var(--color-navy); }

/* ==========================================================================
   11. お見積もり・ご発注フォーム
   ========================================================================== */
.estimate-wrap { max-width: 980px; margin: 0 auto; }

.estimate-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.option-group {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 28px 8px;
  margin-bottom: 24px;
}

.option-group__title {
  font-size: 16px;
  color: var(--color-navy);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.option-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }

.option-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.option-item:hover { border-color: var(--color-teal); }

.option-item input[type="checkbox"],
.option-item input[type="radio"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--color-teal);
  flex-shrink: 0;
}

.option-item__body { flex-grow: 1; }

.option-item__label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.option-item__desc { font-size: 13px; color: var(--color-text-light); }

.option-item__price {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-teal-dark);
  text-align: right;
  white-space: nowrap;
}

.option-list--plain { flex-direction: row; flex-wrap: wrap; gap: 10px; }

.option-item--plain {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.option-item--plain input { width: 16px; height: 16px; }

.estimate-side { position: sticky; top: 96px; }

.total-box {
  background: var(--color-navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
}

.total-box h3 { font-size: 15px; margin-bottom: 18px; color: #cbd8e6; }

.total-box__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  font-size: 14px;
}

.total-box__row strong { font-size: 22px; color: var(--color-teal); }

.total-box__note { font-size: 12px; color: #9db3c8; margin: 16px 0 20px; }

/* ==========================================================================
   12. レスポンシブ
   ========================================================================== */
@media (max-width: 900px) {
  .problems, .services, .pricing, .flow { grid-template-columns: 1fr; }
  .plan-card--featured { transform: none; }
  .footer-grid { flex-direction: column; }
  .estimate-grid { grid-template-columns: 1fr; }
  .estimate-side { position: static; }
}

@media (max-width: 560px) {
  .option-item { flex-wrap: wrap; }
  .option-item__price { text-align: left; }
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; padding: 20px 24px; gap: 18px; align-items: flex-start; }
  .section { padding: 64px 0; }
}
