/* AT SPACE株式会社 デザイン検討用デモ（白）「白磁」
   白とごく薄いグレーの地、墨の文字、紫とゴールドは線・番号・小さなラベルにだけ。 */

:root {
  --white: #FFFFFF;
  --paper: #F5F4F1;        /* 交互に敷く、ごく薄いグレー */
  --paper-2: #EEECE7;
  --ink: #1E1E1E;          /* 文字・黒いボタン */
  --ink-2: #333333;
  --muted: #676767;        /* 補足（白地で AA） */
  --line: rgba(30,30,30,.14);
  --purple: #A855F7;       /* コーポレートカラー：細線・点・フォーカス */
  --purple-ink: #7A2FC4;   /* 紫の文字（白地で読める濃さ） */
  --purple-soft: rgba(168,85,247,.10);
  --gold: #C9A961;         /* 番号の下線・縁 */
  --gold-ink: #8A6D2E;     /* ゴールドの文字（白地で読める濃さ） */
  --gold-soft: #E6D2A0;
  --serif-jp: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "BIZ UDMincho", serif;
  --serif-en: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Yu Gothic", "YuGothic", "Hiragino Sans", "BIZ UDPGothic", "Meiryo", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 84px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 2;
  letter-spacing: .06em;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
.ph { display: inline-block; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
main:focus { outline: none; }
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.tbd { color: var(--muted); }

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 10px 18px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; }
.noscript { padding: 120px 24px 40px; text-align: center; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.header-bar {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--gutter);
}
.brand { display: block; flex: none; position: relative; z-index: 2; }
.brand-logo { height: 34px; width: auto; transition: filter .4s var(--ease); }
#site-nav ul { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
#site-nav a {
  display: flex; flex-direction: column; align-items: center; text-decoration: none;
  line-height: 1.3; padding: 6px 0; position: relative;
}
#site-nav .en { font-family: var(--serif-en); font-size: 15px; letter-spacing: .08em; }
#site-nav .jp { font-size: 10px; color: var(--muted); letter-spacing: .12em; }
#site-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 0; height: 1px;
  background: var(--gold); transition: width .3s var(--ease), left .3s var(--ease);
}
#site-nav a:hover::after, #site-nav a[aria-current="page"]::after { width: 100%; left: 0; }
#site-nav .nav-contact a {
  flex-direction: row; gap: 10px; background: var(--ink); color: var(--white);
  padding: 12px 24px; border-radius: 999px;
}
#site-nav .nav-contact .jp { color: rgba(255,255,255,.75); font-size: 11px; }
#site-nav .nav-contact a::after { display: none; }
#site-nav .nav-contact a[aria-current="page"] { box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--gold); }
.nav-note { display: none; }
.menu-toggle { display: none; }

/* TOP の最初の画面：透明なヘッダー＋白い文字 */
.has-hero:not(.is-scrolled):not(.menu-open) .site-header { background: transparent; border-color: transparent; }
.has-hero:not(.is-scrolled):not(.menu-open) .brand-logo { filter: brightness(0) invert(1); }
.has-hero:not(.is-scrolled):not(.menu-open) #site-nav a { color: var(--white); }
.has-hero:not(.is-scrolled):not(.menu-open) #site-nav .jp { color: rgba(255,255,255,.8); }
.has-hero:not(.is-scrolled):not(.menu-open) #site-nav .nav-contact a { background: var(--white); color: var(--ink); }
.has-hero:not(.is-scrolled):not(.menu-open) #site-nav .nav-contact .jp { color: var(--muted); }
.has-hero:not(.is-scrolled):not(.menu-open) .menu-toggle { color: var(--white); }

.demo-note {
  position: fixed; left: 12px; bottom: 12px; z-index: 90;
  font-size: 11px; line-height: 1.6; letter-spacing: .04em;
  background: rgba(255,255,255,.92); color: var(--muted);
  border: 1px solid var(--line); padding: 4px 10px; border-radius: 4px; max-width: calc(100% - 24px);
}

/* ---------- ボタン ---------- */
.arw { width: 28px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.4; flex: none; }
.btn, .cta-fixed {
  display: inline-flex; align-items: center; gap: 18px;
  min-height: 52px; padding: 0 26px 0 32px;
  background: var(--ink); color: var(--white); border-radius: 999px;
  text-decoration: none; font-size: 14px; letter-spacing: .1em;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-sep { width: 1px; height: 20px; background: rgba(255,255,255,.45); flex: none; }
.btn .arw, .cta-fixed .arw { transition: transform .3s var(--ease); }
.btn:hover, .cta-fixed:hover { background: #000; box-shadow: 0 0 0 1px var(--gold) inset; }
.btn:hover .arw, .cta-fixed:hover .arw { transform: translateX(4px); }
.btn.is-wide { width: min(100%, 720px); justify-content: center; position: relative; padding-inline: 64px; }
.btn.is-wide .btn-sep { position: absolute; right: 64px; }
.btn.is-wide .arw { position: absolute; right: 24px; }

.btn-gold {
  display: inline-flex; align-items: center; gap: 16px; min-height: 52px; padding: 0 30px;
  border-radius: 999px; background: var(--gold); color: var(--ink);
  text-decoration: none; font-size: 14px; letter-spacing: .1em;
  transition: background .3s var(--ease);
}
.btn-gold:hover { background: var(--gold-soft); }

.btn-circle {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 132px; height: 132px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.8); color: var(--white); text-decoration: none;
  font-family: var(--serif-en); font-size: 15px; letter-spacing: .08em;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.btn-circle:hover { background: var(--white); color: var(--ink); }

.cta-fixed {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  transition: opacity .35s var(--ease), transform .35s var(--ease), background .3s var(--ease);
}
.cta-hidden .cta-fixed { opacity: 0; transform: translateY(16px); pointer-events: none; visibility: hidden; }

.btn-off {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  border: 1px dashed rgba(30,30,30,.35); background: var(--white); color: var(--muted);
  font-size: 14px; letter-spacing: .06em; cursor: not-allowed;
}
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; flex: none; }
.tlink { color: var(--purple-ink); text-underline-offset: 4px; }

/* ---------- 見出し ---------- */
.label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; font-weight: 400; margin-bottom: 36px; }
.label.is-center { flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.label-en { font-family: var(--serif-en); font-size: clamp(40px, 6vw, 76px); line-height: 1.1; letter-spacing: .01em; }
.label-jp { font-family: var(--serif-jp); font-size: 14px; letter-spacing: .14em; color: var(--muted); }
.label.is-center .label-jp::before {
  content: ""; display: block; width: 28px; height: 1px; background: var(--gold); margin: 14px auto 12px;
}
.lead { font-family: var(--serif-jp); font-size: clamp(18px, 2vw, 22px); line-height: 1.9; letter-spacing: .1em; }
.note { font-size: 12px; color: var(--muted); line-height: 1.8; }

/* ---------- 写真 ---------- */
.img-slot { position: relative; }
.img-slot .frame { position: relative; overflow: hidden; background: var(--paper-2); }
.img-slot img { width: 100%; height: 100%; object-fit: cover; }
.r-43 .frame { aspect-ratio: 4 / 3; }
.r-54 .frame { aspect-ratio: 5 / 4; }
.r-32 .frame { aspect-ratio: 3 / 2; }
.ai-tag { font-size: 10px; color: var(--muted); letter-spacing: .06em; margin-top: 6px; text-align: right; line-height: 1.5; }
.badge {
  position: absolute; left: 12px; top: 12px; font-size: 11px; line-height: 1;
  padding: 6px 10px; background: rgba(255,255,255,.92); color: var(--ink); border-radius: 999px;
}

/* ---------- 出現 ---------- */
.rv-on .rv { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv-on .rv.is-in { opacity: 1; transform: none; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; color: var(--white); }
.hero-photo, .hero-photo .frame { position: absolute; inset: 0; }
.hero-photo img { animation: heroZoom 14s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.34) 0%, rgba(0,0,0,.06) 30%, rgba(0,0,0,.08) 60%, rgba(0,0,0,.42) 100%);
}
.hero-copy { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; text-align: center; padding: 0 var(--gutter); }
.hero-title .w { display: inline-block; }
.hero-title {
  font-family: var(--serif-en); font-weight: 400;
  font-size: clamp(38px, 6.6vw, 96px); line-height: 1.12; letter-spacing: .01em;
  text-shadow: 0 2px 30px rgba(0,0,0,.25);
  animation: rise 1.6s .3s var(--ease) both;
}
.hero-sub {
  font-family: var(--serif-jp); font-size: clamp(15px, 1.6vw, 19px); letter-spacing: .3em; margin-top: 18px;
  animation: rise 1.6s .7s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-cta { position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); z-index: 2; white-space: nowrap; }
.hero-note { position: absolute; right: 16px; bottom: 12px; z-index: 2; font-size: 10px; opacity: .85; }
.hero-scroll {
  position: absolute; right: var(--gutter); bottom: 64px; z-index: 2;
  writing-mode: vertical-rl; font-family: var(--serif-en); font-size: 12px; letter-spacing: .2em;
  padding-bottom: 64px;
}
.hero-scroll::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 52px; background: rgba(255,255,255,.75);
  transform-origin: top; animation: line 2.4s var(--ease) infinite;
}
@keyframes line { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- About（コラージュ） ---------- */
.about { position: relative; padding: clamp(120px, 16vw, 220px) var(--gutter); min-height: 900px; display: grid; place-items: center; }
.about-inner { position: relative; z-index: 1; text-align: center; max-width: 480px; }
.about-copy { font-family: var(--serif-jp); font-size: clamp(26px, 3.2vw, 38px); line-height: 1.7; letter-spacing: .12em; margin-bottom: 24px; }
.about-sub { color: var(--ink-2); margin-bottom: 40px; }
.collage { position: absolute; inset: 0; pointer-events: none; }
.cl { position: absolute; display: block; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.cl img { width: 100%; height: 100%; object-fit: cover; }
.rv-on .cl { opacity: 0; transform: scale(.96); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.rv-on .cl.is-in { opacity: 1; transform: none; }
.cl-1 { left: 4%;  top: 8%;  width: 22%; aspect-ratio: 4 / 3; }
.cl-2 { left: 33%; top: 5%;  width: 8%;  aspect-ratio: 3 / 4; transition-delay: .15s; }
.cl-3 { right: 10%; top: 9%; width: 16%; aspect-ratio: 3 / 4; transition-delay: .3s; }
.cl-4 { left: 2%;  top: 48%; width: 11%; aspect-ratio: 1 / 1; transition-delay: .2s; }
.cl-5 { left: 14%; bottom: 7%; width: 15%; aspect-ratio: 4 / 5; transition-delay: .4s; }
.cl-6 { right: 3%; top: 60%; width: 26%; aspect-ratio: 3 / 2; transition-delay: .25s; }
.cl-7 { right: 30%; bottom: 6%; width: 9%; aspect-ratio: 1 / 1; transition-delay: .5s; }
.collage-note { position: absolute; right: var(--gutter); bottom: 14px; font-size: 10px; color: var(--muted); }

/* ---------- Message（代表あいさつ・写真のフェード） ---------- */
.message { background: var(--paper); padding: clamp(96px, 12vw, 160px) 0; }
.message.is-sub { background: var(--white); }
.message-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.portrait { position: relative; max-width: 460px; margin-inline: auto; }
/* 金の枠は写真と同じ大きさで右下へずらす（切り替えボタンは囲まない） */
.portrait::before {
  content: ""; position: absolute; top: 22px; left: 22px; width: 100%; aspect-ratio: 3 / 4; border: 1px solid var(--gold); pointer-events: none;
}
.portrait-frame { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #ECECEC; }
.pf-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity 1.8s var(--ease), transform 7s linear;
}
.pf-img.is-on { opacity: 1; transform: scale(1); }
.pf-ctrl { position: relative; display: flex; justify-content: center; gap: 4px; margin-top: 40px; }
.pf-dot {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; padding: 0;
}
.pf-dot::before {
  content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 2px; background: var(--line);
  transition: background .4s var(--ease);
}
.pf-dot[aria-pressed="true"]::before { background: var(--purple); }
.message-body { font-family: var(--serif-jp); font-size: 17px; line-height: 2.1; margin-bottom: 36px; }
.msg-slot { border: 1px dashed var(--line); padding: 32px; margin-bottom: 36px; background: var(--paper); }
.sign { display: flex; align-items: baseline; gap: 18px; margin-bottom: 40px; }
.sign-role { font-size: 12px; color: var(--muted); letter-spacing: .14em; }
.sign-name { font-family: var(--serif-jp); font-size: 28px; letter-spacing: .24em; }

/* ---------- Points（円） ---------- */
.points { padding: clamp(100px, 12vw, 160px) 0; text-align: center; }
.points-title { font-family: var(--serif-jp); font-weight: 400; font-size: clamp(24px, 3vw, 34px); letter-spacing: .12em; line-height: 1.7; margin-bottom: 56px; }
.circles { display: flex; justify-content: center; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap; }
.circle {
  width: clamp(240px, 26vw, 320px); aspect-ratio: 1; border-radius: 50%;
  background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  position: relative;
}
.circle::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; border: 1px solid rgba(201,169,97,.45); }
.circle-no { font-family: var(--serif-en); font-size: 15px; color: var(--gold-ink); padding-bottom: 6px; border-bottom: 1px solid var(--gold); }
.circle-text { font-family: var(--serif-jp); font-size: 18px; line-height: 1.8; letter-spacing: .1em; padding: 0 24px; }

/* ---------- Property List（横カード） ---------- */
.plist { background: var(--paper); padding: clamp(96px, 12vw, 150px) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.sec-head .label { margin-bottom: 40px; }
.sec-head-side { margin-bottom: 44px; }
.rail-ctrl { display: flex; gap: 10px; }
.rail-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--ink); background: var(--white); cursor: pointer;
  display: grid; place-items: center; transition: background .3s, color .3s;
}
.rail-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.rail-btn:hover { background: var(--ink); color: var(--white); }
.rail {
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
  padding: 0 0 18px max(var(--gutter), (100% - var(--wrap)) / 2);
}
.rail-list { display: flex; gap: 24px; width: max-content; padding-right: var(--gutter); }
.pcard { width: clamp(260px, 30vw, 380px); scroll-snap-align: start; }
.pcard-link { display: flex; flex-direction: column; gap: 6px; text-decoration: none; background: var(--white); padding-bottom: 22px; height: 100%; }
.pcard-photo { position: relative; margin-bottom: 14px; }
.pcard-photo img { transition: transform .8s var(--ease); }
.pcard-link:hover .pcard-photo img { transform: scale(1.04); }
.pcard-tag {
  position: absolute; right: 12px; top: 12px; font-size: 11px; line-height: 1; padding: 6px 12px;
  background: var(--ink); color: var(--white); border-radius: 999px; letter-spacing: .1em;
}
.pcard-sample, .pcard-name, .pcard-price { padding-inline: 20px; }
.pcard-sample { font-size: 11px; color: var(--purple-ink); letter-spacing: .12em; }
.pcard-name { font-family: var(--serif-jp); font-size: 16px; line-height: 1.6; }
.pcard-price { font-size: 12px; color: var(--muted); }
.plist-foot { display: flex; flex-direction: column; align-items: center; gap: 28px; margin-top: 28px; }
.rail-note { font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- Business（交互の段） ---------- */
.bizlist { padding: clamp(100px, 12vw, 160px) 0 clamp(60px, 8vw, 100px); }
.brow { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; margin-top: clamp(56px, 8vw, 110px); }
.brow.is-rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.brow.is-rev .brow-photo { order: 2; }
.brow-no { display: inline-block; font-family: var(--serif-en); font-size: 15px; color: var(--gold-ink); border-bottom: 1px solid var(--gold); padding-bottom: 4px; margin-bottom: 20px; }
.brow-title { display: flex; flex-direction: column; gap: 6px; font-weight: 400; margin-bottom: 20px; }
.brow-en { font-family: var(--serif-en); font-size: clamp(30px, 3.6vw, 46px); line-height: 1.15; }
.brow-jp { font-family: var(--serif-jp); font-size: 15px; color: var(--muted); letter-spacing: .14em; }
.brow-text .lead { margin-bottom: 32px; }

/* ---------- 京都の写真帯 ---------- */
.kband { position: relative; min-height: 520px; display: flex; align-items: center; color: var(--white); overflow: hidden; }
.kband-bg, .kband-bg .frame { position: absolute; inset: 0; }
.kband::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.5), rgba(0,0,0,.1)); }
.kband-inner { position: relative; z-index: 1; padding: 100px 0; }
.kband .label-jp { color: rgba(255,255,255,.85); }
.kband p { font-family: var(--serif-jp); margin-bottom: 32px; letter-spacing: .1em; }
.band-note { position: absolute; right: 16px; bottom: 10px; z-index: 1; font-size: 10px; color: rgba(255,255,255,.85); }

/* ---------- お問い合わせの案内 ---------- */
.contact-cta { padding: clamp(100px, 12vw, 150px) 0; text-align: center; }
.contact-cta .lead { margin-bottom: 10px; }
.contact-cta .note { margin-bottom: 36px; }
.channel-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- 下層ページ ---------- */
.phead { padding-top: calc(var(--header-h) + clamp(56px, 8vw, 110px)); }
.phead-inner { margin-bottom: clamp(40px, 6vw, 72px); }
.phead-title { display: flex; flex-direction: column; gap: 10px; font-weight: 400; }
.phead-en { font-family: var(--serif-en); font-size: clamp(44px, 8vw, 110px); line-height: 1.05; letter-spacing: .01em; }
.phead-jp { font-family: var(--serif-jp); font-size: 15px; letter-spacing: .16em; color: var(--muted); display: flex; align-items: center; gap: 14px; }
.phead-jp::before { content: ""; width: 32px; height: 1px; background: var(--gold); }
.phead-lead { margin-top: 28px; font-family: var(--serif-jp); font-size: clamp(16px, 1.6vw, 19px); letter-spacing: .1em; }
.phead-photo { width: calc(100% - var(--gutter)); margin-left: var(--gutter); }
.phead-photo .frame { aspect-ratio: 21 / 8; }
.phead-photo .ai-tag { padding-right: var(--gutter); }

.sub-nav { margin-top: 56px; }
.sub-nav ul { display: flex; gap: 12px; flex-wrap: wrap; }
.sub-nav a {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 22px;
  border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 14px;
  transition: border-color .3s;
}
.sub-nav a:hover { border-color: var(--ink); }
.sub-no { font-family: var(--serif-en); color: var(--gold-ink); }
.biz { padding-bottom: 20px; }
.biz:last-of-type { padding-bottom: 60px; }

.facts { border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.8; }
.facts dt { color: var(--ink); font-weight: 600; letter-spacing: .08em; }

.projects { padding: clamp(72px, 9vw, 120px) 0; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.filters button {
  min-height: 46px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--white); cursor: pointer; font-size: 14px; letter-spacing: .1em;
}
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.filter-status { font-size: 12px; color: var(--muted); margin-bottom: 36px; }
.works-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 40px; }
.work-photo { position: relative; margin-bottom: 16px; }
.work-title { font-family: var(--serif-jp); font-weight: 400; font-size: 18px; margin-bottom: 14px; }

.company { padding: clamp(40px, 6vw, 80px) 0 clamp(100px, 12vw, 150px); }
.spec { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); font-size: 14px; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 20px 0; border-bottom: 1px solid var(--line); line-height: 1.9; }
.spec th { width: 13em; font-weight: 600; letter-spacing: .08em; padding-right: 20px; }

.kyoto { padding: clamp(72px, 9vw, 120px) 0 20px; }
.kyoto-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.map-slot {
  aspect-ratio: 4 / 3; background: var(--paper); border: 1px dashed var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--muted); font-size: 13px;
}
.map-en { font-family: var(--serif-en); font-size: 34px; color: var(--ink); letter-spacing: .2em; }
.kyoto .note { margin-top: 24px; }

.contact { padding: clamp(72px, 9vw, 120px) 0; }
.channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.channel { background: var(--paper); padding: clamp(36px, 5vw, 60px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.channel .label { margin-bottom: 28px; }
.channel .label-en { font-size: clamp(32px, 4vw, 48px); }
.channel .facts { width: 100%; text-align: left; margin-bottom: 32px; }
.channel-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--white); display: grid; place-items: center; margin-bottom: 20px; color: var(--purple-ink); }
.channel-ico .ico { width: 26px; height: 26px; }

.notfound { padding: 60px 0 120px; }
.nf-links { display: flex; gap: 14px 32px; flex-wrap: wrap; }

/* ---------- フッター ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 80px 0 100px; }
.footer-inner { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; display: grid; grid-template-columns: auto 1fr; gap: 40px 80px; align-items: start; }
.footer-logo { width: 150px; height: auto; }
.footer-nav { display: flex; gap: 10px 32px; flex-wrap: wrap; font-family: var(--serif-en); font-size: 15px; }
.footer-nav a { text-decoration: none; display: inline-block; padding: 8px 0; }
.footer-nav a:hover { color: var(--purple-ink); }
.footer-notes { grid-column: 2; font-size: 12px; color: var(--muted); line-height: 1.9; }
.copy { margin-top: 16px; font-family: var(--serif-en); letter-spacing: .1em; }

/* ---------- タブレット ---------- */
@media (max-width: 1080px) {
  #site-nav .jp { display: none; }
  #site-nav .nav-contact .jp { display: none; }
  .cl-2, .cl-7 { display: none; }
}

/* ---------- スマートフォン ---------- */
@media (max-width: 800px) {
  :root { --header-h: 64px; }
  body { font-size: 14px; }
  .brand-logo { height: 26px; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 4px;
    background: none; border: 0; cursor: pointer; font-family: var(--serif-en); font-size: 14px; letter-spacing: .12em;
    position: relative; z-index: 2;
  }
  .menu-icon { width: 28px; height: 10px; position: relative; }
  .menu-icon span { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
  .menu-icon span:first-child { top: 0; }
  .menu-icon span:last-child { top: 9px; }
  .menu-open .menu-icon span:first-child { top: 5px; transform: rotate(20deg); }
  .menu-open .menu-icon span:last-child { top: 5px; transform: rotate(-20deg); }

  #site-nav {
    position: fixed; inset: 0; z-index: 1; background: var(--white);
    padding: calc(var(--header-h) + 32px) var(--gutter) 40px; overflow-y: auto;
    visibility: hidden; opacity: 0; transition: opacity .35s var(--ease), visibility .35s;
  }
  .menu-open #site-nav { visibility: visible; opacity: 1; }
  #site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  #site-nav li { border-bottom: 1px solid var(--line); }
  #site-nav a { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 18px 0; min-height: 44px; }
  #site-nav .en { font-size: 26px; }
  #site-nav .jp { display: block; font-size: 12px; }
  #site-nav a::after { display: none; }
  #site-nav a[aria-current="page"] .en { color: var(--purple-ink); }
  #site-nav .nav-contact { border-bottom: 0; margin-top: 28px; }
  #site-nav .nav-contact a { justify-content: center; align-items: center; padding: 16px 24px; }
  #site-nav .nav-contact .en { font-size: 18px; }
  #site-nav .nav-contact .jp { display: block; }
  .nav-note { display: block; margin-top: 24px; font-size: 12px; color: var(--muted); text-align: center; }

  .demo-note { font-size: 10px; bottom: 8px; left: 8px; }
  .cta-fixed { right: 12px; bottom: 40px; min-height: 48px; padding: 0 18px 0 22px; gap: 12px; font-size: 13px; }

  .label { margin-bottom: 28px; }
  .label-en { font-size: clamp(36px, 11vw, 48px); }

  .hero { min-height: 520px; }
  .hero-title { font-size: clamp(34px, 10.5vw, 48px); }
  .hero-sub { letter-spacing: .2em; }
  .hero-cta { bottom: 14%; }
  .hero-scroll { display: none; }
  .hero-note { bottom: 44px; }
  .brand { padding: 9px 0; }

  /* コラージュは上に写真3枚、下に言葉 */
  .about { min-height: 0; display: block; padding: 72px var(--gutter) 88px; }
  .collage { position: relative; inset: auto; display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 12px; margin-bottom: 56px; }
  .cl { position: relative; inset: auto !important; width: auto !important; box-shadow: none; }
  .cl-1 { grid-row: span 2; aspect-ratio: 3 / 4; }
  .cl-3 { aspect-ratio: 4 / 3; }
  .cl-6 { aspect-ratio: 4 / 3; }
  .cl-2, .cl-4, .cl-5, .cl-7 { display: none; }
  .about-inner { margin-inline: auto; }
  .collage-note { position: static; text-align: right; margin-top: 16px; }

  .message-grid, .kyoto-grid, .channels { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 340px; margin-bottom: 8px; }
  .portrait::before { top: 12px; left: 12px; width: calc(100% - 2px); }
  .pf-ctrl { margin-top: 26px; }
  .sign-name { font-size: 24px; }

  .circles { flex-direction: column; align-items: center; gap: 16px; }
  .circle { width: min(230px, 70vw); }

  .sec-head-side { margin-bottom: 30px; }
  .rail { padding-left: var(--gutter); }
  .pcard { width: 78vw; }
  .btn.is-wide { padding-inline: 32px 76px; font-size: 13px; }
  .btn.is-wide .btn-sep { right: 58px; }
  .btn.is-wide .arw { right: 20px; }

  .brow, .brow.is-rev { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 56px; }
  .brow.is-rev .brow-photo { order: 0; }

  .kband { min-height: 440px; }

  .phead-photo { width: 100%; margin-left: 0; }
  .phead-photo .frame { aspect-ratio: 4 / 3; }
  .phead-photo .ai-tag { padding-right: var(--gutter); }

  .works-list { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .spec th, .spec td { display: block; width: auto; padding: 0; border: 0; }
  .spec th { padding-top: 18px; }
  .spec td { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .btn-off { width: 100%; }

  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-notes { grid-column: auto; }
}

@media (max-width: 360px) {
  .hero-cta { font-size: 13px; padding: 0 22px; }
  .btn { padding: 0 18px 0 22px; gap: 12px; }
  .circle-text { font-size: 16px; }
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .pf-img { transform: none; }
}

/* ---------- WordPress 用の追加 ---------- */
/* ログイン中の管理バーの分だけヘッダーを下げる */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
/* 通常の固定ページ・投稿（index.php）の本文 */
.entry { padding: 0 0 clamp(80px, 10vw, 140px); }
.entry > * + * { margin-top: 1.4em; }
.entry h2, .entry h3 { font-family: var(--serif-jp); font-weight: 400; line-height: 1.6; }
.entry a { color: var(--purple-ink); }
.entry-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
