/* ============================================================
   ARCHI-T  common stylesheet
   Apple-inspired minimal design
   ============================================================ */

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-sub: #6e6e73;
  --accent: #000000;
  --border: #d2d2d7;
  --link-hover: #0071e3;
  --max-width: 1200px;
  --radius-sm: 12px;
  --radius-lg: 18px;
  --header-h: 48px;
  --section-y: 120px;
  --font-en: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

body {
  font-family: var(--font-en), var(--font-jp);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--link-hover);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--link-hover);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-y) 0;
}

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

.section__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}

.section__lead {
  font-size: 19px;
  color: var(--text-sub);
  margin-bottom: 48px;
  max-width: 720px;
}

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

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.site-logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.site-logo:hover {
  color: var(--text);
  opacity: 0.7;
}

.site-nav__list {
  display: flex;
  gap: 28px;
  align-items: center;
}

.site-nav__link {
  font-size: 14px;
  color: var(--text);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.site-nav__link:hover {
  color: var(--text);
  opacity: 1;
}

.site-nav__link[aria-current="page"] {
  opacity: 1;
  font-weight: 600;
}

/* Hamburger */
.nav-toggle {
  display: none;
  width: 28px;
  height: 28px;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s ease, top 0.3s ease, opacity 0.2s ease;
}

.nav-toggle span {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle span::before {
  top: -8px;
}

.nav-toggle span::after {
  top: 8px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 100px;
  background: var(--bg);
}

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

.hero--image {
  background:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.72) 40%,
      rgba(255, 255, 255, 0.35) 70%,
      rgba(255, 255, 255, 0.1) 100%
    ),
    url("../images/hero-bg.jpg") center/cover no-repeat;
  padding: 140px 0 160px;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero--image .hero__title,
.hero--image .hero__sub {
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

@media (max-width: 720px) {
  .hero--image {
    background:
      linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.96) 0%,
        rgba(255, 255, 255, 0.78) 45%,
        rgba(255, 255, 255, 0.45) 100%
      ),
      url("../images/hero-bg.jpg") center/cover no-repeat;
    padding: 72px 0 96px;
    min-height: 460px;
  }
}

.hero__title {
  font-size: clamp(40px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero__sub {
  font-size: clamp(19px, 2.2vw, 24px);
  color: var(--text-sub);
  font-weight: 400;
  max-width: 680px;
}

.hero__cta {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  line-height: 1;
  min-height: 48px;
}

.btn--primary {
  background: var(--accent);
  color: #ffffff;
}

.btn--primary:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  color: var(--text);
  transform: translateY(-2px);
  border-color: var(--text);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.btn--line {
  background: #06c755;
  color: #ffffff;
}

.btn--line:hover {
  color: #ffffff;
  background: #06b34d;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(6, 199, 85, 0.25);
}

.btn--line svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn--link {
  padding: 0;
  font-size: 17px;
  background: transparent;
  color: var(--link-hover);
  min-height: 0;
  border-radius: 0;
}

.btn--link::after {
  content: "›";
  margin-left: 4px;
  transition: transform 0.2s ease;
  display: inline-block;
}

.btn--link:hover::after {
  transform: translateX(4px);
}

/* ---------- Stats (実績数値) ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat {
  text-align: center;
}

.stat__num {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 12px;
}

.stat__label {
  font-size: 14px;
  color: var(--text-sub);
}

/* ---------- Feature card (main service) ---------- */
.feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature__heading {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

.feature__tag {
  display: inline-block;
  font-size: 13px;
  color: var(--text-sub);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 20px;
}

.feature__desc {
  font-size: 17px;
  color: var(--text-sub);
  margin-bottom: 24px;
}

.feature__price {
  font-size: 19px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 24px;
}

.feature__visual {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  font-size: 14px;
}

.feature__visual--portrait {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.feature__visual--portrait img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.feature__visual--portrait figcaption {
  font-size: 13px;
  color: var(--text-sub);
  text-align: center;
  line-height: 1.5;
}

/* ---------- Cards (other services) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  color: var(--text);
}

.card__title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.card__catch {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 20px;
}

.card__meta {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 16px;
}

.card__meta dt {
  font-weight: 600;
  color: var(--text);
  margin-top: 8px;
}

.card__meta dd {
  margin-left: 0;
}

.card__cta {
  margin-top: auto;
  padding-top: 16px;
}

/* ---------- CTA block ---------- */
.cta {
  text-align: center;
  padding: var(--section-y) 0;
  background: var(--bg-alt);
}

.cta__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

.cta__desc {
  font-size: 19px;
  color: var(--text-sub);
  margin-bottom: 36px;
}

/* ---------- Check list (悩みリスト) ---------- */
.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 40px;
  max-width: 900px;
}

.checklist li {
  padding-left: 32px;
  position: relative;
  font-size: 17px;
  line-height: 1.6;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--text);
  border-radius: 50%;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='none' stroke='%231d1d1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5 10l3.5 3.5L15 7'/></svg>") center / 14px no-repeat;
}

/* ---------- Steps (依頼の流れ) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: step;
}

.step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 28px 20px;
  text-align: center;
  counter-increment: step;
  position: relative;
}

.step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.step__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step__desc {
  font-size: 13px;
  color: var(--text-sub);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 860px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.faq__item:first-child {
  border-top: 1px solid var(--border);
}

.faq__q {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
}

.faq__q::before {
  content: "Q.";
  color: var(--link-hover);
  font-weight: 700;
}

.faq__a {
  font-size: 16px;
  color: var(--text-sub);
  display: flex;
  gap: 12px;
}

.faq__a::before {
  content: "A.";
  color: var(--text);
  font-weight: 700;
}

/* ---------- Price table (service) ---------- */
.priceblock {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 640px;
}

.priceblock__main {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.priceblock__note {
  color: var(--text-sub);
  font-size: 15px;
}

/* ---------- Profile layout ---------- */
.profile {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}

.profile__icon {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
}

.profile__icon svg {
  width: 72px;
  height: 72px;
}

.profile__icon--photo {
  overflow: hidden;
  padding: 0;
}

.profile__icon--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.profile__name {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.profile__name-en {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-sub);
  letter-spacing: 0.02em;
}

.profile__role {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 24px;
}

.profile__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 36px;
}

.profile__table th,
.profile__table td {
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  vertical-align: top;
}

.profile__table th {
  width: 160px;
  font-weight: 600;
  color: var(--text-sub);
}

/* ---------- Contact form ---------- */
.form {
  max-width: 640px;
  margin: 0 auto;
}

.form__field {
  margin-bottom: 32px;
}

.form__label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}

.form__label .required {
  color: #e11d1d;
  margin-left: 4px;
  font-size: 12px;
}

.form__label .optional {
  color: var(--text-sub);
  margin-left: 4px;
  font-size: 12px;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--link-hover);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.form__textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.6;
}

.form__select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='%236e6e73' d='M5 8l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  padding-right: 44px;
}

.form__error {
  display: block;
  color: #e11d1d;
  font-size: 13px;
  margin-top: 6px;
  min-height: 1em;
}

.form__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text);
}

.form__check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.form__honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.form__submit {
  min-width: 240px;
}

.form__submit[data-loading="true"] {
  opacity: 0.6;
  pointer-events: none;
}

.form__loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: -3px;
  display: none;
}

.form__submit[data-loading="true"] .form__loader {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form__message {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  display: none;
}

.form__message.is-visible {
  display: block;
}

.form__message h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
}

.form__message p {
  color: var(--text-sub);
}

.form__global-error {
  display: none;
  padding: 14px 16px;
  background: #fff4f4;
  color: #b40b0b;
  border: 1px solid #f3c1c1;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 24px;
}

.form__global-error.is-visible {
  display: block;
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 820px;
  margin: 0 auto;
}

.legal h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 12px;
}

.legal p,
.legal li {
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}

.legal dl {
  display: grid;
  grid-template-columns: 200px 1fr;
  row-gap: 14px;
  column-gap: 24px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 20px;
}

.legal dt {
  font-weight: 600;
}

.legal dd {
  color: var(--text);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
  font-size: 13px;
  color: var(--text-sub);
}

.site-footer__inner {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}

.site-footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------- Fade-in animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
  .fade-in {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  :root {
    --section-y: 80px;
  }

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

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

  .feature {
    grid-template-columns: 1fr;
    padding: 40px;
    gap: 32px;
  }

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

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

  .profile {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .profile__icon {
    margin: 0 auto;
  }

  .profile__table th,
  .profile__table td {
    text-align: left;
  }

  .legal dl {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }

  .legal dt {
    margin-top: 12px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
    z-index: 101;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    padding: 20px 0;
  }

  .site-nav[data-open="true"] {
    transform: translateY(0);
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .site-nav__list li {
    width: 100%;
  }

  .site-nav__link {
    display: block;
    padding: 16px 24px;
    font-size: 17px;
    border-bottom: 1px solid var(--border);
    opacity: 1;
  }

  .site-header__inner {
    padding: 0 20px;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .feature {
    padding: 28px;
  }

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

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
