/*
Theme Name: SONIC FORM Production
Theme URI: https://sonic-form.example/
Author: SONIC FORM
Description: SONIC FORM corporate theme for recording, photography, video editing, website production, and event production.
Version: 1.0.0
License: GPLv2 or later
Text Domain: sonic-form-production
*/

:root {
  --ink: #332d2d;
  --muted: #6c6464;
  --line: #eee2df;
  --paper: #fffaf8;
  --soft: #f7ede9;
  --accent: #e60012;
  --accent-dark: #b8000e;
  --blue: #f5a400;
  --green: #e60012;
  --dark: #2f2929;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.75;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(20px, 5vw, 64px);
  background: rgba(255, 250, 248, .92);
  border-bottom: 1px solid rgba(238, 226, 223, .9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 220px;
}

.brand-logo {
  width: auto;
  height: 56px;
  max-width: min(340px, 46vw);
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #332d2d;
  font-size: 13px;
  font-weight: 900;
}

.site-nav a {
  padding: 10px 0;
}

.site-nav a:hover {
  color: var(--accent-dark);
}

.menu-button {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(40px, 7vw, 86px) clamp(20px, 5vw, 64px) 56px;
  background: linear-gradient(130deg, #fffaf8 0%, #f8efeb 52%, #fff7e5 100%);
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
}

h3 {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.35;
}

.lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions,
.contact .button {
  margin-top: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  border: 1px solid rgba(230, 0, 18, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  color: #493838;
  font-size: 13px;
  font-weight: 900;
  padding: 8px 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 16px 34px rgba(230, 0, 18, .2);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, .62);
  border-color: var(--line);
}

.hero-media {
  overflow: hidden;
  border-radius: 8px;
  background: var(--dark);
  box-shadow: 0 32px 80px rgba(32, 38, 51, .2);
}

.hero-media img {
  width: 100%;
  height: min(64vh, 640px);
  min-height: 420px;
  object-fit: cover;
}

.statement,
.services,
.plans,
.works,
.examples,
.process,
.faq,
.contact {
  padding: 82px clamp(20px, 5vw, 64px);
}

.statement {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  background: var(--white);
}

.statement p:last-child {
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-grid article {
  min-height: 278px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 40px rgba(32, 38, 51, .06);
}

.service-number {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.service-grid p,
.plan-grid p,
.example-grid p,
.work-copy p,
.faq-list p,
.contact p,
.process-list span {
  color: var(--muted);
}

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

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plan-grid article {
  display: flex;
  min-height: 392px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfb;
}

.plan-grid article.featured {
  border-color: rgba(230, 0, 18, .34);
  background: linear-gradient(180deg, #fff8f6, #ffffff);
  box-shadow: 0 24px 54px rgba(230, 0, 18, .1);
}

.plan-label {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.plan-grid strong {
  display: block;
  margin: 18px 0 16px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.35;
}

.plan-grid ul {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.plan-grid li {
  border-top: 1px solid var(--line);
  color: #453d3d;
  font-size: 14px;
  font-weight: 800;
  padding-top: 8px;
}

.price-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.works {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  background: #fff4f0;
}

.work-image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(32, 38, 51, .16);
}

.work-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.work-copy {
  max-width: 620px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
}

.stats div {
  padding: 18px;
  border: 1px solid rgba(230, 0, 18, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .64);
}

.stats dt {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.stats dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.examples {
  background: #fffaf8;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.example-grid article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

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

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  counter-increment: process;
  padding: 24px;
  border-top: 4px solid var(--accent);
  background: var(--soft);
}

.process-list li::before {
  content: counter(process, decimal-leading-zero);
  display: block;
  margin-bottom: 28px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.process-list b,
.process-list span {
  display: block;
}

.process-list b {
  margin-bottom: 8px;
  font-size: 19px;
}

.faq {
  background: #fffaf8;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 20px 22px;
}

.faq-list summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 12px 0 0;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(320px, .72fr);
  gap: clamp(28px, 5vw, 64px);
  background: var(--dark);
  color: var(--white);
}

.contact .eyebrow {
  color: #ffb000;
}

.contact p {
  max-width: 620px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
}

.contact-form textarea {
  resize: vertical;
}

.site-footer {
  padding: 26px clamp(20px, 5vw, 64px);
  color: var(--muted);
  background: var(--paper);
}

.service-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .42fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(58px, 8vw, 108px) clamp(20px, 5vw, 64px);
  background: linear-gradient(130deg, #fffaf8 0%, #f8efeb 52%, #fff7e5 100%);
}

.service-hero h1 {
  max-width: 860px;
}

.service-price {
  border: 1px solid rgba(230, 0, 18, .2);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  padding: 28px;
  box-shadow: 0 24px 54px rgba(230, 0, 18, .1);
}

.service-price span {
  display: block;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.service-price strong {
  display: block;
  margin: 12px 0;
  font-size: 28px;
  line-height: 1.25;
}

.service-price p {
  margin: 0;
  color: var(--muted);
}

.service-detail {
  padding: 82px clamp(20px, 5vw, 64px);
  background: var(--white);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.detail-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfb;
  font-weight: 900;
  padding: 18px;
}

.example-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wp-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 82px clamp(20px, 5vw, 64px);
}

.editor-section {
  padding: 82px clamp(20px, 5vw, 64px);
  background: #f7f6f2;
}

.editor-content,
.wp-content {
  width: min(1040px, 100%);
  margin-top: 28px;
  margin-right: auto;
  margin-left: auto;
}

.editor-content > *:first-child,
.wp-content > *:first-child {
  margin-top: 0;
}

.editor-content > *:last-child,
.wp-content > *:last-child {
  margin-bottom: 0;
}

.editor-content h2,
.editor-content h3,
.wp-content h2,
.wp-content h3 {
  margin-top: 1.8em;
}

.editor-content p,
.wp-content p {
  color: var(--muted);
}

.editor-content .alignwide,
.wp-content .alignwide {
  width: min(1180px, calc(100vw - 40px));
  max-width: min(1180px, calc(100vw - 40px));
  margin-right: calc(50% - min(590px, calc(50vw - 20px)));
  margin-left: calc(50% - min(590px, calc(50vw - 20px)));
}

.editor-content .alignfull,
.wp-content .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
}

.wp-block-image,
.wp-block-gallery,
.wp-block-cover,
.wp-block-columns,
.wp-block-media-text {
  margin-top: 28px;
  margin-bottom: 28px;
}

.wp-block-image img,
.wp-block-gallery img,
.wp-block-media-text img {
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(32, 38, 51, .12);
}

.wp-block-image figcaption,
.wp-block-gallery figcaption {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.wp-block-cover {
  min-height: 420px;
  border-radius: 8px;
  overflow: hidden;
}

.wp-block-cover.alignfull {
  border-radius: 0;
}

.wp-block-cover__inner-container {
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto;
}

.wp-block-columns {
  gap: 24px;
}

.wp-block-column {
  min-width: 0;
}

.wp-block-button__link {
  border-radius: 8px;
  background: var(--accent);
  color: var(--white);
  font-weight: 900;
  padding: 13px 22px;
  text-decoration: none;
}

.wp-block-separator {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 42px auto;
}

.wp-content a {
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration: underline;
}

.post-list {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.post-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 24px;
}

@media (max-width: 900px) {
  .menu-button {
    display: inline-flex;
    width: 46px;
    height: 46px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
  }

  .menu-button span {
    width: 20px;
    height: 2px;
    background: var(--ink);
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 20px 46px rgba(32, 38, 51, .14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: .18s ease;
  }

  .site-header.is-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 12px;
  }

  .hero,
  .statement,
  .works,
  .service-hero,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media img {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .service-grid,
  .plan-grid,
  .example-grid,
  .example-grid.compact,
  .detail-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .service-grid article {
    min-height: 0;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .service-grid,
  .example-grid,
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 68px;
    padding: 10px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    height: 42px;
    max-width: 210px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    display: none;
  }

  .site-nav {
    top: 68px;
  }

  h1 {
    font-size: 38px;
  }

  .hero,
  .statement,
  .services,
  .plans,
  .works,
  .examples,
  .service-detail,
  .editor-section,
  .process,
  .faq,
  .contact {
    padding: 52px 18px;
  }

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

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