/* ===== 株式会社タダカラボタモチ 共通スタイル =====
   方向性：明朝・墨色・余白多め・角丸なし。写真が主役になる静かな器。 */
:root {
  --sumi: #17191d;        /* 墨：文字・暗い帯 */
  --sumi-2: #2a2d33;
  --paper: #f4f3f0;       /* 紙：背景 */
  --white: #ffffff;
  --ash: #8b8a86;         /* 灰：補足文字 */
  --line: #d9d7d1;        /* 罫線 */
  --kinako: #c8a868;      /* きなこ：ごく少量のアクセント */
  --mincho: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --serif-en: "Cormorant Garamond", "Times New Roman", serif;
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--gothic);
  color: var(--sumi);
  background: var(--paper);
  line-height: 2;
  font-size: 15px;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--sumi); outline-offset: 4px; }

.wrap {
  max-width: var(--maxw); margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 243, 240, .94);
  backdrop-filter: blur(6px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { text-decoration: none; font-family: var(--mincho); }
.logo-text { font-size: 17px; font-weight: 500; letter-spacing: .12em; line-height: 1.3; display: block; }
.logo-text small { display: block; font-size: 10px; letter-spacing: .2em; color: var(--ash); }

.nav ul { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav a {
  font-family: var(--mincho); font-size: 14px; font-weight: 500; letter-spacing: .1em;
  text-decoration: none; position: relative; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .ext::after { display: none; }
.nav .ext { color: var(--ash); }
.nav .ext:hover { color: var(--sumi); }
.nav .nav-contact { background: var(--sumi); color: var(--paper); padding: 9px 20px; font-size: 13px; }
.nav .nav-contact::after { display: none; }
.nav .nav-contact:hover, .nav .nav-contact[aria-current="page"] { background: var(--sumi-2); }

.menu-btn { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; position: relative; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  position: absolute; left: 10px; width: 24px; height: 1px; background: var(--sumi);
  content: ""; transition: transform .25s;
}
.menu-btn span { top: 22px; }
.menu-btn span::before { top: -6px; left: 0; }
.menu-btn span::after { top: 6px; left: 0; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(30deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-30deg); }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; display: none;
    background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: 16px max(24px, env(safe-area-inset-left, 0px)) 32px;
  }
  .menu-open .nav { display: block; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav a { font-size: 17px; padding: 10px 0; }
  .nav .nav-contact { margin-top: 12px; padding: 12px 28px; font-size: 15px; }
}

/* ---------- ヒーロー ---------- */
.hero { padding: 72px 0 96px; }
.hero-inner {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px;
  min-height: min(68vh, 620px);
}
.hero-copy {
  grid-column: 2; grid-row: 1; align-self: start;
  writing-mode: vertical-rl;
  font-family: var(--mincho); font-weight: 400;
  font-size: clamp(28px, 3.6vw, 44px); letter-spacing: .3em; line-height: 1.9;
}
.hero-en { grid-column: 1; grid-row: 1; }
.hero-word {
  font-family: var(--serif-en); font-weight: 400;
  font-size: clamp(56px, 10vw, 136px); line-height: .95; letter-spacing: -.01em;
}
.hero-since {
  margin-top: 24px; font-family: var(--serif-en); font-style: italic;
  font-size: 17px; color: var(--ash); letter-spacing: .08em;
}
@media (max-width: 640px) {
  .hero { padding: 40px 0 64px; }
  .hero-inner { min-height: 0; gap: 24px; grid-template-columns: 1fr auto; }
  .hero-copy { font-size: 26px; }
  .hero-word { font-size: 52px; }
  .hero-since { font-size: 14px; }
}

.photo-band { margin: 0; }
.photo-band img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

/* ---------- 共通セクション ---------- */
section.block { padding: 120px 0; }
section.block.line-top > .wrap::before { content: ""; display: block; width: 100%; flex-basis: 100%; border-top: 1px solid var(--line); margin-bottom: 72px; }
section.block.line-top { padding-top: 0; }
.sec-title { margin-bottom: 56px; }
.en {
  display: block; font-family: var(--serif-en); font-style: italic;
  font-size: 17px; letter-spacing: .08em; color: var(--ash); margin-bottom: 6px;
}
.sec-title h2 {
  font-family: var(--mincho); font-weight: 500;
  font-size: clamp(22px, 3vw, 30px); line-height: 1.7; letter-spacing: .12em;
  text-wrap: balance;
}

.text-link {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 48px;
  font-family: var(--mincho); font-size: 14px; letter-spacing: .12em; text-decoration: none;
  padding-bottom: 6px; border-bottom: 1px solid currentColor;
}
.text-link::after { content: ""; width: 28px; height: 1px; background: currentColor; transition: width .3s; }
.text-link:hover::after { width: 44px; }

.btn {
  display: inline-block; padding: 18px 48px;
  background: var(--sumi); color: var(--paper);
  font-family: var(--mincho); font-size: 15px; letter-spacing: .16em; text-decoration: none;
  transition: background .25s;
}
.btn:hover { background: var(--sumi-2); }

/* 暗い帯（About） */
section.block.dark { background: var(--sumi); color: #e9e7e2; }
.dark .en { color: var(--kinako); }
.intro { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; }
.intro .sec-title { margin-bottom: 0; }
.intro-text { min-width: 0; max-width: 34em; }
.intro-text p + p { margin-top: 1.4em; }
.intro-text p { font-size: 15px; line-height: 2.2; }
@media (max-width: 760px) { .intro { grid-template-columns: 1fr; gap: 32px; } }

/* できること */
.services { list-style: none; border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 9em 18em 1fr; gap: 24px; align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.svc-en { font-family: var(--serif-en); font-style: italic; font-size: 18px; color: var(--ash); }
.service h3 { font-family: var(--mincho); font-weight: 500; font-size: 18px; letter-spacing: .1em; }
.service p { font-size: 14px; color: #55544f; min-width: 0; }
@media (max-width: 760px) {
  .service { grid-template-columns: 1fr; gap: 2px; padding: 22px 0; }
}

/* お知らせ */
.news { list-style: none; }
.news li { border-bottom: 1px solid var(--line); }
.news .row { display: grid; grid-template-columns: 8em 1fr; gap: 24px; padding: 20px 0; }
.news time { font-family: var(--serif-en); font-size: 16px; color: var(--ash); font-variant-numeric: tabular-nums; }
.news .ttl { font-size: 14px; min-width: 0; }
@media (max-width: 560px) { .news .row { grid-template-columns: 1fr; gap: 0; } }

/* 問い合わせ導線 */
.cta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.cta h2 { font-family: var(--mincho); font-weight: 500; font-size: clamp(22px, 3vw, 30px); letter-spacing: .12em; }
.cta p { margin-top: 8px; color: #55544f; font-size: 14px; }

/* ---------- 下層ページ見出し ---------- */
.page-head { padding: 96px 0 64px; }
.page-head h1 {
  font-family: var(--mincho); font-weight: 500;
  font-size: clamp(28px, 4vw, 40px); letter-spacing: .16em; line-height: 1.5;
}
.page-head p { margin-top: 16px; color: var(--ash); font-size: 14px; }
.page-head .text-link { margin-top: 40px; }

/* 会社概要 */
.profile-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--sumi); }
.profile-table th, .profile-table td { padding: 28px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.profile-table th {
  width: 12em; font-family: var(--mincho); font-weight: 500; letter-spacing: .14em; white-space: nowrap;
}
.profile-table td { line-height: 2.1; }
@media (max-width: 560px) {
  .profile-table th, .profile-table td { display: block; width: 100%; }
  .profile-table th { padding: 22px 0 2px; border-bottom: 0; font-size: 13px; color: var(--ash); }
  .profile-table td { padding: 0 0 22px; }
}

/* 取引先 */
.client-filter { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 40px; }
.client-filter button {
  font: inherit; font-family: var(--mincho); font-size: 14px; letter-spacing: .1em; cursor: pointer;
  background: none; border: 0; color: var(--ash); padding: 4px 0; border-bottom: 1px solid transparent;
}
.client-filter button:hover { color: var(--sumi); }
.client-filter button[aria-pressed="true"] { color: var(--sumi); border-bottom-color: var(--sumi); }
.clients { list-style: none; border-top: 1px solid var(--sumi); }
.client {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px;
  align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line);
}
.client h3 { font-family: var(--mincho); font-weight: 500; font-size: 16px; letter-spacing: .06em; line-height: 1.6; }
.client h3 a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s; }
.client h3 a:hover { background-size: 100% 1px; }
.tags { display: flex; flex-wrap: wrap; gap: 0 14px; }
.tag { font-size: 12px; color: #55544f; }

.client .addr { font-size: 12px; color: var(--ash); line-height: 1.7; }
.client[hidden] { display: none; }
@media (max-width: 760px) {
  .client { grid-template-columns: 1fr; gap: 4px; padding: 20px 0; }
}

/* 実績 */
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 64px 40px; }
.work { display: flex; flex-direction: column; min-width: 0; }
.work .thumb {
  aspect-ratio: 3 / 2; max-width: 100%; background: #e6e4df; display: grid; place-items: center;
  color: #b1afa9; font-family: var(--serif-en); font-style: italic; font-size: 16px; overflow: hidden;
}
.work .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.work:hover .thumb img { transform: scale(1.03); }
.work .thumb img + span { display: none; }
.work .body { padding-top: 22px; }
.work .meta { font-size: 12px; color: var(--ash); letter-spacing: .08em; }
.work h3 { font-family: var(--mincho); font-weight: 500; font-size: 19px; letter-spacing: .08em; line-height: 1.6; margin: 6px 0 10px; }
.work p { font-size: 14px; color: #55544f; }

/* 問い合わせ */
.form-box { border-top: 1px solid var(--sumi); padding-top: 24px; }
.form-box iframe { width: 100%; min-height: 1100px; border: 0; display: block; }
.mail-box { margin-top: 48px; padding: 40px 0; border-top: 1px solid var(--sumi); border-bottom: 1px solid var(--line); }
.mail-box p { font-size: 14px; color: #55544f; }
.mail-box a { display: inline-block; margin-top: 6px; font-family: var(--serif-en); font-size: 26px; letter-spacing: .02em; text-decoration: none; border-bottom: 1px solid var(--line); }

/* ---------- フッター ---------- */
.site-footer { background: var(--sumi); color: #cfcdc7; padding: 80px 0 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer .f-name { font-family: var(--mincho); font-size: 17px; letter-spacing: .14em; color: #f1efea; }
.site-footer address { font-style: normal; font-size: 13px; margin-top: 10px; line-height: 2; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 6px 28px; list-style: none; font-family: var(--mincho); font-size: 13px; letter-spacing: .1em; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.copy { width: 100%; margin-top: 48px; font-family: var(--serif-en); font-size: 13px; color: #7c7b77; }

/* ふわっと表示（文字は最初から見えていて、少しだけ持ち上がる） */
.fade { transform: translateY(14px); transition: transform 1s ease; }
.fade.in { transform: none; }
@media (prefers-reduced-motion: reduce) { .fade { transform: none; transition: none; } }
.work h3 a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s; }
.work h3 a:hover { background-size: 100% 1px; }
.work h3 a::after { content: "↗"; font-family: var(--gothic); font-size: 12px; margin-left: 6px; color: var(--ash); }
.work .host { margin-top: 8px; font-size: 12px; color: var(--ash); }
.service h3 a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s; }
.service h3 a:hover { background-size: 100% 1px; }
.service h3 a::after { content: "↗"; font-family: var(--gothic); font-size: 12px; margin-left: 6px; color: var(--ash); }
/* ロゴ画像 */
.logo img { height: 40px; width: auto; }
.site-footer .f-name img { height: 44px; width: auto; }
@media (max-width: 640px) { .logo img { height: 34px; } }
/* トップ写真 */
.photo-band img { height: auto; object-position: 50% 38%; }
@media (max-width: 640px) { .photo-band img { aspect-ratio: 4 / 3; } }

/* ===== ヒーロー：英字が写真にかぶるオフセット ===== */
.hero { position: relative; z-index: 2; padding: 64px 0 0; }
.hero-inner { min-height: min(56vh, 520px); }
.hero-word { position: relative; }
.photo-band {
  position: relative; z-index: 1;
  margin-left: 14vw;                          /* 左を空けて、右端まで流す */
  margin-top: calc(clamp(56px, 10vw, 136px) * -0.48);  /* 「Botamochi」の下半分が写真に乗る */
}
.photo-band img { aspect-ratio: 2 / 1; }
.hero .hero-since { margin: 0 0 18px; }
@media (max-width: 640px) {
  .hero { padding-top: 40px; }
  .photo-band { margin-left: 8vw; margin-top: -26px; }
  .hero-inner { gap: 16px; }
  .photo-band img { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .hero { padding-top: 24px; }
  .hero-copy { font-size: 22px; }
  .photo-band { margin-top: -32px; }
}
.news .ttl a { text-decoration: none; border-bottom: 1px solid var(--line); }
.news .ttl a:hover { border-bottom-color: var(--sumi); }

/* お知らせ詳細 */
.news-detail { border-top: 1px solid var(--sumi); padding-top: 40px; max-width: 46em; }
.news-detail time { font-family: var(--serif-en); font-size: 17px; color: var(--ash); }
.news-detail h2 { font-family: var(--mincho); font-weight: 500; font-size: clamp(22px, 3vw, 28px); letter-spacing: .08em; line-height: 1.6; margin: 8px 0 32px; text-wrap: balance; }
.news-body p { line-height: 2.2; }
.news-body p + p { margin-top: 1.4em; }
.news-body a { word-break: break-all; }
.news-detail .btn { margin-top: 40px; }
.news-detail .back { display: flex; width: fit-content; margin-top: 48px; }

/* お知らせ：一覧ボタンと年見出し */
.more { margin-top: 48px; }
.btn-outline {
  display: inline-block; padding: 14px 40px; border: 1px solid var(--sumi);
  font-family: var(--mincho); font-size: 14px; letter-spacing: .16em; text-decoration: none;
  transition: background .25s, color .25s;
}
.btn-outline:hover { background: var(--sumi); color: var(--paper); }
.news.grouped .news-year {
  font-family: var(--serif-en); font-size: 28px; color: var(--sumi);
  padding: 48px 0 12px; border-bottom: 1px solid var(--sumi);
}
.news.grouped .news-year:first-child { padding-top: 0; }
