/* ==========================================================================
   KOTOZUTE. — Landing Page
   Brand: Oimo Brothers, LLC
   Palette / type per KOTOZUTE. Brand Guideline
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette — distribution: 45 / 20 / 15 / 15 / 5 */
  --bg-base: #f8f7f4;
  --bg-alt: #dcd6cd;
  --text-muted: #98938a;
  --text-body: #2a2a28;
  --accent: #3c4a3e;

  /* Derived (opacity variants only — no new hues) */
  --rule: rgba(152, 147, 138, 0.45);
  --rule-strong: rgba(42, 42, 40, 0.16);
  --accent-hover: #2f3a31;
  --on-dark: #f8f7f4;

  /* Type */
  --font-logo: "Syne", "Noto Sans JP", sans-serif;
  --font-base: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Yu Gothic", Meiryo, sans-serif;

  /* Scale */
  --fs-hero-logo: clamp(2.4rem, 7.2vw, 5rem);
  --fs-hero-tag: clamp(0.95rem, 2.4vw, 1.45rem);
  --fs-h2: clamp(1.24rem, 4.6vw, 2.1rem);
  --fs-h3: clamp(1.08rem, 2.2vw, 1.32rem);
  --fs-body: clamp(0.9rem, 1.35vw, 1rem);
  --fs-small: 0.82rem;

  /* Layout */
  --wrap: 1120px;
  --wrap-narrow: 720px;
  --gutter: 24px;
  --section-y: clamp(64px, 9vw, 116px);
  --header-h: 64px;
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg-base);
  color: var(--text-body);
  font-family: var(--font-base);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.02em;
  line-break: strict;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4,
p,
ul,
dl,
dd,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow {
  max-width: var(--wrap-narrow);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Line-break control for Japanese copy.
   .br-pc breaks only on wide screens, .br-sp only on narrow ones. Japanese has
   no spaces, so wraps must be placed by hand at phrase boundaries. */
.br-pc {
  display: none;
}

.br-sp {
  display: inline;
}


/* Skip link — hidden until focused by keyboard. */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 100;
  transform: translate(-50%, -120%);
  padding: 12px 22px;
  background-color: var(--accent);
  color: var(--on-dark);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 0 0 2px 2px;
  transition: transform 0.18s ease;
}

.skip-link:focus-visible,
.skip-link:focus {
  transform: translate(-50%, 0);
}

.field--block {
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   3. Logotype
   -------------------------------------------------------------------------- */
.logo {
  display: inline-block;
  font-family: var(--font-logo);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background-color: var(--accent);
  color: var(--on-dark);
  font-family: var(--font-base);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.22s ease, border-color 0.22s ease;
}

.btn:hover,
.btn:focus-visible {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn--compact {
  padding: 10px 13px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Header CTA carries a shortened label on narrow screens so the nav row
   never wraps. Desktop shows the full wording. */
.btn__full {
  display: none;
}

.btn--wide {
  display: block;
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .btn--wide {
    display: inline-block;
    width: auto;
    min-width: 320px;
  }
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background-color: var(--bg-base);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-stuck {
  border-bottom-color: var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.site-header__logo {
  font-size: 0.94rem;
  letter-spacing: 0.13em;
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(360px, 62vh, 620px);
  overflow: hidden;
  background-color: var(--text-body);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

/* Overlay is required: the sky in the photo is near-white and would swallow
   the white wordmark without it. */
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(42, 42, 40, 0.34) 0%,
    rgba(42, 42, 40, 0.48) 46%,
    rgba(42, 42, 40, 0.62) 100%
  );
}

.hero__content {
  position: relative;
  padding: 40px var(--gutter);
  text-align: center;
  color: var(--on-dark);
}

.hero__logo {
  display: block;
  font-size: var(--fs-hero-logo);
  letter-spacing: 0.2em;
  /* Optical correction: the trailing letter-space pushes the wordmark left */
  text-indent: 0.2em;
  text-shadow: 0 1px 26px rgba(42, 42, 40, 0.45);
}

.hero__tagline {
  margin-top: 22px;
  font-size: var(--fs-hero-tag);
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.8;
  text-shadow: 0 1px 18px rgba(42, 42, 40, 0.5);
}

/* One orchestrated entrance, on load only. */
.hero__logo,
.hero__tagline {
  animation: hero-rise 1s cubic-bezier(0.22, 0.68, 0.28, 1) both;
}

.hero__tagline {
  animation-delay: 0.22s;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   7. Lead
   -------------------------------------------------------------------------- */
.lead {
  padding-block: clamp(44px, 6vw, 76px);
  background-color: var(--bg-base);
  text-align: center;
}

.lead__headline {
  font-size: clamp(1.2rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.7;
}

.lead__body {
  margin-top: 20px;
  font-size: var(--fs-body);
  line-height: 2;
}

.lead__cta {
  margin-top: 34px;
}

/* --------------------------------------------------------------------------
   8. Section shell
   -------------------------------------------------------------------------- */
.section {
  padding-block: var(--section-y);
}

.section--alt {
  background-color: var(--bg-alt);
}

.section__title {
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.6;
  text-align: center;
}

.section__title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin: 22px auto 0;
  background-color: var(--accent);
}

/* --------------------------------------------------------------------------
   9. Barriers  (#01–#04)
   Editorial 2×2 panel grid divided by hairlines — deliberately not a card kit.
   -------------------------------------------------------------------------- */
.barriers__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: clamp(38px, 5vw, 62px);
}

.barrier {
  padding: 30px 22px 32px;
  border-radius: 2px;
  background-color: var(--bg-base);
}

.barrier__title {
  font-size: clamp(0.98rem, 1.85vw, 1.16rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.65;
  text-align: center;
  text-wrap: balance;
}

.barrier__index {
  font-family: var(--font-logo);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.barrier__list {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.barrier__item + .barrier__item {
  margin-top: 14px;
}

.barrier__term {
  display: inline;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.barrier__term::after {
  content: "：";
}

.barrier__desc {
  display: inline;
  margin-left: 0;
  font-size: 0.92rem;
  line-height: 1.95;
}

/* --------------------------------------------------------------------------
   10. Reasons (3)
   Asymmetric: claim on the left, evidence on the right.
   -------------------------------------------------------------------------- */
.reasons__list {
  margin-top: clamp(38px, 5vw, 62px);
}

.reason {
  padding-block: clamp(30px, 4vw, 46px);
  border-top: 1px solid var(--rule);
}

.reason:last-child {
  border-bottom: 1px solid var(--rule);
}

.reason__claim {
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.reason__points {
  margin-top: 20px;
  display: grid;
  gap: 22px;
}

.reason__point-title {
  padding-left: 24px;
  text-indent: -24px;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.7;
}

.reason__point-title::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  margin-right: 10px;
  vertical-align: 0.4em;
  background-color: var(--accent);
}

.reason__point-body {
  margin-top: 6px;
  padding-left: 24px;
  font-size: 0.9rem;
  line-height: 1.95;
  color: var(--text-body);
}

/* --------------------------------------------------------------------------
   11. Contact form
   -------------------------------------------------------------------------- */
.contact__intro {
  margin-top: 26px;
  text-align: center;
  font-size: 0.92rem;
  line-height: 2;
}

.form {
  margin-top: clamp(32px, 4vw, 48px);
}

.field + .field {
  margin-top: 24px;
}

.field__label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.field__flag {
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 2px;
  background-color: var(--accent);
  color: var(--on-dark);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  vertical-align: 0.14em;
}

.field__flag--optional {
  background-color: transparent;
  border: 1px solid var(--text-muted);
  color: var(--text-muted);
}

.field__input,
.field__textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--text-muted);
  border-radius: 2px;
  background-color: var(--bg-base);
  color: var(--text-body);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.7;
  transition: border-color 0.18s ease;
}

.field__input:focus,
.field__textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(60, 74, 62, 0.18);
}

.field__textarea {
  min-height: 168px;
  resize: vertical;
}

.form__consent {
  margin-top: 26px;
  font-size: 0.82rem;
  line-height: 1.9;
  color: var(--text-body);
}

.form__consent a {
  border-bottom: 1px solid var(--text-muted);
}

.form__consent a:hover {
  border-bottom-color: var(--accent);
}

.form__actions {
  margin-top: 28px;
  text-align: center;
}

.form__honeypot {
  position: absolute;
  left: -9999px;
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding-block: clamp(48px, 6vw, 72px) 32px;
  background-color: var(--text-body);
  color: var(--bg-base);
}

.site-footer__logo {
  font-size: 1.3rem;
}

.site-footer__meta {
  margin-top: 26px;
  display: grid;
  gap: 8px;
  font-size: var(--fs-small);
  line-height: 1.9;
  color: var(--bg-alt);
}

.site-footer__meta a {
  border-bottom: 1px solid rgba(220, 214, 205, 0.4);
}

.site-footer__meta a:hover {
  border-bottom-color: var(--bg-base);
}

.site-footer__links {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: var(--fs-small);
}

.site-footer__links a {
  border-bottom: 1px solid transparent;
}

.site-footer__links a:hover {
  border-bottom-color: var(--bg-alt);
}

.site-footer__copy {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(220, 214, 205, 0.22);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   13. Sub-pages (thanks / privacy)
   -------------------------------------------------------------------------- */
.page {
  padding-block: clamp(64px, 9vw, 120px);
}

.page__title {
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.page__lead {
  margin-top: 24px;
  line-height: 2;
}

.page__actions {
  margin-top: 40px;
}

.page__updated {
  margin-top: 12px;
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.doc {
  margin-top: 44px;
}

.doc h2 {
  margin-top: 44px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.doc h2:first-child {
  margin-top: 0;
}

.doc p {
  margin-top: 16px;
  font-size: 0.92rem;
  line-height: 2;
}

.doc ul {
  margin-top: 16px;
  padding-left: 0;
}

.doc li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  line-height: 2;
}

.doc li + li {
  margin-top: 6px;
}

.doc li::before {
  content: "";
  position: absolute;
  top: 0.92em;
  left: 0;
  width: 6px;
  height: 1px;
  background-color: var(--accent);
}

.doc dl {
  margin-top: 16px;
}

.doc dt {
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 700;
}

.doc dd {
  font-size: 0.92rem;
  line-height: 2;
}

/* --------------------------------------------------------------------------
   14. Breakpoints
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  :root {
    --header-h: 76px;
    --gutter: 40px;
  }

  body {
    letter-spacing: 0.03em;
  }

  .section__title {
    letter-spacing: 0.06em;
  }

  .br-pc {
    display: inline;
  }

  .br-sp {
    display: none;
  }

  .site-header__logo {
    font-size: 1.2rem;
    letter-spacing: 0.18em;
  }

  .btn--compact {
    padding: 12px 24px;
    font-size: 0.82rem;
  }

  .btn__short {
    display: none;
  }

  .btn__full {
    display: inline;
  }

  .barriers__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .barrier {
    padding: 36px 34px 38px;
  }

  .reason {
    display: grid;
    grid-template-columns: minmax(220px, 5fr) 7fr;
    column-gap: clamp(32px, 5vw, 72px);
    align-items: start;
  }

  .reason__points {
    margin-top: 0;
  }

  .form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }

  .form__grid .field + .field {
    margin-top: 0;
  }

  .form__grid .field:nth-child(n + 3) {
    margin-top: 24px;
  }

  .site-footer__meta {
    font-size: 0.84rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    min-height: 66vh;
  }
}

/* --------------------------------------------------------------------------
   15. Accessibility / print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__logo,
  .hero__tagline {
    animation: none;
  }

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

@media print {
  .site-header,
  .hero__scrim {
    position: static;
  }

  .btn {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   16. Header nav  (added Phase 1.1)
   -------------------------------------------------------------------------- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 9px;
}

.site-nav__link {
  font-family: var(--font-logo);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  transition: border-color 0.2s ease;
}

.site-nav__link:hover {
  border-bottom-color: var(--accent);
}

.site-nav__link.is-current {
  border-bottom-color: var(--accent);
}

/* --------------------------------------------------------------------------
   17. Page hero  (sub-page variant of .hero)
   -------------------------------------------------------------------------- */
.hero--page {
  min-height: clamp(260px, 42vh, 420px);
}

.hero--page .hero__media img {
  object-position: center 44%;
}

.hero--page .hero__scrim {
  background: linear-gradient(
    180deg,
    rgba(42, 42, 40, 0.26) 0%,
    rgba(42, 42, 40, 0.36) 50%,
    rgba(42, 42, 40, 0.46) 100%
  );
}

.hero__page-title {
  display: block;
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.6rem);
  letter-spacing: 0.1em;
  line-height: 1;
  text-indent: 0.1em;
  text-shadow: 0 1px 26px rgba(42, 42, 40, 0.45);
}

.hero__page-sub {
  margin-top: 20px;
  font-size: clamp(0.98rem, 2.16vw, 1.14rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1.8;
  text-shadow: 0 1px 18px rgba(42, 42, 40, 0.5);
}

.hero--page .hero__page-title,
.hero--page .hero__page-sub {
  animation: hero-rise 1s cubic-bezier(0.22, 0.68, 0.28, 1) both;
}

.hero--page .hero__page-sub {
  animation-delay: 0.22s;
}

/* --------------------------------------------------------------------------
   18. Mission  (About)
   -------------------------------------------------------------------------- */
.section--mission {
  padding-block: clamp(48px, 6.5vw, 84px);
}

.mission {
  margin-top: 0;
}

.mission__body {
  font-size: clamp(0.95rem, 1.7vw, 1.06rem);
  font-weight: 400;
  line-height: 2.2;
}

.mission__body + .mission__body {
  margin-top: 24px;
}

.doc--story p {
  margin-top: 26px;
}

/* --------------------------------------------------------------------------
   19. Spec list  (会社概要)
   -------------------------------------------------------------------------- */
.spec {
  margin-top: clamp(34px, 4.5vw, 52px);
  border-top: 1px solid var(--rule);
}

.spec__row {
  padding-block: 18px;
  border-bottom: 1px solid var(--rule);
}

.spec__term {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.8;
}

.spec__desc {
  margin-top: 4px;
  font-size: 0.92rem;
  line-height: 1.9;
}

.spec__desc a {
  border-bottom: 1px solid var(--text-muted);
}

.spec__desc a:hover {
  border-bottom-color: var(--accent);
}

.spec__list li {
  position: relative;
  padding-left: 16px;
}

.spec__list li::before {
  content: "";
  position: absolute;
  top: 0.9em;
  left: 0;
  width: 6px;
  height: 1px;
  background-color: var(--accent);
}

.page__actions--center {
  text-align: center;
}

/* --------------------------------------------------------------------------
   20. Service plans
   Two panels on the base tone; the plan copy carries no pricing by design.
   -------------------------------------------------------------------------- */
.plans__lead {
  margin-top: 26px;
  text-align: center;
  font-size: 0.92rem;
  line-height: 2;
}

.plans__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: clamp(34px, 4.5vw, 54px);
}

.plan {
  padding: 32px 24px 34px;
  border-radius: 2px;
  background-color: var(--bg-alt);
}

.plan__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.65;
  text-align: center;
}

.plan__body {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 0.92rem;
  line-height: 1.95;
}

/* --------------------------------------------------------------------------
   21. Breakpoints for Phase 1.1 blocks
   Declared after their base rules so the cascade resolves correctly.
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .site-nav {
    gap: 20px;
  }

  .site-nav__link {
    font-size: 0.82rem;
  }


  .plans__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .plan {
    padding: 40px 36px 44px;
  }

  /* Reserve two lines so the hairline under each title aligns across the row. */
  .plan__title {
    min-height: 3.3em;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .spec__row {
    display: grid;
    grid-template-columns: 180px 1fr;
    column-gap: 24px;
    align-items: baseline;
    padding-block: 20px;
  }

  .spec__desc {
    margin-top: 0;
  }
}
