/* ==========================================================================
   F Production Corporate Site — 光のエディトリアル Design System
   紙白 × 深藍 × アンティークゴールド / 明朝の大見出し × 余白
   ========================================================================== */

:root {
  /* Colors */
  --paper: #FAF7F1;
  --paper-alt: #F0EADC;
  --surface: #FFFFFF;
  --ink: #1C2230;
  --ink-sub: #5C6270;
  --indigo: #26355F;
  --indigo-deep: #1B2647;
  --gold: #A5854A;
  --gold-soft: #C9B078;
  --gold-gradient: linear-gradient(115deg, #8C6D38 0%, #B9995C 55%, #8C6D38 100%);
  --hairline: rgba(28, 34, 48, 0.14);
  --hairline-faint: rgba(28, 34, 48, 0.08);

  /* Type */
  --font-display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-brush: "Yuji Mai", "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --font-latin: "Cormorant Garamond", "Shippori Mincho", serif;
  --font-body: "Noto Sans JP", sans-serif;

  /* Layout */
  --header-height: 84px;
  --container-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: rgba(165, 133, 74, 0.24);
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* --------------------------------------------------------------------------
   Background — editorial column rules on paper
   -------------------------------------------------------------------------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(28, 34, 48, 0.045) 1px, transparent 1px);
  background-size: clamp(120px, 20vw, 236px) 100%;
  background-position: center top;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   Section label / heading pattern
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  padding-block: clamp(80px, 12vw, 150px);
  background-color: var(--paper);
}

.section--alt {
  background-color: var(--paper-alt);
  z-index: 2;
}

/* 破れた和紙の縁 — セクション境界の墨のにじみエッジ */
.section--alt::before,
.section--alt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 23px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 24' preserveAspectRatio='none'%3E%3Cpath fill='%23F0EADC' d='M0,13 L26,9 L48,15 L74,7 L102,12 L134,17 L166,10 L198,14 L228,6 L262,11 L296,16 L330,8 L362,13 L398,18 L430,10 L462,14 L494,7 L526,12 L560,16 L592,9 L624,13 L656,6 L690,11 L722,15 L754,8 L786,12 L820,17 L852,9 L884,13 L916,7 L948,12 L982,16 L1014,8 L1046,13 L1078,18 L1110,10 L1142,14 L1174,8 L1200,12 L1200,24 L0,24 Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  pointer-events: none;
}

.section--alt::before {
  top: -22px;
}

.section--alt::after {
  bottom: -22px;
  transform: scaleY(-1);
}

/* 漆黒の墨セクション — 紙のページに挟まる「墨の見開き」 */
.section--dark {
  background-color: #151923;
  z-index: 2;
}

.section--dark::before,
.section--dark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 23px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 24' preserveAspectRatio='none'%3E%3Cpath fill='%23151923' d='M0,13 L26,9 L48,15 L74,7 L102,12 L134,17 L166,10 L198,14 L228,6 L262,11 L296,16 L330,8 L362,13 L398,18 L430,10 L462,14 L494,7 L526,12 L560,16 L592,9 L624,13 L656,6 L690,11 L722,15 L754,8 L786,12 L820,17 L852,9 L884,13 L916,7 L948,12 L982,16 L1014,8 L1046,13 L1078,18 L1110,10 L1142,14 L1174,8 L1200,12 L1200,24 L0,24 Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  pointer-events: none;
}

.section--dark::before {
  top: -22px;
}

.section--dark::after {
  bottom: -22px;
  transform: scaleY(-1);
}

.section--dark .section-title {
  color: #F4EFE5;
}

.section--dark .section-lead {
  color: rgba(244, 239, 229, 0.62);
}

.section--dark .card {
  background-color: #1C2130;
  border-color: rgba(201, 176, 120, 0.16);
  box-shadow: none;
}

.section--dark .card:hover {
  border-color: rgba(201, 176, 120, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.section--dark .card__title {
  color: #F4EFE5;
}

.section--dark .card__text {
  color: rgba(244, 239, 229, 0.6);
}

.section--dark .badge {
  background: rgba(201, 176, 120, 0.07);
}

.section-head {
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.section-label::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.text-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-lead {
  margin-top: 22px;
  max-width: 640px;
  color: var(--ink-sub);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 2.1;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 300; /* above .nav-overlay (200) so the hamburger stays tappable */
  display: flex;
  align-items: center;
  background-color: transparent;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background-color: rgba(250, 247, 241, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline-faint);
}

.site-header__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.16em;
  white-space: nowrap;
  color: var(--ink);
}

.logo .logo-f {
  color: var(--gold);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

.site-nav__list {
  display: none;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

@media (min-width: 900px) {
  .site-nav__list {
    display: flex;
  }
}

.site-nav__list a {
  font-family: var(--font-latin);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-sub);
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 3px;
}

.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.site-nav__list a:hover {
  color: var(--ink);
}

.site-nav__list a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* CTA button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 2px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  position: relative;
  background: var(--indigo-deep);
  color: #F7F3EA;
  box-shadow: 0 10px 28px rgba(27, 38, 71, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(247, 243, 234, 0.28);
  border-radius: 1px;
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--indigo);
  box-shadow: 0 14px 34px rgba(27, 38, 71, 0.26);
}

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

.header-cta {
  display: none;
}

@media (min-width: 900px) {
  .header-cta {
    display: inline-flex;
  }
}

/* Hamburger */
.hamburger {
  position: relative;
  z-index: 210;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 2px;
}

@media (min-width: 900px) {
  .hamburger {
    display: none;
  }
}

.hamburger__box {
  position: relative;
  width: 20px;
  height: 14px;
}

.hamburger__line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.hamburger__line:nth-child(1) {
  top: 0;
}

.hamburger__line:nth-child(2) {
  top: 6px;
}

.hamburger__line:nth-child(3) {
  top: 12px;
}

.hamburger.is-active .hamburger__line:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.hamburger.is-active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active .hamburger__line:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

/* Mobile nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-overlay__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.nav-overlay__list a {
  font-family: var(--font-latin);
  font-size: clamp(1.5rem, 6vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink);
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 900px) {
  .nav-overlay {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Hero — magazine cover
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

/* Inner hairline frame, like the trim of a printed cover */
.hero::after {
  content: "";
  position: absolute;
  inset: clamp(14px, 2.6vw, 32px);
  border: 1px solid var(--hairline-faint);
  pointer-events: none;
}

.hero__orb-a {
  width: 640px;
  height: 640px;
  top: -220px;
  right: -140px;
  background: radial-gradient(circle, rgba(201, 176, 120, 0.22), transparent 70%);
}

.hero__orb-b {
  width: 480px;
  height: 480px;
  bottom: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(38, 53, 95, 0.10), transparent 70%);
}

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

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-latin);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 36px;
}

.hero__label::before {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6.8vw, 5rem);
  line-height: 1.34;
  letter-spacing: 0.035em;
  color: var(--ink);
  max-width: 22ch;
}

.hero__sub {
  margin-top: 36px;
  max-width: 600px;
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  line-height: 2.2;
  color: var(--ink-sub);
}

.hero__actions {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
}

.hero__secondary-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  position: relative;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--hairline);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.hero__secondary-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* --------------------------------------------------------------------------
   水墨画レイヤー — 開幕の墨・山霞・巨大な書・太筆の枝・飛沫
   -------------------------------------------------------------------------- */

/* 開幕: 画面を覆う墨が筆で拭い上げるように消える */
.ink-intro {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: #141821;
  transform: translateY(0);
  animation: intro-lift 1s 0.25s cubic-bezier(0.75, 0, 0.25, 1) forwards;
  pointer-events: none;
}

.ink-intro::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 24' preserveAspectRatio='none'%3E%3Cpath fill='%23141821' d='M0,13 L26,9 L48,15 L74,7 L102,12 L134,17 L166,10 L198,14 L228,6 L262,11 L296,16 L330,8 L362,13 L398,18 L430,10 L462,14 L494,7 L526,12 L560,16 L592,9 L624,13 L656,6 L690,11 L722,15 L754,8 L786,12 L820,17 L852,9 L884,13 L916,7 L948,12 L982,16 L1014,8 L1046,13 L1078,18 L1110,10 L1142,14 L1174,8 L1200,12 L1200,24 L0,24 Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  transform: scaleY(-1);
}

@keyframes intro-lift {
  to {
    transform: translateY(-115%);
  }
}

/* 薄墨の山霞 */
.hero__mount {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: clamp(120px, 26vh, 300px);
  z-index: 0;
  pointer-events: none;
  animation: fade-up 1.6s 1s ease both;
}

/* 巨大な書「集中」 */
.hero__kanji {
  position: absolute;
  right: clamp(12px, 5vw, 90px);
  top: 55%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.hero__kanji-text {
  writing-mode: vertical-rl;
  font-family: var(--font-brush);
  font-weight: 400;
  font-size: clamp(7rem, 26vmin, 17rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  color: #12161F;
  opacity: 0;
  transform: translateY(18px);
  animation: kanji-settle 1.6s 0.9s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

@keyframes kanji-settle {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__seal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #A63E2E;
  color: #F7F3EA;
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 1.4rem;
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(166, 62, 46, 0.3);
  transform: rotate(-2deg) scale(0);
  animation: seal-pop 0.5s 2.3s cubic-bezier(0.2, 1.6, 0.4, 1) forwards;
}

@keyframes seal-pop {
  to {
    transform: rotate(-2deg) scale(1);
  }
}

@media (max-width: 1100px) {
  .hero__kanji {
    right: 2vw;
  }

  .hero__kanji-text {
    opacity: 0.1;
  }

  .hero__seal {
    display: none;
  }
}

.hero__branch {
  position: absolute;
  top: calc(var(--header-height) - 64px);
  right: clamp(0px, 1vw, 20px);
  width: clamp(420px, 56vw, 900px);
  height: auto;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.hero__branch .trunk {
  fill: #20242F;
  opacity: 0.92;
}

.hero__branch .mask-draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-ink 1.3s 0.7s ease forwards;
}

.hero__branch .ink {
  fill: none;
  stroke: #23272F;
  stroke-linecap: round;
  opacity: 0.9;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-ink 0.9s ease forwards;
}

.hero__branch .ink-b1 { stroke-width: 7; animation-delay: 1.5s; }
.hero__branch .ink-b2 { stroke-width: 5; animation-delay: 1.75s; }
.hero__branch .ink-b3 { stroke-width: 4.5; animation-delay: 2.1s; animation-duration: 0.7s; }
.hero__branch .ink-b4 { stroke-width: 4; animation-delay: 1.95s; animation-duration: 0.7s; }
.hero__branch .ink-b5 { stroke-width: 3; animation-delay: 2.15s; animation-duration: 0.6s; }
.hero__branch .ink-b6 { stroke-width: 3.5; animation-delay: 1.65s; animation-duration: 0.8s; }
.hero__branch .ink-b7 { stroke-width: 2.5; animation-delay: 2.1s; animation-duration: 0.6s; }

@keyframes draw-ink {
  to {
    stroke-dashoffset: 0;
  }
}

.hero__branch .splat {
  fill: #23272F;
  opacity: 0.85;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  animation: splat-pop 0.5s calc(var(--d) + 0.6s) cubic-bezier(0.2, 1.6, 0.4, 1) forwards;
}

@keyframes splat-pop {
  to {
    transform: scale(1);
  }
}

.hero__branch .blossom {
  transform: translate(var(--tx), var(--ty)) rotate(var(--r)) scale(0);
  animation: bloom 0.85s calc(var(--d) + 0.6s) cubic-bezier(0.25, 1.5, 0.45, 1) forwards;
}

@keyframes bloom {
  to {
    transform: translate(var(--tx), var(--ty)) rotate(var(--r)) scale(var(--s));
  }
}

/* 「集中」への金のひと掃き */
.hero__title .text-gradient {
  position: relative;
}

.hero__title .text-gradient::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.03em;
  height: 0.16em;
  z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cfilter id='g' x='-20%25' y='-150%25' width='140%25' height='400%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.06 0.5' numOctaves='2' seed='5'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='10'/%3E%3C/filter%3E%3Crect x='2' y='6' width='196' height='8' fill='%23A5854A' filter='url(%23g)'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  opacity: 0.5;
  transform: scaleX(0);
  transform-origin: left;
  animation: paint-under 0.9s 2.6s cubic-bezier(0.3, 0.9, 0.4, 1) forwards;
}

@keyframes paint-under {
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 640px) {
  .hero__branch {
    width: 110vw;
    opacity: 0.45;
  }

  .hero__enso {
    display: none;
  }
}

/* Hero の段階的な立ち上がり */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__label { animation: fade-up 0.9s 0.65s ease both; }
.hero__title { animation: fade-up 1s 0.85s ease both; }
.hero__sub { animation: fade-up 1s 1.1s ease both; }
.hero__actions { animation: fade-up 1s 1.3s ease both; }

.scroll-indicator {
  position: absolute;
  right: clamp(28px, 5vw, 56px);
  bottom: 48px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.scroll-indicator__text {
  writing-mode: vertical-rl;
  font-family: var(--font-latin);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--ink-sub);
}

.scroll-indicator__line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-line 2.2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% {
    transform: scaleY(0.3);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  50.01% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0.3);
    transform-origin: bottom;
  }
}

@media (max-width: 640px) {
  .scroll-indicator {
    display: none;
  }

  .hero__label {
    font-size: 0.78rem;
    letter-spacing: 0.26em;
  }

  .hero__label::before {
    width: 28px;
  }
}

/* --------------------------------------------------------------------------
   Philosophy
   -------------------------------------------------------------------------- */
.philosophy__body {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 760px;
}

.philosophy__body p {
  color: var(--ink-sub);
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  line-height: 2.2;
}

.philosophy__declaration {
  position: relative;
  padding: 32px clamp(26px, 4vw, 44px);
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgba(165, 133, 74, 0.07), transparent 80%);
  color: var(--ink) !important;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 2 !important;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem) !important;
}

/* --------------------------------------------------------------------------
   AIDX (main service) — emphasized section
   -------------------------------------------------------------------------- */
.aidx {
  position: relative;
}

.aidx::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 12% 0%, rgba(201, 176, 120, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(38, 53, 95, 0.06), transparent 70%);
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 22px;
  border-radius: 2px;
  border: 1px solid var(--gold);
  background: rgba(255, 255, 255, 0.5);
  font-family: var(--font-latin);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin-bottom: 26px;
}

.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.aidx .section-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.aidx .section-lead {
  max-width: 700px;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}

.card-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 56px;
}

.card {
  position: relative;
  padding: clamp(30px, 3.2vw, 44px);
  background-color: var(--surface);
  border: 1px solid var(--hairline-faint);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(28, 34, 48, 0.04);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-soft);
  box-shadow: 0 18px 40px rgba(28, 34, 48, 0.08);
}

.card--accent {
  border-top: 2px solid var(--gold);
}

.card__number {
  font-family: var(--font-latin);
  font-style: italic;
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
  line-height: 1;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.7;
}

.card__text {
  color: var(--ink-sub);
  font-size: 0.94rem;
  line-height: 2.05;
}

/* --------------------------------------------------------------------------
   Services (other business)
   -------------------------------------------------------------------------- */
.services .card-grid {
  margin-top: 48px;
}

/* --------------------------------------------------------------------------
   Approach — numbered list layout
   -------------------------------------------------------------------------- */
.approach-list {
  display: flex;
  flex-direction: column;
  margin-top: 48px;
}

.approach-item {
  display: grid;
  grid-template-columns: minmax(64px, auto) 1fr;
  gap: clamp(20px, 4vw, 56px);
  padding-block: 44px;
  border-top: 1px solid var(--hairline);
}

.approach-item:last-child {
  border-bottom: 1px solid var(--hairline);
}

.approach-item__number {
  font-family: var(--font-latin);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  color: var(--gold);
  line-height: 1;
}

.approach-item__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  color: var(--ink);
}

.approach-item__text {
  color: var(--ink-sub);
  font-size: 0.97rem;
  line-height: 2.05;
  max-width: 620px;
}

@media (max-width: 560px) {
  .approach-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* --------------------------------------------------------------------------
   Company
   -------------------------------------------------------------------------- */
.company-table {
  margin-top: 48px;
  border-top: 1px solid var(--hairline);
}

.company-table__row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 24px;
  padding-block: 24px;
  border-bottom: 1px solid var(--hairline);
}

.company-table__row dt {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--ink-sub);
}

.company-table__row dd {
  font-size: 0.98rem;
  color: var(--ink);
  line-height: 1.9;
}

@media (max-width: 640px) {
  .company-table__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-lead {
  max-width: 640px;
  color: var(--ink-sub);
  font-size: clamp(0.98rem, 1.3vw, 1.06rem);
  line-height: 2.1;
  margin-top: 22px;
}

.contact-form {
  margin-top: 48px;
  display: grid;
  gap: 28px;
  max-width: 680px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-field label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.form-field .required-mark {
  color: var(--gold);
  margin-left: 8px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 15px 16px;
  background-color: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  color: var(--ink);
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(38, 53, 95, 0.08);
}

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

.form-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--indigo) 50%),
    linear-gradient(135deg, var(--indigo) 50%, transparent 50%);
  background-position: calc(100% - 22px) center, calc(100% - 16px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* Honeypot field — visually hidden but present for bots to fill */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--ink-sub);
  line-height: 1.7;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--indigo);
  flex-shrink: 0;
}

.form-checkbox a {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-submit {
  width: fit-content;
  padding-inline: 52px;
  padding-block: 17px;
  font-size: 0.98rem;
}

.form-note {
  margin-top: 28px;
  color: var(--ink-sub);
  font-size: 0.9rem;
}

.form-note a {
  color: var(--indigo);
}

.form-alert {
  margin-bottom: 28px;
  padding: 16px 20px;
  border-radius: 2px;
  border: 1px solid rgba(179, 38, 30, 0.35);
  background: rgba(179, 38, 30, 0.06);
  color: #A03028;
  font-size: 0.92rem;
  max-width: 680px;
}

/* --------------------------------------------------------------------------
   Footer — deep indigo anchor
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 1;
  padding-block: 64px 36px;
  background-color: var(--indigo-deep);
  color: rgba(247, 243, 234, 0.86);
  border-top: 2px solid var(--gold);
}

.site-footer .logo {
  color: #F7F3EA;
}

.site-footer .logo .logo-f {
  color: var(--gold-soft);
}

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

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 32px);
}

.site-footer__nav a {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: rgba(247, 243, 234, 0.62);
  transition: color 0.2s ease;
}

.site-footer__nav a:hover {
  color: #F7F3EA;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 30px;
  border-top: 1px solid rgba(247, 243, 234, 0.16);
  font-size: 0.82rem;
  color: rgba(247, 243, 234, 0.55);
}

.site-footer__legal a {
  color: rgba(247, 243, 234, 0.55);
}

.site-footer__legal a:hover {
  color: var(--gold-soft);
}

/* --------------------------------------------------------------------------
   Simple page (tokushoho / privacy / thanks)
   -------------------------------------------------------------------------- */
.page-hero {
  padding-top: calc(var(--header-height) + 72px);
  padding-bottom: 56px;
}

.page-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-latin);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

.page-hero__label::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.page-hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.legal-table {
  border-top: 1px solid var(--hairline);
  margin-bottom: 80px;
}

.legal-table__row {
  display: grid;
  grid-template-columns: minmax(140px, 240px) 1fr;
  gap: 24px;
  padding-block: 22px;
  border-bottom: 1px solid var(--hairline);
}

.legal-table__row dt {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink-sub);
}

.legal-table__row dd {
  font-size: 0.96rem;
  color: var(--ink);
  line-height: 1.9;
}

@media (max-width: 640px) {
  .legal-table__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.legal-content {
  padding-bottom: 100px;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--ink);
}

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

.legal-content p {
  color: var(--ink-sub);
  font-size: 0.96rem;
  line-height: 2.05;
  margin-bottom: 12px;
}

.legal-content ul {
  margin: 12px 0 20px;
  padding-left: 1.2em;
  list-style: disc;
}

.legal-content ul li {
  color: var(--ink-sub);
  font-size: 0.96rem;
  line-height: 1.9;
  margin-bottom: 6px;
}

/* Thanks page */
.thanks {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-height);
  padding-inline: 24px;
}

.thanks__label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-latin);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
}

.thanks__title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: clamp(1.55rem, 4vw, 2.3rem);
  margin-bottom: 20px;
}

.thanks__text {
  color: var(--ink-sub);
  font-size: 1rem;
  max-width: 480px;
  margin-bottom: 44px;
  line-height: 2;
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

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

/* 筆でひと掃きしたように見出しが現れる */
.reveal .section-title {
  -webkit-mask-image: linear-gradient(100deg, #000 46%, transparent 54%);
  mask-image: linear-gradient(100deg, #000 46%, transparent 54%);
  -webkit-mask-size: 250% 100%;
  mask-size: 250% 100%;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
}

.reveal.is-visible .section-title {
  animation: brush-wipe 1.1s 0.1s ease both;
}

@keyframes brush-wipe {
  from {
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
  }
  to {
    -webkit-mask-position: 0% 0;
    mask-position: 0% 0;
  }
}

/* 金の罫線が左から引かれる */
.reveal .section-label::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s ease 0.15s;
}

.reveal.is-visible .section-label::before {
  transform: scaleX(1);
}

/* 舞い落ちる金箔の花びら（js/ink.js が生成） */
.petal-canvas {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal .section-title {
    -webkit-mask-image: none;
    mask-image: none;
    animation: none;
  }

  .reveal .section-label::before {
    transform: none;
    transition: none;
  }

  .hero__label,
  .hero__title,
  .hero__sub,
  .hero__actions,
  .hero__mount {
    animation: none;
  }

  .ink-intro {
    display: none;
  }

  .hero__kanji-text {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero__seal {
    transform: rotate(-2deg) scale(1);
    animation: none;
  }

  .hero__branch .ink,
  .hero__branch .mask-draw {
    stroke-dashoffset: 0;
    animation: none;
  }

  .hero__branch .splat {
    transform: scale(1);
    animation: none;
  }

  .hero__title .text-gradient::after {
    transform: scaleX(1);
    animation: none;
  }

  .hero__branch .blossom {
    transform: translate(var(--tx), var(--ty)) rotate(var(--r)) scale(var(--s));
    animation: none;
  }

  .scroll-indicator__line {
    animation: none;
  }

  * {
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Contact form error notice (?error=1)
   -------------------------------------------------------------------------- */
.form-error-notice {
  max-width: 680px;
  margin: 0 auto 24px;
  padding: 14px 18px;
  border: 1px solid rgba(179, 38, 30, 0.35);
  border-radius: 2px;
  background: rgba(179, 38, 30, 0.06);
  color: #A03028;
  font-size: 0.9rem;
}
