/* =========================================================
   LOCO Inc. Corporate Site
   ---------------------------------------------------------
   1. Tokens       5. Hero          9.  Message
   2. Base         6. Section parts 10. Company
   3. Header       7. About         11. Contact
   4. Nav (SP)     8. Service       12. Footer / Privacy / Motion
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* ブランドカラー（依頼書指定） */
  --c-white: #FAF9F6;   /* メイン */
  --c-beige: #E8DFD3;   /* サブ */
  --c-greige: #B8AEA3;  /* アクセント（線・装飾用） */
  --c-text: #383838;    /* 文字色 */
  --c-light: #F2F2F0;   /* 補助背景 */

  /* 派生色 */
  --c-sub: #625C56;                    /* 補助テキスト（白・ベージュ上でも読める濃さ） */
  --c-line: rgba(56, 56, 56, 0.14);
  --c-line-strong: rgba(56, 56, 56, 0.32);
  --c-error: #9A3B32;
  --c-field-border: #8C867F;           /* 入力欄の枠（背景に対して3:1以上） */

  --f-en: "Jost", "Helvetica Neue", Arial, sans-serif;
  /* 本文は端末標準のゴシック（Webフォントを読み込まないので表示が速い） */
  --f-ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", YuGothic, "Noto Sans JP", Meiryo, sans-serif;
  --f-mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --header-h: 84px;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1200px;
  --section-pad: clamp(104px, 13vw, 184px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-text);
  font-family: var(--f-ja);
  font-size: clamp(14px, 0.85rem + 0.15vw, 15.5px);
  line-height: 2.05;
  letter-spacing: 0.06em;
  /* 日本語を文節で改行（Chrome系はCSSだけで有効。Safari等は linebreak.js が担当） */
  word-break: auto-phrase;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* linebreak.js が処理した要素：<wbr> の位置でだけ改行し、収まらない長い語は折り返す */
.is-phrased {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }

::selection { background: var(--c-beige); }

:focus-visible { outline: 2px solid var(--c-text); outline-offset: 4px; }

.container {
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--c-text);
  color: var(--c-white);
  font-size: 13px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* 写真のトーンを白・ベージュの世界観にそろえる */
.photo { overflow: hidden; background: var(--c-beige); }
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.68) sepia(0.08) contrast(0.96) brightness(1.02);
}

/* ---------- 3. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: border-color 0.5s var(--ease), height 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
/* 背景のぼかしは ::before に持たせる。
   ヘッダー本体に backdrop-filter を付けると、中のスマホメニュー（position: fixed）が
   ヘッダーの高さに閉じ込められてしまうため */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(250, 249, 246, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.site-header.is-scrolled,
.site-header.is-solid { border-bottom-color: var(--c-line); }
.site-header.is-scrolled::before,
.site-header.is-solid::before { opacity: 1; }
.site-header.is-scrolled { --header-h: 68px; }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
}

.logo {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  text-decoration: none;
  line-height: 1;
  padding-block: 12px;
}
.logo-en {
  font-family: var(--f-en);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.34em;
  margin-right: -0.34em;
}
.logo-ja {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-sub);
}

.global-nav-list {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
}
.global-nav a {
  position: relative;
  display: block;
  text-decoration: none;
  font-family: var(--f-en);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  line-height: 1;
  padding-block: 10px;
}
.global-nav a .ja { display: none; }
.global-nav li:not(.nav-contact) a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.global-nav li:not(.nav-contact) a:hover::after,
.global-nav li:not(.nav-contact) a[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-contact a {
  padding: 14px 28px;
  border: 1px solid var(--c-text);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.nav-contact a:hover { background: var(--c-text); color: var(--c-white); }

.menu-toggle { display: none; }

/* ---------- 4. Nav (SP / Tablet) ---------- */
@media (max-width: 960px) {
  :root { --header-h: 68px; }

  .logo-ja { display: none; }

  .menu-toggle {
    position: relative;
    z-index: 2;
    display: block;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .menu-toggle span {
    position: absolute;
    left: 10px;
    width: 24px;
    height: 1px;
    background: var(--c-text);
    transition: transform 0.45s var(--ease), top 0.45s var(--ease);
  }
  .menu-toggle span:nth-child(1) { top: 18px; }
  .menu-toggle span:nth-child(2) { top: 26px; }
  .menu-open .menu-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

  .global-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    padding: var(--header-h) var(--gutter) 40px;
    background: var(--c-white);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
  }
  .menu-open .global-nav {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s var(--ease), visibility 0s;
  }
  .menu-open { overflow: hidden; }
  .menu-open .site-header { border-bottom-color: transparent; }
  .menu-open .site-header::before { opacity: 0; }

  .global-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .global-nav-list li { border-bottom: 1px solid var(--c-line); }
  .global-nav a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 19px 0;
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 0.14em;
  }
  .global-nav a .ja {
    display: inline;
    font-family: var(--f-ja);
    font-size: 13px;
    letter-spacing: 0.14em;
    color: var(--c-sub);
  }
  .global-nav li:not(.nav-contact) a::after { display: none; }
  .nav-contact { border-bottom: 0 !important; margin-top: 28px; }
  .nav-contact a { padding: 20px 24px; }
  .global-nav { overflow-y: auto; }
  .nav-contact a:hover .ja { color: inherit; }
}

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  min-height: max(640px, 100svh);
  padding-top: var(--header-h);
}
/* 背面のライトグレーのブロック（奥行き用） */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  bottom: 0;
  width: 52%;
  height: 18%;
  background: var(--c-light);
}

.hero-media {
  grid-column: 2;
  grid-row: 1;
  margin-bottom: 88px;
}
.hero-media img { animation: hero-zoom 2.6s var(--ease) both; }

.hero-content {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  padding: 40px clamp(28px, 4.5vw, 80px) 88px var(--gutter);
}
.hero-label {
  font-family: var(--f-en);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--c-sub);
  margin-bottom: clamp(28px, 4vw, 48px);
}
/* 幅が足りないときは「LOCO Inc. —」の後ろでだけ折り返す（単語が1つだけ次の行に落ちないように） */
.hero-label span { white-space: nowrap; }
.hero-title {
  font-family: var(--f-mincho);
  font-weight: 500;
  font-size: clamp(32px, 4.1vw, 62px);
  line-height: 1.55;
  letter-spacing: 0.12em;
  font-feature-settings: "palt";
  white-space: nowrap;
}
.hero-title span { display: block; }
.hero-en {
  margin-top: 20px;
  font-family: var(--f-en);
  font-weight: 300;
  font-size: clamp(14px, 1.15vw, 17px);
  letter-spacing: 0.1em;
  color: var(--c-sub);
}
.hero-text {
  margin-top: clamp(32px, 4vw, 52px);
  max-width: 30em;
  font-size: 14px;
  line-height: 2.2;
}
.hero-text p + p { margin-top: 0.8em; }

.hero-fields {
  position: absolute;
  right: var(--gutter);
  bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 0;
  font-family: var(--f-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--c-sub);
}
.hero-fields span + span::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  margin: 0 14px;
  vertical-align: middle;
  background: var(--c-greige);
}

.scroll-indicator {
  position: absolute;
  left: var(--gutter);
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-family: var(--f-en);
  font-size: 11px;
  letter-spacing: 0.28em;
  writing-mode: vertical-rl;
  color: var(--c-sub);
}
.scroll-indicator::after {
  content: "";
  width: 1px;
  height: 72px;
  background: linear-gradient(var(--c-text), var(--c-text)) no-repeat top / 1px 100%;
  background-color: var(--c-line);
  animation: scroll-line 2.4s var(--ease) infinite;
}

/* Hero 登場アニメーション */
.hero-title span, .hero-text {
  animation: fade-up 1.4s var(--ease) both;
}
.hero-title span:nth-child(1) { animation-delay: 0.4s; }
.hero-title span:nth-child(2) { animation-delay: 0.6s; }
.hero-text { animation-delay: 1s; }

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero::before { width: 100%; height: 30%; }
  .hero-media {
    grid-column: 1;
    grid-row: 1;
    height: min(58svh, 520px);
    margin: 8px 0 0 var(--gutter);
  }
  .hero-content {
    grid-column: 1;
    grid-row: 2;
    padding: 48px var(--gutter) 72px;
  }
  .hero-label { margin-bottom: 24px; }
  .hero-title { font-size: clamp(28px, 8.2vw, 44px); }
  .hero-fields {
    position: static;
    grid-row: 3;
    justify-content: flex-start;
    padding: 0 var(--gutter) 64px;
    font-size: 11px;
  }
  .hero-fields span + span::before { width: 12px; margin: 0 10px; }
  .scroll-indicator { display: none; }
}

/* ---------- 6. Section parts ---------- */
.section { padding-block: var(--section-pad); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}

.section-head { margin-bottom: 0; }
.section-en {
  font-family: var(--f-en);
  font-weight: 300;
  font-size: clamp(52px, 7.4vw, 104px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-left: -0.04em;
}
.section-ja {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--c-sub);
}
.section-ja::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--c-greige);
}

.headline {
  font-family: var(--f-mincho);
  font-weight: 500;
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1.7;
  letter-spacing: 0.1em;
  font-feature-settings: "palt";
}
.headline-sm { font-size: clamp(22px, 2.2vw, 30px); }

.body-text { margin-top: clamp(32px, 4vw, 48px); max-width: 36em; }
.body-text p + p { margin-top: 1.2em; }

.lead {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 2.1;
  max-width: 32em;
  padding-top: clamp(0px, 3vw, 44px);
}

.mark {
  font-weight: 700;
  background: linear-gradient(transparent 62%, var(--c-beige) 62%);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-en);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: var(--c-sub);
}
.eyebrow span {
  font-family: var(--f-ja);
  font-size: 12.5px;
  letter-spacing: 0.16em;
}
.eyebrow span::before {
  content: "/";
  margin-right: 14px;
  color: var(--c-greige);
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .lead { padding-top: 0; }
}

/* ---------- 7. About ---------- */
.about-visual {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-top: clamp(80px, 10vw, 150px);
}
.about-photo {
  grid-column: 4 / -1;
  grid-row: 1;
  aspect-ratio: 16 / 9;
}
.philosophy {
  grid-column: 1 / 7;
  grid-row: 1;
  align-self: end;
  position: relative;
  margin-bottom: -96px;
  padding: clamp(36px, 4.5vw, 64px);
  background: var(--c-beige);
}
.eyebrow-ja {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
}
.eyebrow-ja::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--c-text);
}
.philosophy-copy {
  margin-top: 24px;
  font-family: var(--f-mincho);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.7;
  letter-spacing: 0.1em;
  font-feature-settings: "palt";
}
.philosophy-en {
  margin-top: 10px;
  font-family: var(--f-en);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--c-sub);
}
.philosophy-text {
  margin-top: 24px;
  font-size: 14px;
  max-width: 28em;
}
.about { padding-bottom: calc(var(--section-pad) + 96px); }

@media (max-width: 900px) {
  .about-visual { display: block; }
  .about-photo { aspect-ratio: 4 / 3; margin-right: calc(var(--gutter) * -1); }
  .philosophy { margin: -48px 0 0 0; width: calc(100% - 16px); }
  .about { padding-bottom: var(--section-pad); }
}

/* ---------- 8. Service ---------- */
.service { background: var(--c-light); }

.service-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(64px, 8vw, 112px);
  border-top: 1px solid var(--c-line-strong);
}
.service-index li + li { border-left: 1px solid var(--c-line); }
.service-index a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 30px clamp(16px, 2vw, 28px) 56px;
  text-decoration: none;
  transition: background-color 0.4s var(--ease);
}
.service-index a:hover { background: var(--c-white); }
.idx-num {
  font-family: var(--f-en);
  font-weight: 300;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--c-greige);
}
.idx-ja {
  word-break: keep-all;
  margin-top: 8px;
  font-size: clamp(16px, 1.45vw, 19px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
}
.idx-catch {
  font-size: 13px;
  line-height: 1.8;
  color: var(--c-sub);
}
/* 右下の矢印（該当事業へ移動できることを示す） */
.idx-arrow {
  position: absolute;
  right: clamp(16px, 2vw, 28px);
  bottom: 24px;
  width: 22px;
  height: 1px;
  background: var(--c-text);
  transition: transform 0.4s var(--ease);
}
.idx-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 1px;
  background: var(--c-text);
  transform: rotate(35deg);
  transform-origin: right center;
}
.service-index a:hover .idx-arrow { transform: translateX(6px); }

.service-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
  margin-top: clamp(96px, 11vw, 168px);
  scroll-margin-top: 32px; /* ヘッダー分は html の scroll-padding-top が確保 */
}
.service-item:nth-of-type(even) .service-media { order: 2; }

.service-media { aspect-ratio: 5 / 4; }

.service-num {
  font-family: var(--f-en);
  font-weight: 300;
  font-size: clamp(56px, 6vw, 84px);
  line-height: 1;
  color: var(--c-greige);
  letter-spacing: 0.02em;
}
.service-en {
  margin-top: 20px;
  font-family: var(--f-en);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-sub);
}
.service-name {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.1em;
}
.service-name::before {
  content: "";
  flex: none;
  width: 28px;
  height: 2px;
  background: var(--c-text);
}
.service-catch {
  margin-top: 20px;
  font-family: var(--f-mincho);
  font-weight: 500;
  font-size: clamp(19px, 1.9vw, 25px);
  line-height: 1.7;
  letter-spacing: 0.1em;
  font-feature-settings: "palt";
}
.service-text { margin-top: 24px; font-size: 14.5px; }
.service-text p + p { margin-top: 0.9em; }
.service-text strong { font-weight: 700; }

.service-list {
  margin-top: 32px;
  padding: 24px clamp(20px, 2.4vw, 32px) 26px;
  background: var(--c-white);
}
.service-list-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.service-list ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 28px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.9;
}
.service-list li {
  position: relative;
  padding-left: 18px;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 8px;
  height: 1px;
  background: var(--c-text);
}
.service-note {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--c-sub);
}

@media (max-width: 900px) {
  .service-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-index li:nth-child(3) { border-left: 0; }
  .service-index li:nth-child(n + 3) { border-top: 1px solid var(--c-line); }
  .service-item { grid-template-columns: 1fr; gap: 36px; }
  .service-item:nth-of-type(even) .service-media { order: 0; }
  .service-media { aspect-ratio: 3 / 2; }
}
@media (max-width: 520px) {
  .service-list ul { grid-template-columns: 1fr; }
  /* スマホは1列に。事業名が単語の途中で折り返さないように */
  .service-index { grid-template-columns: 1fr; }
  .service-index li + li { border-left: 0; border-top: 1px solid var(--c-line); }
  .service-index a {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 8px;
    row-gap: 4px;
    padding: 22px 44px 22px 4px;
  }
  .idx-num { grid-row: 1 / 3; font-size: 26px; padding-top: 2px; }
  .idx-ja { margin-top: 0; font-size: 17px; }
  .idx-arrow { right: 6px; bottom: auto; top: 50%; }
}

/* ---------- 9. Message ---------- */
.message-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(48px, 8vw, 140px);
  align-items: start;
}
.message-photo {
  aspect-ratio: 4 / 5;
  position: sticky;
  top: calc(var(--header-h) + 40px);
}
.message .headline { margin-top: clamp(48px, 6vw, 80px); }
.signature {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px 16px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--c-line);
  max-width: 36em;
}
.signature-company, .signature-title { font-size: 13px; color: var(--c-sub); letter-spacing: 0.14em; }
.signature-name {
  font-family: var(--f-mincho);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.24em;
}

@media (max-width: 900px) {
  .message-grid { grid-template-columns: 1fr; }
  .message-photo {
    position: static;
    order: 2;
    aspect-ratio: 3 / 2;
    margin-left: calc(var(--gutter) * -1);
  }
}

/* ---------- 10. Company ---------- */
.company { background: var(--c-light); }

.company-table { border-top: 1px solid var(--c-line-strong); }
.company-table .row {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr);
  gap: 16px;
  padding: 26px 0;
  border-bottom: 1px solid var(--c-line);
}
.company-table dt {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--c-sub);
}
.company-table dd { font-size: 14.5px; line-height: 1.9; }
.company-business li + li { margin-top: 2px; }

@media (max-width: 600px) {
  .company-table .row { grid-template-columns: 1fr; gap: 4px; padding: 22px 0; }
}

/* ---------- 11. Contact ---------- */
.contact { background: var(--c-beige); }

.contact-intro { margin-top: clamp(40px, 5vw, 64px); }
.contact-intro p:not(.headline) {
  margin-top: 20px;
  font-size: 14px;
  max-width: 28em;
}
.contact-intro .headline + p { margin-top: 28px; }

.contact-form,
.form-thanks {
  background: var(--c-white);
  padding: clamp(28px, 5vw, 64px);
}

.form-fields { display: grid; gap: 28px; }
.field label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
}
.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.08em;
  border: 1px solid var(--c-line-strong);
  color: var(--c-sub);
}
.badge-req { background: var(--c-text); border-color: var(--c-text); color: var(--c-white); }

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--c-field-border);
  border-radius: 0;
  font-size: 16px; /* iOSでのズーム防止 */
  line-height: 1.6;
  letter-spacing: 0.04em;
  transition: border-color 0.3s, background-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 180px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--c-text);
  outline-offset: -1px;
  border-color: var(--c-text);
}
.field [aria-invalid="true"] { border-color: var(--c-error) !important; }

.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 18px;
  top: calc(50% + 5px);
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--c-text);
  border-bottom: 1px solid var(--c-text);
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
}
.field select { padding-right: 44px; cursor: pointer; }

.field-error {
  min-height: 0;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-error);
}
.field-error:empty { display: none; }

.checkbox {
  display: flex !important;
  align-items: center;
  gap: 14px !important;
  font-weight: 400 !important;
  min-height: 48px;
  cursor: pointer;
}
.checkbox input {
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--c-text);
  flex-shrink: 0;
}
.checkbox a { text-underline-offset: 4px; padding-block: 12px; }

.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit { margin-top: 40px; }
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  padding: 22px 32px;
  background: var(--c-text);
  color: var(--c-white);
  border: 1px solid var(--c-text);
  cursor: pointer;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.btn-submit:hover:not(:disabled) { background: transparent; color: var(--c-text); }
.btn-submit:disabled { opacity: 0.5; cursor: wait; }
.btn-en { font-family: var(--f-en); font-size: 14px; letter-spacing: 0.3em; }
.btn-ja { font-size: 13px; letter-spacing: 0.14em; opacity: 0.85; }

.form-status {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.8;
}
.form-status:empty { display: none; }
.form-status.is-error { color: var(--c-error); }
.form-status.is-info {
  padding: 14px 16px;
  background: var(--c-light);
  border-left: 2px solid var(--c-greige);
}

.form-thanks { text-align: left; }
.form-thanks:focus { outline: none; }
.form-thanks-title {
  margin: 20px 0 12px;
  font-family: var(--f-mincho);
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: 0.1em;
}

/* ---------- 12. Footer ---------- */
.site-footer {
  background: var(--c-text);
  color: var(--c-white);
  padding: clamp(64px, 8vw, 104px) 0 32px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}
.logo-footer .logo-en { font-size: 30px; }
.footer-name {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--c-greige);
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
}
.footer-nav a {
  display: inline-block;
  padding-block: 14px; /* タップしやすい高さを確保 */
  font-family: var(--f-en);
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-decoration: none;
  color: var(--c-white);
  opacity: 0.85;
  transition: opacity 0.3s;
}
.footer-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.copyright {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 24px;
  border-top: 1px solid rgba(250, 249, 246, 0.16);
  font-family: var(--f-en);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--c-greige);
}
.copyright small { font-size: inherit; }

/* ---------- Privacy page ---------- */
.page-hero {
  padding: calc(var(--header-h) + clamp(64px, 9vw, 120px)) 0 clamp(48px, 6vw, 80px);
  background: var(--c-light);
}
.breadcrumb {
  display: flex;
  gap: 10px;
  margin-top: 32px;
  font-size: 13px;
  color: var(--c-sub);
}
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--c-greige); }
.breadcrumb a { text-decoration: none; display: inline-block; padding-block: 10px; }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb a:hover { text-decoration: underline; }

.policy {
  max-width: 760px;
  padding-block: clamp(64px, 8vw, 120px);
}
.policy > p { font-size: 14.5px; }
.policy h2 {
  margin-top: 56px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-line);
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.7;
}
.policy h2 + * { margin-top: 18px; }
.policy p + p, .policy p + ul, .policy ul + p { margin-top: 1em; }
.policy ul li {
  position: relative;
  padding-left: 1.2em;
  font-size: 14px;
}
.policy ul li::before { content: "・"; position: absolute; left: 0; }
.policy p { font-size: 14px; }
.policy .contact-box {
  margin-top: 18px;
  padding: 24px 28px;
  background: var(--c-light);
  font-size: 14px;
}
.policy .policy-date {
  margin-top: 56px;
  text-align: right;
  font-size: 13px;
  color: var(--c-sub);
}

/* ---------- Motion ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .photo.reveal { transform: none; }
.js .photo.reveal img { transform: scale(1.06); transition: transform 1.8s var(--ease); }
.js .photo.reveal.is-visible img { transform: scale(1); }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-zoom {
  from { opacity: 0; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes scroll-line {
  0% { background-size: 1px 0; background-position: top; }
  50% { background-size: 1px 100%; background-position: top; }
  51% { background-size: 1px 100%; background-position: bottom; }
  100% { background-size: 1px 0; background-position: bottom; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal, .js .photo.reveal img { opacity: 1; transform: none; }
}

/* 会社概要の電話番号（スマホでタップ発信） */
.tel-link { display: inline-block; padding-block: 8px; text-decoration: underline; text-decoration-color: var(--c-line-strong); text-underline-offset: 6px; }
.tel-link:hover { text-decoration-color: var(--c-text); }

/* 代表挨拶の写真：スマホの横長表示で頭が切れないよう、少し上寄りで切り抜く */
@media (max-width: 900px) {
  .message-photo img { object-position: center 28%; }
}
