/* ==========================================================
   Wecca Co., Ltd. — corporate site
   墨紺の地に寺院の金。日本とタイを継ぐ一本の金の糸。
   ========================================================== */

:root {
  --ink-0: #0b0e17;            /* 地 — 墨紺 */
  --ink-1: #10141f;            /* 面 — わずかに持ち上げた紺 */
  --ink-2: #151b2a;            /* カード面 */
  --gold: #c2a055;             /* 金 — 寺院の金 */
  --gold-bright: #e9cf8e;      /* 金の高光 */
  --ivory: #f3eee2;            /* 文字 — 象牙 */
  --mist: #9aa2b2;             /* 補助文字 */
  --silk: #47315a;             /* タイシルクの紫 — 背景の気配のみ */
  --line: rgba(243, 238, 226, 0.1);
  --line-gold: rgba(194, 160, 85, 0.32);

  --font-display: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-inscription: "Marcellus", "Times New Roman", serif;

  --w-content: 1080px;
  --w-narrow: 760px;
}

/* ---------- base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink-0);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 2;
  font-feature-settings: "palt";
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto; /* width/height属性は比率のヒントに留め、固定値にしない */
  display: block;
}

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

p a,
li a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-color: var(--line-gold);
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: rgba(194, 160, 85, 0.35);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--gold);
  color: var(--ink-0);
  padding: 0.6em 1.2em;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
}

/* ---------- type ---------- */

.eyebrow {
  font-family: var(--font-inscription);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 1em;
}

.eyebrow::after {
  content: "";
  width: 2.6em;
  height: 1px;
  background: var(--line-gold);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.5;
  letter-spacing: 0.06em;
  margin-top: 0.6em;
}

/* 見出しの1〜2文字だけの折返しを防ぐ(非対応ブラウザでは無視される) */
.section-title,
.hero__title,
.page-head__title,
.card__title,
.service__title,
.credo__words,
.cta__title {
  text-wrap: balance;
}

/* 語のまとまりでのみ折り返したい箇所に使う */
.nb {
  display: inline-block;
}

/* スマホでのみ有効になる改行 */
.br-sp {
  display: none;
}

@media (max-width: 720px) {
  .br-sp {
    display: inline;
  }
}

.section-lead {
  color: var(--mist);
  max-width: 40em;
  margin-top: 1.2em;
}

/* ---------- layout ---------- */

.container {
  width: min(var(--w-content), 100% - 3rem);
  margin-inline: auto;
}

.container--narrow {
  width: min(var(--w-narrow), 100% - 3rem);
  margin-inline: auto;
}

.section {
  padding-block: clamp(4.5rem, 10vw, 7.5rem);
}

.section--tint {
  background: var(--ink-1);
  border-block: 1px solid var(--line);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

/* blurは疑似要素に持たせる(backdrop-filterを.site-header自体に置くと
   position: fixedの包含ブロックになり、モバイルの全画面ナビが閉じ込められる) */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 14, 23, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header__inner {
  width: min(var(--w-content), 100% - 3rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7em;
}

.brand__mark {
  flex: none;
}

.brand__name {
  font-family: var(--font-inscription);
  font-size: 1.25rem;
  letter-spacing: 0.3em;
  color: var(--ivory);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.2em;
}

.site-nav a {
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  transition: color 0.25s ease;
}

.site-nav a:not(.btn) {
  color: var(--mist);
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn)[aria-current="page"] {
  color: var(--ivory);
}

.site-nav a:not(.btn)[aria-current="page"] {
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.2em;
}

.site-nav .btn {
  font-size: 0.88rem;
  padding: 0.6em 1.4em;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 60;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 22px;
  height: 1.5px;
  background: var(--ivory);
  transform: translateX(-50%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle span {
  top: 50%;
}

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

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

body.nav-open .nav-toggle span {
  background: transparent;
}

body.nav-open .nav-toggle span::before {
  transform: translateX(-50%) translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span::after {
  transform: translateX(-50%) translateY(-7px) rotate(-45deg);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--ink-0);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  padding: 0.9em 2.2em;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: filter 0.25s ease, transform 0.25s ease;
}

.btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn--ghost {
  background: none;
  color: var(--ivory);
  border: 1px solid rgba(243, 238, 226, 0.35);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.btn--ghost:hover {
  filter: none;
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 12vw, 9rem) 0;
  background:
    radial-gradient(58% 42% at 82% 96%, rgba(71, 49, 90, 0.4), transparent 70%),
    radial-gradient(46% 38% at 12% 0%, rgba(194, 160, 85, 0.09), transparent 70%),
    var(--ink-0);
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  line-height: 1.42;
  letter-spacing: 0.05em;
  margin-top: 0.7em;
}

.hero__lead {
  color: var(--mist);
  max-width: 36em;
  margin-top: 2em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin-top: 2.6em;
}

/* 金の糸 — 日本とタイを継ぐ橋 */

.bridge {
  position: relative;
  margin-top: clamp(3rem, 7vw, 5rem);
}

.bridge svg {
  display: block;
  width: 100%;
  height: auto;
}

.bridge__arc {
  fill: none;
  stroke: url(#goldSeam);
  stroke-width: 1.6;
}

.bridge__dot {
  fill: var(--gold-bright);
}

.bridge__labels {
  position: absolute;
  inset-inline: 0;
  bottom: clamp(0.6rem, 2vw, 1.4rem);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-inscription);
  font-size: clamp(0.62rem, 1.1vw, 0.78rem);
  letter-spacing: 0.22em;
  color: var(--mist);
}

.bridge__labels b {
  display: block;
  font-weight: 400;
  color: var(--gold);
}

@media (prefers-reduced-motion: no-preference) {
  .bridge__arc {
    stroke-dasharray: 1300;
    stroke-dashoffset: 1300;
    animation: seam 2.4s cubic-bezier(0.6, 0, 0.2, 1) 0.5s forwards;
  }

  .bridge__dot {
    opacity: 0;
    animation: dot-in 0.8s ease forwards;
  }

  .bridge__dot--jp {
    animation-delay: 2.5s;
  }

  .bridge__dot--th {
    animation-delay: 0.4s;
  }

  .hero .rise {
    opacity: 0;
    transform: translateY(1.2em);
    animation: rise 1s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
  }

  .hero .rise:nth-child(2) {
    animation-delay: 0.15s;
  }

  .hero .rise:nth-child(3) {
    animation-delay: 0.3s;
  }

  .hero .rise:nth-child(4) {
    animation-delay: 0.45s;
  }
}

@keyframes seam {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes dot-in {
  to {
    opacity: 1;
  }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- scroll reveal ---------- */

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

/* JSが動く環境でのみ初期非表示にする(no-JSでも内容が読めるように) */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(1.4em);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1);
  }

  html.js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- cards ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 3rem;
}

.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-top: 2px solid var(--line-gold);
  padding: 2.2rem 1.9rem 2.4rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

a.card:hover {
  border-top-color: var(--gold);
  transform: translateY(-3px);
}

.card__en {
  font-family: var(--font-inscription);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.6;
  margin-top: 0.7em;
}

.card__text {
  font-size: 0.92rem;
  color: var(--mist);
  margin-top: 1em;
  line-height: 1.9;
}

.card__more {
  display: inline-block;
  margin-top: 1.4em;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
}

/* ---------- 理念 ---------- */

.credo {
  text-align: center;
}

.credo .eyebrow {
  justify-content: center;
}

.credo .eyebrow::after {
  display: none;
}

.credo__words {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 2;
  letter-spacing: 0.1em;
  margin-top: 1.6em;
}

.credo__text {
  color: var(--mist);
  max-width: 38em;
  margin: 2.4em auto 0;
  text-align: left;
}

/* ---------- 定義表(会社概要) ---------- */

.facts {
  margin-top: 2.6rem;
  border-top: 1px solid var(--line);
}

.facts > div {
  display: grid;
  grid-template-columns: 11em 1fr;
  gap: 1.5em;
  padding: 1.3em 0.4em;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  padding-top: 0.15em;
}

.facts dd {
  line-height: 1.9;
}

/* ---------- services ---------- */

.service {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.service + .service {
  border-top: 1px solid var(--line);
}

.service__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  line-height: 1.6;
  margin-top: 0.6em;
}

.service__text {
  color: var(--mist);
  margin-top: 1.4em;
  font-size: 0.95rem;
}

.service__list {
  list-style: none;
  display: grid;
  gap: 0.9em;
  align-content: start;
}

.service__list li {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 1em 1.4em 1em 2.6em;
  font-size: 0.95rem;
  line-height: 1.8;
}

.service__list li::before {
  content: "";
  position: absolute;
  left: 1.2em;
  top: 1.85em;
  width: 0.55em;
  height: 1px;
  background: var(--gold);
}

/* ---------- ご相談の流れ(実際の手順なので番号を使う) ---------- */

.steps {
  counter-reset: step;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-top: 3rem;
}

.steps li {
  counter-increment: step;
  border-top: 1px solid var(--line-gold);
  padding-top: 1.4em;
}

.steps li::before {
  content: "0" counter(step);
  font-family: var(--font-inscription);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.steps h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 0.6em;
}

.steps p {
  font-size: 0.88rem;
  color: var(--mist);
  margin-top: 0.7em;
  line-height: 1.9;
}

/* ---------- 代表メッセージ ---------- */

.message {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2.4rem, 5vw, 4.5rem);
  align-items: start;
  margin-top: 3rem;
}

.message__figure {
  position: relative;
}

.message__figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  filter: saturate(0.92);
}

.message__figure::after {
  content: "";
  position: absolute;
  inset: 1rem -1rem auto 1rem;
  height: calc(100% - 1rem);
  border: 1px solid var(--line-gold);
  z-index: 0;
}

.message__figure figcaption {
  margin-top: 1.6rem;
  font-size: 0.85rem;
  color: var(--mist);
}

.message__figure figcaption b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: 0.1em;
}

.message__body p + p {
  margin-top: 1.6em;
}

.message__body .lead-line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.9;
  letter-spacing: 0.08em;
}

/* ---------- CTA帯 ---------- */

.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(4.5rem, 9vw, 7rem);
  background:
    radial-gradient(50% 60% at 50% 100%, rgba(194, 160, 85, 0.12), transparent 75%),
    var(--ink-1);
  border-top: 1px solid var(--line);
}

.cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.7;
}

.cta__text {
  color: var(--mist);
  max-width: 36em;
  margin: 1.4em auto 0;
}

.cta .btn {
  margin-top: 2.4em;
}

.cta__mail {
  display: block;
  margin-top: 1.6em;
  font-family: var(--font-inscription);
  letter-spacing: 0.16em;
  color: var(--mist);
  font-size: 0.9rem;
}

/* ---------- 下層ページ共通 ---------- */

.page-head {
  padding-block: clamp(4rem, 9vw, 6.5rem) clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(46% 60% at 88% 0%, rgba(71, 49, 90, 0.28), transparent 70%),
    var(--ink-0);
  border-bottom: 1px solid var(--line);
}

.page-head__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.5;
  letter-spacing: 0.06em;
  margin-top: 0.5em;
}

.page-head__lead {
  color: var(--mist);
  max-width: 40em;
  margin-top: 1.4em;
}

/* ---------- contact ---------- */

.contact-panel {
  margin-top: 3rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-top: 2px solid var(--line-gold);
  padding: clamp(2.2rem, 5vw, 3.6rem);
  text-align: center;
}

.contact-panel__mail {
  font-family: var(--font-inscription);
  font-size: clamp(1.15rem, 3vw, 1.7rem);
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  word-break: break-all;
}

.contact-panel__note {
  color: var(--mist);
  font-size: 0.92rem;
  max-width: 34em;
  margin: 1.6em auto 0;
  text-align: left;
}

.contact-panel .btn {
  margin-top: 2em;
}

/* ---------- privacy 等の記事 ---------- */

.prose {
  margin-top: 2.5rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.7;
  margin-top: 2.8em;
  padding-left: 0.9em;
  border-left: 2px solid var(--gold);
}

.prose p {
  margin-top: 1.2em;
  color: rgba(243, 238, 226, 0.88);
}

.prose ul,
.prose ol {
  margin-top: 1.2em;
  padding-left: 1.6em;
  color: rgba(243, 238, 226, 0.88);
}

.prose li {
  margin-top: 0.5em;
}

.prose .updated {
  color: var(--mist);
  font-size: 0.88rem;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3.5rem 2.5rem;
  background: var(--ink-0);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer .brand__name {
  font-size: 1.05rem;
}

.site-footer__addr {
  font-style: normal;
  color: var(--mist);
  font-size: 0.85rem;
  line-height: 2;
  margin-top: 1.2em;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8em 1.8em;
  font-size: 0.88rem;
}

.site-footer nav a {
  white-space: nowrap;
}

.site-footer nav a {
  color: var(--mist);
  transition: color 0.25s ease;
}

.site-footer nav a:hover {
  color: var(--ivory);
}

.site-footer__legal {
  width: 100%;
  margin-top: 2.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em 2em;
  justify-content: space-between;
  color: var(--mist);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

/* ---------- 404 ---------- */

.notfound {
  min-height: 55vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding-block: 5rem;
}

.notfound__code {
  font-family: var(--font-inscription);
  font-size: 4.5rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.notfound p {
  color: var(--mist);
  margin-top: 1em;
}

.notfound .btn {
  margin-top: 2.5em;
  justify-self: center;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

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

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

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

  .message__figure {
    max-width: 340px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .site-header__inner {
    height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    flex-direction: column;
    justify-content: center;
    gap: 2.4em;
    background: rgba(11, 14, 23, 0.96);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  body.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    font-size: 1.1rem;
  }

  .facts > div {
    grid-template-columns: 1fr;
    gap: 0.3em;
  }

  .facts dt {
    font-size: 0.8rem;
  }

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

  .credo__words {
    font-size: 1.3rem;
    letter-spacing: 0.07em;
  }

  .message__body .lead-line {
    font-size: 1.1rem;
  }

  .cta__title {
    font-size: 1.35rem;
  }

  .site-footer__inner {
    flex-direction: column;
  }

  .site-footer__legal {
    flex-direction: column;
  }
}
