/* 会社サイトの新しい見た目（2026-11-30 社長「スマホで見やすく。既存のルールに縛られず」）
   ・見出しの帯（全ページ）：スマホは社名1行と「≡」のメニュー
   ・トップの本文（.t- で始まる印）
   1年のキャッシュがかかるので、直す時はファイル名を変える（日付、同じ日なら b, c …） */

/* ---------- 見出しの帯 ---------- */
.yh-logo { display: flex; flex-direction: column; line-height: 1.2; color: #1a1a1a; text-decoration: none; }
.yh-logo b { font-family: var(--font-serif-jp); font-weight: 600; font-size: 1.05rem; letter-spacing: .12em; }
.yh-logo small { font-size: .62rem; letter-spacing: .3em; color: #555; margin-top: 2px; }
.yh-logo:hover b { color: #8a6a40; }
.yh-bar { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; }
.yh-nav-wide { display: none; }
.yh-menu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 12px;
  border: 1px solid #e8e0d5; border-radius: 10px; background: #fff; color: #1a1a1a; font-size: .8rem; letter-spacing: .1em; cursor: pointer; }
.yh-menu-btn i { display: block; width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
.yh-menu { max-height: calc(100vh - 63px); max-height: calc(100dvh - 63px); overflow-y: auto; border-top: 1px solid #e8e0d5; background: #fff; padding: .5rem 1rem 1rem; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
.yh-menu[hidden] { display: none; }
.yh-menu ul { list-style: none; margin: 0; padding: 0; }
.yh-menu li a { display: block; padding: .9rem .25rem; border-bottom: 1px solid #f0ebe3; color: #1a1a1a; font-size: 1rem; text-decoration: none; }
.yh-menu li a::after { content: "›"; float: right; color: #b8956a; }
.yh-menu .yh-menu-lang { display: flex; gap: .75rem; padding-top: .9rem; font-size: .9rem; }
.yh-menu .yh-menu-lang a, .yh-menu .yh-menu-lang span { padding: .35rem .9rem; border: 1px solid #e8e0d5; border-radius: 99px; color: #555; text-decoration: none; }
.yh-menu .yh-menu-lang span { border-color: #b8956a; color: #8a6a40; }
@media (min-width: 768px) {
  .yh-bar { padding: 18px 40px; }
  .yh-nav-wide { display: block; }
  .yh-menu-btn, .yh-menu { display: none !important; }
}

/* ---------- トップの本文 ---------- */
.t-page { --mk: #a94f66; --mk-bg: #fbf0f3; --ms: #2c4a78; --ms-bg: #edf2f9; --gold: #8a6a40; --gold-b: #b8956a;
  --ink: #1a1a1a; --soft: #4a4a4a; --line: #e8e0d5; --sub: #f7f2eb;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  color: var(--ink); font-size: 16px; line-height: 1.8; }
.t-page a { text-decoration: none; }
.t-serif { font-family: var(--font-serif-jp); }
.t-wrap { max-width: 1000px; margin: 0 auto; }

.t-hero { padding: 104px 20px 28px; background: linear-gradient(180deg, #faf5ee, #fff); }
.t-hero .t-motto { font-family: var(--font-serif-jp); font-size: .8rem; color: var(--gold); letter-spacing: .3em; }
.t-hero h1 { font-family: var(--font-serif-jp); font-weight: 600; font-size: clamp(1.4rem, 5.6vw, 2.4rem); line-height: 1.55; margin: .6rem 0 .6rem; }
.t-hero .t-lead { color: var(--soft); font-size: .95rem; }
.t-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 1.25rem; }
.t-door { display: block; border-radius: 12px; padding: 14px 12px; color: #fff; min-height: 100px; transition: transform .2s, box-shadow .2s; }
.t-door:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.t-door b { display: block; font-size: 1.05rem; letter-spacing: .02em; }
.t-door span { display: block; font-size: .8rem; line-height: 1.55; margin-top: 4px; opacity: .95; }
.t-door.mk { background: var(--mk); } .t-door.ms { background: var(--ms); }

.t-chips { position: sticky; top: 63px; z-index: 20; display: flex; gap: 8px; overflow-x: auto; padding: 12px 28px 12px 16px;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent);
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.t-chips::-webkit-scrollbar { display: none; }
.t-chips a { white-space: nowrap; font-size: .85rem; padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); background: #fff; }
.t-chips a:hover { border-color: var(--gold-b); color: var(--gold); }

.t-news { display: flex; gap: 10px; align-items: center; margin: 16px 16px 0; padding: 12px 14px; border-radius: 12px;
  background: #fff8e6; border: 1px solid #ecd9a8; color: var(--ink); font-size: .9rem; line-height: 1.6; }
.t-news em { font-style: normal; flex: none; background: #b03a2e; color: #fff; font-size: .7rem; font-weight: 700; border-radius: 4px; padding: 2px 7px; letter-spacing: .05em; }
.t-news:hover { border-color: var(--gold-b); }

.t-sec, .t-anchor { padding: 36px 16px; scroll-margin-top: 136px; }
.t-anchor { padding: 0; }
.t-sec.gray { background: var(--sub); }
.t-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.t-h .no { font-size: .8rem; font-weight: 700; color: var(--gold-b); letter-spacing: .12em; }
.t-h h2 { font-family: var(--font-serif-jp); font-weight: 600; font-size: 1.35rem; letter-spacing: .05em; }

.t-cards { display: grid; gap: 12px; }
.t-card { border-radius: 14px; padding: 18px 16px; }
.t-card.mk { background: var(--mk-bg); border-left: 6px solid var(--mk); }
.t-card.ms { background: var(--ms-bg); border-left: 6px solid var(--ms); }
.t-card .lbl { font-size: .75rem; font-weight: 700; letter-spacing: .08em; }
.t-card.mk .lbl { color: var(--mk); } .t-card.ms .lbl { color: var(--ms); }
.t-card h3 { font-family: var(--font-serif-en); font-weight: 600; font-size: 1.7rem; line-height: 1.3; margin: 2px 0 6px; }
.t-card p { font-size: .95rem; color: #333; }
.t-card p + p { margin-top: .4rem; }
.t-btn { display: block; text-align: center; margin-top: 14px; border-radius: 10px; padding: 12px; font-weight: 700; font-size: .95rem; color: #fff; }
.t-card.mk .t-btn { background: var(--mk); } .t-card.ms .t-btn { background: var(--ms); }
.t-btn:hover { opacity: .9; }

.t-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.t-num { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 4px; text-align: center; }
.t-num b { display: block; font-family: var(--font-serif-en); font-size: 1.6rem; line-height: 1.2; color: var(--gold); }
.t-num b small { font-family: var(--font-serif-jp); font-size: .8rem; margin-left: 2px; }
.t-num span { display: block; font-size: .76rem; line-height: 1.5; color: var(--soft); margin-top: 4px; }
.t-sub { font-size: .95rem; font-weight: 700; margin: 22px 0 10px; scroll-margin-top: 136px; }
.t-works { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.t-work { flex: 0 0 62%; scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: var(--ink); }
.t-work { display: flex; flex-direction: column; }
.t-work img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #eef1f6; }
.t-work.text { border-top: 4px solid var(--ms); }
.t-work.text div { padding-top: 16px; }
.t-work div { padding: 10px 12px 12px; }
.t-work small { display: block; font-size: .7rem; color: var(--ms); font-weight: 700; letter-spacing: .05em; }
.t-work strong { display: block; font-size: .9rem; line-height: 1.55; margin-top: 2px; font-weight: 600; }
.t-more { display: block; text-align: right; margin-top: 10px; font-size: .9rem; font-weight: 700; color: var(--gold); }
.t-more:hover { color: var(--gold-b); }

.t-col { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; color: var(--ink); }
.t-col:hover { border-color: var(--gold-b); }
.t-col [data-k="img"] img { width: 100%; height: auto; display: block; border-radius: 8px; margin-bottom: 12px; }
.t-col .d { display: block; font-size: .78rem; color: var(--soft); }
.t-col .tt { display: block; font-weight: 700; font-size: 1.02rem; line-height: 1.6; margin: 4px 0; }
.t-col .ds { display: block; font-size: .88rem; color: var(--soft); line-height: 1.7; }

.t-cta { background: #1f1d1a; color: #fff; border-radius: 14px; padding: 24px 18px; text-align: center; }
.t-cta .q { font-family: var(--font-serif-jp); font-size: 1.1rem; line-height: 1.7; }
.t-cta p { font-size: .9rem; color: rgba(255,255,255,.8); margin-top: 8px; }
.t-cta .go { display: block; margin-top: 16px; background: var(--gold-b); color: #fff; border-radius: 10px; padding: 14px; font-weight: 700; }
.t-cta .go:hover { background: #a7844f; }
.t-cta .alt { display: inline-block; margin-top: 12px; font-size: .85rem; color: #e9d8bd; border-bottom: 1px solid rgba(233,216,189,.5); }

.t-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); }
.t-bar a { text-align: center; border-radius: 10px; padding: 11px 6px; font-size: .9rem; font-weight: 700; }
.t-bar .a { background: var(--gold-b); color: #fff; } .t-bar .b { border: 1px solid var(--gold-b); color: var(--gold); background: #fff; }
main:has(.t-page) + footer { margin-top: 0; }
@media (max-width: 767.98px) { body:has(.t-bar) { padding-bottom: calc(72px + env(safe-area-inset-bottom)); } }

@media (min-width: 768px) {
  .t-hero { padding: 150px 32px 48px; text-align: center; }
  .t-doors { max-width: 640px; margin: 2rem auto 0; gap: 16px; }
  .t-door { padding: 20px; text-align: left; }
  .t-chips { justify-content: center; top: 71px; padding-right: 16px; -webkit-mask-image: none; mask-image: none; }
  .t-sec, .t-sub { scroll-margin-top: 160px; }
  .t-news { max-width: 1000px; margin: 20px auto 0; }
  .t-sec { padding: 56px 32px; }
  .t-h h2 { font-size: 1.6rem; }
  .t-cards { grid-template-columns: 1fr 1fr; gap: 20px; }
  .t-card { padding: 28px 26px; }
  .t-nums { gap: 16px; }
  .t-num { padding: 20px 8px; } .t-num b { font-size: 2.2rem; } .t-num span { font-size: .85rem; }
  .t-works { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; }
  .t-col.has-img { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; padding: 20px; }
  .t-col [data-k="img"] img { margin: 0; }
  .t-cta { padding: 40px; } .t-cta .go { max-width: 360px; margin: 18px auto 0; }
  .t-bar { display: none; }
}
/* 横向きのスマホなど低い画面：固定の部品で本文が狭くならないように */
@media (max-height: 500px) {
  .t-bar { display: none; }
  body:has(.t-bar) { padding-bottom: 0 !important; }
  .t-chips { position: static; }
}
@media (prefers-reduced-motion: reduce) { .t-door { transition: none; } }
