*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #3b0a45;
  --primary-deep: #5a2a6e;
  --mure: #B43A4A;
  --mure-soft: #D95C6C;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans JP", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(59, 10, 69, 0.45);
  outline-offset: 2px;
}

.container {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 0 24px;
}

/* 4セクション共通の本文基準幅 */
.section-container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.bg-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.line {
  position: absolute;
  width: min(55vw, 720px);
  height: 42vh;
}

.line line {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.line-left {
  right: -260px;
  bottom: -80px;
}

.line-left line {
  fill: none;
  stroke: var(--mure);
  stroke-width: 2;
  opacity: 0.9;
}

.line-left line:nth-child(2) {
  stroke: var(--primary-deep);
  stroke-width: 2;
  opacity: 0.9;
}


.line-right {
  top: -30px;
  left: -180px;
}

.line-right line {
  fill: none;
  stroke: var(--mure);
  stroke-width: 2;
  opacity: 0.9;
}

.line-right line:nth-child(2) {
  stroke: var(--primary);
  stroke-width: 2;
  opacity: 0.9;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(229, 231, 235, 0.75);
  backdrop-filter: blur(6px);
}

.header-inner {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: block;
  width: auto;
  height: 36px;
  max-width: min(100%, 220px);
}

.menu-button {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  color: rgba(17, 24, 39, 0.82);
  font-size: 14px;
}

.nav a:hover {
  color: var(--text);
}

.hero {
  padding: 84px 0 56px;
}

.hero-inner {
  text-align: center;
  font-size: clamp(26px, 3.6vw, 40px);
}

.hero-inner h1 {
  margin: 0;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.hero-sub {
  margin: 12px 0 0;
  font-size: 0.65em;
  font-weight: 400;
  color: #6b7280;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.section {
  padding: 40px 0;
}

.section-border {
  border-top: 1px solid rgba(229, 231, 235, 0.7);
}

h2 {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.cards {
  margin: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 12px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  display: block;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.card:hover {
  /* 背景は白を維持し、枠線のみグラデーション */
  border: 1px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(
      135deg,
      rgba(59, 10, 69, 0.32),
      rgba(180, 58, 74, 0.32)
    ) border-box;
  transform: translateY(-2px);
}

.card:active {
  transform: translateY(1px);
}

.facts {
  margin: 0;
}

.facts > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  margin-top: 8px;
}

.facts dt {
  color: var(--muted);
  font-size: 14px;
}

.facts dd {
  margin: 0;
  font-size: 14px;
}

.contact-text {
  margin: 0;
  font-size: 14px;
  color: rgba(17, 24, 39, 0.82);
}

.contact-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--text);
  text-underline-offset: 4px;
}

.contact-link:hover {
  color: var(--primary);
}

/* お問い合わせフォーム（contact.php） */
.detail-block--contact-form {
  border-top: none;
  padding-top: 0;
}

.contact-form-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.contact-form {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.contact-form .form-group {
  display: grid;
  gap: 8px;
}

.contact-form .form-label {
  font-weight: 600;
  font-size: 14px;
  color: rgba(17, 24, 39, 0.88);
}

.contact-form .form-input,
.contact-form .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(209, 213, 219, 0.95);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
}

.contact-form .form-input:focus,
.contact-form .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 10, 69, 0.08);
}

.contact-form .form-textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-form .form-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.contact-form-wrap .error-box {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: #fff5f5;
  border-radius: 12px;
  color: #991b1b;
  font-size: 14px;
  line-height: 1.55;
}

.contact-form .error-box ul {
  margin: 0;
  padding-left: 18px;
}

.contact-form .contact-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-form .contact-submit-btn:hover {
  background: var(--mure);
}

.thanks-lead {
  margin: 14px 0 0;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(17, 24, 39, 0.86);
}

.thanks-back {
  margin: 22px 0 0;
}

.thanks-back-link {
  margin-top: 0;
}

.active-services {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.active-item {
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.active-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
}

.active-name {
  font-size: 14px;
  font-weight: 600;
  color: rgba(17, 24, 39, 0.92);
}

.active-status {
  font-size: 12px;
  color: rgba(107, 114, 128, 0.95);
}

.active-item:hover {
  border: 1px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(
      135deg,
      rgba(59, 10, 69, 0.32),
      rgba(180, 58, 74, 0.32)
    ) border-box;
  transform: translateY(-2px);
}

.site-footer {
  border-top: 1px solid rgba(229, 231, 235, 0.75);
  padding: 34px 0 40px;
}

.site-footer p {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.site-footer .copy {
  margin-top: 4px;
  font-size: 12px;
}

.site-footer .privacy {
  margin-top: 10px;
}

.site-footer .privacy a {
  color: var(--muted);
}

.detail-main {
  padding: 72px 0 40px;
}

.detail-wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.detail-hero h1 {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.detail-lead {
  margin: 14px 0 0;
  max-width: 860px;
  font-size: 16px;
  color: rgba(17, 24, 39, 0.86);
}

.detail-service-status {
  margin: 12px 0 1.6em;
  max-width: 860px;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 400;
  color: #6b7280;
  letter-spacing: 0.02em;
}

.detail-service-status--pillar {
  margin: 8px 0 14px;
}

.detail-service-status--prep {
  margin-left: 0;
  padding-left: 12px;
  border-left: 2px solid rgba(59, 10, 69, 0.14);
  color: #5f6673;
}

.detail-consult-pillar {
  border-top: 1px solid rgba(229, 231, 235, 0.72);
  padding: 36px 0 40px;
}

.detail-consult-pillar-title {
  margin: 0;
  font-size: clamp(17px, 2.1vw, 20px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.detail-pillar-body {
  margin: 0 0 12px;
  max-width: 860px;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(17, 24, 39, 0.9);
}

.detail-pillar-body:last-of-type {
  margin-bottom: 0;
}

.detail-pillar-subheading {
  margin: 20px 0 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.detail-list--pillar {
  margin-top: 0;
}

.detail-list--pillar li:first-child {
  margin-top: 0;
}

.detail-web-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.detail-web-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(17, 24, 39, 0.88);
  text-decoration: none;
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.detail-web-cta-link:hover {
  border-color: rgba(59, 10, 69, 0.22);
  color: var(--text);
}

.detail-edu-stack {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 8px;
}

.detail-edu-card {
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 14px;
  padding: 28px 26px 30px;
  background: rgba(255, 255, 255, 0.92);
}

.detail-pillar-body--edu-intro {
  margin-bottom: 0;
}

.detail-edu-supplement {
  margin: 18px 0 0;
  max-width: 860px;
  font-size: 14px;
  line-height: 1.7;
  color: #6b7280;
  letter-spacing: 0.02em;
}

.detail-web-cta--tight {
  margin-top: 18px;
}

.detail-tools-service-wrap {
  margin-top: 8px;
  padding-bottom: 8px;
}

.detail-pillar-body--tools-lead {
  margin-bottom: 4px;
}

.detail-tools-offer {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.detail-tools-offer-line {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
}

.detail-tools-offer-link {
  font-size: 15px;
  font-weight: 600;
  color: rgba(17, 24, 39, 0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(17, 24, 39, 0.2);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.detail-tools-offer-link:hover {
  color: var(--text);
  border-bottom-color: rgba(59, 10, 69, 0.35);
}

.detail-tools-prep {
  font-size: 12px;
  font-weight: 400;
  color: #9ca3af;
  letter-spacing: 0.02em;
}

.detail-tools-offer-desc {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(17, 24, 39, 0.82);
}

.detail-tools-service-footnote {
  margin: 22px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #9ca3af;
  letter-spacing: 0.02em;
}

/* Web制作：料金タブ（CSSのみ） */
.detail-service-status--web-hp {
  margin: 8px 0 0;
}

.web-price-tabs {
  margin-top: 22px;
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 14px;
  padding: 18px 16px 22px;
  background: rgba(255, 255, 255, 0.92);
}

.web-tab-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.web-tab-labels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 4px;
}

.web-tab-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 6px;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  color: var(--muted);
  background: rgba(249, 250, 251, 0.95);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, font-weight 0.15s ease;
}

#web-tab-meishi:checked ~ .web-tab-labels .web-tab-label--meishi,
#web-tab-basic:checked ~ .web-tab-labels .web-tab-label--basic,
#web-tab-option:checked ~ .web-tab-labels .web-tab-label--option,
#web-tab-special:checked ~ .web-tab-labels .web-tab-label--special {
  color: var(--text);
  background: #fff;
  border-color: rgba(59, 10, 69, 0.22);
  font-weight: 600;
}

.web-tab-panel {
  display: none;
  padding-top: 16px;
  border-top: 1px solid rgba(229, 231, 235, 0.65);
  margin-top: 14px;
}

#web-tab-meishi:checked ~ .web-tab-panel--meishi,
#web-tab-basic:checked ~ .web-tab-panel--basic,
#web-tab-option:checked ~ .web-tab-panel--option,
#web-tab-special:checked ~ .web-tab-panel--special {
  display: block;
}

.web-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.web-price-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}

.web-price-table thead th {
  padding: 10px 10px;
  text-align: left;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, #5a2a6e 0%, var(--primary) 100%);
  border: 1px solid rgba(59, 10, 69, 0.35);
}

.web-price-table tbody th,
.web-price-table tbody td {
  padding: 10px 10px;
  vertical-align: top;
  border: 1px solid rgba(229, 231, 235, 0.95);
  background: #fff;
}

.web-price-table tbody th {
  font-weight: 500;
  color: rgba(17, 24, 39, 0.88);
  white-space: nowrap;
}

.web-price-table tbody td {
  color: rgba(17, 24, 39, 0.9);
}

.web-price-inner-title {
  margin: 18px 0 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.web-price-list {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(17, 24, 39, 0.9);
}

.web-price-list ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.web-price-list li {
  margin: 6px 0 0;
}

.web-price-list > li:first-child {
  margin-top: 0;
}

.web-spec-list {
  margin-top: 4px;
}

.web-meishi-spec-in-tab {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(229, 231, 235, 0.75);
}

.web-meishi-spec-in-tab .web-price-inner-title {
  margin-top: 0;
}

.web-meishi-spec-in-tab .web-spec-list {
  margin-top: 2px;
}

.web-spec-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: #6b7280;
}

.web-ops-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}

.web-ops-list li {
  display: grid;
  grid-template-columns: minmax(120px, 200px) minmax(0, 1fr);
  gap: 8px 20px;
  padding: 12px 0;
  font-size: 15px;
  line-height: 1.6;
  border-bottom: 1px solid rgba(229, 231, 235, 0.75);
}

.web-ops-list li:last-child {
  border-bottom: none;
}

.web-ops-list-label {
  font-weight: 600;
  color: rgba(17, 24, 39, 0.82);
}

.web-ops-list-body {
  color: rgba(17, 24, 39, 0.88);
}

@media (max-width: 640px) {
  .web-tab-labels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .web-tab-label {
    font-size: 12px;
    padding: 8px 4px;
  }

  .web-price-table tbody th {
    white-space: normal;
  }

  .web-ops-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.detail-block {
  border-top: 1px solid rgba(229, 231, 235, 0.72);
  padding: 34px 0;
}

.detail-block h2 {
  margin: 0 0 14px;
}

.detail-block p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(17, 24, 39, 0.9);
}

.detail-list {
  margin: 0;
  padding-left: 18px;
}

.detail-list li {
  margin: 8px 0 0;
  font-size: 15px;
  color: rgba(17, 24, 39, 0.9);
}

.detail-contact {
  border-top: 1px solid rgba(229, 231, 235, 0.72);
  padding-top: 34px;
}

.detail-contact p {
  margin: 0;
  font-size: 15px;
  color: rgba(17, 24, 39, 0.86);
}

.detail-contact .contact-link {
  margin-top: 10px;
}

@media (max-width: 780px) {
  .line {
    width: min(86vw, 560px);
    height: 34vh;
  }

  /* 左上ライン */
  .line-right {
    top: -10px;
    left: -110px;
  }

  /* 右下ライン */
  .line-left {
    right: -140px;
    bottom: -28px;
  }

  .menu-button {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 56px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 14px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.75);
    background: rgba(255, 255, 255, 0.96);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 10px 8px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .facts > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 1024px) and (min-width: 781px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1440px) {
  .section-container {
    max-width: 1160px;
  }

  .detail-wrap {
    max-width: 1160px;
  }

  .header-inner {
    max-width: 1160px;
  }

  .container {
    padding: 0 28px;
  }

  body {
    font-size: 17px;
  }

  .hero-inner {
    font-size: clamp(30px, 3.8vw, 46px);
  }

  h2 {
    font-size: 16px;
    margin-bottom: 22px;
  }

  .card {
    padding: 20px;
  }

  .card h3 {
    font-size: 16px;
  }

  .facts dt,
  .facts dd,
  .contact-text,
  .contact-link,
  .active-name,
  .active-status {
    font-size: 15px;
  }

  .active-link {
    padding: 16px 18px;
  }
}

@media (min-width: 1600px) {
  .section-container {
    max-width: 1240px;
  }

  .detail-wrap {
    max-width: 1240px;
  }

  .header-inner {
    max-width: 1240px;
  }

  .container {
    padding: 0 32px;
  }

  .hero-inner {
    font-size: clamp(32px, 3.9vw, 50px);
  }

  h2 {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .card h3,
  .facts dt,
  .facts dd,
  .contact-text,
  .contact-link,
  .active-name,
  .active-status {
    font-size: 16px;
  }

  .section {
    padding: 44px 0;
  }
}
