@import "tailwindcss";

:root {
  --navy: #123451;
  --blue: #176aa0;
  --sky: #eaf6fc;
  --red: #c8443b;
  --red-dark: #a9332d;
  --ink: #172a3a;
  --muted: #526675;
  --line: #d9e3e8;
  --paper: #ffffff;
  --soft: #f5f8fa;
  --warm: #fbf8f1;
  --shadow: 0 16px 42px rgba(18, 52, 81, 0.12);
  --radius: 22px;
}

/* WordPress / Lightning child-theme integration */
.kos-main,
.kos-page-content {
  display: block;
  margin: 0;
  padding: 0;
}

.site-header .kos-menu,
.site-footer .kos-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-nav .kos-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav .kos-menu li,
.mobile-menu .kos-menu li,
.site-footer .kos-menu li {
  margin: 0;
}

.desktop-nav .kos-menu a,
.site-footer .kos-menu a {
  text-decoration: none;
}

.mobile-menu .kos-menu {
  display: grid;
}

.mobile-menu .kos-menu a {
  display: block;
}

.footer-links .kos-menu {
  display: grid;
  gap: 16px;
}

.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo,
    sans-serif;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-150%);
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
}

.skip-link:focus {
  transform: none;
}

.page-shell {
  width: min(1360px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-right: auto;
  font-size: 21px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  width: 72px;
  height: auto;
  flex: 0 0 auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 16px;
  font-weight: 700;
}

.desktop-nav a {
  text-decoration: none;
}

.desktop-nav a:not(.button):hover {
  color: var(--red);
}

.mobile-menu {
  display: none;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

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

.button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 4px solid #f3c75f;
  outline-offset: 3px;
}

.button-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px rgba(200, 68, 59, 0.25);
}

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

.button-secondary {
  border-color: var(--navy);
  background: #fff;
  color: var(--navy);
}

.button-white {
  background: #fff;
  color: var(--navy);
}

.hero {
  overflow: hidden;
  background: linear-gradient(90deg, var(--sky), #fff);
}

.hero-copy {
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(420px, 0.82fr) minmax(600px, 1.3fr);
  align-items: stretch;
  gap: 48px;
}

.hero-text {
  padding: 70px 0 64px;
  align-self: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.eyebrow > span {
  width: 38px;
  height: 3px;
  background: var(--red);
}

.hero h1 {
  margin: 0;
  font-size: clamp(52px, 5vw, 76px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.hero h1 strong {
  color: var(--red);
  font-weight: 900;
}

.hero-lead {
  margin: 24px 0 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.9;
}

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

.audience-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.audience-chips a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: #fff;
  padding: 7px 16px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.audience-chips a:hover {
  border-color: var(--blue);
  background: var(--sky);
  color: var(--blue);
}

#personal,
#business {
  scroll-margin-top: 110px;
}

.hero-image {
  min-height: 590px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-image figcaption,
.image-story figcaption,
.visual-card figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.info-strip {
  background: var(--navy);
  color: #fff;
}

.info-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.info-card {
  min-height: 142px;
  padding: 26px 30px;
  background: rgba(255, 255, 255, 0.045);
}

.info-card + .info-card {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.info-card span {
  display: block;
  margin-bottom: 6px;
  color: #badcee;
  font-size: 16px;
  font-weight: 800;
}

.info-card strong {
  display: block;
  font-size: 21px;
  line-height: 1.5;
}

.info-card p {
  margin: 5px 0 0;
  color: #e4f0f7;
  font-size: 16px;
  line-height: 1.55;
}

.section {
  padding-block: 88px;
}

.section-soft {
  background: var(--soft);
}

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

.section-heading {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(400px, 1.15fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 38px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 1.35;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 28px 25px;
  box-shadow: 0 10px 30px rgba(18, 52, 81, 0.06);
}

.service-number {
  color: var(--red);
  font-size: 16px;
  font-weight: 900;
}

.service-card h3 {
  margin: 18px 0 6px;
  font-size: 22px;
}

.service-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.service-card a {
  margin-top: auto;
  color: var(--blue);
  font-size: 16px;
  font-weight: 800;
}

.price-feature {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  padding: 56px 62px;
}

.eyebrow-light {
  color: #b8dced;
}

.price-feature h2 {
  margin: 0;
  font-size: 30px;
}

.price-number {
  margin: 4px 0 10px;
  font-size: clamp(48px, 5vw, 70px);
  font-weight: 900;
  line-height: 1.15;
}

.price-number span {
  font-size: 28px;
}

.price-feature p:not(.price-number, .eyebrow) {
  margin: 0;
  color: #e7f0f5;
}

.price-feature-actions {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.text-link {
  font-size: 16px;
  font-weight: 800;
}

.text-link-light {
  color: #fff;
}

.image-story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.image-story,
.visual-card {
  margin: 0;
  overflow: hidden;
}

.image-story img,
.visual-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-band {
  background: #eef5f7;
}

.contact-band-inner {
  min-height: 360px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

.contact-band-copy {
  padding-block: 65px;
}

.contact-band-copy h2 {
  margin: 0;
  font-size: clamp(36px, 4vw, 52px);
}

.contact-band-copy p {
  color: var(--muted);
}

.contact-band-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

.page-hero {
  padding-block: 78px 70px;
  background: linear-gradient(135deg, var(--sky), #fff);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 56px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1.25;
}

.page-hero p:not(.eyebrow) {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.section-lead-image {
  margin: 0 0 48px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.section-lead-image img {
  width: 100%;
  max-height: 460px;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center;
}

.services-page-hero .page-hero-grid {
  max-width: 900px;
  grid-template-columns: 1fr;
}

.services-page-hero .visual-card {
  display: none;
}

.portfolio-hero {
  background: linear-gradient(135deg, var(--sky), #fff);
}

.portfolio-hero-copy {
  max-width: 900px;
  margin-inline: auto;
}

.portfolio-hero-copy h1 {
  margin: 0;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1.25;
}

.portfolio-hero-copy > p:last-child {
  max-width: 720px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.content-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 34px;
}

.content-card h2,
.content-card h3 {
  margin: 0 0 12px;
  line-height: 1.4;
}

.content-card p {
  color: var(--muted);
}

.content-card ul {
  margin: 18px 0 0;
  padding-left: 1.3em;
}

.content-card li + li {
  margin-top: 8px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: flow;
}

.flow-card {
  counter-increment: flow;
  border-top: 5px solid var(--red);
  border-radius: 12px;
  background: #fff;
  padding: 26px;
}

.flow-card::before {
  content: "0" counter(flow);
  color: var(--red);
  font-size: 16px;
  font-weight: 900;
}

.flow-card h3 {
  margin: 12px 0 8px;
}

.profile-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 30px;
}

.profile-visual img {
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  border-radius: var(--radius);
}

.profile-details {
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  padding: 48px;
}

.profile-details h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 34px);
}

.profile-story {
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 22px;
}

.profile-story h3 {
  margin: 0 0 8px;
  color: #badcee;
  font-size: 20px;
}

.profile-story p {
  margin: 0;
  color: #e7f0f5;
  font-size: 17px;
  line-height: 1.85;
}

.profile-story span {
  display: block;
}

.profile-details dl {
  margin: 28px 0 0;
}

.profile-details dt {
  margin-top: 18px;
  color: #badcee;
  font-size: 16px;
  font-weight: 800;
}

.profile-details dd {
  margin: 2px 0 0;
  font-size: 19px;
}

.notice {
  border-left: 6px solid var(--red);
  background: #fff6f3;
  padding: 22px 26px;
}

.top-gap {
  margin-top: 28px;
}

.mail-panel {
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  padding: 44px;
}

.mail-address {
  display: inline-block;
  margin: 12px 0 24px;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.kos-form-card {
  max-width: 1040px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: clamp(28px, 5vw, 58px);
  box-shadow: var(--shadow);
  scroll-margin-top: 110px;
}

.kos-form-heading {
  margin-bottom: 36px;
}

.kos-form-heading h2,
.kos-form-success h2 {
  margin: 4px 0 12px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.4;
}

.kos-form-heading p,
.kos-form-success p {
  margin: 0;
  color: var(--muted);
}

.kos-contact-form,
.kos-choice-list {
  display: grid;
  gap: 24px;
}

.kos-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.kos-field-wide {
  grid-column: 1 / -1;
}

.kos-form-field,
.kos-form-fieldset {
  min-width: 0;
  margin: 0;
}

.kos-form-fieldset {
  border: 0;
  padding: 0;
}

.kos-form-field > label,
.kos-form-fieldset legend {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.kos-form-field input,
.kos-form-field textarea {
  width: 100%;
  min-height: 54px;
  border: 2px solid #b9c8d1;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
  font: inherit;
}

.kos-form-field textarea {
  min-height: 190px;
  resize: vertical;
}

.kos-form-field input:focus,
.kos-form-field textarea:focus {
  border-color: var(--blue);
  outline: 4px solid rgba(23, 106, 160, 0.16);
}

.kos-form-field input[aria-invalid="true"],
.kos-form-field textarea[aria-invalid="true"] {
  border-color: var(--red);
}

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

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

.kos-choice {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
}

.kos-choice:hover {
  border-color: #9cb2bf;
  background: var(--soft);
}

.kos-choice:has(input:checked) {
  border-color: var(--blue);
  background: var(--sky);
}

.kos-choice input,
.kos-privacy-check input {
  width: 22px;
  height: 22px;
  flex: none;
  accent-color: var(--red);
}

.kos-choice span {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.kos-required,
.kos-optional {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  vertical-align: 0.1em;
}

.kos-required {
  background: #fff0ee;
  color: #a62f28;
}

.kos-optional {
  background: #eef3f6;
  color: var(--muted);
}

.kos-field-note {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.kos-field-error {
  margin: 7px 0 0;
  color: #a62f28;
  font-size: 16px;
  font-weight: 800;
}

.kos-error-summary {
  max-width: 1040px;
  margin: 0 auto 28px;
  border-left: 6px solid var(--red);
  border-radius: 10px;
  background: #fff0ee;
  padding: 20px 24px;
  color: #7f251f;
}

.kos-error-summary ul {
  margin: 10px 0 0;
  padding-left: 1.3em;
}

.kos-privacy-check {
  border-radius: 12px;
  background: var(--soft);
  padding: 20px;
}

.kos-privacy-check label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.kos-form-actions {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.kos-submit-button,
.kos-button-secondary {
  cursor: pointer;
}

.kos-button-secondary {
  border-color: var(--navy);
  background: #fff;
  color: var(--navy);
}

.kos-confirm-list {
  margin: 0;
  border-top: 2px solid var(--navy);
}

.kos-confirm-list > div {
  display: grid;
  grid-template-columns: minmax(190px, 0.35fr) minmax(0, 1fr);
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 18px 12px;
}

.kos-confirm-list dt {
  font-weight: 800;
}

.kos-confirm-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.kos-confirm-message {
  white-space: normal;
}

.kos-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 34px;
}

.kos-confirm-actions form {
  margin: 0;
}

.kos-form-success {
  text-align: center;
}

.kos-form-success .button {
  margin-top: 26px;
}

.kos-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.policy {
  max-width: 900px;
}

.policy section + section {
  margin-top: 44px;
}

.policy h2 {
  font-size: 28px;
}

.site-footer {
  background: #0d263a;
  color: #e5eef3;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  padding-block: 54px 34px;
}

.footer-brand {
  color: #fff;
}

.footer-inner p {
  margin: 14px 0 0;
  color: #c2d3dd;
  font-size: 16px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}

.footer-links a,
.footer-bottom {
  font-size: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-block: 20px;
  color: #b9cbd5;
}

@media (max-width: 1080px) {
  .page-shell {
    width: min(100% - 40px, 920px);
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
    position: relative;
  }

  .mobile-menu summary {
    cursor: pointer;
    flex: none;
    border: 2px solid var(--navy);
    border-radius: 999px;
    padding: 7px 8px;
    font-size: 16px;
    font-weight: 800;
    list-style: none;
    white-space: nowrap;
  }

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

  .mobile-menu nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 280px;
    display: grid;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    padding: 12px;
    box-shadow: var(--shadow);
  }

  .mobile-menu nav a {
    padding: 11px 13px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
  }

  .hero-copy,
  .page-hero-grid,
  .contact-band-inner,
  .profile-panel {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    gap: 0;
    width: 100%;
  }

  .hero-text {
    width: min(100% - 40px, 920px);
    margin-inline: auto;
  }

  .hero-image {
    min-height: auto;
    width: min(100% - 40px, 920px);
    margin: 0 auto 48px;
  }

  .info-strip-grid {
    grid-template-columns: 1fr;
  }

  .info-card + .info-card {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-left: 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  .price-feature {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 18px;
  }

  .page-shell {
    width: auto;
    margin-inline: 14px;
  }

  .header-inner {
    min-height: 72px;
    gap: 12px;
  }

  .brand {
    gap: 7px;
    font-size: 16px;
  }

  .brand-logo {
    width: 54px;
  }

  .hero-text {
    width: auto;
    margin-inline: 14px;
    padding-block: 52px 44px;
  }

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

  .hero-lead {
    font-size: 19px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-image {
    width: auto;
    margin: 0 14px 48px;
  }

  .info-card {
    min-height: auto;
    padding: 22px 18px;
  }

  .section {
    padding-block: 64px;
  }

  .service-grid,
  .content-grid,
  .flow-grid,
  .image-story-grid {
    grid-template-columns: 1fr;
  }

  .price-feature {
    width: auto;
    margin-inline: 14px;
    padding: 38px 24px;
  }

  .page-hero {
    padding-block: 56px;
  }

  .page-hero-grid {
    gap: 34px;
  }

  .content-card,
  .mail-panel,
  .profile-details {
    padding: 28px 22px;
  }

  .kos-form-card {
    padding: 28px 18px;
  }

  .kos-form-grid,
  .kos-choice-grid,
  .kos-choice-grid-3 {
    grid-template-columns: 1fr;
  }

  .kos-field-wide {
    grid-column: auto;
  }

  .kos-confirm-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-inline: 4px;
  }

  .kos-confirm-actions {
    display: grid;
  }

  .kos-confirm-actions form,
  .kos-confirm-actions .button {
    width: 100%;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Portfolio landing-page samples */
.portfolio-lp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.portfolio-lp-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.portfolio-lp-card img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.portfolio-lp-card > div {
  padding: 28px;
}

.portfolio-lp-card h2,
.portfolio-lp-card h3 {
  margin: 6px 0 10px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.35;
}

.portfolio-lp-card p {
  margin: 0 0 22px;
}

.sample-label {
  color: var(--blue);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.sample-lp {
  --sample-dark: #2b2118;
  --sample-main: #36503e;
  --sample-accent: #c9803f;
  --sample-paper: #f7f1e6;
  --sample-soft: #efe4d2;
  overflow: hidden;
  background: var(--sample-paper);
  color: var(--sample-dark);
  font-size: 18px;
  line-height: 1.75;
}

.cake-lp {
  --sample-dark: #472832;
  --sample-main: #7a3143;
  --sample-accent: #c85f72;
  --sample-paper: #fffaf4;
  --sample-soft: #f9eceb;
}

.sample-disclaimer {
  padding: 12px 20px;
  background: var(--sample-dark);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.sample-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  min-height: 620px;
  background: var(--sample-paper);
}

.sample-hero > p:empty {
  display: none;
}

.sample-hero > img {
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.sample-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 5.5vw, 88px);
}

.sample-kicker {
  margin: 0 0 12px;
  color: var(--sample-main);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.sample-hero h1 {
  margin: 0 0 28px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(42px, 4.2vw, 68px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.sample-hero h1 span {
  display: block;
}

.sample-hero-copy > p:not(.sample-kicker) {
  max-width: 34em;
  margin: 0;
  font-size: 19px;
}

.sample-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.sample-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--sample-main);
  border-radius: 999px;
  padding: 11px 24px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
}

.sample-button-main {
  background: var(--sample-main);
  color: #fff;
}

.sample-button-sub {
  background: transparent;
  color: var(--sample-main);
}

.sample-section {
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
  padding-block: clamp(72px, 9vw, 120px);
}

.sample-intro {
  text-align: center;
}

.sample-intro > p:not(.sample-kicker) {
  max-width: 720px;
  margin: 20px auto 0;
}

.sample-section h2,
.sample-footer-cta h2 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 600;
  line-height: 1.4;
}

.sample-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 54px;
  text-align: left;
}

.sample-points article,
.sample-order-grid li {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  padding: 30px;
}

.sample-points span,
.sample-order-grid span {
  color: var(--sample-accent);
  font-size: 18px;
  font-weight: 900;
}

.sample-points h3,
.sample-order-grid h3 {
  margin: 8px 0;
  font-size: 23px;
}

.sample-points p,
.sample-order-grid p {
  margin: 0;
}

.sample-menu {
  width: auto;
  max-width: none;
  padding-inline: max(32px, calc((100% - 1160px) / 2));
  background: var(--sample-dark);
  color: #fff;
}

.sample-menu .sample-kicker {
  color: var(--sample-accent);
}

.sample-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.6fr);
  align-items: end;
  gap: 36px;
  margin-bottom: 46px;
}

.sample-section-heading > p {
  margin: 0;
}

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

.sample-menu-grid article {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border-radius: 20px;
  background: #fff;
  color: var(--sample-dark);
}

.sample-menu-grid article > img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.sample-menu-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}

.sample-menu-grid h3 {
  margin: 0;
  font-size: 24px;
}

.sample-menu-grid p {
  margin: 4px 0 0;
  color: #5d645f;
}

.sample-menu-grid strong {
  margin-top: 18px;
  font-size: 24px;
}

.sample-order {
  width: auto;
  max-width: none;
  padding-inline: max(32px, calc((100% - 1160px) / 2));
  background: var(--sample-soft);
}

.sample-order-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sample-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
}

.sample-info dl {
  margin: 0;
  border-top: 2px solid var(--sample-dark);
}

.sample-info dl div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--sample-dark) 25%, transparent);
  padding: 18px 0;
}

.sample-info dt {
  font-weight: 800;
}

.sample-info dd {
  margin: 0;
}

.sample-footer-cta {
  padding: clamp(72px, 9vw, 110px) 24px;
  background: var(--sample-main);
  color: #fff;
  text-align: center;
}

.sample-footer-cta > p {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.sample-footer-cta .sample-button {
  margin-top: 30px;
  border-color: #fff;
  background: #fff;
  color: var(--sample-main);
}

.sample-footer-cta small {
  display: block;
  margin: 30px auto 0;
  font-size: 16px;
}

@media (max-width: 900px) {
  .services-page-hero .visual-card {
    display: block;
  }

  .personal-lead-image {
    display: none;
  }

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

  .sample-hero > img {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .sample-points,
  .sample-order-grid {
    grid-template-columns: 1fr;
  }

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

  .sample-section-heading,
  .sample-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .portfolio-lp-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-lp-card > div {
    padding: 24px 20px;
  }

  .sample-lp {
    font-size: 18px;
  }

  .sample-disclaimer {
    padding-inline: 14px;
  }

  .sample-hero-copy {
    padding: 46px 18px 58px;
  }

  .sample-hero h1 {
    font-size: clamp(40px, 12vw, 54px);
  }

  .sample-actions {
    display: grid;
  }

  .sample-section {
    width: auto;
    margin-inline: 18px;
    padding-block: 68px;
  }

  .sample-menu,
  .sample-order {
    width: auto;
    margin-inline: 0;
    padding-inline: 18px;
  }

  .sample-section-heading {
    gap: 16px;
  }

  .sample-menu-grid {
    grid-template-columns: 1fr;
  }

  .sample-info dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* LP-aligned soft typography */
:root {
  --font-soft-serif: "Iowan Old Style", Charter, "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "BIZ UDPMincho", Georgia, serif;
}

.brand-name,
.site-footer .brand,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-soft-serif);
}
@import "tailwindcss";

:root {
  --navy: #123451;
  --blue: #176aa0;
  --sky: #eaf6fc;
  --red: #c8443b;
  --red-dark: #a9332d;
  --ink: #172a3a;
  --muted: #526675;
  --line: #d9e3e8;
  --paper: #ffffff;
  --soft: #f5f8fa;
  --warm: #fbf8f1;
  --shadow: 0 16px 42px rgba(18, 52, 81, 0.12);
  --radius: 22px;
}

/* WordPress / Lightning child-theme integration */
.kos-main,
.kos-page-content {
  display: block;
  margin: 0;
  padding: 0;
}

.site-header .kos-menu,
.site-footer .kos-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-nav .kos-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav .kos-menu li,
.mobile-menu .kos-menu li,
.site-footer .kos-menu li {
  margin: 0;
}

.desktop-nav .kos-menu a,
.site-footer .kos-menu a {
  text-decoration: none;
}

.mobile-menu .kos-menu {
  display: grid;
}

.mobile-menu .kos-menu a {
  display: block;
}

.footer-links .kos-menu {
  display: grid;
  gap: 16px;
}

.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo,
    sans-serif;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-150%);
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
}

.skip-link:focus {
  transform: none;
}

.page-shell {
  width: min(1360px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-right: auto;
  font-size: 21px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  width: 72px;
  height: auto;
  flex: 0 0 auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 16px;
  font-weight: 700;
}

.desktop-nav a {
  text-decoration: none;
}

.desktop-nav a:not(.button):hover {
  color: var(--red);
}

.mobile-menu {
  display: none;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

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

.button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 4px solid #f3c75f;
  outline-offset: 3px;
}

.button-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px rgba(200, 68, 59, 0.25);
}

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

.button-secondary {
  border-color: var(--navy);
  background: #fff;
  color: var(--navy);
}

.button-white {
  background: #fff;
  color: var(--navy);
}

.hero {
  overflow: hidden;
  background: linear-gradient(90deg, var(--sky), #fff);
}

.hero-copy {
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(420px, 0.82fr) minmax(600px, 1.3fr);
  align-items: stretch;
  gap: 48px;
}

.hero-text {
  padding: 70px 0 64px;
  align-self: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.eyebrow > span {
  width: 38px;
  height: 3px;
  background: var(--red);
}

.hero h1 {
  margin: 0;
  font-size: clamp(52px, 5vw, 76px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.hero h1 strong {
  color: var(--red);
  font-weight: 900;
}

.hero-lead {
  margin: 24px 0 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.9;
}

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

.audience-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.audience-chips a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: #fff;
  padding: 7px 16px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.audience-chips a:hover {
  border-color: var(--blue);
  background: var(--sky);
  color: var(--blue);
}

#personal,
#business {
  scroll-margin-top: 110px;
}

.hero-image {
  min-height: 590px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-image figcaption,
.image-story figcaption,
.visual-card figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.info-strip {
  background: var(--navy);
  color: #fff;
}

.info-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.info-card {
  min-height: 142px;
  padding: 26px 30px;
  background: rgba(255, 255, 255, 0.045);
}

.info-card + .info-card {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.info-card span {
  display: block;
  margin-bottom: 6px;
  color: #badcee;
  font-size: 16px;
  font-weight: 800;
}

.info-card strong {
  display: block;
  font-size: 21px;
  line-height: 1.5;
}

.info-card p {
  margin: 5px 0 0;
  color: #e4f0f7;
  font-size: 16px;
  line-height: 1.55;
}

.section {
  padding-block: 88px;
}

.section-soft {
  background: var(--soft);
}

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

.section-heading {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(400px, 1.15fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 38px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 1.35;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 28px 25px;
  box-shadow: 0 10px 30px rgba(18, 52, 81, 0.06);
}

.service-number {
  color: var(--red);
  font-size: 16px;
  font-weight: 900;
}

.service-card h3 {
  margin: 18px 0 6px;
  font-size: 22px;
}

.service-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.service-card a {
  margin-top: auto;
  color: var(--blue);
  font-size: 16px;
  font-weight: 800;
}

.price-feature {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  padding: 56px 62px;
}

.eyebrow-light {
  color: #b8dced;
}

.price-feature h2 {
  margin: 0;
  font-size: 30px;
}

.price-number {
  margin: 4px 0 10px;
  font-size: clamp(48px, 5vw, 70px);
  font-weight: 900;
  line-height: 1.15;
}

.price-number span {
  font-size: 28px;
}

.price-feature p:not(.price-number, .eyebrow) {
  margin: 0;
  color: #e7f0f5;
}

.price-feature-actions {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.text-link {
  font-size: 16px;
  font-weight: 800;
}

.text-link-light {
  color: #fff;
}

.image-story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.image-story,
.visual-card {
  margin: 0;
  overflow: hidden;
}

.image-story img,
.visual-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-band {
  background: #eef5f7;
}

.contact-band-inner {
  min-height: 360px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

.contact-band-copy {
  padding-block: 65px;
}

.contact-band-copy h2 {
  margin: 0;
  font-size: clamp(36px, 4vw, 52px);
}

.contact-band-copy p {
  color: var(--muted);
}

.contact-band-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

.page-hero {
  padding-block: 78px 70px;
  background: linear-gradient(135deg, var(--sky), #fff);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 56px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1.25;
}

.page-hero p:not(.eyebrow) {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.section-lead-image {
  margin: 0 0 48px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.section-lead-image img {
  width: 100%;
  max-height: 460px;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center;
}

.services-page-hero .page-hero-grid {
  max-width: 900px;
  grid-template-columns: 1fr;
}

.services-page-hero .visual-card {
  display: none;
}

.portfolio-hero {
  background: linear-gradient(135deg, var(--sky), #fff);
}

.portfolio-hero-copy {
  max-width: 900px;
  margin-inline: auto;
}

.portfolio-hero-copy h1 {
  margin: 0;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1.25;
}

.portfolio-hero-copy > p:last-child {
  max-width: 720px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.content-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 34px;
}

.content-card h2,
.content-card h3 {
  margin: 0 0 12px;
  line-height: 1.4;
}

.content-card p {
  color: var(--muted);
}

.content-card ul {
  margin: 18px 0 0;
  padding-left: 1.3em;
}

.content-card li + li {
  margin-top: 8px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: flow;
}

.flow-card {
  counter-increment: flow;
  border-top: 5px solid var(--red);
  border-radius: 12px;
  background: #fff;
  padding: 26px;
}

.flow-card::before {
  content: "0" counter(flow);
  color: var(--red);
  font-size: 16px;
  font-weight: 900;
}

.flow-card h3 {
  margin: 12px 0 8px;
}

.profile-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 30px;
}

.profile-visual img {
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  border-radius: var(--radius);
}

.profile-details {
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  padding: 48px;
}

.profile-details h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 34px);
}

.profile-story {
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 22px;
}

.profile-story h3 {
  margin: 0 0 8px;
  color: #badcee;
  font-size: 20px;
}

.profile-story p {
  margin: 0;
  color: #e7f0f5;
  font-size: 17px;
  line-height: 1.85;
}

.profile-story span {
  display: block;
}

.profile-details dl {
  margin: 28px 0 0;
}

.profile-details dt {
  margin-top: 18px;
  color: #badcee;
  font-size: 16px;
  font-weight: 800;
}

.profile-details dd {
  margin: 2px 0 0;
  font-size: 19px;
}

.notice {
  border-left: 6px solid var(--red);
  background: #fff6f3;
  padding: 22px 26px;
}

.top-gap {
  margin-top: 28px;
}

.mail-panel {
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  padding: 44px;
}

.mail-address {
  display: inline-block;
  margin: 12px 0 24px;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.kos-form-card {
  max-width: 1040px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: clamp(28px, 5vw, 58px);
  box-shadow: var(--shadow);
  scroll-margin-top: 110px;
}

.kos-form-heading {
  margin-bottom: 36px;
}

.kos-form-heading h2,
.kos-form-success h2 {
  margin: 4px 0 12px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.4;
}

.kos-form-heading p,
.kos-form-success p {
  margin: 0;
  color: var(--muted);
}

.kos-contact-form,
.kos-choice-list {
  display: grid;
  gap: 24px;
}

.kos-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.kos-field-wide {
  grid-column: 1 / -1;
}

.kos-form-field,
.kos-form-fieldset {
  min-width: 0;
  margin: 0;
}

.kos-form-fieldset {
  border: 0;
  padding: 0;
}

.kos-form-field > label,
.kos-form-fieldset legend {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.kos-form-field input,
.kos-form-field textarea {
  width: 100%;
  min-height: 54px;
  border: 2px solid #b9c8d1;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
  font: inherit;
}

.kos-form-field textarea {
  min-height: 190px;
  resize: vertical;
}

.kos-form-field input:focus,
.kos-form-field textarea:focus {
  border-color: var(--blue);
  outline: 4px solid rgba(23, 106, 160, 0.16);
}

.kos-form-field input[aria-invalid="true"],
.kos-form-field textarea[aria-invalid="true"] {
  border-color: var(--red);
}

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

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

.kos-choice {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
}

.kos-choice:hover {
  border-color: #9cb2bf;
  background: var(--soft);
}

.kos-choice:has(input:checked) {
  border-color: var(--blue);
  background: var(--sky);
}

.kos-choice input,
.kos-privacy-check input {
  width: 22px;
  height: 22px;
  flex: none;
  accent-color: var(--red);
}

.kos-choice span {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.kos-required,
.kos-optional {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  vertical-align: 0.1em;
}

.kos-required {
  background: #fff0ee;
  color: #a62f28;
}

.kos-optional {
  background: #eef3f6;
  color: var(--muted);
}

.kos-field-note {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.kos-field-error {
  margin: 7px 0 0;
  color: #a62f28;
  font-size: 16px;
  font-weight: 800;
}

.kos-error-summary {
  max-width: 1040px;
  margin: 0 auto 28px;
  border-left: 6px solid var(--red);
  border-radius: 10px;
  background: #fff0ee;
  padding: 20px 24px;
  color: #7f251f;
}

.kos-error-summary ul {
  margin: 10px 0 0;
  padding-left: 1.3em;
}

.kos-privacy-check {
  border-radius: 12px;
  background: var(--soft);
  padding: 20px;
}

.kos-privacy-check label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.kos-form-actions {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.kos-submit-button,
.kos-button-secondary {
  cursor: pointer;
}

.kos-button-secondary {
  border-color: var(--navy);
  background: #fff;
  color: var(--navy);
}

.kos-confirm-list {
  margin: 0;
  border-top: 2px solid var(--navy);
}

.kos-confirm-list > div {
  display: grid;
  grid-template-columns: minmax(190px, 0.35fr) minmax(0, 1fr);
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 18px 12px;
}

.kos-confirm-list dt {
  font-weight: 800;
}

.kos-confirm-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.kos-confirm-message {
  white-space: normal;
}

.kos-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 34px;
}

.kos-confirm-actions form {
  margin: 0;
}

.kos-form-success {
  text-align: center;
}

.kos-form-success .button {
  margin-top: 26px;
}

.kos-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.policy {
  max-width: 900px;
}

.policy section + section {
  margin-top: 44px;
}

.policy h2 {
  font-size: 28px;
}

.site-footer {
  background: #0d263a;
  color: #e5eef3;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  padding-block: 54px 34px;
}

.footer-brand {
  color: #fff;
}

.footer-inner p {
  margin: 14px 0 0;
  color: #c2d3dd;
  font-size: 16px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}

.footer-links a,
.footer-bottom {
  font-size: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-block: 20px;
  color: #b9cbd5;
}

@media (max-width: 1080px) {
  .page-shell {
    width: min(100% - 40px, 920px);
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
    position: relative;
  }

  .mobile-menu summary {
    cursor: pointer;
    flex: none;
    border: 2px solid var(--navy);
    border-radius: 999px;
    padding: 7px 8px;
    font-size: 16px;
    font-weight: 800;
    list-style: none;
    white-space: nowrap;
  }

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

  .mobile-menu nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 280px;
    display: grid;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    padding: 12px;
    box-shadow: var(--shadow);
  }

  .mobile-menu nav a {
    padding: 11px 13px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
  }

  .hero-copy,
  .page-hero-grid,
  .contact-band-inner,
  .profile-panel {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    gap: 0;
    width: 100%;
  }

  .hero-text {
    width: min(100% - 40px, 920px);
    margin-inline: auto;
  }

  .hero-image {
    min-height: auto;
    width: min(100% - 40px, 920px);
    margin: 0 auto 48px;
  }

  .info-strip-grid {
    grid-template-columns: 1fr;
  }

  .info-card + .info-card {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-left: 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  .price-feature {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 18px;
  }

  .page-shell {
    width: auto;
    margin-inline: 14px;
  }

  .header-inner {
    min-height: 72px;
    gap: 12px;
  }

  .brand {
    gap: 7px;
    font-size: 16px;
  }

  .brand-logo {
    width: 54px;
  }

  .hero-text {
    width: auto;
    margin-inline: 14px;
    padding-block: 52px 44px;
  }

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

  .hero-lead {
    font-size: 19px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-image {
    width: auto;
    margin: 0 14px 48px;
  }

  .info-card {
    min-height: auto;
    padding: 22px 18px;
  }

  .section {
    padding-block: 64px;
  }

  .service-grid,
  .content-grid,
  .flow-grid,
  .image-story-grid {
    grid-template-columns: 1fr;
  }

  .price-feature {
    width: auto;
    margin-inline: 14px;
    padding: 38px 24px;
  }

  .page-hero {
    padding-block: 56px;
  }

  .page-hero-grid {
    gap: 34px;
  }

  .content-card,
  .mail-panel,
  .profile-details {
    padding: 28px 22px;
  }

  .kos-form-card {
    padding: 28px 18px;
  }

  .kos-form-grid,
  .kos-choice-grid,
  .kos-choice-grid-3 {
    grid-template-columns: 1fr;
  }

  .kos-field-wide {
    grid-column: auto;
  }

  .kos-confirm-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-inline: 4px;
  }

  .kos-confirm-actions {
    display: grid;
  }

  .kos-confirm-actions form,
  .kos-confirm-actions .button {
    width: 100%;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Portfolio landing-page samples */
.portfolio-lp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.portfolio-lp-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.portfolio-lp-card img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.portfolio-lp-card > div {
  padding: 28px;
}

.portfolio-lp-card h2,
.portfolio-lp-card h3 {
  margin: 6px 0 10px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.35;
}

.portfolio-lp-card p {
  margin: 0 0 22px;
}

.sample-label {
  color: var(--blue);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.sample-lp {
  --sample-dark: #2b2118;
  --sample-main: #36503e;
  --sample-accent: #c9803f;
  --sample-paper: #f7f1e6;
  --sample-soft: #efe4d2;
  overflow: hidden;
  background: var(--sample-paper);
  color: var(--sample-dark);
  font-size: 18px;
  line-height: 1.75;
}

.cake-lp {
  --sample-dark: #472832;
  --sample-main: #7a3143;
  --sample-accent: #c85f72;
  --sample-paper: #fffaf4;
  --sample-soft: #f9eceb;
}

.sample-disclaimer {
  padding: 12px 20px;
  background: var(--sample-dark);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.sample-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  min-height: 620px;
  background: var(--sample-paper);
}

.sample-hero > p:empty {
  display: none;
}

.sample-hero > img {
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.sample-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 5.5vw, 88px);
}

.sample-kicker {
  margin: 0 0 12px;
  color: var(--sample-main);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.sample-hero h1 {
  margin: 0 0 28px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(42px, 4.2vw, 68px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.sample-hero h1 span {
  display: block;
}

.sample-hero-copy > p:not(.sample-kicker) {
  max-width: 34em;
  margin: 0;
  font-size: 19px;
}

.sample-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.sample-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--sample-main);
  border-radius: 999px;
  padding: 11px 24px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
}

.sample-button-main {
  background: var(--sample-main);
  color: #fff;
}

.sample-button-sub {
  background: transparent;
  color: var(--sample-main);
}

.sample-section {
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
  padding-block: clamp(72px, 9vw, 120px);
}

.sample-intro {
  text-align: center;
}

.sample-intro > p:not(.sample-kicker) {
  max-width: 720px;
  margin: 20px auto 0;
}

.sample-section h2,
.sample-footer-cta h2 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 600;
  line-height: 1.4;
}

.sample-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 54px;
  text-align: left;
}

.sample-points article,
.sample-order-grid li {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  padding: 30px;
}

.sample-points span,
.sample-order-grid span {
  color: var(--sample-accent);
  font-size: 18px;
  font-weight: 900;
}

.sample-points h3,
.sample-order-grid h3 {
  margin: 8px 0;
  font-size: 23px;
}

.sample-points p,
.sample-order-grid p {
  margin: 0;
}

.sample-menu {
  width: auto;
  max-width: none;
  padding-inline: max(32px, calc((100% - 1160px) / 2));
  background: var(--sample-dark);
  color: #fff;
}

.sample-menu .sample-kicker {
  color: var(--sample-accent);
}

.sample-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.6fr);
  align-items: end;
  gap: 36px;
  margin-bottom: 46px;
}

.sample-section-heading > p {
  margin: 0;
}

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

.sample-menu-grid article {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border-radius: 20px;
  background: #fff;
  color: var(--sample-dark);
}

.sample-menu-grid article > img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.sample-menu-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}

.sample-menu-grid h3 {
  margin: 0;
  font-size: 24px;
}

.sample-menu-grid p {
  margin: 4px 0 0;
  color: #5d645f;
}

.sample-menu-grid strong {
  margin-top: 18px;
  font-size: 24px;
}

.sample-order {
  width: auto;
  max-width: none;
  padding-inline: max(32px, calc((100% - 1160px) / 2));
  background: var(--sample-soft);
}

.sample-order-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sample-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
}

.sample-info dl {
  margin: 0;
  border-top: 2px solid var(--sample-dark);
}

.sample-info dl div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--sample-dark) 25%, transparent);
  padding: 18px 0;
}

.sample-info dt {
  font-weight: 800;
}

.sample-info dd {
  margin: 0;
}

.sample-footer-cta {
  padding: clamp(72px, 9vw, 110px) 24px;
  background: var(--sample-main);
  color: #fff;
  text-align: center;
}

.sample-footer-cta > p {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.sample-footer-cta .sample-button {
  margin-top: 30px;
  border-color: #fff;
  background: #fff;
  color: var(--sample-main);
}

.sample-footer-cta small {
  display: block;
  margin: 30px auto 0;
  font-size: 16px;
}

@media (max-width: 900px) {
  .services-page-hero .visual-card {
    display: block;
  }

  .personal-lead-image {
    display: none;
  }

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

  .sample-hero > img {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .sample-points,
  .sample-order-grid {
    grid-template-columns: 1fr;
  }

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

  .sample-section-heading,
  .sample-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .portfolio-lp-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-lp-card > div {
    padding: 24px 20px;
  }

  .sample-lp {
    font-size: 18px;
  }

  .sample-disclaimer {
    padding-inline: 14px;
  }

  .sample-hero-copy {
    padding: 46px 18px 58px;
  }

  .sample-hero h1 {
    font-size: clamp(40px, 12vw, 54px);
  }

  .sample-actions {
    display: grid;
  }

  .sample-section {
    width: auto;
    margin-inline: 18px;
    padding-block: 68px;
  }

  .sample-menu,
  .sample-order {
    width: auto;
    margin-inline: 0;
    padding-inline: 18px;
  }

  .sample-section-heading {
    gap: 16px;
  }

  .sample-menu-grid {
    grid-template-columns: 1fr;
  }

  .sample-info dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}


/* LP-aligned soft typography */
:root {
  --font-soft-serif: "Iowan Old Style", Charter, "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "BIZ UDPMincho", Georgia, serif;
}

.brand-name,
.site-footer .brand,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-soft-serif);
}
