
/*
Theme Name: Codeble
Theme URI: https://example.com
Author: Codeble
Author URI: https://example.com
Description: コーディング代行サービス用 WordPress テーマ
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: Codeble
*/

/* ============================================================
   Variables
============================================================ */
:root {
  --green:        #1D9E75;
  --green-dark:   #0F6E56;
  --green-deeper: #085041;
  --green-light:  #E1F5EE;

  --text:         #1a1a1a;
  --text-muted:   #6b7280;
  --text-hint:    #9ca3af;

  --bg:           #ffffff;
  --bg-sub:       #f9fafb;

  --border:       #e5e7eb;
  --border-mid:   #d1d5db;

  --radius:       8px;
  --radius-lg:    12px;

  --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
}

/* ============================================================
   Reset & Base
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font);
  cursor: pointer;
}

input, textarea, select {
  font-family: var(--font);
}

/* ============================================================
   Layout & Sections
============================================================ */
.sec {
  padding: 3.5rem 2rem;
}

.sec-alt {
  background: var(--bg-sub);
}

.sec-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  margin-bottom: 6px;
}

.sec-sub {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2.2rem;
}

/* ============================================================
   Grid
============================================================ */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

/* ============================================================
   Navigation
============================================================ */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 2rem;
  border-bottom: 0.5px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav__logo {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  flex-shrink: 0;
}

.site-nav__logo span {
  color: var(--green);
}

.site-nav__links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin-left: auto;
  margin-right: 1.5rem;
}

.site-nav__links a {
  font-size: 13px;
  color: var(--text-muted);
}

.site-nav__links a:hover {
  color: var(--text);
}

/* ============================================================
   Buttons
============================================================ */
.btn-primary {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-primary--lg {
  padding: 10px 24px;
  font-size: 14px;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-mid);
  color: var(--text);
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
}

.btn-outline:hover {
  background: var(--bg-sub);
}

.btn-outline--sm {
  font-size: 12px;
  padding: 7px 14px;
}

/* ============================================================
   Tag / Badge
============================================================ */
.tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 500;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 1.1rem;
}

/* ============================================================
   Card
============================================================ */
.card {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
}

.card__icon {
  width: 36px;
  height: 36px;
  background: var(--green-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .8rem;
  color: var(--green-dark);
  font-size: 18px;
}

.card h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text);
}

.card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Stat card */
.card--stat {
  text-align: center;
}

.card--stat__num {
  font-size: 20px;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 3px;
}

.card--stat__label {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   Footer
============================================================ */
.site-footer {
  padding: 1.4rem 2rem;
  border-top: 0.5px solid var(--border);
  text-align: center;
}

.site-footer p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   Responsive
============================================================ */
@media (max-width: 600px) {
  .site-nav__links {
    display: none;
  }

  .sec {
    padding: 2.5rem 1.2rem;
  }
}

/* ============================================================
   Hero
============================================================ */
.hero {
  text-align: center;
  padding: 4rem 2rem 3rem;
}

.hero__title {
  font-size: 35px;
  font-weight: 500;
  line-height: 1.25;
  max-width: 540px;
  margin: 0 auto 1rem;
  color: var(--text);
}

.hero__title--accent {
  color: var(--green);
}

.hero__desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 410px;
  margin: 0 auto 1.9rem;
  line-height: 1.7;
}

.hero__btns {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  flex-wrap: nowrap;
  align-items: center;
}

/* ============================================================
   AI Banner
============================================================ */
.ai-banner {
  background: var(--green-light);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.6rem;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ai-banner__icon {
  font-size: 26px;
  color: var(--green-dark);
  flex-shrink: 0;
  margin-top: 2px;
}

.ai-banner__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--green-deeper);
  margin-bottom: 5px;
}

.ai-banner__text {
  font-size: 13px;
  color: var(--green-dark);
  line-height: 1.6;
}

.ai-stats {
  max-width: 600px;
  margin: 1.2rem auto 0;
}

/* ============================================================
   Cases
============================================================ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 12px;
  max-width: 680px;
  margin: 0 auto;
}

.case-card {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.case-card__thumb {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-sub);
  font-size: 32px;
}

.case-card__body {
  padding: .85rem;
}

.case-card__tag {
  display: inline-block;
  font-size: 11px;
  background: var(--green-light);
  color: var(--green-dark);
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 4px;
}

.case-card__title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 3px;
  color: var(--text);
}

.case-card__desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* SP: 制作実績を横長カードに */
@media (max-width: 720px) {
  .case-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .case-card {
    display: flex;
    flex-direction: row;
  }

  .case-card__thumb {
    width: 90px;
    min-width: 90px;
    height: auto;
    font-size: 26px;
    flex-shrink: 0;
  }

  .case-card__body {
    padding: .75rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* ============================================================
   Price Section
============================================================ */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.cmp-card {
  border-radius: var(--radius-lg);
  padding: 1.1rem;
}

.cmp-card--ours {
  background: var(--green-light);
  border: 0.5px solid var(--green);
}

.cmp-card--theirs {
  background: var(--bg);
  border: 0.5px solid var(--border);
}

.cmp-card__title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: .7rem;
}

.cmp-card--ours .cmp-card__title { color: var(--green-deeper); }
.cmp-card--theirs .cmp-card__title { color: var(--text-muted); }

.cmp-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  margin-bottom: 5px;
}

.cmp-card--ours .cmp-item { color: var(--green-dark); }
.cmp-card--theirs .cmp-item { color: var(--text-muted); }

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  max-width: 640px;
  margin: 0 auto 1.2rem;
}

.price-table th {
  padding: 8px 12px;
  background: var(--bg);
  border: 0.5px solid var(--border);
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}

.price-table th:first-child { text-align: left; }

.price-table td {
  padding: 8px 12px;
  border: 0.5px solid var(--border);
  text-align: center;
  color: var(--text);
}

.price-table td:first-child {
  text-align: left;
  color: var(--text-muted);
}

.price-table__note {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.9;
}

/* ============================================================
   Plan Cards
============================================================ */
.plan-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 14px;
  max-width: 700px;
  margin: 0 auto;
}

.plan {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  position: relative;
}

.plan--featured {
  border: 2px solid var(--green);
}

.plan__badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.plan__name {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.plan__price {
  font-size: 25px;
  font-weight: 500;
  color: var(--text);
}

.plan__price span {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

.plan__desc {
  font-size: 12px;
  color: var(--text-muted);
  margin: 8px 0;
  line-height: 1.6;
}

.plan__features {
  list-style: none;
  margin-bottom: 1.1rem;
}

.plan__features li {
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 0.5px solid var(--border);
}

.plan__features li:last-child { border: none; }

.plan__features li i {
  color: var(--green);
  font-size: 14px;
  flex-shrink: 0;
}

/* ============================================================
   Steps
============================================================ */
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: 0 .4rem;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 17px;
  right: -2px;
  width: 4px;
  height: 1px;
  background: var(--border-mid);
}

.step__num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 9px;
}

.step__title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 3px;
}

.step__desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

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

.faq-item {
  border-bottom: 0.5px solid var(--border);
  padding: .85rem 0;
}

.faq-item__q {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 12px;
}

.faq-item__q i {
  color: var(--text-muted);
  font-size: 16px;
  flex-shrink: 0;
  transition: transform .2s;
}

.faq-item__q.is-open i {
  transform: rotate(180deg);
}

.faq-item__a {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 7px;
  display: none;
}

.faq-item__a.is-open {
  display: block;
}

/* ============================================================
   Contact / Form
============================================================ */
.contact-card {
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: .85rem;
}

.form-row {
  margin-bottom: .85rem;
}

.form-row label,
.form-row .wpcf7-form-control-wrap + br { /* CF7 対応 */
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea,
.form-row select,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  font-size: 13px;
  padding: 8px 10px;
  border: 0.5px solid var(--border-mid);
  border-radius: var(--radius);
  outline: none;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: var(--green);
}

.form-row textarea,
.wpcf7 textarea {
  height: 120px;
  resize: vertical;
}

/* CF7 submit button */
.wpcf7 input[type="submit"] {
  width: 100%;
  padding: 11px;
  font-size: 14px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
}

.wpcf7 input[type="submit"]:hover {
  background: var(--green-dark);
}

/* CF7 メッセージ */
.wpcf7-response-output {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: var(--radius);
  margin-top: 10px;
}

/* ============================================================
   Sticky Estimate Bar
============================================================ */
.sticky-bar {
  position: sticky;
  bottom: 0;
  z-index: 99;
  background: var(--bg);
  border-top: 0.5px solid var(--border);
  padding: .7rem 2rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, .06);
}

.sticky-bar.is-visible {
  display: flex;
}

.sticky-bar__label {
  font-size: 12px;
  color: var(--text-muted);
}

.sticky-bar__price {
  font-size: 26px;
  font-weight: 500;
  color: var(--green);
  line-height: 1.1;
}

.sticky-bar__tax {
  font-size: 12px;
  color: var(--text-muted);
}

.sticky-bar__breakdown {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.sticky-bar__item {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.sticky-bar__item span {
  color: var(--text);
  font-weight: 500;
}

/* ============================================================
   Estimate Form
============================================================ */
.est-form {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  max-width: 720px;
  margin: 0 auto;
}

.est-section {
  margin-bottom: 1.4rem;
}

.est-section-hd {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 10px;
  background: var(--bg-sub);
  border-left: 3px solid var(--green);
  margin-bottom: .9rem;
}

/* Type tabs */
.est-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.est-tab {
  padding: 6px 14px;
  border-radius: var(--radius);
  border: 0.5px solid var(--border-mid);
  font-size: 12px;
  cursor: pointer;
  background: var(--bg);
  color: var(--text-muted);
  font-weight: 500;
}

.est-tab.is-active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

/* Band price table */
.band-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 1rem;
}

.band-table th {
  background: var(--bg-sub);
  padding: 5px 8px;
  text-align: center;
  color: var(--text-muted);
  font-weight: 500;
  border: 0.5px solid var(--border);
}

.band-table td {
  padding: 5px 8px;
  text-align: center;
  border: 0.5px solid var(--border);
  color: var(--text);
}

.band-table td:first-child { text-align: left; }

.band-table tr.is-active td {
  background: var(--green-light);
  font-weight: 500;
  color: var(--green-dark);
}

/* Input rows */
.est-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.est-input-row label {
  font-size: 12px;
  color: var(--text-muted);
  min-width: 135px;
}

.est-input-row input[type="number"] {
  width: 68px;
  font-size: 13px;
  text-align: right;
  padding: 5px 8px;
  border: 0.5px solid var(--border-mid);
  border-radius: var(--radius);
  outline: none;
  font-family: var(--font);
}

.est-input-row input:focus { border-color: var(--green); }

.est-input-row__unit {
  font-size: 12px;
  color: var(--text-muted);
}

.est-hint {
  font-size: 11px;
  color: var(--green-dark);
}

/* Option table */
.opt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}

.opt-table th {
  text-align: left;
  padding: 6px 8px;
  background: var(--bg-sub);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 11px;
  border-bottom: 0.5px solid var(--border);
}

.opt-table th:first-child  { width: 140px; }
.opt-table th:nth-child(2) { width: auto; }
.opt-table th:last-child   { width: 72px; text-align: right; }

.opt-table td {
  padding: 7px 8px;
  border-bottom: 0.5px solid var(--border);
  vertical-align: middle;
  overflow: hidden;
}

.opt-table td:first-child {
  width: 140px;
  vertical-align: top;
  padding-top: 9px;
}

.opt-table td:last-child {
  width: 72px;
  text-align: right;
  color: var(--text-muted);
  font-size: 11px;
  white-space: nowrap;
  vertical-align: middle;
}

.opt-table tr:last-child td { border-bottom: none; }

.opt-table__name {
  font-size: 12px;
  color: var(--text);
}

.opt-table__note {
  font-size: 11px;
  color: var(--text-muted);
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.chip {
  padding: 3px 9px;
  border-radius: var(--radius);
  border: 0.5px solid var(--border-mid);
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  background: var(--bg);
  transition: border-color .15s, color .15s;
}

.chip:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.chip.is-active {
  background: var(--green-light);
  border-color: var(--green);
  color: var(--green-dark);
  font-weight: 500;
}

.chip--free {
  cursor: default;
}

.chip--free.is-active {
  background: #EFF8FF;
  border-color: #7DBFEE;
  color: #1a6fa8;
}

.chip__free-label {
  display: inline-block;
  font-size: 10px;
  background: #DBEAFE;
  color: #1D4ED8;
  padding: 1px 5px;
  border-radius: 10px;
  margin-left: 3px;
}

/* Result table */
.result-wrap {
  margin-top: 1.2rem;
  background: var(--bg-sub);
  border-radius: var(--radius);
  padding: 1.1rem;
}

.result-wrap__heading {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: .7rem;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}

.result-table td {
  padding: 5px 6px;
  border-bottom: 0.5px solid var(--border);
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-table td:first-child  { width: auto; }
.result-table td:nth-child(2) { width: 36px; text-align: center; }
.result-table td:nth-child(3) { width: 72px; text-align: right; }
.result-table td:last-child   { width: 88px; }

.result-table td.is-label { color: var(--text); }

.result-table td.is-price {
  text-align: right;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

.result-table td.is-free {
  text-align: right;
  color: #1a6fa8;
  font-weight: 500;
}

.result-table tr.is-group-head td {
  background: var(--bg);
  font-weight: 500;
  color: var(--text);
  font-size: 11px;
  padding: 6px;
  border-bottom: 0.5px solid var(--border-mid);
}

.result-table tr.is-subtotal td {
  background: var(--bg);
  font-weight: 500;
  color: var(--text);
  border-top: 0.5px solid var(--border-mid);
  border-bottom: 0.5px solid var(--border-mid);
}

.result-table tr.is-total td {
  background: var(--green-light);
  font-weight: 500;
  color: var(--green-deeper);
  font-size: 13px;
}

.result-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.7;
}

.result-actions {
  display: flex;
  gap: 10px;
  margin-top: .9rem;
  flex-wrap: wrap;
}

/* ============================================================
   Responsive (sections)
============================================================ */
@media (max-width: 600px) {
  .hero__title { font-size: 26px; }
  .compare-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .sticky-bar__breakdown { display: none; }
}

/* ============================================================
   Chatwork Button
============================================================ */
.btn-chatwork {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E0131A;
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .15s;
}

.btn-chatwork:hover { opacity: .85; }

.btn-chatwork--lg {
  padding: 12px 28px;
  font-size: 15px;
}

.btn-chatwork--sm {
  padding: 7px 14px;
  font-size: 12px;
  margin-top: .8rem;
}

/* ============================================================
   Footer (rich)
============================================================ */
.site-footer {
  background: #111;
  color: #fff;
  border-top: none;
  padding: 0;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

.site-footer__logo {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  margin-bottom: .3rem;
}

.site-footer__logo span { color: var(--green); }

.site-footer__tagline {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 4px;
}

.site-footer__company {
  font-size: 11px;
  color: #6b7280;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.site-footer__nav-title {
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
  margin-bottom: .6rem;
  letter-spacing: .04em;
}

.site-footer__nav-group a {
  display: block;
  font-size: 12px;
  color: #6b7280;
  text-decoration: none;
  margin-bottom: 5px;
}

.site-footer__nav-group a:hover { color: #fff; }

.site-footer__bottom {
  border-top: 0.5px solid #222;
  text-align: center;
  padding: 1rem 2rem;
}

.site-footer__bottom p {
  font-size: 11px;
  color: #4b5563;
}

/* ============================================================
   Policy / Info Pages
============================================================ */
.policy-wrap {
  max-width: 640px;
  margin: 0 auto;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

.policy-wrap h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin: 1.2rem 0 .4rem;
}

.policy-wrap p { margin-bottom: .6rem; }

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.info-table th,
.info-table td {
  padding: 10px 14px;
  border-bottom: 0.5px solid var(--border);
  vertical-align: top;
  text-align: left;
}

.info-table th {
  width: 160px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  white-space: nowrap;
}

.info-table td { color: var(--text-muted); }

/* ============================================================
   Responsive (additions)
============================================================ */
@media (max-width: 600px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__nav {
    grid-template-columns: 1fr;
  }

  .info-table th {
    width: 110px;
    font-size: 12px;
  }
}

/* ============================================================
   選ばれる理由 - 比較
============================================================ */
.reason-compare {
  max-width: 560px;
  margin: 2rem auto 0;
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}

.reason-compare__title {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1rem;
}

.reason-compare__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.reason-compare__item {
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.reason-compare__item--ours {
  background: var(--green-light);
  border: 0.5px solid var(--green);
}

.reason-compare__item--theirs {
  background: var(--bg-sub);
  border: 0.5px solid var(--border);
}

.reason-compare__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.reason-compare__item--ours .reason-compare__label {
  color: var(--green-dark);
}

.reason-compare__price {
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 4px;
}

.reason-compare__item--ours .reason-compare__price {
  color: var(--green-deeper);
}

.reason-compare__price span {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}

.reason-compare__note {
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================================
   お客様の声
============================================================ */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}

.voice-card {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
}

.voice-card__stars {
  color: #f59e0b;
  font-size: 14px;
  margin-bottom: .6rem;
}

.voice-card__text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: .8rem;
}

.voice-card__meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.voice-card__tags {
  font-size: 11px;
  color: var(--green-dark);
}

/* ============================================================
   Policy Pages
============================================================ */
.policy-page {
  min-height: 60vh;
}

.policy-page__title {
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: .8rem;
  border-bottom: 2px solid var(--green);
}

.policy-page__lead {
  margin-bottom: 1.5rem;
}

.policy-wrap h2 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin: 1.4rem 0 .5rem;
  padding-left: .7rem;
  border-left: 3px solid var(--green);
}

.policy-wrap ul {
  padding-left: 1.4rem;
  margin-bottom: .8rem;
}

.policy-wrap ul li {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

.policy-page__back {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 0.5px solid var(--border);
}

/* ============================================================
   Flow List (縦型)
============================================================ */
.flow-list {
  max-width: 580px;
  margin: 0 auto;
}

.flow-item {
  display: flex;
  gap: 1.2rem;
  padding-bottom: 1.4rem;
  margin-bottom: 1.4rem;
  border-bottom: 0.5px solid var(--border);
  position: relative;
}

.flow-item--last {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.flow-item__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flow-item__body h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 5px;
}

.flow-item__body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   FAQ Group Title
============================================================ */
.faq-group-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 5px 12px;
  border-radius: var(--radius);
  margin: 1.2rem 0 .2rem;
  display: inline-block;
}

.faq-list .faq-group-title:first-child {
  margin-top: 0;
}

/* ============================================================
   Form required label
============================================================ */
.form-required {
  display: inline-block;
  font-size: 10px;
  background: #fee2e2;
  color: #dc2626;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 4px;
  vertical-align: middle;
}

/* ============================================================
   Chatwork logo icon
============================================================ */
.chatwork-logo-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* フッターのナビタイトル非表示 */
.site-footer__nav-title {
  display: none;
}

/* ============================================================
   Hero New
============================================================ */
.hero--new {
  padding: 0;
  text-align: left;
  background: linear-gradient(135deg, #f0fdf8 0%, #ffffff 60%);
  border-bottom: 0.5px solid var(--border);
}

/* ナビ背景を緑に */
.site-nav {
  background: var(--green) !important;
  border-bottom-color: var(--green-dark) !important;
}

.site-nav__logo a,
.site-nav__logo {
  color: #fff !important;
}

.site-nav__logo span {
  color: #d4f5e9 !important;
}

.site-nav__links a {
  color: rgba(255,255,255,.85) !important;
}

.site-nav__links a:hover {
  color: #fff !important;
}

.nav-hamburger span {
  background: #fff !important;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: .5rem;
  margin-top: -.5rem;
}

.hero__title--new {
  font-size: 52px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .04em;
  color: var(--text);
  margin-bottom: 1.1rem;
}

.hero__desc--new {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__stat-num {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.hero__stat-num em {
  font-style: normal;
  color: var(--green);
  font-size: 15px;
}

.hero__stat-label {
  font-size: 11px;
  color: var(--text-muted);
}

.hero__stat-div {
  width: 1px;
  height: 28px;
  background: var(--border-mid);
}

/* コードカードビジュアル */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero__code-card {
  background: #1e1e2e;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 340px;
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
  overflow: visible;
  position: relative;
}

.hero__code-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #2a2a3e;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.hero__code-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.hero__code-bar span:nth-child(2) { background: #febc2e; }
.hero__code-bar span:nth-child(3) { background: #28c840; }

.hero__code-body {
  padding: 1.2rem 1.4rem 1.4rem;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 2;
}

.hero__code-line { color: #cdd6f4; }
.hero__code-line.i1 { padding-left: 1.2em; }
.hero__code-line.i2 { padding-left: 2.4em; }

.c-tag   { color: #89b4fa; }
.c-attr  { color: #cba6f7; }
.c-val   { color: #a6e3a1; }
.c-txt   { color: #cdd6f4; }
.c-accent { color: #f38ba8; font-weight: 600; }

.hero__code-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--green);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 4px;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero__badge {
  position: absolute;
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 500;
  color: var(--green-dark);
  padding: 5px 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  white-space: nowrap;
}

.hero__badge--1 { top: -12px; right: -16px; }
.hero__badge--2 { bottom: 40px; right: -20px; }
.hero__badge--3 { bottom: -12px; left: 10px; }

/* ============================================================
   Chatwork 白背景ボタン
============================================================ */
.btn-chatwork-white {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  color: #333;
  border: 1px solid var(--border-mid);
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow .15s, border-color .15s;
}

.btn-chatwork-white:hover {
  border-color: #e3122c;
  box-shadow: 0 2px 8px rgba(227,18,44,.12);
}

.btn-chatwork-white--lg {
  padding: 12px 28px;
  font-size: 15px;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

/* ============================================================
   Responsive Hero
============================================================ */
@media (max-width: 720px) {
  .hero__inner {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.2rem 2rem;
  }

  .hero__visual { display: none; }

  .hero__title--new { font-size: 28px; }
}

/* ============================================================
   Hero Illust
============================================================ */
.hero__illust {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.06));
}

/* SPではコンテンツ縦積み、イラストも表示 */
@media (max-width: 720px) {
  .hero__content { display: block; }
  .hero__visual   { display: flex !important; justify-content: center; }
  .hero__illust   { max-width: 85%; }
  .hero--new      { padding: 2rem 1.2rem 2.5rem; }
  .hero__inner    { grid-template-columns: 1fr; gap: 0; }
  .hero__visual   { order: -1; margin-bottom: 1.5rem; }
  .hero__title--new { font-size: 30px; }
  .hero__desc--new  { font-size: 13px; }
  .hero__stats { gap: .6rem; }
  .hero__stat-num { font-size: 12px; }
  .hero__stat-num em { font-size: 13px; }
}

/* ============================================================
   お客様の声 - SP縦3列
============================================================ */
.voice-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 720px) {
  .voice-grid {
    grid-template-columns: 1fr; /* SP: 縦1列 */
  }
}

/* ============================================================
   TOPへボタン
============================================================ */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 80px; /* sticky barの上 */
  width: 44px;
  height: 44px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 50;
  text-decoration: none;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover { background: var(--green-dark); }

.btn-chatwork-white--footer {
  margin-top: .8rem;
  border-color: rgba(255,255,255,.6);
  color: #222;
  background: #fff;
}

.btn-chatwork-white--footer:hover {
  border-color: #e3122c;
  background: #fff;
  color: #222;
  box-shadow: 0 2px 8px rgba(227,18,44,.15);
}

/* eyebrowのコードブル */
.hero__eyebrow-name {
  font-weight: 400;
  color: var(--green-dark);
  opacity: .8;
}

/* フッターロゴのコードブル */
.footer-logo-sub {
  font-size: 13px;
  font-weight: 400;
  color: #9ca3af;
  margin-left: 4px;
  letter-spacing: .02em;
}

/* ============================================================
   ハンバーガーメニュー
============================================================ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  position: fixed;
  top: 0;
  right: -260px;
  width: 260px;
  height: 100%;
  background: var(--bg);
  box-shadow: -2px 0 16px rgba(0,0,0,.1);
  z-index: 200;
  transition: right .25s ease;
  padding: 5rem 1.5rem 2rem;
}

.nav-drawer.is-open { right: 0; }

.nav-drawer__links {
  list-style: none;
}

.nav-drawer__links li {
  border-bottom: 0.5px solid var(--border);
}

.nav-drawer__links a {
  display: block;
  padding: 1rem 0;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
}

.nav-drawer__links a:hover { color: var(--green); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.3);
  z-index: 199;
}

.nav-overlay.is-open { display: block; }

@media (max-width: 720px) {
  .site-nav__links { display: none; }
  .nav-hamburger   { display: flex; }
}

/* ============================================================
   TOPボタン（矢印＋TOP）
============================================================ */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 48px;
  height: 52px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  z-index: 50;
  transition: background .15s;
}

.scroll-top.is-visible { display: flex; }
.scroll-top:hover { background: var(--green-dark); }

.scroll-top__arrow {
  font-size: 16px;
  line-height: 1;
}

.scroll-top__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .05em;
  line-height: 1;
}

/* ============================================================
   ヒーロー Chatworkボタン（白背景・黒文字）
============================================================ */
.btn-chatwork-hero {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border-mid);
  padding: 9px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: box-shadow .15s, border-color .15s;
}

.btn-chatwork-hero:hover {
  border-color: #e3122c;
  box-shadow: 0 2px 8px rgba(227,18,44,.12);
  color: var(--text);
}

/* ============================================================
   SPヒーロー：タイトル→イラスト→説明文→ボタン・センター揃え
============================================================ */
@media (max-width: 720px) {
  .hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    padding: 2rem 1.2rem 2.5rem;
  }

  /* eyebrow + title を最上部に */
  .hero__content {
    display: contents; /* 子要素をflex直下に展開 */
  }

  .hero__eyebrow {
    order: 1;
    text-align: center;
    margin-bottom: .8rem;
    width: 100%;
  }

  .hero__title--new {
    order: 2;
    font-size: 36px;
    letter-spacing: .03em;
    text-align: center;
    margin-bottom: 0;
    width: 100%;
  }

  /* イラストをタイトルの直下 */
  .hero__visual {
    display: flex !important;
    order: 3;
    justify-content: center;
    width: 100%;
    margin: 1.2rem 0;
  }

  .hero__illust { max-width: 85%; }

  /* 説明文・数値・ボタンをイラストの下 */
  .hero__desc--new {
    order: 4;
    font-size: 13px;
    text-align: center;
    margin-bottom: 1rem;
    width: 100%;
  }

  .hero__stats {
    order: 5;
    justify-content: center;
    gap: .5rem;
    margin-bottom: 1.2rem;
    width: 100%;
  }

  .hero__btns {
    order: 6;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  /* 無料見積もり・お問い合わせを横並び */
  .hero__btns .btn-primary,
  .hero__btns .btn-outline {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 10px 12px;
    font-size: 13px;
  }

  /* Chatworkボタンは下段全幅 */
  .hero__btns .btn-chatwork-hero {
    width: 100%;
    justify-content: center;
  }

  .hero__stat-num { font-size: 12px; }
  .hero__stat-num em { font-size: 13px; }
}

/* ============================================================
   Card SVGイラスト
============================================================ */
.card__illust {
  width: 56px;
  height: 56px;
  margin-bottom: .9rem;
}

.card__illust svg {
  width: 100%;
  height: 100%;
}

/* SVGイラスト中央揃え */
.card__illust {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 1rem;
}

.card__illust svg {
  width: 64px;
  height: 64px;
}

/* シミュレーター項目名の余白を広げる */
.opt-table td:first-child {
  width: 160px;
  padding: 10px 12px 10px 8px;
}

.opt-table th:first-child { width: 160px; }

.opt-table__name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.5;
}

.opt-table__note {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* PCヒーローイラストを大きく */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__illust {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.06));
}

/* ============================================================
   SP: シミュレーター改善
============================================================ */
@media (max-width: 720px) {

  /* inputのfont-size 16pxでiOSズームを防止 */
  .est-input-row input[type="number"],
  .est-form input[type="number"],
  .est-form select,
  .est-form input,
  .est-form textarea {
    font-size: 16px !important;
  }

  /* opt-tableをSPで縦積みに */
  .opt-table,
  .opt-table thead,
  .opt-table tbody,
  .opt-table tr,
  .opt-table td,
  .opt-table th {
    display: block;
    width: 100% !important;
  }

  .opt-table thead { display: none; }

  .opt-table tr {
    border-bottom: 0.5px solid var(--border);
    padding: 10px 0;
  }

  .opt-table tr:last-child { border-bottom: none; }

  .opt-table td {
    padding: 3px 8px;
    border-bottom: none;
  }

  .opt-table td:first-child {
    width: 100% !important;
    padding-bottom: 6px;
  }

  .opt-table td:last-child {
    width: 100% !important;
    text-align: left;
    font-size: 12px;
    color: var(--green-dark);
    font-weight: 500;
    padding-top: 4px;
  }

  /* chips は折り返して全表示 */
  .chips, .echips {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
    gap: 6px;
  }

  .chip, .echip {
    flex-shrink: 0;
    font-size: 12px;
    padding: 5px 11px;
  }

  /* est-input-row をSPで見やすく */
  .est-input-row {
    flex-wrap: wrap;
    gap: 6px;
  }

  .est-input-row label {
    min-width: 100%;
    font-size: 13px;
  }

  .est-input-row input[type="number"] {
    width: 80px;
  }

  /* band-table SP */
  .band-table {
    font-size: 11px;
  }

  .band-table th,
  .band-table td {
    padding: 5px 6px;
  }

  /* result-table SP */
  .result-table td {
    font-size: 11px;
  }

  /* est-form padding */
  .est-form {
    padding: 1rem;
  }

  .est-section-hd {
    font-size: 12px;
  }
}

/* chips--wrap: 常に折り返し表示（横スクロールしない） */
.chips--wrap {
  flex-wrap: wrap !important;
  overflow-x: visible !important;
}

/* 制作実績 概算金額 */
.case-card__price {
  font-size: 11px;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 3px 8px;
  border-radius: var(--radius);
  margin-top: 6px;
  display: inline-block;
  line-height: 1.5;
}

