/*
Theme Name: SiteBase
Theme URI: https://example.com
Author: SiteBase
Author URI: https://example.com
Description: SiteBase（制作からセキュリティ・保守まで頼れるWEBパートナー）のサービス紹介・料金サイト用テーマ。
Version: 1.0.0
License: All Rights Reserved
Text Domain: sitebase
*/

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

:root {
  --color-navy: #1a2338;
  --color-navy-light: #262f48;
  --color-accent: #3a5a8c;
  --color-accent-dark: #2b4468;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fb;
  --color-text: #1c2333;
  --color-text-muted: #5b6478;
  --color-border: #e3e7f0;
  --radius: 10px;
  --radius-btn: 6px;
  --max-width: 1080px;
  --font: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", system-ui, -apple-system, sans-serif;
  --font-serif: "Hiragino Mincho ProN", "YuMincho", "Yu Mincho", serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--font-serif); }

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

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

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
}

.nav a {
  color: var(--color-text-muted);
  transition: color 0.2s;
}

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

.nav__cta {
  background: var(--color-navy);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius-btn);
  font-weight: 600;
}

.nav__cta:hover { background: var(--color-navy-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, #ffffff 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(60px);
}

.hero::before {
  width: 520px;
  height: 520px;
  top: -220px;
  right: -160px;
  background: rgba(61, 125, 237, 0.14);
}

.hero::after {
  width: 420px;
  height: 420px;
  bottom: -200px;
  left: -140px;
  background: rgba(20, 33, 61, 0.08);
}

.hero__inner { position: relative; z-index: 1; text-align: center; }

.hero__eyebrow {
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.hero__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero__lead {
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 720px;
  margin: 0 auto 36px;
}

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


/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(61, 125, 237, 0.25);
}

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

.btn--ghost {
  background: transparent;
  color: var(--color-navy);
  border: 1px solid var(--color-border);
}

.btn--ghost:hover { border-color: var(--color-navy); }

/* ===== Section ===== */
.section { padding: 88px 0; }
.section--alt { background: var(--color-bg-alt); }

.section__head {
  margin-bottom: 48px;
}

.section__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.section__eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.section__num {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  white-space: nowrap;
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--color-navy);
  text-align: left;
  margin-bottom: 12px;
}

.section__lead {
  text-align: left;
  color: var(--color-text-muted);
  max-width: 560px;
}

.section__note {
  margin-top: 32px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ===== Concerns ===== */
.concerns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}

.concern {
  position: relative;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 28px 28px 28px 52px;
}

.concern::before {
  content: "\201C";
  position: absolute;
  left: 16px;
  top: 4px;
  font-family: Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.4;
}

.concern__text {
  color: var(--color-text);
  font-size: 0.95rem;
}

/* ===== Cards (Services) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cards--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 12px 30px rgba(20, 33, 61, 0.08);
  transform: translateY(-4px);
}

.card__thumb {
  margin: -32px -28px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--color-border);
}

.card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  background: rgba(61, 125, 237, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.card__desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.card__price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-navy);
}

/* ===== Strengths ===== */
.strengths {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.strength__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 10px;
  padding-left: 18px;
  border-left: 3px solid var(--color-accent);
}

.strength__desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  padding-left: 18px;
}

/* ===== Process ===== */
.process {
  list-style: none;
  max-width: 640px;
  margin: 0 auto;
}

.process__step {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.process__step:last-child { border-bottom: none; }

.process__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.process__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.process__desc {
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

/* ===== Pricing Table ===== */
.pricing-table {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

thead {
  background: var(--color-navy);
  color: #fff;
}

th, td {
  padding: 16px 20px;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.6;
}

.td-note {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

th { font-weight: 600; }

tbody tr { border-bottom: 1px solid var(--color-border); }
tbody tr:last-child { border-bottom: none; }

td:first-child { font-weight: 700; color: var(--color-navy); }
td:last-child { font-weight: 700; white-space: nowrap; }

.pricing-options {
  margin-top: 32px;
}

.pricing-options__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.pricing-table--options thead {
  background: var(--color-bg-alt);
  color: var(--color-navy);
}

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

.faq__item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
}

.faq__item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-navy);
  list-style: none;
  position: relative;
  padding-right: 24px;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 1.3rem;
  color: var(--color-accent);
  transition: transform 0.2s;
}

.faq__item[open] summary::after { transform: rotate(45deg); }

.faq__item p {
  margin-top: 14px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ===== Contact ===== */
.section--cta { text-align: center; }

.section--cta .section__title,
.section--cta .section__lead {
  text-align: center;
  max-width: none;
}

.contact-box {
  background: var(--color-navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  max-width: 720px;
  margin: 0 auto;
}

.contact-box a {
  color: #fff;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.contact-form { text-align: left; }

.form-row { margin-bottom: 20px; }

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.contact-form .required {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.14);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form select option { color: var(--color-text); }

.contact-form__submit {
  display: block;
  width: 100%;
  text-align: center;
  border: none;
  cursor: pointer;
  margin-top: 8px;
}

.contact-form__message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

.wpcf7 .wpcf7-response-output {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.88rem;
}

.wpcf7-not-valid-tip {
  display: block;
  margin-top: 4px;
  color: #ffd2d2;
  font-size: 0.8rem;
}

.wpcf7-form.sent .wpcf7-response-output { border: 1px solid #6bff9e; }
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output,
.wpcf7-form.payment-required .wpcf7-response-output { border: 1px solid #ff6b6b; }

/* ===== Thanks page ===== */
.thanks-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.thanks-section .btn { margin-top: 16px; }

.contact-alt {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
}

.contact-note {
  margin-top: 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== Legal (Privacy Policy etc.) ===== */
.legal { max-width: 760px; }

.legal__back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.legal__back:hover { color: var(--color-navy); }

.legal__lead { margin-bottom: 40px; }

.legal h2 {
  margin: 40px 0 14px;
  font-size: 1.15rem;
  color: var(--color-navy);
}

.legal h2:first-of-type { margin-top: 0; }

.legal p { margin-bottom: 14px; }

.legal ul { margin: 0 0 14px 1.4em; }

.legal li { margin-bottom: 6px; }

.legal__updated {
  margin-top: 40px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ===== Footer ===== */
.footer {
  padding: 28px 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--color-border);
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .strengths { grid-template-columns: 1fr; }
  .concerns { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav.is-open { max-height: 400px; }

  .nav a {
    width: 100%;
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
  }

  .nav__cta {
    border-radius: 0;
    text-align: center;
    background: var(--color-navy);
  }

  .hero { padding: 64px 0 48px; }
  .section { padding: 64px 0; }

}
