:root {
  --base: #faf7f2;
  --base-warm: #f3ede0;
  --card: #fffdf8;
  --ink: #1c1814;
  --ink-soft: #4a3f33;
  --ink-light: #7a6b5a;
  --accent: #e95f3d;
  --accent-soft: #f5aa92;
  --panel: #a95636;
  --panel-deep: #7f3f2c;
  --panel-text: #fffaf3;
  --panel-muted: #ffe1cf;
  --gold: #c19a4b;
  --line: #e0d6c2;
  --shadow: 0 18px 44px rgba(28, 24, 20, 0.08);
  --shadow-hover: 0 24px 54px rgba(28, 24, 20, 0.14);
  --serif: "Zen Old Mincho", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --hand: "Caveat", cursive;
  --display: "DM Serif Display", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--base);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(232, 93, 60, 0.35);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--panel-text);
  background: var(--panel-deep);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  border-bottom: 1px solid rgba(224, 214, 194, 0.72);
  backdrop-filter: blur(14px);
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  white-space: nowrap;
}

.brand-main {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.brand-sub {
  color: var(--accent);
  font-family: var(--hand);
  font-size: 20px;
  letter-spacing: 0;
}

.brand-ja {
  color: var(--ink-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.nav a {
  transition: color 0.25s ease;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.86);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.button-primary {
  color: var(--card);
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(232, 93, 60, 0.22);
}

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

.header-cta {
  min-height: 44px;
  padding: 0 20px;
  font-size: 13px;
}

.hero {
  padding: 110px 0 90px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: 44px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 600;
  line-height: 1.34;
  letter-spacing: 0.03em;
}

.hero h1 span {
  color: var(--accent);
}

.hero-lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 500;
  line-height: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 500px;
}

.hero-image {
  width: min(100%, 620px);
  height: auto;
  max-height: 560px;
  object-fit: contain;
  border-radius: 28px;
  filter: drop-shadow(0 24px 42px rgba(28, 24, 20, 0.12));
}

.mockup-stack {
  position: relative;
  height: 530px;
}

.browser-frame,
.phone-frame,
.tablet-frame {
  position: absolute;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(224, 214, 194, 0.9);
  box-shadow: var(--shadow);
}

.browser-frame {
  top: 50px;
  right: 0;
  width: min(100%, 520px);
  border-radius: 26px;
}

.browser-bar {
  display: flex;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.browser-bar i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--line);
}

.mock-screen {
  min-height: 300px;
  padding: 26px;
  background: linear-gradient(135deg, #fffdf8 0%, #f5eadf 100%);
}

.mock-label {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(232, 93, 60, 0.09);
  font-size: 11px;
  font-weight: 700;
}

.mock-title {
  width: 70%;
  height: 18px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--ink);
}

.mock-title.short {
  width: 52%;
}

.mock-lines {
  display: grid;
  gap: 10px;
  margin: 20px 0 28px;
}

.mock-lines span {
  height: 10px;
  border-radius: 999px;
  background: rgba(122, 107, 90, 0.28);
}

.mock-lines span:nth-child(2) {
  width: 82%;
}

.mock-lines span:nth-child(3) {
  width: 64%;
}

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

.mock-cards span {
  min-height: 72px;
  border: 1px solid rgba(224, 214, 194, 0.88);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.8);
}

.phone-frame {
  left: 12px;
  bottom: 50px;
  width: 165px;
  height: 330px;
  padding: 12px;
  border-radius: 34px;
  transform: rotate(-4deg);
}

.phone-screen {
  height: 100%;
  padding: 22px 14px;
  border-radius: 24px;
  background: #fbf2e9;
}

.phone-screen span {
  display: block;
  height: 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(28, 24, 20, 0.18);
}

.phone-screen strong {
  display: block;
  width: 70%;
  height: 14px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--accent);
}

.tablet-frame {
  right: 22px;
  bottom: 0;
  width: 270px;
  height: 190px;
  padding: 14px;
  border-radius: 26px;
  transform: rotate(3deg);
}

.tablet-screen {
  height: 100%;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(28, 24, 20, 0.08) 0 32%, transparent 32%),
    linear-gradient(135deg, #fffdf8 0%, #f1e3d1 100%);
}

.section {
  padding: 110px 0;
}

.section-warm {
  background: var(--base-warm);
}

.section-dark {
  color: var(--panel-text);
  background: linear-gradient(135deg, var(--panel) 0%, var(--panel-deep) 100%);
}

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--hand);
  font-size: 28px;
  letter-spacing: 0;
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.section-text {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.section-dark .section-text,
.section-dark .section-title {
  color: var(--panel-text);
}

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

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

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

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

.card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.problem-card {
  padding: 26px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-weight: 700;
}

.check {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--card);
  background: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

.handoff {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
  padding: 34px;
  border-radius: 28px;
  color: var(--panel-text);
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 225, 207, 0.28), transparent 28%),
    linear-gradient(135deg, var(--panel) 0%, var(--panel-deep) 100%);
  box-shadow: 0 18px 38px rgba(127, 63, 44, 0.18);
}

.handoff h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 28px;
}

.handoff p {
  margin: 0;
  color: var(--panel-muted);
}

.service-card {
  padding: 34px;
}

.line-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(193, 154, 75, 0.48);
  border-radius: 18px;
  color: var(--gold);
  background: rgba(255, 253, 248, 0.76);
}

.line-icon svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.number {
  color: var(--gold);
  font-family: var(--display);
  font-size: 42px;
  line-height: 1;
}

.service-card h3,
.price-card h3,
.work-card h3,
.voice-card h3,
.about-value h3 {
  margin: 18px 0 12px;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.5;
}

.service-card p,
.work-card p,
.voice-card p,
.about-value p {
  margin: 0;
  color: var(--ink-soft);
}

.speed-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.speed-item {
  padding: 34px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--card);
}

.speed-item.featured {
  color: var(--panel-text);
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 225, 207, 0.24), transparent 28%),
    linear-gradient(135deg, var(--panel) 0%, var(--panel-deep) 100%);
  border-color: rgba(169, 86, 54, 0.55);
  box-shadow: 0 18px 38px rgba(127, 63, 44, 0.16);
}

.speed-item span {
  color: var(--ink-light);
  font-weight: 700;
}

.speed-item.featured span {
  color: var(--panel-muted);
}

.speed-item.featured p {
  color: var(--panel-muted);
}

.speed-item strong {
  display: block;
  margin-top: 10px;
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 70px);
  font-weight: 400;
  line-height: 1;
}

.work-card {
  overflow: hidden;
}

.work-thumb {
  position: relative;
  min-height: 220px;
  padding: 0;
  background: #f2e8db;
}

.work-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.work-screen {
  height: 150px;
  border: 1px solid rgba(224, 214, 194, 0.9);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 253, 248, 0.66)),
    repeating-linear-gradient(0deg, rgba(232, 93, 60, 0.12) 0 12px, transparent 12px 24px);
  box-shadow: 0 12px 30px rgba(28, 24, 20, 0.1);
}

.work-phone {
  position: absolute;
  right: 22px;
  bottom: 18px;
  width: 72px;
  height: 132px;
  border: 7px solid var(--card);
  border-radius: 18px;
  background: #f9f0e8;
  box-shadow: 0 14px 30px rgba(28, 24, 20, 0.16);
}

.work-body {
  padding: 26px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(232, 93, 60, 0.09);
  font-size: 12px;
  font-weight: 800;
}

.note {
  color: var(--ink-light);
  font-size: 13px;
}

.price-card {
  position: relative;
  padding: 32px;
}

.price-card.popular {
  border-color: rgba(232, 93, 60, 0.48);
}

.popular-label {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--card);
  background: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.price {
  margin: 12px 0 22px;
  color: var(--accent);
  font-family: var(--display);
  font-size: 50px;
  line-height: 1;
}

.price small {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
}

.feature-list li {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(224, 214, 194, 0.7);
}

.domain-flow,
.flow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.flow-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mini-step {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
}

.mini-step .line-icon,
.about-value .line-icon,
.contact-info .line-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  border-radius: 999px;
}

.mini-step .line-icon svg,
.about-value .line-icon svg,
.contact-info .line-icon svg {
  width: 28px;
  height: 28px;
}

.mini-step strong {
  display: block;
  color: var(--gold);
  font-family: var(--display);
  font-size: 32px;
  font-weight: 400;
}

.mini-step h3 {
  margin: 8px 0 6px;
  font-family: var(--serif);
  font-size: 20px;
}

.mini-step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 46px;
  align-items: start;
}

.about-lead {
  margin: 0 0 26px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.55;
}

.about-copy {
  color: var(--ink-soft);
  font-size: 17px;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.about-value {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
}

.profile-card {
  width: min(100%, 420px);
  justify-self: end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.profile-photo {
  width: 100%;
  height: 235px;
  object-fit: cover;
  object-position: 42% 44%;
}

.profile-body {
  padding: 26px;
}

.profile-body h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 24px;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.profile-meta span {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--base-warm);
  font-size: 12px;
  font-weight: 800;
}

.profile-body p {
  margin: 0;
  color: var(--ink-soft);
}

.voice-card {
  padding: 28px;
}

.voice-card .stars {
  color: var(--gold);
  letter-spacing: 0.12em;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  font-weight: 800;
  cursor: pointer;
}

summary::after {
  content: "+";
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
}

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

details p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--ink-soft);
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 52px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 225, 207, 0.28), transparent 28%),
    linear-gradient(135deg, var(--panel) 0%, var(--panel-deep) 100%);
  color: var(--panel-text);
}

.cta-panel h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 44px);
}

.cta-panel p {
  margin: 0;
  color: var(--panel-muted);
}

.site-footer {
  padding: 46px 0;
  color: var(--panel-muted);
  background: linear-gradient(135deg, var(--panel-deep) 0%, #6f3627 100%);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

.footer-inner .brand-main {
  color: var(--panel-text);
}

.contact-hero {
  padding: 92px 0 66px;
  background: var(--base-warm);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: 44px;
  align-items: start;
}

.contact-info,
.form-card {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.contact-info .feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-info .feature-list .line-icon {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--ink);
  background: #fff;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--accent);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note,
.small-note {
  color: var(--ink-light);
  font-size: 13px;
}

.submit-message {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  color: var(--ink-soft);
  background: var(--base-warm);
}

.submit-message.is-visible {
  display: block;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .header-inner {
    position: relative;
    gap: 12px;
  }

  .menu-toggle {
    display: inline-block;
    flex: 0 0 auto;
    order: 3;
  }

  .nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 0 0 22px 22px;
    background: rgba(250, 247, 242, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .site-header.nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav a {
    padding: 12px;
    text-align: center;
  }

  .hero {
    padding: 84px 0 70px;
  }

  .hero-grid,
  .about-grid,
  .contact-grid,
  .cta-panel,
  .handoff {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-visual {
    justify-content: center;
    min-height: auto;
  }

  .hero-image {
    width: min(100%, 680px);
    max-height: none;
  }

  .profile-card {
    justify-self: center;
    width: min(100%, 520px);
  }

  .profile-photo {
    height: 260px;
  }

  .mockup-stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 16px;
    align-items: end;
    height: auto;
  }

  .browser-frame,
  .phone-frame,
  .tablet-frame {
    position: static;
    transform: none;
  }

  .browser-frame {
    width: 100%;
  }

  .phone-frame {
    width: 150px;
    height: 300px;
  }

  .tablet-frame {
    display: none;
  }

  .grid-3,
  .grid-4,
  .domain-flow,
  .flow-list,
  .about-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 40px, 1160px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-main {
    font-size: 17px;
  }

  .brand-sub {
    display: none;
  }

  .brand-ja {
    font-size: 11px;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 14px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-lead {
    font-size: 16px;
    line-height: 1.9;
  }

  .hero-actions,
  .cta-panel {
    align-items: stretch;
  }

  .button {
    width: 100%;
    padding: 0 22px;
  }

  .mockup-stack {
    grid-template-columns: 1fr;
  }

  .browser-frame {
    width: 100%;
  }

  .mock-screen {
    min-height: 250px;
    padding: 20px;
  }

  .phone-frame {
    display: none;
  }

  .profile-photo {
    height: 210px;
  }

  .tablet-frame {
    width: 188px;
    height: 132px;
  }

  .section {
    padding: 74px 0;
  }

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

  .grid-2,
  .grid-3,
  .grid-4,
  .speed-box,
  .domain-flow,
  .flow-list,
  .about-values {
    grid-template-columns: 1fr;
  }

  .handoff,
  .cta-panel,
  .contact-info,
  .form-card {
    padding: 26px;
    border-radius: 24px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
