/*
Theme Name: TORUAS HP Service Codex
Theme URI: https://hp.toruas.co.jp/
Author: TORUAS
Description: HP制作サービスLP用 WordPress theme.
Version: 1.0.0
Text Domain: toruas-hp-service-codex
*/

:root {
  --black: #070707;
  --black-2: #111111;
  --ink: #171717;
  --muted: #66615c;
  --paper: #f6f2ea;
  --paper-2: #ebe4d7;
  --white: #ffffff;
  --line: #d9d1c3;
  --red: #e83b36;
  --red-dark: #bf2722;
  --green: #0bbf66;
  --blue: #2b67e8;
  --gold: #c49742;
  --shadow: 0 26px 80px rgba(0, 0, 0, .18);
  --font-jp: "Noto Sans JP", system-ui, sans-serif;
  --font-en: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  color: var(--white);
  background: rgba(7, 7, 7, .92);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
}

.brand img {
  width: 126px;
  height: auto;
  filter: brightness(0) invert(1);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, .74);
}

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

.header-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  font-size: 14px;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr);
  gap: 48px;
  align-items: center;
  padding: 72px 32px 92px;
  color: var(--white);
  background:
    radial-gradient(circle at 70% 35%, rgba(232, 59, 54, .18), transparent 34%),
    linear-gradient(135deg, #050505 0%, #0c0b0a 52%, #17110e 100%);
  overflow: hidden;
}

.hero-copy {
  max-width: 640px;
  margin-left: max(0px, calc((100vw - 1240px) / 2));
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--red);
  font-weight: 700;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .82);
}

.eyebrow span,
.recording span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(232, 59, 54, .18);
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1.02;
  font-weight: 900;
}

.lead {
  max-width: 560px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, .8);
  font-size: 17px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  font-weight: 900;
  border: 1px solid transparent;
}

.btn-primary {
  color: var(--white);
  background: var(--red);
}

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

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, .22);
}

.btn-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, .28);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 520px;
  margin-top: 42px;
}

.hero-metrics div {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.hero-metrics span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, .48);
  letter-spacing: .12em;
}

.hero-metrics strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-en);
  font-size: clamp(21px, 2vw, 30px);
  line-height: 1.15;
  white-space: nowrap;
}

.hero-stage {
  position: relative;
  min-height: 640px;
  margin-right: max(0px, calc((100vw - 1240px) / 2));
}

.stage-main {
  position: absolute;
  inset: 0 0 44px 48px;
  border: 1px solid rgba(255, 255, 255, .18);
  overflow: hidden;
  background: var(--black);
  box-shadow: var(--shadow);
}

.stage-main::before {
  content: "";
  position: absolute;
  inset: 38px;
  z-index: 2;
  border: 1px dashed rgba(255, 255, 255, .38);
  pointer-events: none;
}

.stage-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.05) brightness(.72);
}

.recording {
  position: absolute;
  z-index: 3;
  top: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--white);
  background: rgba(0, 0, 0, .42);
}

.stage-message {
  position: absolute;
  z-index: 4;
  left: 0;
  bottom: 0;
  width: min(420px, 66%);
  padding: 24px;
  color: var(--ink);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
  border: 1px solid rgba(0, 0, 0, .08);
}

.stage-message span {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--red);
  font-weight: 700;
}

.stage-message strong {
  display: block;
  font-size: 28px;
  line-height: 1.25;
}

.stage-message p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section {
  padding: 112px 32px;
  scroll-margin-top: 92px;
}

.section-head,
.problem-grid,
.value-grid,
.compare-cards,
.work-showcase,
.price-grid,
.flow-list,
.owner-card,
.faq-list,
.contact-panel {
  max-width: 1180px;
  margin-inline: auto;
}

.section-head {
  margin-bottom: 54px;
}

.section-head.split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .65fr);
  gap: 56px;
  align-items: end;
}

.section-head.center {
  max-width: 760px;
  text-align: center;
}

.section h2,
.contact h2,
.owner h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.18;
  font-weight: 900;
}

.section-head p:not(.section-kicker),
.owner p,
.contact-panel p {
  color: var(--muted);
}

.problem {
  background: var(--paper);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--white);
}

.problem-grid article {
  min-height: 230px;
  padding: 30px;
  border-right: 1px solid var(--line);
}

.problem-grid article:last-child {
  border-right: 0;
}

.problem-grid span,
.value-card span,
.flow-list span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--red);
  font-weight: 700;
}

.problem-grid h3,
.value-card h3,
.compare-cards h3,
.flow-list h3,
.work-notes h3 {
  margin: 18px 0 10px;
  font-size: 24px;
  line-height: 1.32;
}

.problem-grid p,
.value-card p,
.compare-cards li,
.flow-list p,
.work-notes p,
.price-note {
  margin: 0;
  color: var(--muted);
}

.value {
  background: var(--white);
}

.value-grid {
  display: grid;
  gap: 24px;
}

.value-card {
  display: grid;
  grid-template-columns: minmax(340px, .75fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fbfaf7;
}

.value-card:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(340px, .75fr);
}

.value-card:nth-child(even) img {
  order: 2;
}

.value-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.compare {
  background:
    linear-gradient(180deg, rgba(43, 103, 232, .08), transparent 36%),
    var(--paper);
}

.compare-cards,
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.compare-cards article,
.price-grid article {
  position: relative;
  padding: 32px;
  border: 1px solid var(--line);
  background: var(--white);
}

.compare-cards .featured,
.price-grid .recommended {
  border-color: var(--red);
  box-shadow: var(--shadow);
}

.compare-cards strong {
  display: block;
  margin: 20px 0;
  font-size: 30px;
  line-height: 1.2;
}

.compare-cards ul,
.price-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare-cards li,
.price-grid li {
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.works {
  background: var(--black);
  color: var(--white);
}

.works .section-head p:not(.section-kicker),
.works .work-notes p {
  color: rgba(255, 255, 255, .68);
}

.work-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  gap: 34px;
  align-items: center;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.before-after div,
.before-after a,
.site-cards a {
  display: block;
  padding: 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
}

.before-after span,
.site-cards span {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--red);
}

.before-after img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
}

.before-after a {
  transition: border-color .2s, transform .2s;
}

.before-after a:hover {
  border-color: rgba(232, 59, 54, .75);
  transform: translateY(-2px);
}

.before-after strong {
  display: inline-flex;
  margin-top: 12px;
  color: var(--white);
  font-size: 14px;
}

.site-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 26px;
}

.site-cards img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.price {
  background: var(--paper);
}

.plan-for {
  min-height: 54px;
  color: var(--muted);
}

.price-line span {
  display: block;
  color: var(--muted);
  text-decoration: line-through;
}

.price-line strong {
  display: block;
  margin: 6px 0 22px;
  font-family: var(--font-en);
  font-size: 38px;
  line-height: 1.1;
}

.price-line small {
  font-size: 15px;
}

.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 10px;
  color: var(--white);
  background: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.price-note {
  max-width: 1180px;
  margin: 18px 0 0;
  padding: 18px 20px;
  background: rgba(196, 151, 66, .13);
  border: 1px solid rgba(196, 151, 66, .32);
}

.contract-note {
  max-width: 1180px;
  margin: 26px auto 0;
}

.contract-note h3 {
  margin: 0 0 14px;
  font-size: 24px;
}

.contract-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contract-grid article {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
}

.contract-grid strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.contract-grid p {
  margin: 0;
  color: var(--muted);
}

.flow {
  background: var(--white);
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.flow-list article {
  padding: 30px;
  background: var(--white);
}

.owner {
  background: var(--paper-2);
}

.owner-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
}

.owner-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.owner strong {
  display: block;
  margin-top: 22px;
}

.faq {
  background: var(--white);
}

.faq-list {
  max-width: 860px;
}

details {
  border-top: 1px solid var(--line);
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  list-style: none;
}

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

summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--red);
}

details[open] summary::after {
  content: "-";
}

details p {
  margin: -2px 0 24px;
  color: var(--muted);
}

.contact {
  padding: 112px 32px;
  scroll-margin-top: 92px;
  background:
    linear-gradient(135deg, rgba(232, 59, 54, .18), transparent 40%),
    var(--black);
  color: var(--white);
}

.contact-panel {
  padding: 54px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
}

.contact-panel p {
  max-width: 700px;
  color: rgba(255, 255, 255, .72);
}

.phone {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-en);
  font-weight: 800;
  color: var(--white);
}

.contact-form-preview,
.contact-form,
.wpcf7 {
  margin-top: 34px;
  max-width: 760px;
  padding: 28px;
  color: var(--white);
  background: rgba(0, 0, 0, .22);
  border: 0;
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.contact-form-preview p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, .72);
}

.contact-form-preview code {
  display: block;
  white-space: normal;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--red);
}

.cf7-field,
.wpcf7 .cf7-field {
  margin-bottom: 18px;
}

.cf7-field label,
.wpcf7 .cf7-field label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, .92);
  font-weight: 900;
  font-size: 14px;
}

.wpcf7-form-control-wrap {
  display: block;
}

.wpcf7 input:not([type="submit"]),
.wpcf7 textarea,
.wpcf7 select,
.cf7-field input,
.cf7-field textarea,
.cf7-field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  border-radius: 0;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.wpcf7 input:not([type="submit"]):focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus,
.cf7-field input:focus,
.cf7-field textarea:focus,
.cf7-field select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(232, 59, 54, .12);
}

.wpcf7 textarea,
.cf7-field textarea {
  min-height: 140px;
  resize: vertical;
}

.wpcf7 input[type="submit"],
.wpcf7-submit {
  min-height: 54px;
  min-width: 180px;
  padding: 0 28px;
  border: 0;
  color: var(--white);
  background: var(--red);
  font-weight: 900;
  cursor: pointer;
  transition: background .15s, transform .15s;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7-submit:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.wpcf7-spinner {
  margin-left: 12px;
}

.wpcf7-not-valid-tip {
  margin-top: 6px;
  color: var(--red);
  font-size: 13px;
}

.wpcf7 form .wpcf7-response-output {
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  color: var(--white);
  background: rgba(255, 255, 255, .08);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
  padding: 34px 32px 88px;
  color: rgba(255, 255, 255, .7);
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px;
}

.footer img {
  width: 120px;
  height: auto;
  filter: brightness(0) invert(1);
}

.footer p {
  margin: 0;
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 8px 18px;
  color: var(--white);
  background: rgba(7, 7, 7, .94);
  border-top: 1px solid rgba(232, 59, 54, .5);
  transform: translateY(0);
}

.sticky-cta span {
  font-weight: 800;
  font-size: 13px;
}

.sticky-cta a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  background: var(--red);
  font-weight: 900;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    margin-left: 0;
  }

  .hero-stage {
    min-height: 560px;
    margin-right: 0;
  }

  .section-head.split,
  .work-showcase {
    grid-template-columns: 1fr;
  }

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

  .problem-grid article:nth-child(2) {
    border-right: 0;
  }

  .compare-cards,
  .price-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 64px;
    padding: 0 16px;
  }

  .brand span {
    display: none;
  }

  .header-cta {
    min-height: 42px;
    padding: 0 14px;
  }

  .hero {
    min-height: auto;
    padding: 44px 18px 64px;
  }

  .hero h1 {
    font-size: clamp(40px, 14vw, 58px);
  }

  .lead {
    font-size: 15px;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 460px;
  }

  .stage-main {
    inset: 0 0 78px 0;
  }

  .stage-message {
    width: calc(100% - 28px);
    padding: 18px;
  }

  .stage-message strong {
    font-size: 22px;
  }

  .section,
  .contact {
    padding: 76px 18px;
  }

  .section h2,
  .contact h2,
  .owner h2 {
    font-size: clamp(30px, 9.4vw, 42px);
  }

  .section-head {
    margin-bottom: 34px;
  }

  .problem-grid,
  .flow-list,
  .value-card,
  .value-card:nth-child(even),
  .before-after,
  .site-cards,
  .contract-grid,
  .owner-card {
    grid-template-columns: 1fr;
  }

  .problem-grid article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .problem-grid article:last-child {
    border-bottom: 0;
  }

  .value-card:nth-child(even) img {
    order: 0;
  }

  .value-card,
  .compare-cards article,
  .price-grid article,
  .flow-list article,
  .owner-card {
    padding: 22px;
  }

  .contact-panel {
    padding: 28px;
  }

  .sticky-cta {
    justify-content: space-between;
    gap: 10px;
  }

  .sticky-cta span {
    font-size: 12px;
  }

  .sticky-cta a {
    flex-shrink: 0;
  }

  .footer {
    padding: 28px 18px 86px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
