@charset "UTF-8";

/* ==========================================================================
   Asuka Create — 第6案「彼女の机」
   参照 = 看板娘の原典（lofi作業部屋のアイキャッチ）
   クリーム地 / 紙のカード / マスキングテープ / 丸ゴシック /
   赤(眼鏡)のアクセント / ネイビー(サロペット)の文字 / パステル3色の小物
   ========================================================================== */

:root {
  --cream:   #FAF6EE;
  --cream-d: #F1EADC;
  --paper:   #FFFFFF;
  --ink:     #3D4661;
  --sub:     #8A8FA3;
  --red:     #D14E4A;
  --red-d:   #B8403C;
  --pink:    #F2ADBB;
  --mint:    #A9D8BE;
  --sand:    #EDDFBC;
  --hair:    #E9E2D2;

  --f-latin: "Quicksand", sans-serif;
  --f-ja:    "Zen Maru Gothic", sans-serif;

  --r: 8px;
  --line: #E0D7C2;
  --shadow: 5px 6px 0 rgba(61,70,97,.07);
  --head-h: 66px;
  --pad: clamp(20px, 5vw, 88px);
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-ja);
  font-weight: 500;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- ヘッダー ---------- */
.masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--head-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 var(--pad);
  background: rgba(250,246,238,.92);
  border-bottom: 1px solid var(--hair);
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { width: 34px; height: 34px; }
.brand-name {
  font-family: var(--f-latin);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}
.lang {
  font-family: var(--f-latin);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 6px 16px;
  cursor: pointer;
  line-height: 1.4;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.lang:hover, .lang:focus-visible { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- 見出し（彼女の部屋の一枚絵） ---------- */
.hero {
  position: relative;
  overflow: hidden;
  margin-top: var(--head-h);
  min-height: calc(88svh - var(--head-h));
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
  background: #F5F1E8;
}
.hero-art { position: absolute; inset: 0; }
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.hero-inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  width: 100%;
}
.hero-copy {
  max-width: 46%;
  min-width: 0;
  padding: clamp(60px, 9vh, 110px) 0;
}

.hero-eyebrow {
  margin: 0 0 clamp(16px, 2.4vw, 24px);
  padding-left: 60px;
  position: relative;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3em;
  color: var(--sub);
}
.hero-eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--pink) 0 33%, var(--mint) 33% 66%, var(--sand) 66% 100%);
}

.hero h1 { margin: 0; font-weight: 900; }
.hero h1 span { display: block; }
.hero .h1a, .hero .h1b {
  font-size: clamp(30px, 4.8vw, 64px);
  line-height: 1.36;
  letter-spacing: .03em;
}
.hero .h1b { color: var(--red); }

.hero-lead {
  margin: clamp(18px, 2.6vw, 28px) 0 0;
  max-width: 30em;
  font-size: clamp(13.5px, 1.4vw, 16px);
  font-weight: 500;
  line-height: 2.15;
  color: var(--sub);
}

/* 作品インデックス（素の文字リンク） */
.hero-works {
  list-style: none;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
}
.hero-works a { display: inline-flex; align-items: baseline; gap: 10px; }
.hero-works i {
  font-style: normal;
  font-family: var(--f-latin);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--red);
}
.hero-works span {
  position: relative;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .1em;
  padding-bottom: 3px;
}
.hero-works span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.hero-works a:hover span::after,
.hero-works a:focus-visible span::after { transform: scaleX(1); }

/* ---------- セクション見出し ---------- */
.sec-head {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
}
.sec-ja {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 900;
  letter-spacing: .16em;
}
.sec-en {
  font-family: var(--f-latin);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--red);
  padding-top: 5px;
}
.sec-line { flex: 1; height: 2px; border-radius: 1px; background: var(--hair); }
.sec-count {
  font-family: var(--f-latin);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .1em;
  color: var(--sub);
}

.works-intro {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--pad) clamp(12px, 2vw, 28px);
}

/* ---------- 作品（机に置かれた紙のカード） ---------- */
.panel {
  position: relative;
  padding: clamp(28px, 4vw, 54px) var(--pad);
}
/* マステの色割り当て */
.p-hyakki    { --tape: var(--pink); }
.p-tenshu    { --tape: var(--mint); }
.p-rasetsu   { --tape: var(--sand); }
.p-fudedochu { --tape: var(--pink); }

/* 透かし連番 */
.ghost {
  position: absolute;
  top: 4px;
  right: var(--pad);
  font-family: var(--f-latin);
  font-weight: 700;
  font-size: clamp(84px, 12vw, 160px);
  line-height: 1;
  color: rgba(61,70,97,.06);
  pointer-events: none;
  user-select: none;
}
.panel:nth-of-type(even) .ghost { right: auto; left: var(--pad); }

.panel-in {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: clamp(24px, 3.4vw, 46px);
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.6vw, 52px);
  --rot: -.35deg;
  transform: rotate(var(--rot));
}
.panel:nth-of-type(even) .panel-in { flex-direction: row-reverse; --rot: .35deg; }

.shot {
  margin: 0;
  flex: 0 1 56%;
  position: relative;
}
.shot img { width: 100%; border-radius: 4px; border: 1.5px solid var(--line); }
/* マスキングテープ */
.shot::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 38px;
  width: 118px;
  height: 26px;
  border-radius: 4px;
  background: var(--tape);
  opacity: .85;
  transform: rotate(-5deg);
  z-index: 2;
}
.panel:nth-of-type(even) .shot::before { left: auto; right: 38px; transform: rotate(5deg); }

.info { flex: 1 1 44%; min-width: 0; display: flex; flex-direction: column; }
.txt { min-width: 0; display: flex; flex-direction: column; }

.vtitle {
  order: -1;
  margin: 0 0 2px;
  writing-mode: horizontal-tb;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: .1em;
  color: var(--ink);
}

.num { display: none; }
.catch {
  margin: 0 0 2px;
  font-size: clamp(14.5px, 1.6vw, 18px);
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--red);
}
.latin {
  margin: 0 0 16px;
  font-family: var(--f-latin);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--sub);
}
.desc {
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 2.05;
  max-width: 30em;
  color: var(--ink);
}

.meta { margin: 0 0 24px; border-top: 1.5px dashed var(--hair); }
.meta > div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 0 18px;
  padding: 7px 0;
  border-bottom: 1.5px dashed var(--hair);
  font-size: 13px;
}
.meta dt {
  font-family: var(--f-latin);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sub);
  line-height: 2.1;
}
.meta dd { margin: 0; font-weight: 500; line-height: 2.1; }

.play {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  align-self: flex-start;
  padding: 13px 26px 14px 30px;
  background: var(--red);
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2em;
  box-shadow: 3px 4px 0 rgba(184,64,60,.25);
  transition: background-color .18s ease, transform .18s ease, gap .18s ease;
}
.play i {
  width: 24px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  position: relative;
  flex: none;
}
.play i::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3.5px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  border-radius: 1px;
  transform: rotate(45deg);
}
.play:hover, .play:focus-visible { background: var(--red-d); transform: translateY(-2px); gap: 20px; }

.fan { margin: 16px 0 0; font-size: 11.5px; letter-spacing: .06em; color: var(--sub); }

/* ---------- 種火 ---------- */
.tool {
  padding: clamp(48px, 7vw, 100px) var(--pad) 0;
}
.tool-inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  background: #EDF5EC;
  border: 1.5px solid #CFE2CF;
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: clamp(28px, 4vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  transform: rotate(.3deg);
}
.tool-inner::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 46px;
  width: 118px;
  height: 26px;
  border-radius: 4px;
  background: var(--sand);
  opacity: .85;
  transform: rotate(-5deg);
}
.tool-eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .28em;
  color: var(--sub);
}
.tool h2 { margin: 0 0 18px; font-weight: 900; }
.tool h2 .ja { display: block; font-size: clamp(32px, 4.6vw, 52px); letter-spacing: .12em; line-height: 1.2; }
.tool h2 .latin {
  display: block;
  margin: 8px 0 0;
  font-family: var(--f-latin);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--sub);
}
.tag {
  display: inline-block;
  padding: 6px 18px 7px;
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
}
.tool-catch {
  margin: 0 0 16px;
  font-size: clamp(18px, 2.3vw, 26px);
  font-weight: 900;
  line-height: 1.7;
  letter-spacing: .06em;
}
.tool-right p:last-child {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 2.05;
  color: var(--ink);
  max-width: 44em;
}

/* ---------- ほかの場所 ---------- */
.links { padding: clamp(64px, 9vw, 130px) var(--pad) clamp(64px, 9vw, 120px); max-width: var(--wrap); margin: 0 auto; }
.links .sec-head { margin-bottom: clamp(28px, 4vw, 48px); }
.links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}
.links a {
  display: block;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: clamp(20px, 2.6vw, 32px);
  transition: transform .18s ease, box-shadow .18s ease;
}
.links a:hover, .links a:focus-visible {
  transform: translate(-2px, -3px);
  box-shadow: 8px 10px 0 rgba(61,70,97,.09);
}
.ln {
  display: block;
  font-family: var(--f-latin);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: .04em;
  line-height: 1.3;
  margin-bottom: 6px;
}
.ld { display: block; font-size: 13px; font-weight: 500; color: var(--sub); }
.lu {
  display: block;
  margin-top: 14px;
  font-family: var(--f-latin);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--red);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- フッター ---------- */
.foot {
  background: var(--cream-d);
  border-top: 1px solid var(--hair);
  padding: clamp(30px, 4vw, 44px) var(--pad) 0;
}
.foot-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 22px;
}
.foot-chibi {
  width: clamp(96px, 10vw, 132px);
  height: auto;
  margin-bottom: -1px;
}
.foot-tile { display: flex; align-items: center; margin-bottom: 26px; }
.foot-logo { width: 30px; height: 30px; }
.foot-txt { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.foot-brand {
  font-family: var(--f-latin);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.foot-copy { font-family: var(--f-latin); font-weight: 600; font-size: 12px; letter-spacing: .1em; color: var(--sub); }

/* ---------- スクロール演出 ---------- */
.reveal .panel-in, .reveal.tool .tool-inner, .reveal.links ul {
  opacity: 0;
  transform: translateY(30px) rotate(var(--rot, 0deg));
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1);
}
.reveal.on .panel-in, .reveal.on .tool-inner, .reveal.on ul { opacity: 1; transform: rotate(var(--rot, 0deg)); }
.reveal.tool .tool-inner { --rot: .3deg; }

/* ---------- 画面幅への追従 ---------- */
@media (max-width: 1080px) {
  .hero { min-height: 0; display: block; padding: 0; background: var(--cream); }
  .hero-art { position: static; }
  .hero-art img { width: 100%; height: auto; object-fit: contain; }
  .hero-inner { padding: 0 var(--pad); }
  .hero-copy { max-width: none; padding: clamp(80px, 11vh, 110px) 0 30px; }

  .panel-in, .panel:nth-of-type(even) .panel-in { flex-direction: column; align-items: stretch; }
  .shot { flex: none; }
  .ghost { font-size: clamp(70px, 16vw, 120px); }
  .vtitle { font-size: clamp(26px, 6vw, 38px); }

  .tool-inner { grid-template-columns: 1fr; }
  .links ul { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .brand-name { font-size: 13px; letter-spacing: .16em; }
  .hero .h1a, .hero .h1b { font-size: clamp(23px, 7vw, 32px); }
  .hero-works a { padding: 8px 16px 9px 13px; }
  .meta > div { grid-template-columns: 68px minmax(0, 1fr); }
  .play { width: 100%; justify-content: space-between; }
  .foot-inner { gap: 12px; }
  .foot-chibi { width: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .reveal .panel-in, .reveal.tool .tool-inner, .reveal.links ul { opacity: 1; transform: rotate(var(--rot, 0deg)); }
  html { scroll-behavior: auto; }
}
