/* HUNDRED ORDER — first viewport */

:root {
  --color-black: #050505;
  --color-white: #ffffff;
  --color-gray: #b8b8b8;
  --color-gray-soft: #d6d6d6;
  --color-teal: #2eb8a6;
  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI",
    "Yu Gothic", "Noto Sans JP", sans-serif;
  --header-height: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--color-white);
  background: var(--color-black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* ----- Hero shell ----- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  background: #2a2a2a; /* 写真未配置時の仮背景 */
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.72) 28%,
      rgba(0, 0, 0, 0.38) 52%,
      rgba(0, 0, 0, 0.12) 72%,
      rgba(0, 0, 0, 0.04) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.28) 0%,
      rgba(0, 0, 0, 0.1) 16%,
      rgba(0, 0, 0, 0) 40%
    );
  pointer-events: none;
}

/* ----- Header（黒背景・白ロゴ） ----- */

.site-header {
  position: relative;
  /* ギャラリーカードの z-index(~1000) より手前に保つ */
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-height);
  min-height: var(--header-height);
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
  background: var(--color-black);
  color: var(--color-white);
  flex-shrink: 0;
  overflow: visible;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
  color: var(--color-white);
}

.brand__mark {
  width: 1.55rem;
  height: auto;
  flex-shrink: 0;
}

.brand__name {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  white-space: nowrap;
  color: var(--color-white);
}

.site-nav-toggle,
.site-nav-close {
  display: none;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: transparent;
  color: var(--color-white);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.site-nav-toggle {
  min-height: 2rem;
  padding: 0.3rem 0.95rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  color: var(--color-white);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 1.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-white);
  opacity: 1;
}

.site-nav__list a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.site-nav__contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.3rem 1rem;
  border: 1px solid var(--color-white);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--color-white);
  background: transparent;
}

.site-nav__contact[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
}

/* ----- Hero content ----- */

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  width: min(100%, 46rem);
  max-width: 100%;
  padding:
    clamp(2.5rem, 8vh, 5.5rem)
    clamp(1.25rem, 4vw, 3.5rem)
    clamp(4.5rem, 10vh, 6.5rem);
}

.hero__title {
  margin: 0;
  font-size: clamp(2.15rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.hero__title-line {
  display: block;
}

.hero__title-line--muted {
  color: var(--color-gray);
}

/* 「ホームページ制作」行の実表示幅に線を合わせる（ホ〜作） */
.hero__title-line--accent {
  display: block;
  width: fit-content;
  max-width: 100%;
}

.hero__title-accent-text {
  display: inline;
}

/*
  「ホームページ制作」のホ〜作の幅に合わせた 1px 白線。
  ページ表示時に光が左→右へ一度走り、右端で消えて淡い線が残る。
  動きは hero-light.js（見本 hero-light-sweep-thin.html 準拠）。
*/
.hero__rule {
  position: relative;
  display: block;
  width: 100%;
  height: 1px;
  margin: clamp(0.9rem, 2.1vh, 1.35rem) 0 0;
  overflow: visible;
  pointer-events: none;
  /* 残る淡い白線（1px） */
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.4),
    rgba(255, 255, 255, 0.5) 66%,
    rgba(255, 255, 255, 0)
  );
}

/* 走行中の明るい軌跡。最後は opacity 0 で消え、下の淡線だけ残る */
.hero__rule-trail {
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.12),
    #ffffff 82%,
    #ffffff
  );
  box-shadow: 0 0 7px 1px rgba(255, 255, 255, 0.6);
  opacity: 0;
}

/* 先頭の白い光（楕円グロー + 中心点） */
.hero__rule-spark {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 1;
  width: min(100px, 45%);
  height: 18px;
  transform: translate(-90%, -50%);
  background: radial-gradient(
    ellipse at 88% 50%,
    #ffffff 0%,
    rgba(255, 255, 255, 0.88) 6%,
    rgba(255, 255, 255, 0.6) 16%,
    rgba(255, 255, 255, 0.2) 37%,
    rgba(255, 255, 255, 0) 70%
  );
  opacity: 0;
}

.hero__rule-spark::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 9%;
  width: 6px;
  height: 5px;
  transform: translateY(-50%);
  background: #ffffff;
  border-radius: 50%;
  box-shadow:
    0 0 8px 3px rgba(255, 255, 255, 0.85),
    0 0 19px 6px rgba(255, 255, 255, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .hero__rule-trail,
  .hero__rule-spark {
    display: none;
  }
}

.hero__lead {
  margin: clamp(0.85rem, 2vh, 1.25rem) 0 0;
  max-width: none;
  font-size: clamp(0.92rem, 1.35vw, 1.05rem);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
}

/* PC幅では「ご予算に合わせて、」の直後で改行 */
.hero__lead-break {
  display: none;
}

.hero__actions {
  display: grid;
  grid-template-columns: max-content max-content;
  grid-template-areas:
    "consult works"
    "note .";
  align-items: center;
  justify-content: start;
  column-gap: 1rem;
  row-gap: 0.5rem;
  margin-top: 1.15rem;
}

.hero__cta-consult {
  grid-area: consult;
}

.hero__actions .btn--ghost {
  grid-area: works;
}

.hero__cta-note {
  grid-area: note;
  box-sizing: border-box;
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.02em;
  text-align: left;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hero__cta-note-break {
  display: inline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.75rem 1.55rem;
  border-radius: 999px;
  font-size: clamp(0.88rem, 1.2vw, 0.98rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.btn--primary {
  background: var(--color-white);
  color: var(--color-black);
  border: 1px solid var(--color-white);
}

.btn--dark {
  background: #050505;
  color: #ffffff;
  border: 1px solid #050505;
}

.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.92);
}

.btn--teal {
  background: var(--color-teal);
  color: var(--color-white);
  border: 1px solid var(--color-teal);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero__scroll span {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.78);
}

.hero__scroll i {
  display: block;
  width: 1px;
  height: 1.55rem;
  background: rgba(255, 255, 255, 0.72);
}

/* ----- Intro（ご予算に合わせた作り方：黒地・白文字） ----- */

.intro {
  display: block;
  width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
  background: var(--color-black);
  color: var(--color-white);
}

.intro__inner {
  /* ヒーロー見出しと同じ左端（hero__content の左右 padding に合わせる） */
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  box-sizing: border-box;
  width: min(100%, 68rem);
  max-width: 100%;
  margin: 0;
  padding:
    clamp(3.5rem, 7.5vh, 5.25rem)
    clamp(1.25rem, 4vw, 3.5rem)
    clamp(3.75rem, 8vh, 5.75rem);
}

.intro__copy {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 36rem;
}

.intro__title {
  display: block;
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-align: left;
  color: var(--color-white);
}

.intro__title::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 0.7rem;
  background: #2eb8a6;
}

.intro__body {
  margin: 1.35rem 0 0;
  max-width: 100%;
  font-size: clamp(0.92rem, 1.2vw, 1.02rem);
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0.03em;
  text-align: left;
  color: rgba(255, 255, 255, 0.92);
}

.intro__logo {
  flex: 0 1 240px;
  box-sizing: border-box;
  width: min(240px, 28vw);
  max-width: 240px;
  min-width: 0;
  margin: 0;
  line-height: 0;
}

.intro__logo img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 1;
}

/* ----- Support（公開後の管理：グレー帯） ----- */

.support {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: #f0f0f0;
  color: #050505;
}

.support__inner {
  box-sizing: border-box;
  width: min(100%, 68rem);
  max-width: 100%;
  margin: 0;
  padding:
    clamp(3rem, 6.5vh, 4.75rem)
    clamp(1.25rem, 4vw, 3.5rem)
    clamp(3.25rem, 7vh, 5rem);
}

.support__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-align: left;
  color: #050505;
}

.support__lead {
  margin: 1rem 0 0;
  max-width: 40rem;
  font-size: clamp(0.9rem, 1.15vw, 0.98rem);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: #050505;
}

.support__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 2.75rem) clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(1.5rem, 3vh, 2.15rem);
}

.support__item {
  margin: 0;
  min-width: 0;
}

.support__item-title {
  margin: 0;
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: #050505;
}

.support__item-body {
  margin: 0.85rem 0 0;
  font-size: clamp(0.9rem, 1.15vw, 0.98rem);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: #050505;
}

/* ----- Consult (ホームページ制作のご相談) ----- */

.consult {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  color: #050505;
}

.consult__inner {
  box-sizing: border-box;
  width: min(100%, 46rem);
  max-width: 100%;
  margin: 0;
  padding:
    clamp(3.25rem, 7vh, 5rem)
    clamp(1.25rem, 4vw, 3.5rem)
    clamp(3.75rem, 8vh, 5.5rem);
}

.consult__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-align: left;
  color: #050505;
}

.consult__body {
  margin: 1.15rem 0 0;
  max-width: 34rem;
  font-size: clamp(0.92rem, 1.2vw, 1.02rem);
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0.03em;
  text-align: left;
  color: #050505;
}

.consult__inner .btn {
  margin-top: 1.5rem;
}

/* ----- Site footer（全ページ共通） ----- */

.site-footer {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: var(--color-black);
  color: var(--color-white);
}

.site-footer__inner {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
  width: min(100%, 68rem);
  max-width: 100%;
  margin: 0;
  padding: 1.35rem clamp(1.25rem, 4vw, 3.5rem) 1.55rem;
}

.site-footer__brand,
.site-footer__link {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.site-footer__brand {
  font-size: 0.82rem;
  font-weight: 700;
}

.site-footer__link {
  font-size: 0.8rem;
  font-weight: 400;
}

.site-footer__brand:hover,
.site-footer__link:hover {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

/* ----- Privacy page ----- */

.page-privacy {
  background: #ffffff;
  color: #050505;
  min-height: 100vh;
  min-height: 100dvh;
}

.page-privacy .site-header {
  position: sticky;
  top: 0;
}

.privacy {
  box-sizing: border-box;
  width: min(100%, 46rem);
  max-width: 100%;
  margin: 0;
  padding:
    clamp(2.5rem, 5.5vh, 4rem)
    clamp(1.25rem, 4vw, 3.5rem)
    clamp(3rem, 6.5vh, 4.75rem);
  background: #ffffff;
  color: #050505;
}

.privacy__title {
  margin: 0;
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.06em;
}

.privacy__lead {
  margin: 1.1rem 0 0;
  font-size: 0.92rem;
  line-height: 1.85;
  letter-spacing: 0.03em;
  color: #333333;
}

.privacy__section {
  margin-top: 2rem;
}

.privacy__section h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.privacy__section p,
.privacy__section li {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  line-height: 1.85;
  letter-spacing: 0.03em;
  color: #222222;
}

.privacy__section ul {
  margin: 0.65rem 0 0;
  padding-left: 1.25rem;
}

.privacy__note {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e5e5;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #666666;
}

/* ----- Contact page ----- */

.page-contact {
  background: #ffffff;
  color: #050505;
  min-height: 100vh;
  min-height: 100dvh;
}

.page-contact .site-header {
  position: sticky;
  top: 0;
}

/* トップと同じナビ構成で、現在地（お問い合わせ）を明示 */
.page-contact .site-nav__list a[aria-current="page"],
.page-contact .site-nav__contact[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.page-contact .site-nav__contact[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
}

.contact {
  background: #ffffff;
  color: #050505;
}

.contact.is-done {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  padding: clamp(2rem, 6vh, 4rem) clamp(1.25rem, 4vw, 3.5rem);
}

.contact__done {
  display: none;
  width: min(100%, 40rem);
  margin: 0 auto;
  text-align: center;
}

.contact.is-done .contact__done {
  display: block;
}

.contact__done-group {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  width: min(100%, 22rem);
  margin: 0 auto;
}

.contact__done-message {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.15rem;
  margin: 0;
  padding: 0.75rem 1.55rem;
  border-radius: 999px;
  background: #2eb8a6;
  color: #ffffff;
  font-size: clamp(0.88rem, 1.2vw, 0.98rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-align: center;
  pointer-events: none;
  user-select: none;
  outline: none;
}

.contact__done-note {
  margin: 0;
  max-width: 22rem;
  font-size: 0.78rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: #666666;
  text-align: center;
}

.contact__inner {
  box-sizing: border-box;
  width: min(100%, 40rem);
  max-width: 100%;
  margin: 0 auto;
  padding:
    clamp(2.5rem, 6vh, 4rem)
    clamp(1.25rem, 4vw, 3.5rem)
    clamp(3.5rem, 8vh, 5.5rem);
}

.contact.is-done .contact__inner {
  display: none;
}

.contact__title {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #050505;
}

.contact__title::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 0.7rem;
  background: #2eb8a6;
}

.contact__lead {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.35em;
  margin: 1.15rem 0 0;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.03em;
  color: #050505;
}

.contact__lead-seg {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.contact__lead-accent {
  display: inline-flex;
  align-items: baseline;
  color: #2eb8a6;
}

.contact__lead-num {
  font-size: 2.7em;
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: 0;
  color: #2eb8a6;
}

.contact__lead-unit {
  font-size: 1em;
  font-weight: 700;
  line-height: 1;
  color: #2eb8a6;
}

.contact-form {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
}

.contact-survey {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.contact-survey__legend {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  max-width: 100%;
}

.contact-survey__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  margin-top: 0.05rem;
  border: 1px solid var(--color-teal);
  border-radius: 50%;
  color: var(--color-teal);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.contact-survey__question {
  font-size: clamp(1.02rem, 1.5vw, 1.12rem);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.03em;
  color: #050505;
}

.contact-survey__hint {
  margin: 0.7rem 0 0;
  padding-left: calc(1.85rem + 0.75rem);
  font-size: 0.86rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: #555555;
}

.contact-survey__options {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.contact-choice {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.contact-choice__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.contact-choice__text {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 3.15rem;
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.85rem;
  border: 1px solid #c8c8c8;
  border-radius: 0.7rem;
  background: #ffffff;
  color: #050505;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.02em;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.contact-choice__text::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 1.1rem;
  height: 1.1rem;
  border: 1.5px solid #9a9a9a;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  box-sizing: border-box;
}

.contact-choice__input:checked + .contact-choice__text {
  border-color: var(--color-teal);
  background: rgba(46, 184, 166, 0.08);
  box-shadow: 0 0 0 1px var(--color-teal);
}

.contact-choice__input:checked + .contact-choice__text::before {
  border-color: var(--color-teal);
  background:
    radial-gradient(circle at center, var(--color-teal) 0 45%, transparent 48%);
}

.contact-choice__input:focus-visible + .contact-choice__text {
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 184, 166, 0.28);
}

.contact-choice:hover .contact-choice__text {
  border-color: #9a9a9a;
}

.contact-details--flat {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.35rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e4e4e4;
}

.contact-form__field {
  display: grid;
  gap: 0.55rem;
}

.contact-form__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.7rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.4;
  color: #050505;
}

.contact-form__label-text {
  display: inline-block;
}

.contact-form__required,
.contact-form__optional {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
}

.contact-form__required {
  color: #ffffff;
  background: #050505;
}

.contact-form__optional {
  color: #404040;
  background: #e8e8e8;
}

.contact-form__hint {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: #555555;
}

.contact-form__textarea::placeholder {
  color: #8a8a8a;
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  border: 1px solid #c8c8c8;
  border-radius: 0.55rem;
  background: #ffffff;
  color: #050505;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.contact-form__input {
  min-height: 3.1rem;
  padding: 0.75rem 0.95rem;
}

.contact-form__textarea {
  min-height: 11rem;
  padding: 0.85rem 0.95rem;
  resize: vertical;
}

.contact-form__textarea--note {
  min-height: 8rem;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: #050505;
  box-shadow: 0 0 0 3px rgba(5, 5, 5, 0.12);
}

.contact-form__actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
  justify-items: start;
}

.contact-form__status {
  margin: 0;
  max-width: 36rem;
  padding: 0.85rem 1rem;
  border-radius: 0.55rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: 0.02em;
}

.contact-form__status--pending {
  background: #f0f0f0;
  color: #333333;
}

.contact-form__status--success {
  background: rgba(46, 184, 166, 0.14);
  color: #0a6b5d;
}

.contact-form__status--error {
  background: #f7e8e8;
  color: #8a1f1f;
}

.contact-form__submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.contact-form__note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: #666666;
}

.contact-survey.is-invalid {
  outline: 1px solid rgba(176, 48, 48, 0.55);
  outline-offset: 0.45rem;
  border-radius: 0.35rem;
}

.contact-form__input.is-invalid,
.contact-form__textarea.is-invalid {
  border-color: #b03030;
  background: #fff8f8;
}

/* ----- Services page ----- */

.page-services,
.page-pricing {
  background: #ffffff;
  color: #050505;
  min-height: 100vh;
  min-height: 100dvh;
}

.page-services .site-header,
.page-pricing .site-header {
  position: sticky;
  top: 0;
}

.page-services .site-nav__list a[aria-current="page"],
.page-pricing .site-nav__list a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.services {
  background: #ffffff;
  color: #050505;
}

.services-block {
  width: 100%;
  box-sizing: border-box;
}

.services-block--white {
  background: #ffffff;
}

.services-block--gray {
  background: #f0f0f0;
}

.services-block--consult {
  background: var(--color-black);
  color: var(--color-white);
}

.services-block__inner {
  box-sizing: border-box;
  width: min(100%, 46rem);
  max-width: 100%;
  margin: 0;
  padding:
    clamp(2.75rem, 6vh, 4.5rem)
    clamp(1.25rem, 4vw, 3.5rem);
}

.services-block__inner--wide {
  width: min(100%, 72rem);
}

.services-block__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: #777777;
}

.services-block__page-title {
  margin: 0 0 clamp(2rem, 4vh, 2.75rem);
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.06em;
  color: #050505;
}

.services-block__page-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 0.7rem;
  background: #2eb8a6;
}

.services-block__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: #050505;
}

.services-block--consult .services-block__title,
.services-block--consult .services-block__body {
  color: var(--color-white);
}

.services-block__body {
  margin: 1.15rem 0 0;
  max-width: 38rem;
  font-size: clamp(0.92rem, 1.2vw, 1.02rem);
  line-height: 1.95;
  letter-spacing: 0.03em;
  color: #050505;
}

.services-block__body--lead {
  max-width: 42rem;
}

.services-block__btn {
  margin-top: 1.5rem;
}

.services-lead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.85rem 1.5rem;
  margin: 0 0 clamp(1.75rem, 3.5vh, 2.5rem);
}

.services-lead__title {
  margin: 0;
  max-width: 22em;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: #050505;
}

.services-price-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0;
  font-size: clamp(0.92rem, 1.2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: #050505;
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.services-price-link--inline {
  flex-shrink: 0;
}

.services-price-link:hover,
.services-price-link:focus-visible {
  color: var(--color-teal);
  outline: none;
}

.services-pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #d8d8d8;
  border-bottom: 1px solid #d8d8d8;
}

.services-pillars__item {
  min-width: 0;
  margin: 0;
  padding: clamp(1.35rem, 2.5vw, 1.85rem) clamp(1.1rem, 2vw, 1.6rem);
  border-right: 1px solid #d8d8d8;
}

.services-pillars__item:last-child {
  border-right: 0;
}

.services-pillars__label {
  margin: 0;
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: var(--color-teal);
}

.services-pillars__body {
  margin: 0.7rem 0 0;
  font-size: clamp(0.9rem, 1.15vw, 0.98rem);
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: #050505;
}

.flow-steps {
  --flow-gap-x: clamp(0.75rem, 1.5vw, 1.25rem);
  --flow-num-size: 1.85rem;
  --flow-line: #d0d0d0;
  --flow-line-inset: 5px;
  list-style: none;
  margin: clamp(1.75rem, 3.5vh, 2.5rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 var(--flow-gap-x);
  counter-reset: none;
}

.flow-steps__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  margin: 0;
  padding: 0;
}

/* PC: 隣り合う丸の縁から約5px離した横線（①→② / ②→③ / ③→④） */
.flow-steps__item:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: calc(var(--flow-num-size) / 2);
  left: calc(var(--flow-num-size) + var(--flow-line-inset));
  width: calc(
    100% - var(--flow-num-size) + var(--flow-gap-x) - (var(--flow-line-inset) * 2)
  );
  height: 1px;
  background: var(--flow-line);
  transform: translateY(-50%);
  pointer-events: none;
}

.flow-steps__num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--flow-num-size);
  height: var(--flow-num-size);
  border-radius: 50%;
  border: 1px solid var(--color-teal);
  background: #f0f0f0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-teal);
}

.flow-steps__content {
  min-width: 0;
  margin-top: 0.95rem;
}

.flow-steps__title {
  margin: 0;
  font-size: clamp(0.98rem, 1.35vw, 1.08rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: #050505;
}

.flow-steps__body {
  margin: 0.55rem 0 0;
  font-size: clamp(0.88rem, 1.1vw, 0.95rem);
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: #050505;
}

.pricing-page {
  background: #ffffff;
  color: #050505;
}

.pricing-hero-card {
  margin: 0;
  max-width: 32rem;
  padding: clamp(1.5rem, 3vw, 2.15rem);
  border: 1px solid rgba(46, 184, 166, 0.45);
  border-radius: 0.9rem;
  background:
    linear-gradient(
      180deg,
      rgba(46, 184, 166, 0.12) 0%,
      rgba(255, 255, 255, 0.96) 58%
    );
}

.pricing-hero-card__label {
  margin: 0;
  color: var(--color-teal);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.pricing-hero-card__price {
  margin: 0.85rem 0 0;
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0.18rem;
  color: #050505;
  white-space: nowrap;
}

.pricing-hero-card__amount {
  font-size: clamp(3.2rem, 8vw, 4.75rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--color-teal);
}

.pricing-hero-card__suffix {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0;
  white-space: nowrap;
}

.pricing-hero-card__unit {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.pricing-hero-card__tax {
  font-size: clamp(0.78rem, 1.35vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #333333;
}

.price-yen-tax {
  white-space: nowrap;
}

.pricing-preview-label {
  display: inline-flex;
  align-items: center;
  margin: 1rem 0 0;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--color-teal);
  border-radius: 999px;
  color: var(--color-teal);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.pricing-preview-label--near {
  margin-top: 0.95rem;
}

.pricing-check {
  list-style: none;
  margin: clamp(1.35rem, 3vh, 1.85rem) 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  max-width: 40rem;
}

.pricing-check li {
  position: relative;
  margin: 0;
  padding: 0 0 0 1.85rem;
  font-size: clamp(0.95rem, 1.25vw, 1.05rem);
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: #050505;
}

.pricing-check li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.45rem;
  width: 0.42rem;
  height: 0.72rem;
  box-sizing: border-box;
  border-right: 2px solid var(--color-teal);
  border-bottom: 2px solid var(--color-teal);
  transform: rotate(40deg);
}

.pricing-rows {
  display: grid;
  gap: 0;
  margin-top: clamp(1.35rem, 3vh, 1.85rem);
  border-top: 1px solid #d8d8d8;
}

.pricing-rows__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid #d8d8d8;
}

.pricing-rows__label {
  font-size: clamp(0.95rem, 1.2vw, 1.02rem);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: #050505;
}

.pricing-rows__value {
  font-size: clamp(0.95rem, 1.2vw, 1.02rem);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: #050505;
  text-align: right;
  white-space: nowrap;
}

.pricing-example {
  margin: 1.35rem 0 0;
  padding: 1rem 1.15rem;
  border-radius: 0.7rem;
  background: #ffffff;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: #050505;
}

.services-block--white .pricing-example {
  background: #f0f0f0;
}

.pricing-example strong {
  color: var(--color-teal);
  font-weight: 700;
}

.pricing-server {
  display: grid;
  gap: 0;
  margin-top: clamp(1.35rem, 3vh, 1.85rem);
  border-top: 1px solid #d0d0d0;
}

.pricing-server__row {
  display: grid;
  grid-template-columns: minmax(10rem, 0.9fr) minmax(0, 1.4fr);
  gap: 0.85rem 1.25rem;
  align-items: baseline;
  padding: 0.95rem 0;
  border-bottom: 1px solid #d0d0d0;
}

.pricing-server__label {
  font-size: clamp(0.95rem, 1.2vw, 1.02rem);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: #050505;
}

.pricing-server__value {
  font-size: clamp(0.9rem, 1.15vw, 0.98rem);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: #333333;
}

.pricing-note {
  margin: 1.25rem 0 0;
  max-width: 40rem;
  font-size: 0.86rem;
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: #666666;
}

/* ----- Responsive ----- */

@media (min-width: 721px) {
  .hero__lead-break {
    display: inline;
  }
}

@media (max-width: 900px) {
  .site-nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 1;
  }

  /*
    absolute + .hero { overflow: hidden } だとドロップダウンが切れる。
    fixed にしてヒーロー／ギャラリーの影響を受けないようにする。
  */
  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--color-black);
    z-index: 2001;
  }

  .site-header.is-nav-open .site-nav {
    display: flex;
  }

  /* メニュー展開中はヒーローのクリップを外す（保険） */
  .hero:has(.site-header.is-nav-open) {
    overflow: visible;
  }

  .site-nav__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .site-nav__list a,
  .site-nav__list .site-nav__contact {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 3.1rem;
    padding: 0.85rem 1.15rem;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    background: transparent;
  }

  .site-nav__list .site-nav__contact {
    justify-content: flex-start;
  }

  .site-nav-close {
    display: inline-flex;
    align-self: center;
    width: calc(100% - 2.3rem);
    max-width: 20rem;
    min-height: 2.75rem;
    margin: 0.85rem 1.15rem 1rem;
    padding: 0.55rem 1rem;
  }

  .hero__photo {
    object-position: 80% center;
  }

  .services-pillars {
    grid-template-columns: 1fr;
  }

  .services-pillars__item {
    padding: 1.25rem 0;
    border-right: 0;
    border-bottom: 1px solid #d8d8d8;
  }

  .services-pillars__item:last-child {
    border-bottom: 0;
  }

  .flow-steps {
    --flow-gap-y: 1.75rem;
    grid-template-columns: 1fr;
    gap: var(--flow-gap-y);
  }

  .flow-steps__item {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.95rem;
  }

  /* スマホ: 隣り合う丸の縁から約5px離した縦線（3区間とも同じ） */
  .flow-steps__item:not(:last-child)::before {
    top: calc(var(--flow-num-size) + var(--flow-line-inset));
    left: calc(var(--flow-num-size) / 2);
    width: 1px;
    height: calc(
      100% - var(--flow-num-size) + var(--flow-gap-y) -
        (var(--flow-line-inset) * 2)
    );
    transform: translateX(-50%);
  }

  .flow-steps__content {
    margin-top: 0;
    padding-top: 0.15rem;
  }

  .flow-steps__num {
    background: #ffffff;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 56px;
  }

  .site-header {
    padding: 0 1.15rem;
  }

  .brand__mark {
    width: 1.35rem;
  }

  .brand__name {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }

  .site-nav__contact {
    min-height: 1.85rem;
    padding: 0.25rem 0.85rem;
    font-size: 0.7rem;
  }

  /* 見出し・説明文の背後は暗く、緑と手元の色味は残す */
  .hero__shade {
    background:
      linear-gradient(
        100deg,
        rgba(0, 0, 0, 0.86) 0%,
        rgba(0, 0, 0, 0.7) 22%,
        rgba(0, 0, 0, 0.4) 42%,
        rgba(0, 0, 0, 0.12) 62%,
        rgba(0, 0, 0, 0) 84%
      ),
      radial-gradient(
        ellipse 88% 42% at 8% 50%,
        rgba(0, 0, 0, 0.42) 0%,
        rgba(0, 0, 0, 0.18) 55%,
        rgba(0, 0, 0, 0) 100%
      ),
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.12) 12%,
        rgba(0, 0, 0, 0) 26%
      );
  }

  .hero__photo {
    /* 緑を左に少し、手元は右下でボタンに隠れにくい位置 */
    object-position: 66% 24%;
  }

  .hero__content {
    width: 100%;
    justify-content: flex-end;
    /* 見出し〜ボタンをひとまとまりで約60px上へ */
    padding: 1.25rem 1.15rem calc(5.25rem + 60px);
  }

  .hero__title {
    font-size: clamp(1.8rem, 8.2vw, 2.35rem);
    line-height: 1.28;
    letter-spacing: 0.02em;
  }

  /* 見出し3行をそれぞれ1行で維持（「ホームページ制作」の折り返し防止） */
  .hero__title-line {
    white-space: nowrap;
  }

  .hero__title-line--accent {
    /* 折り返し時も見出しの表示範囲内に線を収める */
    max-width: 100%;
    white-space: normal;
  }

  .hero__rule {
    width: 100%;
    margin-top: 0.85rem;
  }

  .hero__lead {
    max-width: 100%;
    margin-top: 0.9rem;
    font-size: 0.9rem;
    line-height: 1.75;
  }

  .hero__lead-break {
    display: none;
  }

  .hero__actions {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.55rem;
    margin-top: 1.2rem;
    width: 100%;
  }

  .hero__cta-consult,
  .hero__actions .btn--ghost {
    grid-area: auto;
  }

  .hero__cta-note {
    width: 100%;
    /* 320pxでも通常表示で1行、拡大時は折り返し可 */
    font-size: clamp(0.625rem, 3.1vw, 0.75rem);
    line-height: 1.5;
    letter-spacing: 0;
    text-align: center;
  }

  .hero__cta-note-break {
    display: none;
  }

  .btn {
    width: 100%;
    min-height: 3rem;
    padding: 0.85rem 1.1rem;
    white-space: normal;
  }

  .hero__scroll {
    bottom: 1rem;
  }

  .intro__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1.875rem; /* 本文〜ロゴ 約30px */
    width: 100%;
    padding: 3rem 1.15rem 3.4rem;
  }

  .intro__copy {
    max-width: 100%;
  }

  .intro__title {
    font-size: 1.28rem;
    line-height: 1.5;
    letter-spacing: 0.02em;
  }

  .intro__title::after {
    margin-top: 0.6rem;
  }

  .intro__body {
    margin-top: 1.15rem;
    max-width: 100%;
    font-size: 0.92rem;
    line-height: 1.85;
  }

  .intro__logo {
    align-self: center;
    flex: 0 0 auto;
    width: 115px;
    max-width: 115px;
  }

  .support__inner {
    width: 100%;
    padding: 2.6rem 1.15rem 3rem;
  }

  .support__title {
    font-size: 1.28rem;
    line-height: 1.5;
    letter-spacing: 0.02em;
  }

  .support__lead {
    margin-top: 0.9rem;
    max-width: 100%;
    font-size: 0.92rem;
    line-height: 1.85;
  }

  .support__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-top: 1.35rem;
  }

  .support__item-title {
    font-size: 1.02rem;
  }

  .support__item-body {
    margin-top: 0.7rem;
    font-size: 0.92rem;
    line-height: 1.85;
  }

  .consult__inner {
    width: 100%;
    padding: 2.75rem 1.15rem 3.25rem;
  }

  .consult__title {
    font-size: 1.28rem;
    line-height: 1.5;
    letter-spacing: 0.02em;
  }

  .consult__body {
    margin-top: 1rem;
    max-width: 100%;
    font-size: 0.92rem;
    line-height: 1.85;
  }

  .consult__inner .btn {
    width: 100%;
    margin-top: 1.35rem;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.25rem 1.15rem 1.5rem;
  }

  .privacy {
    padding: 2.25rem 1.15rem 3rem;
  }

  .privacy__title {
    font-size: 1.35rem;
  }

  .contact__inner {
    padding: 2rem 1.15rem 3rem;
  }

  .contact__title {
    font-size: 1.35rem;
    letter-spacing: 0.02em;
  }

  .contact__title::after {
    margin-top: 0.6rem;
  }

  .contact__lead {
    flex-wrap: nowrap;
    gap: 0.12em;
    margin-top: 1rem;
    /* 320px幅でも1行に収める */
    font-size: clamp(0.8125rem, 4.15vw, 1rem);
    line-height: 1.2;
    letter-spacing: 0.02em;
    max-width: 100%;
  }

  .contact__lead-seg {
    flex: 0 0 auto;
  }

  /* スマホは「3」を本文より少し大きく、下端をそろえる */
  .contact__lead-num {
    font-size: 1.28em;
    line-height: 1;
  }

  .contact-form {
    gap: 1.55rem;
    margin-top: 1.65rem;
  }

  .contact-survey__hint {
    padding-left: 0;
    margin-top: 0.55rem;
    font-size: 0.86rem;
  }

  .contact-survey__legend {
    gap: 0.65rem;
  }

  .contact-survey__question {
    font-size: 1.02rem;
  }

  .contact-survey__options {
    gap: 0.65rem;
  }

  .contact-choice__text {
    min-height: 3.35rem;
    padding: 0.95rem 0.95rem 0.95rem 2.85rem;
    font-size: 0.94rem;
  }

  .contact-details--flat {
    gap: 1.2rem;
    padding-top: 1.35rem;
  }

  .contact-form__field {
    gap: 0.6rem;
  }

  .contact-form__label {
    font-size: 0.98rem;
    gap: 0.55rem 0.65rem;
  }

  .contact-form__required,
  .contact-form__optional {
    min-height: 1.4rem;
    font-size: 0.76rem;
    padding: 0.32rem 0.58rem;
  }

  .contact-form__hint {
    font-size: 0.86rem;
    line-height: 1.75;
  }

  .contact-form__input {
    min-height: 3.25rem;
    font-size: 16px; /* iOSでの自動ズーム防止 */
  }

  .contact-form__textarea {
    min-height: 12rem;
    font-size: 16px;
  }

  .contact-form__textarea--note {
    min-height: 8.5rem;
  }

  .contact-form__actions {
    justify-items: stretch;
  }

  .contact-form__submit {
    width: 100%;
  }

  .contact__done-group {
    width: min(100%, 22rem);
    gap: 0.75rem;
  }

  .contact__done-message {
    min-height: 3rem;
    padding: 0.85rem 1.1rem;
    white-space: normal;
  }

  .services-block__inner,
  .services-block__inner--wide {
    width: 100%;
    padding: 2.5rem 1.15rem;
  }

  .services-block__page-title {
    margin-bottom: 1.75rem;
    font-size: 1.4rem;
    letter-spacing: 0.04em;
  }

  .services-block__page-title::after {
    margin-top: 0.6rem;
  }

  .services-block__title {
    font-size: 1.28rem;
    letter-spacing: 0.02em;
  }

  .services-block__body {
    margin-top: 1rem;
    max-width: 100%;
    font-size: 0.92rem;
    line-height: 1.85;
  }

  .services-lead {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .services-lead__title {
    font-size: clamp(1.4rem, 7vw, 1.75rem);
  }

  .flow-steps {
    --flow-gap-y: 1.55rem;
    margin-top: 1.35rem;
  }

  .pricing-hero-card {
    max-width: none;
    padding: 1.35rem 1.15rem;
  }

  .pricing-hero-card__amount {
    font-size: clamp(2.85rem, 14vw, 3.6rem);
  }

  .pricing-preview-label {
    margin-top: 0.85rem;
    font-size: 0.7rem;
  }

  .pricing-rows__item,
  .pricing-server__row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding: 0.95rem 0;
  }

  .pricing-rows__value,
  .pricing-server__value {
    text-align: left;
    white-space: normal;
  }

  .pricing-example {
    padding: 0.95rem 1rem;
  }

  .services-block__btn {
    width: 100%;
    margin-top: 1.35rem;
  }
}

@media (max-width: 380px) {
  .brand__name {
    font-size: 0.66rem;
  }

  .hero__title {
    font-size: 1.7rem;
  }
}
