/* =========================================================
   株式会社ダイズ リブランディング案 — 共通スタイル（シック版）
   トンマナ：現行サイトのクラフト紙（質感あり）× 黒板ネイビー × ティール
   構成：パネル＋スタンプ＋キャラクター
   ※ 紙の質感は、クライアントの現行ブランド（クラフト紙）を受け継ぐため、このサイトに限り使用（ご指示 2026-10-12）
   ========================================================= */
:root {
  --kraft: #B49A81;      /* 地色：クラフト紙 */
  --kraft-2: #A38870;    /* 写真の下地など */
  --paper: #F1EADB;      /* アイボリーの紙（パネル） */
  --paper-2: #E4D9C4;    /* 紙の上の一段濃い面 */
  --ink: #1D2230;        /* 黒板ネイビー：見出し・ボタン・濃い面 */
  --ink-2: #2B2925;      /* 本文（あたたかい黒） */
  --ink-3: #5E564C;      /* 補足（紙の上だけで使う） */
  --teal: #12808F;       /* アクセント（紙の上の大見出し） */
  --teal-ink: #0E6976;   /* 小さい文字のアクセント */
  --teal-light: #6CC3CD; /* 黒板の上のアクセント */
  --teal-tint: #CFE0DE;
  --bubble: #F1EADB;     /* 吹き出し */
  --line: #D6C9B1;       /* 一覧の区切り線 */

  --tex-kraft: url(../img/tex-kraft.svg);

  --f-en: "Cinzel", "Shippori Mincho B1", serif;
  --f-head: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;   /* 見出しも極太ゴシック（明朝は使わない） */
  --f-ui: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-round: var(--f-ui);
  --f-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;

  --fs-display: 96px;
  --fs-catch: 56px;      /* キャッチコピー（明朝） */
  --fs-num: 64px;        /* 数字 */
  --fs-brand: 16px;
  --fs-h2: 48px;
  --fs-h3: 34px;
  --fs-h4: 23px;
  --fs-lead: 18px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-cap: 12px;

  --wrap: 1200px;
  --hd-h: 96px;
}
@media (max-width: 1024px) {
  :root { --fs-display: 72px; --fs-catch: 44px; --fs-num: 52px; --fs-h2: 38px; --fs-h3: 28px; --fs-h4: 21px; --hd-h: 72px; }
}
@media (max-width: 640px) {
  :root { --fs-display: 44px; --fs-catch: 30px; --fs-num: 40px; --fs-brand: 13px; --fs-h2: 28px; --fs-h3: 22px; --fs-h4: 19px; --fs-lead: 16px; --hd-h: 64px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--kraft) var(--tex-kraft);
  color: var(--ink-2);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: var(--fs-body);
  line-height: 2;
  letter-spacing: .05em;
  word-break: auto-phrase;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--f-head); font-weight: 900; line-height: 1.5; letter-spacing: .08em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
.wrap { width: min(var(--wrap), calc(100% - 80px)); margin: 0 auto; }
.sp-only { display: none; }
@media (max-width: 640px) {
  .wrap { width: calc(100% - 48px); }
  .sp-only { display: inline; }
  .pc-only { display: none; }
}
.note { font-size: var(--fs-cap); color: var(--ink-3); line-height: 1.7; }
.tmp { color: #9a3a26; font-weight: 700; }

/* ---------- 共通：スタンプ・イラスト ---------- */
.stamp { position: absolute; width: var(--w, 120px); mix-blend-mode: multiply; pointer-events: none; z-index: 2; }
.stamp img { width: 100%; height: auto; }
.illust img { width: 100%; height: auto; }

/* 切り紙のような写真の形（clip-pathで切る。枠線・影は付けない） */
.cut-a { clip-path: polygon(0 3%, 4% 0, 100% 2%, 98% 96%, 100% 100%, 3% 98%, 0 100%); }
.cut-b { clip-path: polygon(2% 0, 100% 0, 100% 92%, 96% 100%, 0 98%, 1% 6%); }
.cut-c { clip-path: polygon(0 0, 92% 2%, 100% 10%, 99% 100%, 6% 98%, 0 90%); }
.ph { overflow: hidden; background: var(--kraft-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph img.zoom { transform: scale(1.4); }

/* ---------- 見出し ---------- */
.sh { margin-bottom: 48px; }
.sh__en { font-family: var(--f-en); font-weight: 700; line-height: 1; }
.sh__brand { display: block; color: var(--ink); font-size: var(--fs-brand); letter-spacing: .5em; margin-bottom: 12px; }
.sh__big { display: block; color: var(--ink); font-size: var(--fs-display); letter-spacing: .06em; }
.sh__ja { margin-top: 16px; font-size: var(--fs-lead); color: var(--ink); letter-spacing: .24em; font-weight: 700; }
.panel .sh__brand { color: var(--teal-ink); }
.panel .sh__big { color: var(--teal); }
.sh--center { text-align: center; }
.sh--light .sh__brand, .sh--light .sh__ja { color: var(--paper); }
.sh--light .sh__big { color: var(--teal-light); }
.lead { font-size: var(--fs-lead); line-height: 2.2; letter-spacing: .1em; color: var(--ink-2); }

/* ---------- ボタン ---------- */
.btn .carr { width: 36px; height: 36px; border-color: var(--teal-light); color: var(--teal-light); }
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 40px;
  min-width: 340px; padding: 22px 30px;
  background: var(--ink); color: var(--paper);
  font-family: var(--f-ui); font-weight: 700; font-size: 16px; letter-spacing: .18em; line-height: 1.4;
  transition: background .2s;
}
.btn:hover { background: var(--teal-ink); }
a.btn:hover .carr { background: var(--paper); border-color: var(--paper); color: var(--teal-ink); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light .carr { border-color: var(--teal-ink); color: var(--teal-ink); }
.btn--light:hover { background: #fff; }
a.btn--light:hover .carr { background: var(--teal-ink); border-color: var(--teal-ink); color: var(--paper); }
.btns { display: flex; flex-wrap: wrap; gap: 16px; }
.linkchip { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-ui); font-weight: 700; color: var(--ink); letter-spacing: .12em; }
.linkchip .carr { width: 32px; height: 32px; }
.carr {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--teal-ink); color: var(--teal-ink); transition: background .2s, color .2s;
}
.carr svg { width: 14px; height: 14px; }
a:hover .carr { background: var(--teal-ink); color: var(--paper); }
@media (max-width: 640px) {
  .btn { min-width: 0; width: 100%; padding: 20px 24px; font-size: 15px; }
}

/* ---------- タグ ---------- */
.tag { display: inline-block; padding: 2px 10px; border-radius: 4px; background: var(--teal-ink); color: var(--paper); font-family: var(--f-ui); font-weight: 700; font-size: var(--fs-cap); letter-spacing: .12em; line-height: 1.8; }
.tag--o { background: var(--paper); color: var(--teal-ink); border: 1.5px solid var(--teal-ink); border-radius: 999px; }
.tag--ink { background: var(--ink); }

/* ---------- ヘッダー ---------- */
.hd {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--hd-h); display: flex; align-items: center; gap: 40px;
  padding: 0 300px 0 48px;
  transition: background .25s;
}
.hd.is-scrolled, .page-sub .hd { background: var(--paper); }
.hd__logo { flex: none; width: 168px; transition: opacity .25s; }
.page-top .hd:not(.is-scrolled) .hd__logo { opacity: 0; pointer-events: none; }
.hd__nav { flex: 1; display: flex; justify-content: center; gap: 36px; }
.hd__nav a { font-family: var(--f-ui); font-weight: 700; font-size: 14px; color: var(--ink); letter-spacing: .18em; white-space: nowrap; }
.hd__nav a:hover, .hd__nav a[aria-current] { color: var(--teal-ink); }
.hd__pennants { position: absolute; top: 0; right: 56px; display: flex; gap: 12px; }
.pennant {
  width: 112px; height: 150px; padding: 0 0 26px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: var(--paper);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
  font-family: var(--f-ui); font-weight: 700; font-size: 14px; line-height: 1.4; letter-spacing: .12em; text-align: center;
  transition: height .2s;
}
.pennant svg { width: 38px; height: 28px; }
.pennant small { display: block; font-family: var(--f-en); font-weight: 700; font-size: 12px; letter-spacing: .16em; color: var(--teal-light); }
.pennant--teal { background: var(--teal-ink); }
.pennant--teal small { color: var(--paper); }
.pennant:hover { height: 162px; }
.hd__contact, .hd__menu { display: none; }
@media (max-width: 1240px) {
  .hd { padding-right: 280px; gap: 24px; }
  .hd__nav { gap: 22px; }
  .hd__nav a { font-size: 13px; letter-spacing: .1em; }
}
@media (max-width: 1024px) {
  .hd { padding: 0 16px 0 24px; justify-content: space-between; background: var(--paper); }
  .page-top .hd:not(.is-scrolled) .hd__logo { opacity: 1; pointer-events: auto; }
  .hd__logo { width: 140px; }
  .hd__nav, .hd__pennants { display: none; }
  .hd__contact {
    display: inline-flex; align-items: center; margin-left: auto; padding: 8px 16px;
    background: var(--teal-ink); color: var(--paper); font-family: var(--f-ui); font-weight: 700; font-size: 14px; letter-spacing: .08em; line-height: 1.4;
  }
  .hd__menu {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    width: 56px; height: 48px; border: 0; background: var(--ink); color: var(--paper);
    font-family: var(--f-en); font-weight: 700; font-size: 12px; letter-spacing: .1em;
  }
  .hd__menu i { display: block; width: 22px; height: 2px; background: var(--paper); }
}
@media (max-width: 640px) {
  .hd__logo { width: 116px; }
  .hd__contact { font-size: 13px; padding: 8px 12px; }
  .hd__menu { width: 52px; height: 44px; }
}

/* メニュー（スマホ・タブレット） */
.menu {
  position: fixed; inset: 0; z-index: 80; display: none; overflow-y: auto;
  background: var(--ink); color: var(--paper); padding: 96px 24px 120px;
}
.menu.is-open { display: block; }
.menu__close { position: absolute; top: 16px; right: 16px; width: 52px; height: 48px; border: 0; background: var(--paper); color: var(--ink); font-family: var(--f-en); font-weight: 700; font-size: 12px; }
.menu__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 900px; margin: 0 auto; }
.menu h2 { color: var(--teal-light); font-family: var(--f-ui); font-size: var(--fs-small); letter-spacing: .2em; margin-bottom: 12px; }
.menu a { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(241,234,219,.18); font-family: var(--f-head); font-weight: 700; letter-spacing: .1em; }
.menu a::after { content: "→"; color: var(--teal-light); }
@media (max-width: 640px) { .menu__grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- MV（切り紙の枠に動画、左下にアイボリーのラベル） ---------- */
.mv { position: relative; padding-top: calc(var(--hd-h) + 12px); padding-bottom: 150px; }
.mv__stage { position: relative; width: min(1120px, calc(100% - 320px)); margin: 0 auto; }
.mv__screen {
  position: relative; aspect-ratio: 2 / 1; overflow: hidden; background: #14161d;
  clip-path: polygon(0 4%, 2% 0, 36% 1.4%, 64% 0, 97.5% 1%, 100% 5%, 99.4% 50%, 100% 95%, 97% 100%, 62% 98.6%, 30% 100%, 2.5% 99%, 0 95%, .6% 52%);
}
/* 拡大はしない（映像の右下の文字「Osaka」などが切れないように） */
.mv__screen video, .mv__screen .mv__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mv__sound {
  position: absolute; left: 28px; top: 24px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 0;
  background: rgba(241,234,219,.92); color: var(--ink); font-family: var(--f-ui); font-weight: 700; font-size: 13px; letter-spacing: .1em;
}
.mv__sound svg { width: 18px; height: 18px; }
/* 動画の下に重なる、アイボリーのラベル */
.mv__hill {
  position: absolute; left: -40px; bottom: -120px; z-index: 3;
  width: auto; padding: 34px 48px 28px; text-align: left;
  background: var(--paper);
  clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% calc(100% - 22px), calc(100% - 22px) 100%, 22px 100%, 0 calc(100% - 22px), 0 22px);
}
.mv__sub { font-family: var(--f-ui); font-weight: 700; font-size: 14px; color: var(--ink); letter-spacing: .3em; line-height: 1.6; }
.mv__copy { margin-top: 10px; font-family: var(--f-head); font-weight: 900; font-size: var(--fs-catch); line-height: 1.4; letter-spacing: .1em; color: var(--ink); white-space: nowrap; }
.mv__copy em { font-style: normal; color: var(--teal); }
.mv__logo { width: 150px; margin: 18px 0 0; }
@media (max-width: 1240px) { .mv__stage { width: calc(100% - 220px); } }
@media (max-width: 1024px) {
  .mv { padding-bottom: 40px; }
  .mv__stage { width: calc(100% - 48px); }
  .mv .stamp { display: none; }
  .mv__hill { position: relative; left: auto; bottom: auto; width: min(600px, calc(100% - 24px)); margin: -70px 0 0 -12px; }
}
@media (max-width: 640px) {
  .mv { padding-top: calc(var(--hd-h) + 8px); }
  .mv__stage { width: calc(100% - 24px); }
  .mv__screen { aspect-ratio: 16 / 9; }
  .mv__hill { margin-top: -10px; width: calc(100% - 24px); padding: 24px 18px 18px; }
  .mv__copy { white-space: normal; }
  .mv__sub { font-size: 12px; letter-spacing: .14em; }
  .mv__copy { font-size: 28px; letter-spacing: .08em; }
  .mv__logo { width: 130px; }
  .mv__sound { left: 12px; top: 12px; padding: 6px 12px; font-size: 12px; }
}
/* ---------- 紙のパネル（上の角を落とす） ---------- */
.panel {
  position: relative; background: var(--paper); padding: 72px 64px;
  clip-path: polygon(48px 0, calc(100% - 48px) 0, 100% 48px, 100% 100%, 0 100%, 0 48px);
}
@media (max-width: 640px) {
  .panel { padding: 48px 20px; clip-path: polygon(24px 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%, 0 24px); }
}
.sec { position: relative; padding: 140px 0 0; }
@media (max-width: 640px) { .sec { padding-top: 88px; } }

/* ---------- NEWS ---------- */
.news .panel { display: grid; grid-template-columns: 300px 1fr; gap: 56px; }
.news__side { position: relative; }
.news__side .illust { width: 170px; margin-top: 24px; mix-blend-mode: multiply; }
.newslist li { border-bottom: 1px solid var(--line); }
.newslist li:first-child { border-top: 1px solid var(--line); }
.newslist a { display: grid; grid-template-columns: 168px 1fr 40px; gap: 28px; align-items: center; padding: 22px 0; }
.newslist__thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.newslist__thumb img { width: 100%; height: 100%; object-fit: cover; }
.newslist__meta { display: flex; align-items: center; gap: 14px; line-height: 1.4; }
.newslist__meta time { font-family: var(--f-en); font-weight: 700; font-size: 14px; color: var(--ink-3); letter-spacing: .1em; }
.newslist__title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 8px; font-family: var(--f-head); font-weight: 700; font-size: var(--fs-lead); color: var(--ink); line-height: 1.6; letter-spacing: .08em;
}
.newslist__excerpt {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 4px; font-size: var(--fs-small); color: var(--ink-2); line-height: 1.8;
}
.news__more { margin-top: 40px; display: flex; justify-content: flex-end; }
@media (max-width: 1024px) {
  .news .panel { grid-template-columns: 1fr; gap: 24px; }
  .news__side { display: flex; align-items: flex-end; justify-content: space-between; }
  .news__side .illust { width: 120px; margin: 0; }
}
@media (max-width: 640px) {
  .newslist a { grid-template-columns: 120px 1fr; gap: 14px; }
  .newslist a .carr { display: none; }
  .newslist__excerpt { display: none; }
  .newslist__title { font-size: 15px; }
  .news__more .btn { width: 100%; }
}

/* ---------- ABOUT（ダイズの七変化：縦書き） ---------- */
.about { position: relative; padding: 160px 0 40px; }
.about__inner { position: relative; min-height: 880px; }
.about__body { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; }
/* 見出し：英字ラベル＋濃紺の判子（縦書きのキーワードと同じ形） */
.about__label { display: flex; flex-direction: column; align-items: center; gap: 16px; font-family: var(--f-en); font-weight: 700; font-size: 16px; color: var(--ink); letter-spacing: .5em; }
.about__label span { display: inline-block; padding: .22em .5em .26em .72em; background: var(--ink); color: var(--paper); font-family: var(--f-head); font-weight: 900; font-size: var(--fs-h2); line-height: 1.3; letter-spacing: .22em; }
.about__poem {
  margin-top: 40px; writing-mode: vertical-rl; height: 500px;
  font-family: var(--f-ui); font-weight: 900; font-size: 36px; line-height: 2; letter-spacing: .2em; color: var(--ink);
}
/* キーワードは濃紺の判子のように白抜き（色面で強調） */
.about__poem em { font-style: normal; background: var(--ink); color: var(--paper); padding: .14em .06em; letter-spacing: .08em; }
.about__body .btns { margin-top: 48px; justify-content: center; }
.about__ph { position: absolute; z-index: 1; width: var(--pw, 300px); aspect-ratio: 4 / 3; }
.about .stamp { z-index: 2; }
@media (max-width: 1024px) {
  .about { padding-top: 110px; }
  .about__inner { min-height: 0; }
  .about__poem { height: 440px; font-size: 30px; }
  .about__ph { position: relative; display: none; }
  .about__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
  .about__gallery .about__ph { position: static; display: block; width: 100%; margin: 0; }
  .about .stamp { display: none; }
}
@media (min-width: 1025px) { .about__gallery { display: contents; } }
@media (max-width: 640px) {
  .about__poem { height: 340px; font-size: 22px; letter-spacing: .1em; line-height: 1.95; }
  .about__body .btns { width: 100%; }
}

/* ---------- SERVICE（七変化の輪） ---------- */
.service .panel { padding-bottom: 64px; }
.service__head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.service__head .sh { margin-bottom: 0; }
.service__head h3 { font-size: var(--fs-h3); margin-bottom: 16px; }
.hub { position: relative; width: min(900px, 100%); height: 1040px; margin: 40px auto 0; }
.hub .illust img, .hub__core .illust { mix-blend-mode: multiply; }
.hub__core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 240px; text-align: center; }
.hub__core .illust { width: 220px; margin: 0 auto; }
.hub__core p { margin-top: 6px; font-family: var(--f-head); font-weight: 900; font-size: var(--fs-h4); color: var(--ink); letter-spacing: .16em; line-height: 1.5; }
.hub__core small { display: block; font-family: var(--f-ui); font-size: var(--fs-small); font-weight: 700; color: var(--teal-ink); letter-spacing: .12em; }
.hub__item {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  width: 220px; text-align: center;
}
.hub__item .illust { display: block; width: 140px; height: 128px; margin: 0 auto; transition: transform .25s; }
.hub__item .illust img { width: 100%; height: 100%; object-fit: contain; }
.hub__item:hover .illust { transform: translateY(-6px); }
.hub__soy { display: block; margin-top: 4px; font-family: var(--f-head); font-weight: 900; font-size: 15px; color: var(--teal-ink); letter-spacing: .4em; line-height: 1.5; }
.hub__name { display: block; font-family: var(--f-head); font-weight: 900; font-size: 19px; color: var(--ink); letter-spacing: .04em; line-height: 1.5; }
.hub__name .carr { display: inline-grid; vertical-align: -4px; margin-left: 6px; width: 24px; height: 24px; border-width: 1.5px; }
.hub__name .carr svg { width: 10px; height: 10px; }
.hub__desc { display: block; margin-top: 4px; font-size: var(--fs-small); line-height: 1.7; color: var(--ink-2); }
.service__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 16px; padding: 28px 36px; background: var(--ink); color: var(--paper); }
.service__price { font-family: var(--f-ui); font-weight: 700; color: var(--paper); letter-spacing: .1em; line-height: 1.6; }
.service__price b { font-family: var(--f-en); font-size: 38px; color: var(--teal-light); letter-spacing: .02em; margin: 0 4px; }
.service__foot .note { color: rgba(241,234,219,.8); }
.service__foot .linkchip { color: var(--paper); }
.service__foot .carr { border-color: var(--teal-light); color: var(--teal-light); }
@media (max-width: 1024px) {
  .service__head { grid-template-columns: 1fr; gap: 16px; }
  .hub { height: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 16px; }
  .hub__core { position: static; transform: none; grid-column: 1 / -1; width: auto; }
  .hub__item { position: static; transform: none; width: auto; }
}
@media (max-width: 640px) {
  .hub { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .hub__core .illust { width: 170px; }
  .hub__item .illust { width: 104px; height: 96px; }
  .hub__name { font-size: 16px; }
  .service__foot { padding: 24px 20px; }
}

/* ---------- タイトルボックス（WORKS などの入口） ---------- */
.ttlbox { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; max-width: 820px; padding: 48px 56px 48px 40px; background: var(--paper); }
.ribbon {
  align-self: start; margin-top: -48px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 104px; height: 136px; padding-bottom: 20px; background: var(--ink); color: var(--paper);
  clip-path: polygon(0 0, 100% 0, 100% 84%, 50% 100%, 0 84%);
  font-family: var(--f-en); font-weight: 700; font-size: 13px; letter-spacing: .14em;
}
.ribbon svg { width: 44px; height: 30px; color: var(--teal-light); }
.ttlbox h2 { font-size: var(--fs-h2); letter-spacing: .16em; line-height: 1.3; }
.ttlbox p { margin-top: 12px; font-size: var(--fs-lead); line-height: 1.9; letter-spacing: .1em; }
@media (max-width: 640px) {
  .ttlbox { grid-template-columns: 76px 1fr; gap: 16px; padding: 32px 20px 28px 16px; }
  .ribbon { margin-top: -32px; width: 68px; height: 96px; font-size: 12px; letter-spacing: .04em; }
  .ribbon svg { width: 30px; height: 22px; }

  .ttlbox p { font-size: 15px; }
}

/* ---------- WORKS ---------- */
.works__top { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.works__top .ttlbox { flex: 1; }
.works__mascot { width: 240px; flex: none; margin-right: 80px; }
.works__guide { position: relative; margin-top: 56px; padding: 56px 56px 48px; background: var(--paper); }
.guide__head { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.guide__head .illust { width: 120px; flex: none; mix-blend-mode: multiply; }
.guide__head h3 { font-size: var(--fs-h3); }
.guide__head p { font-size: var(--fs-small); }
.guide { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.guide__col { display: grid; align-content: start; gap: 6px; }
.guide__st { padding: 12px 8px; background: var(--ink); color: var(--paper); text-align: center; font-family: var(--f-ui); font-weight: 700; font-size: 15px; letter-spacing: .16em; line-height: 1.5; }
.guide__pg { padding: 16px 16px 14px; background: var(--teal-tint); min-height: 104px; }
.guide__pg b { display: block; font-family: var(--f-head); font-weight: 900; font-size: 16px; color: var(--ink); line-height: 1.55; letter-spacing: .04em; }
.guide__pg span { display: block; margin-top: 6px; font-size: var(--fs-cap); color: var(--teal-ink); font-weight: 700; line-height: 1.5; }
.guide__pg .tag { display: inline-block; margin-top: 8px; color: var(--paper); }
.guide__pg:hover b { color: var(--teal-ink); }
.works__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 64px; }
.wcard { display: block; }
.wcard .ph { aspect-ratio: 16 / 9; }
.wcard .ph img { transform: scale(1.14); }
.wcard__tx { position: relative; margin: -18px 10px 0; padding: 22px 20px 24px; background: var(--paper); clip-path: polygon(0 0, 92% 0, 100% 12%, 100% 100%, 0 100%); }
.wcard__tx .tag { margin-bottom: 10px; }
.wcard__tx h3 { font-size: 17px; line-height: 1.6; letter-spacing: .06em; }
.wcard__tx p { margin-top: 8px; font-size: var(--fs-cap); font-weight: 700; color: var(--ink-3); letter-spacing: .1em; line-height: 1.6; }
.wcard:hover h3 { color: var(--teal-ink); }
.works__more { display: flex; justify-content: flex-end; margin-top: 48px; }
@media (max-width: 1024px) {
  .works__mascot { width: 150px; margin-right: 0; }
  .guide { grid-template-columns: repeat(3, 1fr); }
  .works__cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .works__top { flex-direction: column; align-items: stretch; }
  .works__mascot { width: 120px; margin: -10px 0 0 auto; }
  .works__guide { padding: 36px 16px 28px; }
  .guide__head .illust { width: 84px; }
  .guide { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; gap: 6px; margin: 0 -24px; padding: 0 24px 8px; }
  .guide__col { flex: 0 0 62%; scroll-snap-align: start; }
  .works__cards { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- RECRUIT（黒板の面） ---------- */
.recruit {
  position: relative; margin-top: 160px; padding: 130px 0 140px; background: var(--ink); color: var(--paper);
  clip-path: polygon(64px 0, calc(100% - 64px) 0, 100% 64px, 100% 100%, 0 100%, 0 64px);
}
.recruit__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.recruit h2.rc-copy { margin-top: 24px; font-size: var(--fs-catch); color: var(--paper); line-height: 1.5; letter-spacing: .12em; }
.recruit h2.rc-copy em { font-style: normal; color: var(--teal-light); }
.recruit .lead { margin-top: 28px; color: var(--paper); }
.recruit .btns { margin-top: 40px; }
.recruit__photo { position: relative; }
.recruit__photo .ph { aspect-ratio: 3 / 2; }
.recruit__photo .illust { position: absolute; width: 170px; left: -64px; bottom: -70px; }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 110px; }
.num { position: relative; padding: 24px 24px 22px; background: var(--paper); color: var(--ink-2); }
.num__label { display: inline-block; padding: 2px 10px; background: var(--ink); color: var(--paper); font-family: var(--f-ui); font-weight: 700; font-size: 13px; letter-spacing: .12em; line-height: 1.8; }
.num__icon { position: absolute; right: 20px; top: 20px; width: 52px; height: 52px; border-radius: 50%; background: var(--teal-ink); display: grid; place-items: center; color: var(--paper); }
.num__icon svg { width: 28px; height: 28px; }
.num .num__val { display: flex; align-items: baseline; gap: 6px; margin-top: 16px; font-family: var(--f-en); font-weight: 700; font-size: var(--fs-num); line-height: 1.1; color: var(--teal); letter-spacing: .02em; }
.num .num__val small { font-family: var(--f-head); font-weight: 900; font-size: 20px; color: var(--ink); letter-spacing: .06em; }
.num .num__val.is-text { font-family: var(--f-head); font-weight: 900; font-size: var(--fs-h3); line-height: 1.35; letter-spacing: .08em; }
.num p { margin-top: 8px; font-size: 13px; line-height: 1.7; }
.people { margin-top: 110px; }
.people__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.people__head h3 { font-size: var(--fs-h3); }
.recruit .people__head h3 { color: var(--paper); }
.recruit .people__head .linkchip { color: var(--paper); }
.recruit .people__head .carr { border-color: var(--teal-light); color: var(--teal-light); }
.people__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pcard { display: block; background: var(--paper); color: var(--ink-2); }
.pcard .ph { aspect-ratio: 3 / 3.6; background: var(--paper-2); }
.pcard .ph img { object-position: 50% 20%; transform: scale(1.12); }
.pcard .ph img.is-local { transform: none; }
.pcard__tx { padding: 20px 20px 24px; }
.pcard__catch { font-family: var(--f-head); font-weight: 900; font-size: var(--fs-lead); line-height: 1.65; color: var(--ink); letter-spacing: .06em; }
.pcard__who { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; font-size: 13px; font-weight: 700; line-height: 1.5; color: var(--ink-3); }
.pcard__who .carr { width: 28px; height: 28px; }
.pcard:hover .pcard__catch { color: var(--teal-ink); }
@media (max-width: 1024px) {
  .recruit__grid { grid-template-columns: 1fr; gap: 64px; }
  .recruit__photo .illust { left: auto; right: -8px; bottom: -60px; width: 130px; }
  .nums { grid-template-columns: 1fr 1fr; }
  .people__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .recruit { margin-top: 96px; padding: 80px 0 96px; clip-path: polygon(28px 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%, 0 28px); }

  .nums { gap: 10px; margin-top: 88px; }
  .num { padding: 18px 14px; }
  .num__icon { width: 40px; height: 40px; right: 12px; top: 14px; }
  .num__icon svg { width: 22px; height: 22px; }
  .num .num__val.is-text { font-size: 22px; }
  .people__head { flex-direction: column; align-items: flex-start; }
  .people__list { gap: 12px; }
  .pcard__tx { padding: 14px 12px 16px; }
  .pcard__catch { font-size: 14px; }
}

/* ---------- MOVIE ---------- */
.movie .panel { padding: 64px 64px 56px; }
.movie__grid { display: grid; grid-template-columns: 1fr 260px; gap: 40px; align-items: end; }
.movie__player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.movie__player img, .movie__player video { width: 100%; height: 100%; object-fit: cover; }
.movie__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 140px; height: 140px; border: 0; border-radius: 50%; background: rgba(241,234,219,.94); color: var(--ink); display: grid; place-items: center;
}
.movie__play svg { width: 50px; height: 50px; margin-left: 8px; }
.movie__play:hover { background: var(--paper); color: var(--teal-ink); }
.movie__cap { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.movie__cap h3 { font-family: var(--f-en); font-weight: 700; font-size: 24px; letter-spacing: .08em; }
.movie__side { position: relative; padding-bottom: 8px; }
.movie__side .illust { width: 230px; }
.movie__others { display: grid; gap: 14px; margin-top: 28px; }
.movie__others a { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; font-family: var(--f-head); font-weight: 700; font-size: 15px; color: var(--ink); line-height: 1.5; }
.movie__others .ph { aspect-ratio: 16 / 9; }
@media (max-width: 1024px) { .movie__grid { grid-template-columns: 1fr; } .movie__side { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; } }
@media (max-width: 640px) {
  .movie .panel { padding: 40px 16px; }
  .movie__play { width: 84px; height: 84px; }
  .movie__play svg { width: 32px; height: 32px; }
  .movie__side { grid-template-columns: 1fr; }
  .movie__side .illust { width: 150px; }
}

/* ---------- SCENE ---------- */
.scene__head { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; margin-bottom: 48px; }
.scene__head .sh { margin-bottom: 0; }
.scene__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.scard .ph { aspect-ratio: 1 / 1; }
.scard p { margin-top: 14px; font-family: var(--f-head); font-weight: 900; color: var(--ink); line-height: 1.5; letter-spacing: .08em; }
.scard p span { display: block; font-family: var(--f-en); font-size: 14px; color: var(--ink); letter-spacing: .14em; }
.sns { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 48px; }
.sns__label { font-family: var(--f-en); font-weight: 700; font-size: 15px; color: var(--ink); letter-spacing: .3em; }
.sns a { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-ui); font-weight: 700; color: var(--ink); }
.sns svg { width: 26px; height: 26px; color: var(--ink); }
@media (max-width: 1024px) { .scene__head { grid-template-columns: 1fr; } .scene__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .scene__list { gap: 16px; } }

/* ---------- CONTACT（家の形のパネル 2つ：紙と黒板） ---------- */
.contact__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.house { position: relative; padding: 140px 56px 64px; background: var(--paper); clip-path: polygon(50% 0, 100% 90px, 100% 100%, 0 100%, 0 90px); }
.house--tint { background: var(--ink); color: var(--paper); }
.house--tint h2, .house--tint .house__tel { color: var(--paper); }
.house--tint .house__en { color: var(--teal-light); }
.house--tint .house__tel small { color: rgba(241,234,219,.8); }
.house--tint .btn { background: var(--paper); color: var(--ink); }
.house--tint .btn .bean-ic { color: var(--teal-ink); }
.house--tint .btn .bean-ic .hl { fill: var(--paper); }
.house__en { font-family: var(--f-en); font-weight: 700; font-size: 14px; color: var(--teal-ink); letter-spacing: .3em; }
.house h2 { margin-top: 8px; font-size: var(--fs-h3); letter-spacing: .14em; }
.house p { margin-top: 18px; }
.house__tel { display: flex; align-items: center; gap: 14px; margin-top: 24px; font-family: var(--f-en); font-weight: 700; font-size: 34px; color: var(--ink); letter-spacing: .06em; line-height: 1.2; }
.house__tel small { display: block; font-family: var(--f-body); font-weight: 500; font-size: 13px; color: var(--ink-3); letter-spacing: .06em; }
.house .btn { margin-top: 32px; }
.contact .stamp { z-index: 3; }
@media (max-width: 1024px) { .contact__grid { grid-template-columns: 1fr; } .contact .stamp.pc-stamp { display: none; } }
@media (max-width: 640px) {
  .house { padding: 96px 20px 44px; clip-path: polygon(50% 0, 100% 56px, 100% 100%, 0 100%, 0 56px); }

  .house__tel { font-size: 26px; }
}

/* ---------- フッター ---------- */
.ft { position: relative; margin-top: 180px; }
.ft__city { position: relative; height: 150px; display: flex; align-items: flex-end; }
.ft__city > img { flex: 1 0 33.334%; width: 33.334%; margin-bottom: -1px; }
.ft__totop { position: absolute; right: 7%; bottom: 0; width: 150px; display: block; }
.ft__totop img { width: 100%; }
.ft__totop .bubble { position: absolute; right: 130px; top: -10px; writing-mode: horizontal-tb; white-space: nowrap; padding: 8px 16px; font-family: var(--f-en); font-size: 15px; letter-spacing: .06em; }
.ft__totop .bubble::after { left: auto; right: -10px; bottom: 10px; transform: rotate(-90deg); }
.ft__body { background: var(--ink); color: var(--paper); padding: 64px 0 40px; }
.ft__grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 56px; }
.ft__logo { width: 220px; }
.ft__addr { margin-top: 20px; font-size: var(--fs-small); line-height: 1.9; color: rgba(241,234,219,.9); }
.ft__addr a { font-family: var(--f-en); font-weight: 700; font-size: 22px; letter-spacing: .06em; color: var(--paper); }
.ft h3 { color: var(--teal-light); font-family: var(--f-ui); font-size: var(--fs-small); letter-spacing: .24em; margin-bottom: 10px; }
.ft__nav a { display: block; padding: 6px 0; font-family: var(--f-head); font-weight: 700; color: var(--paper); letter-spacing: .08em; line-height: 1.6; }
.ft__nav a:hover { color: var(--teal-light); }
.ft__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 56px; font-size: var(--fs-cap); color: rgba(241,234,219,.82); }
.ft__bottom a { color: var(--paper); }
.ft__sns { display: flex; gap: 18px; }
.ft__sns svg { width: 22px; height: 22px; color: var(--paper); }
@media (max-width: 1024px) { .ft__grid { grid-template-columns: 1fr 1fr; } .ft__grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .ft { margin-top: 120px; }
  .ft__city { height: 80px; }
  .ft__city > img { flex-basis: 50%; width: 50%; }
  .ft__city > img:nth-of-type(3) { display: none; }
  .ft__totop { width: 96px; right: 16px; }
  .ft__totop .bubble { right: 84px; font-size: 13px; }
  .ft__grid { grid-template-columns: 1fr; gap: 32px; }
  .ft__body { padding-bottom: 96px; }
}

/* ---------- 吹き出し・キャラクター常駐 ---------- */
.bubble {
  position: relative; display: inline-block; padding: 18px 12px; border-radius: 10px;
  background: var(--teal-ink); color: var(--paper);
  font-family: var(--f-head); font-weight: 900; font-size: 16px; line-height: 1.6; letter-spacing: .14em;
}
/* 吹き出しはティールの塗り：クラフト紙・紙のパネル・濃紺のどの上でも同化しない */
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 22px; height: 14px; margin-left: -11px; background: var(--teal-ink); clip-path: polygon(0 0, 100% 0, 50% 100%); }
/* だいずくん：右下に常駐して、セクションごとに案内する。×で閉じられる（そのタブを閉じるまで出てこない） */
.buddy { position: fixed; right: 14px; bottom: 0; z-index: 45; width: 150px; transition: transform .3s, opacity .3s; }
.buddy .bubble { position: absolute; right: 34px; bottom: 150px; writing-mode: vertical-rl; max-height: 300px; transition: opacity .25s, transform .25s; }
.buddy__me { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.buddy__me img { width: 100%; }
.buddy__close {
  position: absolute; right: 2px; top: 6px; z-index: 2; display: grid; place-items: center;
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: var(--paper); cursor: pointer;
}
.buddy__close svg { width: 11px; height: 11px; }
.buddy__close:hover { background: var(--teal-ink); }
.buddy.is-hide { transform: translateY(120%); opacity: 0; visibility: hidden; }
.buddy.is-closed { display: none; }
.buddy.is-quiet .bubble { opacity: 0; transform: translateX(8px); pointer-events: none; }
/* タブレット・スマホ：小さく、吹き出しは横書きで左側に。数秒で引っ込み、だいずくんをタップするとまた出る */
@media (max-width: 1024px) {
  .buddy { width: 72px; right: 8px; bottom: 10px; }
  .buddy .bubble {
    writing-mode: horizontal-tb; right: 76px; bottom: 14px; width: max-content; max-width: min(220px, calc(100vw - 110px)); max-height: none;
    padding: 10px 14px; font-size: 13px; line-height: 1.6; letter-spacing: .06em;
  }
  .buddy .bubble::after { left: auto; right: -12px; bottom: 14px; margin: 0; width: 14px; height: 20px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
  .buddy__close { width: 24px; height: 24px; right: -4px; top: -2px; }
  .buddy__close svg { width: 9px; height: 9px; }
}
@media (max-width: 640px) { .buddy { bottom: 78px; width: 64px; } .buddy .bubble { right: 68px; bottom: 10px; } }

/* ---------- スマホの固定CTA（DESIGN_RULES 6-0） ---------- */
.spcta { display: none; }
@media (max-width: 640px) {
  body { padding-bottom: 68px; }
  .spcta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    display: grid; grid-template-columns: 1fr 1fr 1.25fr; height: 68px; background: var(--paper);
  }
  .spcta a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-family: var(--f-ui); font-weight: 700; font-size: 12px; color: var(--ink); letter-spacing: .04em; line-height: 1.3; }
  .spcta svg { width: 22px; height: 22px; color: var(--teal-ink); }
  .spcta a.is-main { background: var(--teal-ink); color: var(--paper); }
  .spcta a.is-main svg { color: var(--paper); }
}

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

/* ---------- スマホ：写真の一覧は小さく2列に詰めず、大きな写真を横にスワイプ ---------- */
@media (max-width: 640px) {
  .people__list:not(#staffgrid), .scene__list, .about__gallery {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; gap: 12px;
    margin-left: -24px; margin-right: -24px; padding: 0 24px 10px; scrollbar-width: none;
  }
  .people__list:not(#staffgrid)::-webkit-scrollbar, .scene__list::-webkit-scrollbar, .about__gallery::-webkit-scrollbar { display: none; }
  .people__list:not(#staffgrid) > *, .scene__list > *, .about__gallery > * { flex: 0 0 76%; scroll-snap-align: start; }
  .about__gallery .about__ph { width: auto; }
  .pcard__catch { font-size: var(--fs-body); }
  /* 社員紹介の一覧（19人）は2列のまま。写真の比率を少し縦長に */
  #staffgrid .pcard__catch { font-size: 14px; }
}