/* ==========================================================
   株式会社TASNIC（麹町）  コーポレートサイト
   色・書体・余白は :root のトークンで一括管理しています
   ========================================================== */

:root {
  /* Color */
  --paper: #F7F4EF;        /* 背景（生成り） */
  --paper-2: #EEE8DF;      /* 面を分けたい箇所（グレージュ） */
  --ink: #2B2724;          /* 本文・見出し */
  --ink-2: #5F5850;        /* 補足文 */
  --line: #DED6CA;         /* 罫線 */
  --accent: #A7855C;       /* 木の色（線・装飾） */
  --accent-text: #7C5D39;  /* 木の色の文字（読みやすさ優先で濃いめ） */
  --on-dark: #DCC7A6;      /* 濃い背景の上の差し色 */

  /* Type */
  --f-head: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --f-sans: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --f-latin: "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(80px, 12vw, 152px);
  --header-h: 76px;

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 2;
  letter-spacing: .04em;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { font-size: 16px; } }

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; text-wrap: balance; word-break: auto-phrase; }
.lead, .page-head__lead, .cta__text { word-break: auto-phrase; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 8px 16px; z-index: 200;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- アーチ（装飾の共通パーツ） ---------- */
.ring {
  display: inline-block; flex: none;
  width: 9px; height: 11px;
  border: 1px solid var(--accent); border-bottom: 0;
  border-radius: 5px 5px 0 0;
  position: relative;
}
.ring::after {
  content: ""; position: absolute; left: 2px; right: 2px; bottom: 0; height: 5px;
  background: var(--accent); border-radius: 2px 2px 0 0;
}

/* ---------- 見出しまわり ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-latin);
  font-size: 13px; font-weight: 400;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--accent-text);
  line-height: 1;
}
.sec-title {
  font-family: var(--f-head); font-weight: 700;
  font-size: clamp(23px, 2.6vw, 30px);
  line-height: 1.65;
  letter-spacing: .08em;
  margin-top: 20px;
}
.lead {
  font-family: var(--f-head); font-weight: 500;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 2.1;
  letter-spacing: .08em;
}
.muted { color: var(--ink-2); }
.small { font-size: 13px; line-height: 1.9; }

/* ---------- ボタン・リンク ---------- */
.link-more {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: 14px; letter-spacing: .12em;
  text-decoration: none;
  padding-block: 6px;
}
.link-more::after {
  content: ""; width: 40px; height: 1px; background: var(--ink);
  transition: width .4s ease, background-color .4s ease;
}
.link-more:hover::after { width: 64px; background: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 36px;
  border: 1px solid var(--ink);
  background: transparent; color: var(--ink);
  font: inherit; font-size: 14px; letter-spacing: .16em;
  text-decoration: none; cursor: pointer;
  transition: background-color .3s ease, color .3s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: transparent; color: var(--ink); }

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand__mark { width: 34px; height: 34px; color: var(--accent); }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__en {
  font-family: var(--f-latin); font-size: 21px; font-weight: 400; letter-spacing: .3em;
}
.brand__ja { font-size: 11px; letter-spacing: .2em; color: var(--ink-2); }

.gnav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.gnav a {
  font-size: 14px; letter-spacing: .14em; text-decoration: none;
  position: relative; padding-block: 6px;
}
.gnav a:not(.gnav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.gnav a:not(.gnav__cta):hover::after,
.gnav a[aria-current="page"]::after { transform: scaleX(1); }
.gnav__cta {
  border: 1px solid var(--ink); padding: 10px 22px !important;
  transition: background-color .3s ease, color .3s ease;
}
.gnav__cta:hover, .gnav__cta[aria-current="page"] { background: var(--ink); color: var(--paper); }

.menu-btn {
  display: none;
  width: 48px; height: 48px; margin-right: -12px;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink);
  position: relative;
}
.menu-btn span {
  position: absolute; left: 12px; right: 12px; height: 1px; background: currentColor;
  transition: transform .35s ease, top .35s ease, opacity .2s ease;
}
.menu-btn span:nth-child(1) { top: 19px; }
.menu-btn span:nth-child(2) { top: 28px; right: 18px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 24px; transform: rotate(35deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 24px; right: 12px; transform: rotate(-35deg); }

.menu-label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}

/* スマホ用メニュー */
.drawer {
  position: fixed; inset: 0; z-index: 40;
  background: var(--paper);
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px) var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-family: var(--f-head); font-weight: 500; font-size: 20px; letter-spacing: .12em;
}
.drawer__nav a small {
  font-family: var(--f-latin); font-size: 13px; letter-spacing: .2em; color: var(--accent-text);
  text-transform: uppercase;
}
.drawer__foot { display: flex; flex-direction: column; gap: 12px; font-size: 12px; color: var(--ink-2); line-height: 1.8; }
.drawer__foot img { height: 22px; width: auto; align-self: flex-start; }

body.menu-open { overflow: hidden; }

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .gnav { display: none; }
  .menu-btn { display: block; }
  .brand__mark { width: 30px; height: 30px; }
  .brand__en { font-size: 20px; }
}
@media (min-width: 901px) { .drawer { display: none; } }

/* ==========================================================
   Hero（トップ）
   ========================================================== */
.hero { position: relative; overflow: hidden; }
.hero .wrap {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(64px, 10vw, 136px) clamp(72px, 10vw, 144px);
  min-height: min(720px, 84vh);
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; z-index: 1; }
.hero__en {
  font-family: var(--f-latin); font-weight: 300;
  font-size: 13px; letter-spacing: .34em; text-transform: uppercase; color: var(--accent-text);
}
.hero__title {
  font-family: var(--f-head); font-weight: 700;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.6;
  letter-spacing: .08em;
}
.hero__sub { font-size: 15px; letter-spacing: .1em; color: var(--ink-2); line-height: 2; word-break: auto-phrase; }
.hero__visual {
  justify-self: end;
  width: min(480px, 100%);
  color: var(--accent);
}
.hero__visual path { fill: none; stroke: currentColor; }
.hero__visual .draw {
  stroke-dasharray: var(--len); stroke-dashoffset: 0;
  animation: draw 2.2s cubic-bezier(.6,.05,.2,1) both;
}
.hero__visual .draw--2 { animation-delay: .3s; }
.hero__visual .fill { fill: var(--accent); stroke: none; opacity: .9; animation: pop 1s 1.6s ease both; transform-origin: center bottom; transform-box: fill-box; }
@keyframes draw { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px); } to { opacity: .9; transform: none; } }

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr; min-height: 0;
    padding-block: 56px 80px;
  }
  .hero__title { font-size: clamp(26px, 7.2vw, 36px); letter-spacing: .06em; }
  .hero__visual {
    position: absolute; right: -30%; top: 12px; width: 80%;
    opacity: .28; z-index: 0;
  }
}

/* ==========================================================
   ページ見出し（下層ページ）
   ========================================================== */
.page-head {
  position: relative; overflow: hidden;
  padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}
.page-head__title {
  font-family: var(--f-head); font-weight: 700;
  font-size: clamp(28px, 4.4vw, 46px);
  letter-spacing: .14em; line-height: 1.5;
  margin-top: 24px;
}
.page-head__lead { margin-top: 28px; max-width: 36em; color: var(--ink-2); }
.page-head__ring {
  position: absolute; right: calc(var(--gutter) * -1); top: 50%;
  width: clamp(220px, 34vw, 420px); aspect-ratio: 1; max-width: 100%;
  transform: translate(22%, -50%);
  color: var(--accent); opacity: .55; pointer-events: none;
}
.page-head__ring path { fill: none; stroke: currentColor; }
.page-head .wrap { position: relative; }

/* ==========================================================
   セクション共通
   ========================================================== */
.section { padding-block: var(--section); }
.section--flush { padding-top: 0; }   /* 同じ背景色のセクションが続くとき、上の余白を詰める */
.section--tint { background: var(--paper-2); }
.section--line { border-top: 1px solid var(--line); }

.split {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.prose { display: flex; flex-direction: column; gap: 1.6em; max-width: 38em; }

/* ---------- トップ：Introduction ---------- */
.intro__body { display: flex; flex-direction: column; gap: 40px; }

/* ---------- 事業一覧（トップ） ---------- */
.biz-list { border-top: 1px solid var(--line); margin-top: clamp(40px, 5vw, 64px); }
.biz-list a {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) 40px;
  align-items: center; gap: 32px;
  padding: clamp(28px, 3.4vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background-color .3s ease;
}
.biz-list a:hover { background: color-mix(in srgb, var(--paper-2) 70%, transparent); }
.biz-list__name { display: flex; flex-direction: column; gap: 10px; }
.biz-list__en {
  font-family: var(--f-latin); font-size: 14px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent-text); line-height: 1.2;
}
.biz-list__ja { font-family: var(--f-head); font-weight: 700; font-size: clamp(19px, 2vw, 22px); letter-spacing: .1em; line-height: 1.6; }
.biz-list__desc { font-size: 14px; color: var(--ink-2); line-height: 1.95; }
.biz-list__arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; justify-self: end;
  transition: border-color .3s ease, transform .3s ease;
}
.biz-list__arrow::before {
  content: ""; width: 7px; height: 7px;
  border-top: 1px solid var(--ink); border-right: 1px solid var(--ink);
  transform: translateX(-2px) rotate(45deg);
}
.biz-list a:hover .biz-list__arrow { border-color: var(--accent); transform: translateX(4px); }
@media (max-width: 720px) {
  .biz-list a { grid-template-columns: 1fr 40px; gap: 12px 16px; }
  .biz-list__name { grid-column: 1; }
  .biz-list__desc { grid-column: 1 / -1; grid-row: 2; }
  .biz-list__arrow { grid-column: 2; grid-row: 1; }
}

/* ---------- 法令遵守（トップの要約） ---------- */
.trust {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink); margin-top: clamp(40px, 5vw, 64px);
}
.trust li {
  padding: 32px clamp(20px, 2.4vw, 32px) 8px 0;
  display: flex; flex-direction: column; gap: 14px;
}
.trust li + li { padding-left: clamp(20px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.trust h3 { font-family: var(--f-head); font-weight: 700; font-size: 18px; letter-spacing: .08em; line-height: 1.6; }
.trust p { font-size: 14px; color: var(--ink-2); line-height: 1.95; }
.trust .num { font-family: var(--f-latin); font-size: 16px; letter-spacing: .06em; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
@media (max-width: 820px) {
  .trust { grid-template-columns: 1fr; }
  .trust li, .trust li + li { padding: 28px 0; border-left: 0; }
  .trust li + li { border-top: 1px solid var(--line); }
}

/* ---------- 会社情報のサマリー ---------- */
.facts { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.facts > div {
  display: grid; grid-template-columns: 8em 1fr; gap: 24px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.facts dt { color: var(--ink-2); font-size: 13px; letter-spacing: .14em; padding-top: 2px; }
@media (max-width: 560px) { .facts > div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--paper);
}
.cta .wrap {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px;
  padding-block: clamp(72px, 10vw, 128px);
}
.cta .eyebrow { color: var(--on-dark); }
.cta .ring { border-color: var(--on-dark); }
.cta .ring::after { background: var(--on-dark); }
.cta__title { font-family: var(--f-head); font-weight: 700; font-size: clamp(22px, 3vw, 32px); letter-spacing: .1em; line-height: 1.7; margin-top: 20px; }
.cta__text { margin-top: 20px; color: color-mix(in srgb, var(--paper) 72%, var(--ink)); font-size: 14px; }
.cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.cta__tel { display: flex; flex-direction: column; gap: 8px; }
.cta__tel span { font-size: 12px; letter-spacing: .2em; color: color-mix(in srgb, var(--paper) 65%, var(--ink)); }
.cta__tel img { height: 30px; width: auto; align-self: flex-start; }
.cta .btn { border-color: var(--paper); color: var(--paper); }
.cta .btn:hover { background: var(--paper); color: var(--ink); }
.cta__ring {
  position: absolute; right: -6%; bottom: -8%; width: 30%; max-width: 380px; aspect-ratio: 1;
  color: var(--on-dark); opacity: .22; pointer-events: none;
}
.cta__ring path { fill: none; stroke: currentColor; }
@media (max-width: 820px) {
  .cta .wrap { grid-template-columns: 1fr; gap: 40px; }
  .cta__ring { width: 70%; right: -22%; bottom: -6%; }
}

/* ==========================================================
   企業情報
   ========================================================== */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: clamp(40px, 5vw, 64px); }
.values li { display: flex; flex-direction: column; gap: 16px; padding-top: 28px; border-top: 1px solid var(--ink); }
.values__en { font-family: var(--f-latin); font-size: 14px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-text); line-height: 1.2; }
.values h3 { font-family: var(--f-head); font-weight: 700; font-size: 20px; letter-spacing: .1em; line-height: 1.6; }
.values p { font-size: 14px; color: var(--ink-2); line-height: 2; }
@media (max-width: 820px) { .values { grid-template-columns: 1fr; gap: 40px; } }

.comply { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.comply > li {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(20px, 5vw, 80px);
  padding: clamp(28px, 3.4vw, 40px) 0; border-bottom: 1px solid var(--line);
}
.comply h3 { font-family: var(--f-head); font-weight: 700; font-size: 18px; letter-spacing: .08em; line-height: 1.7; display: flex; gap: 14px; align-items: baseline; }
.comply h3 .ring { transform: translateY(1px); }
.comply__law { display: block; font-family: var(--f-sans); font-size: 12px; color: var(--accent-text); letter-spacing: .1em; margin-top: 6px; }
.comply__body { display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.comply__body ul { display: flex; flex-direction: column; gap: 6px; }
.comply__body li { position: relative; padding-left: 1.4em; font-size: 14px; color: var(--ink-2); line-height: 1.9; }
.comply__body li::before { content: ""; position: absolute; left: 0; top: .95em; width: .7em; height: 1px; background: var(--accent); }
@media (max-width: 820px) { .comply > li { grid-template-columns: 1fr; gap: 12px; } }

.notice {
  margin-top: 40px; padding: 24px 28px;
  border: 1px solid var(--line); background: var(--paper);
  font-size: 14px; color: var(--ink-2); line-height: 1.95;
}
.notice strong { color: var(--ink); font-weight: 500; }

/* ==========================================================
   事業内容
   ========================================================== */
.biz-index { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 36px; }
.biz-index a { font-size: 13px; letter-spacing: .1em; text-decoration: none; color: var(--ink-2); display: inline-flex; align-items: center; gap: 10px; }
.biz-index a:hover { color: var(--ink); }

.biz {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px);
  padding-block: clamp(56px, 8vw, 104px);
  border-bottom: 1px solid var(--line);
}
.biz:last-child { border-bottom: 0; }
.biz__head { display: flex; flex-direction: column; gap: 18px; }
.biz__en { font-family: var(--f-latin); font-size: 15px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-text); line-height: 1.2; }
.biz__title { font-family: var(--f-head); font-weight: 700; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: .1em; line-height: 1.6; }
.biz__mark { width: 72px; color: var(--accent); margin-top: 12px; }
.biz__mark path { fill: none; stroke: currentColor; }
.biz__body { display: flex; flex-direction: column; gap: 32px; }
.biz__spec { border-top: 1px solid var(--line); }
.biz__spec > div { display: grid; grid-template-columns: 9em 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.biz__spec dt { font-size: 13px; letter-spacing: .12em; color: var(--ink-2); padding-top: 1px; }
.biz__spec dd { font-size: 14px; line-height: 1.95; }
.biz__spec ul { display: flex; flex-direction: column; gap: 4px; }
.biz__spec li { position: relative; padding-left: 1.4em; }
.biz__spec li::before { content: ""; position: absolute; left: 0; top: .95em; width: .7em; height: 1px; background: var(--accent); }
.biz__note { font-size: 12px; color: var(--ink-2); line-height: 1.9; }
@media (max-width: 820px) {
  .biz { grid-template-columns: 1fr; }
  .biz__mark { display: none; }
}
@media (max-width: 560px) { .biz__spec > div { grid-template-columns: 1fr; gap: 4px; } }

/* ==========================================================
   会社概要
   ========================================================== */
.profile { border-top: 1px solid var(--ink); }
.profile > div {
  display: grid; grid-template-columns: 11em 1fr; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.profile dt { font-size: 14px; letter-spacing: .14em; color: var(--ink-2); }
.profile dd { font-size: 15px; line-height: 1.95; }
.profile dd ol { display: flex; flex-direction: column; gap: 2px; counter-reset: biz; }
.profile dd ol li { counter-increment: biz; display: flex; gap: 12px; }
.profile dd ol li::before { content: counter(biz) "."; font-family: var(--f-latin); font-size: 15px; color: var(--accent-text); min-width: 1em; }
.profile .img-text { height: 22px; width: auto; margin-top: 4px; }
.profile .map-link { display: inline-block; margin-top: 8px; font-size: 13px; }
@media (max-width: 640px) {
  .profile > div { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .profile dt { font-size: 12px; }
}

/* ==========================================================
   お問い合わせ
   ========================================================== */
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-aside { display: flex; flex-direction: column; gap: 36px; }
.contact-way { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; border-top: 1px solid var(--ink); }
.contact-way h2 { font-size: 13px; letter-spacing: .18em; color: var(--ink-2); font-family: var(--f-sans); }
.contact-way img { height: 30px; width: auto; align-self: flex-start; }
.contact-way p { font-size: 13px; color: var(--ink-2); line-height: 1.9; }

.form { display: flex; flex-direction: column; gap: 32px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field label, .field legend { font-size: 14px; letter-spacing: .1em; display: flex; align-items: center; gap: 10px; padding: 0; }
.req, .opt {
  font-size: 11px; letter-spacing: .1em; line-height: 1; padding: 4px 7px;
  border: 1px solid var(--accent); color: var(--accent-text);
}
.opt { border-color: var(--line); color: var(--ink-2); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 16px; color: var(--ink); letter-spacing: .04em;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 10px 2px 12px;
  transition: border-color .3s ease;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 180px; resize: vertical; border: 1px solid var(--line); padding: 14px 16px; line-height: 1.9; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 14px) 52%, calc(100% - 9px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat;
  padding-right: 32px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 640px) { .field--row { grid-template-columns: 1fr; } }
fieldset.field { border: 0; margin: 0; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.choices label {
  cursor: pointer; font-size: 14px; letter-spacing: .06em;
  border: 1px solid var(--line); padding: 10px 16px; gap: 10px;
  transition: border-color .3s ease;
}
.choices input { accent-color: var(--ink); margin: 0; }
.choices label:has(input:checked) { border-color: var(--ink); }
.agree { font-size: 14px; display: flex; align-items: flex-start; gap: 12px; line-height: 1.8; }
.agree input { margin-top: 6px; accent-color: var(--ink); }
.form__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.form__msg { font-size: 14px; line-height: 1.9; padding: 16px 20px; border: 1px solid var(--accent); color: var(--ink); }

/* ==========================================================
   プライバシーポリシー
   ========================================================== */
.policy { display: flex; flex-direction: column; gap: 48px; max-width: 46em; }
.policy section { display: flex; flex-direction: column; gap: 14px; }
.policy h2 { font-family: var(--f-head); font-weight: 700; font-size: 19px; letter-spacing: .08em; line-height: 1.6; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.policy p, .policy li { font-size: 14px; line-height: 2; color: var(--ink-2); }
.policy ul { display: flex; flex-direction: column; gap: 4px; }
.policy li { position: relative; padding-left: 1.4em; }
.policy li::before { content: ""; position: absolute; left: 0; top: 1em; width: .7em; height: 1px; background: var(--accent); }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(56px, 7vw, 88px) 32px; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; }
.footer__info { display: flex; flex-direction: column; gap: 24px; }
.footer__addr { font-size: 13px; line-height: 1.9; color: var(--ink-2); }
.footer__license { font-size: 12px; letter-spacing: .06em; color: var(--ink-2); line-height: 1.8; }
.footer__nav { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 48px; align-content: start; }
.footer__nav a { font-size: 13px; letter-spacing: .12em; text-decoration: none; color: var(--ink-2); }
.footer__nav a:hover { color: var(--ink); }
.footer__bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--f-latin); font-size: 13px; letter-spacing: .12em; color: var(--ink-2);
}
@media (max-width: 720px) { .footer__top { grid-template-columns: 1fr; } }

/* ==========================================================
   動き：読み込み演出・ページ切り替え・スクロール表示
   ========================================================== */

/* ---------- 最初の読み込み（1回の訪問で1度だけ） ---------- */
.loader { display: none; }
html.is-first .loader {
  position: fixed; inset: 0; z-index: 400;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: var(--ink); color: var(--paper);
  animation: loader-out .9s 1.5s cubic-bezier(.7, 0, .2, 1) forwards;
  pointer-events: none;
}
.loader__mark { width: 96px; height: 96px; }
.loader__line {
  fill: none; stroke: var(--on-dark); stroke-width: 1;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: loader-draw 1s cubic-bezier(.6, .05, .2, 1) forwards;
}
.loader__line--2 { animation-delay: .18s; }
.loader__base { animation-delay: .05s; }
.loader__core {
  fill: var(--on-dark); transform-origin: center bottom; transform-box: fill-box;
  opacity: 0; animation: loader-core .5s .85s ease forwards;
}
.loader__name {
  font-family: var(--f-latin); font-weight: 300; font-size: 15px; letter-spacing: .6em; padding-left: .6em;
  opacity: 0; animation: loader-name .7s .7s ease forwards;
}
@keyframes loader-draw { to { stroke-dashoffset: 0; } }
@keyframes loader-core { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes loader-name { from { opacity: 0; transform: translateY(6px); } to { opacity: .9; transform: none; } }
@keyframes loader-out {
  from { clip-path: inset(0 0 0 0); }
  to   { clip-path: inset(0 50% 0 50%); visibility: hidden; }
}
/* 読み込み演出のあいだは、トップの図形の描画を後ろにずらす */
html.is-first .hero__visual .draw { animation-delay: 1.9s; }
html.is-first .hero__visual .draw--2 { animation-delay: 2.2s; }
html.is-first .hero__visual .fill { animation-delay: 3.4s; }

/* ---------- ページ切り替え：扉がひらくように ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root) { animation: none; }
::view-transition-new(root) {
  animation: tk-open 1s cubic-bezier(.7, 0, .2, 1) both;
}
@keyframes tk-open {
  from { clip-path: inset(0 calc(100% - var(--rx, 50vw)) 0 var(--rx, 50vw)); }
  to   { clip-path: inset(0 0 0 0); }
}
/* 押した位置から左右にひらく、2本の縦線 */
.door-line {
  position: fixed; top: 0; bottom: 0; z-index: 300; pointer-events: none;
  width: 1px; background: var(--accent);
  animation: tk-door-l 1.05s cubic-bezier(.7, 0, .2, 1) both;
}
.door-line--r { animation-name: tk-door-r; }
@keyframes tk-door-l {
  0%   { transform: translateX(0); opacity: 0; }
  12%  { opacity: 1; }
  100% { transform: translateX(calc(-1 * var(--x, 50vw) - 2px)); opacity: .2; }
}
@keyframes tk-door-r {
  0%   { transform: translateX(0); opacity: 0; }
  12%  { opacity: 1; }
  100% { transform: translateX(calc(100vw - var(--x, 50vw) + 2px)); opacity: .2; }
}
/* View Transitions 未対応ブラウザでは、本文をふわっと表示 */
html.no-vt main { animation: tk-fade .7s ease both; }
@keyframes tk-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- スクロールで順に表示 ---------- */
html.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2, .6, .2, 1), transform .9s cubic-bezier(.2, .6, .2, 1);
  transition-delay: var(--d, 0s);
}
html.js .reveal.is-in { opacity: 1; transform: none; }
html.js .sec-title.reveal, html.js .page-head__title.reveal { transform: translateY(18px); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 未確定の情報（【】） ---------- */
.tbd { color: #A2452A; }
.cta .tbd { color: #F0B9A6; }

/* ---------- 買取マンへのリンク ---------- */
.ext-link {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
  padding: 16px 24px; border: 1px solid var(--ink); text-decoration: none;
  font-size: 14px; letter-spacing: .12em;
  transition: background-color .3s ease, color .3s ease;
}
.ext-link::after { content: "↗"; font-family: var(--f-latin); }
.ext-link:hover { background: var(--ink); color: var(--paper); }
.contact-way .tel-line img { height: 30px; width: auto; }
.contact-way .ext-link { margin-top: 6px; }

/* ---------- ご依頼の流れ ---------- */
.steps {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--ink);
}
.steps li { display: flex; flex-direction: column; gap: 10px; padding: 28px clamp(14px, 1.6vw, 24px) 8px 0; }
.steps li + li { padding-left: clamp(14px, 1.6vw, 24px); border-left: 1px solid var(--line); }
.steps__no { font-family: var(--f-latin); font-weight: 300; font-size: 28px; line-height: 1; color: var(--accent-text); letter-spacing: .04em; }
.steps h3 { font-size: 17px; font-weight: 700; letter-spacing: .08em; line-height: 1.6; }
.steps p { font-size: 13px; color: var(--ink-2); line-height: 1.9; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; padding: 22px 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
  .steps__no { grid-row: span 2; font-size: 24px; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* ==========================================================
   TASNIC（麹町）専用レイアウト：雑誌のような誌面構成
   ========================================================== */
img.photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.sec-title, .page-head__title, .lead, .biz__title, .values h3, .comply h3, .policy h2, .cta__title, .biz-list__ja { font-weight: 600 !important; letter-spacing: .12em; }

/* 上部の細い帯 */
.topbar { background: var(--ink); color: color-mix(in srgb, var(--paper) 80%, var(--ink)); font-size: 12px; letter-spacing: .1em; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; }
.topbar a { text-decoration: none; color: var(--on-dark); }
@media (max-width: 640px) { .topbar span { display: none; } .topbar .wrap { justify-content: center; } }

.mg-label {
  font-family: var(--f-latin); font-weight: 400; font-size: 12px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--accent-text); display: flex; align-items: center; gap: 14px;
}
.mg-label::before { content: ""; width: 32px; height: 1px; background: currentColor; }

/* ---- ヒーロー：写真のモザイク ---- */
.mg-hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 10px;
  height: min(88vh, 860px); min-height: 560px;
  padding: 10px 10px 0;
}
.mg-hero__main { overflow: hidden; border-radius: 2px; }
.mg-hero__side { display: grid; grid-template-rows: 1.25fr 1fr; gap: 10px; }
.mg-hero__sub { overflow: hidden; border-radius: 2px; }
.mg-hero img.photo { animation: mg-zoom 12s ease-out both; }
@keyframes mg-zoom { from { transform: scale(1.08); } to { transform: none; } }
.mg-hero__card {
  position: absolute; left: clamp(20px, 5vw, 72px); bottom: clamp(28px, 6vw, 72px);
  max-width: min(560px, 82vw);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  padding: clamp(28px, 4vw, 52px) clamp(24px, 4vw, 56px);
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 30px 60px -30px rgba(43, 39, 36, .35);
}
.mg-hero__en { font-family: var(--f-latin); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent-text); }
.mg-hero__title { font-family: var(--f-head); font-weight: 600; font-size: clamp(28px, 3.8vw, 48px); line-height: 1.6; letter-spacing: .12em; }
.mg-hero__sub-text { font-size: 14px; color: var(--ink-2); line-height: 2; }
.mg-hero__scroll {
  position: absolute; right: clamp(16px, 2vw, 28px); bottom: 0; writing-mode: vertical-rl;
  font-family: var(--f-latin); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--paper);
  display: flex; align-items: center; gap: 12px; padding-bottom: 12px;
}
.mg-hero__scroll::after { content: ""; width: 1px; height: 64px; background: var(--paper); animation: mg-line 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes mg-line { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 820px) {
  .mg-hero { grid-template-columns: 1fr; height: auto; min-height: 0; padding: 0; }
  .mg-hero__main { aspect-ratio: 4 / 3.4; }
  .mg-hero__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; gap: 6px; }
  .mg-hero__sub { aspect-ratio: 1; }
  .mg-hero__card { position: relative; left: auto; bottom: auto; max-width: none; margin: -64px 16px 0; }
  .mg-hero__scroll { display: none; }
}

/* ---- コンセプト ---- */
.mg-intro { padding-top: clamp(96px, 13vw, 176px); }
.mg-intro__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 32px; max-width: 760px; }
.mg-intro__title { font-family: var(--f-head); font-weight: 600; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.8; letter-spacing: .14em; }
.mg-intro__text { color: var(--ink-2); line-height: 2.2; text-align: left; }
.mg-wide { margin-top: clamp(64px, 9vw, 120px); height: clamp(260px, 38vw, 520px); overflow: hidden; }
.mg-wide img.photo { transform: scale(1.1); transition: transform .1s linear; }

/* ---- 見出し ---- */
.mg-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(40px, 5vw, 64px); }
.mg-head--center { align-items: center; text-align: center; }
.mg-head--center .mg-label::after { content: ""; width: 32px; height: 1px; background: currentColor; }
.mg-head__title { font-family: var(--f-head); font-weight: 600; font-size: clamp(24px, 3vw, 34px); letter-spacing: .14em; line-height: 1.6; }
.mg-head__lead { color: var(--ink-2); font-size: 14px; }
.mg-center { text-align: center; margin-top: 48px; }

/* ---- 事業：写真カード ---- */
.mg-services { padding-block: var(--section); }
.mg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.mg-card { display: flex; flex-direction: column; text-decoration: none; background: var(--paper); }
.mg-card--large { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: stretch; background: var(--paper-2); }
.mg-card__img { overflow: hidden; aspect-ratio: 4 / 3; }
.mg-card--large .mg-card__img { aspect-ratio: auto; min-height: 360px; }
.mg-card__img img.photo { transition: transform 1.2s cubic-bezier(.2, .6, .2, 1); }
.mg-card:hover .mg-card__img img.photo { transform: scale(1.05); }
.mg-card__body { display: flex; flex-direction: column; gap: 10px; padding: 24px 4px 8px; }
.mg-card--large .mg-card__body { padding: clamp(28px, 4vw, 56px); justify-content: center; gap: 18px; }
.mg-card__no { font-family: var(--f-latin); font-weight: 300; font-size: 30px; color: var(--accent); line-height: 1; }
.mg-card h3 { font-family: var(--f-head); font-weight: 600; font-size: 19px; letter-spacing: .1em; }
.mg-card--large h3 { font-size: clamp(22px, 2.4vw, 28px); }
.mg-card p { font-size: 14px; color: var(--ink-2); line-height: 1.95; }
@media (max-width: 900px) {
  .mg-cards { grid-template-columns: 1fr 1fr; }
  .mg-card--large { grid-template-columns: 1fr; }
  .mg-card--large .mg-card__img { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) { .mg-cards { grid-template-columns: 1fr; } }

/* ---- 流れ：丸をつなぐタイムライン ---- */
.mg-flow { padding-block: var(--section); background: var(--paper-2); }
.mg-timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; position: relative; }
.mg-timeline::before { content: ""; position: absolute; left: 10%; right: 10%; top: 36px; height: 1px; background: var(--accent); opacity: .5; }
.mg-timeline li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.mg-timeline span {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--accent); color: var(--accent-text);
  font-family: var(--f-latin); font-size: 18px; letter-spacing: .08em;
}
.mg-timeline h3 { font-family: var(--f-head); font-weight: 600; font-size: 16px; letter-spacing: .08em; margin-top: 8px; }
.mg-timeline p { font-size: 13px; color: var(--ink-2); line-height: 1.9; }
@media (max-width: 820px) {
  .mg-timeline { grid-template-columns: 1fr; gap: 0; }
  .mg-timeline::before { left: 36px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .mg-timeline li { display: grid; grid-template-columns: 72px 1fr; text-align: left; align-items: center; gap: 4px 20px; padding-bottom: 20px; }
  .mg-timeline span { grid-row: span 2; }
  .mg-timeline h3 { margin: 0; align-self: end; }
  .mg-timeline p { align-self: start; }
}

/* ---- 会社：写真と情報を左右に ---- */
.mg-company { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 560px; }
.mg-company__img { overflow: hidden; }
.mg-company__body { padding: clamp(56px, 8vw, 120px) clamp(24px, 6vw, 96px); display: flex; flex-direction: column; gap: 28px; justify-content: center; }
@media (max-width: 820px) { .mg-company { grid-template-columns: 1fr; } .mg-company__img { aspect-ratio: 16 / 10; } }

/* ---- お問い合わせ帯：写真を背景に ---- */
.cta__bg { position: absolute; inset: 0; opacity: .45; }
.cta__bg img.photo { filter: saturate(.8); }
.cta .wrap { z-index: 1; }

/* ---- 下層ページ：写真つきの見出し ---- */
.page-head--photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); padding: 0; border-bottom: 0; min-height: 360px; }
.page-head--photo .page-head__photo { order: 2; overflow: hidden; }
.page-head--photo .wrap { order: 1; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(56px, 8vw, 104px); margin: 0; max-width: none; padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
@media (max-width: 820px) {
  .page-head--photo { grid-template-columns: 1fr; }
  .page-head--photo .page-head__photo { order: 0; aspect-ratio: 16 / 8; }
}

/* ---- 事業内容：各事業に写真 ---- */
.biz__photo { aspect-ratio: 4 / 3; overflow: hidden; margin-top: 12px; }
@media (max-width: 820px) { .biz__photo { display: block; } }
/* 写真は枠いっぱいに敷く（写真の元サイズで枠が伸びないように） */
.mg-hero__main, .mg-hero__sub, .mg-hero__side, .mg-wide, .mg-card__img, .mg-company__img, .page-head__photo, .biz__photo { position: relative; min-height: 0; }
.mg-hero__main img.photo, .mg-hero__sub img.photo, .mg-wide img.photo, .mg-card__img img.photo, .mg-company__img img.photo, .page-head__photo img.photo, .biz__photo img.photo, .cta__bg img.photo { position: absolute; inset: 0; }
@media (max-width: 820px) { .page-head--photo .page-head__photo { min-height: 200px; } }
