/* ana-kichi.com 共通スタイル */
:root {
  --ink: #3b2a20;
  --ink-soft: #6b5546;
  --brown: #5a3b28;
  --accent: #a9552f;
  --accent-dark: #8a4024;
  --cream: #fbf7f1;
  --tint: #f4ece2;
  --line: #e4d6c6;
  --white: #fff;
  --serif: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.9; letter-spacing: .03em;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
p { margin: 0 0 1.1em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }
.right { text-align: right; }
.small { font-size: .9em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand img { width: 160px; height: auto; }
.menu-btn {
  display: none; position: relative; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; padding: 0;
}
.menu-btn span { position: absolute; left: 12px; width: 24px; height: 2px; background: var(--brown); transition: .2s; }
.menu-btn span:nth-child(1) { top: 14px; } .menu-btn span:nth-child(2) { top: 21px; } .menu-btn span:nth-child(3) { top: 28px; }
.menu-btn b { position: absolute; left: 0; right: 0; bottom: 2px; font-size: 10px; font-weight: 400; color: var(--brown); letter-spacing: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.gnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.gnav a { display: block; padding: 8px 12px; color: var(--ink); text-decoration: none; font-size: 15px; border-radius: 4px; }
.gnav a:hover, .gnav a[aria-current="page"] { color: var(--accent-dark); }
.gnav a[aria-current="page"] { font-weight: 700; }
.gnav .nav-contact a { background: var(--accent); color: #fff; padding: 8px 16px; }
.gnav .nav-contact a:hover { background: var(--accent-dark); color: #fff; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .gnav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 8px 16px rgba(0,0,0,.06); }
  .gnav.open { display: block; }
  .gnav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
  .gnav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 16px; }
  .gnav .nav-contact a { margin-top: 12px; text-align: center; border-radius: 4px; border: 0; }
}

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section.tint { background: var(--tint); }
.sec-title { text-align: center; font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.5; margin: 0 0 32px; color: var(--brown); }
.sec-title span { display: inline-block; padding-bottom: 10px; border-bottom: 1px solid var(--accent); }
@media (max-width: 600px) {
  .section { padding: 48px 0; }
  .sec-title { font-size: 22px; margin-bottom: 24px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border: 1px solid var(--accent); border-radius: 999px;
  color: var(--accent-dark); background: #fff; text-decoration: none; font-size: 15px; line-height: 1.5; text-align: center;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--accent); color: #fff; }
.btn-main { background: var(--accent); color: #fff; font-weight: 700; }
.btn-main:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-line { display: inline-block; color: var(--accent-dark); font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.btn-line::after { content: " →"; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.center .btn-row, .btn-row.center { justify-content: center; }
@media (max-width: 600px) {
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }
}

/* ---------- top hero ---------- */
.top-hero { background: #fff; }
.top-hero-photo img { width: 100%; height: 62vh; min-height: 300px; max-height: 620px; object-fit: cover; object-position: 75% 30%; }
.top-hero-text { text-align: center; padding-top: 36px; padding-bottom: 48px; }
.motto { display: inline-block; margin: 0 0 10px; color: var(--accent-dark); font-weight: 700; letter-spacing: .12em; font-size: 15px; }
.top-hero h1 { font-family: var(--serif); font-weight: 700; font-size: 34px; line-height: 1.4; margin: 0 0 6px; color: var(--brown); }
.rep { font-family: var(--serif); font-size: 18px; margin: 0 0 18px; }
.hero-lead { margin: 0; color: var(--ink-soft); }
@media (max-width: 600px) {
  .top-hero-photo img { height: 46vh; min-height: 260px; object-position: 80% 30%; }
  .top-hero h1 { font-size: 26px; }
  .rep { font-size: 16px; }
  .hero-lead { font-size: 15px; }
}

/* ---------- business cards ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.biz-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 20px 20px 18px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s;
}
.biz-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(90,59,40,.1); }
.biz-logo { height: 76px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.biz-logo img { max-height: 76px; max-width: 220px; width: auto; }
.biz-name { font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.biz-short { font-size: 14px; line-height: 1.8; color: var(--ink-soft); flex: 1; }
.biz-more { margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--accent-dark); }
.biz-more::after { content: " →"; }
@media (max-width: 860px) { .biz-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .biz-grid { grid-template-columns: 1fr; gap: 12px; }
  .biz-card { display: grid; grid-template-columns: 96px 1fr; column-gap: 14px; padding: 14px; }
  .biz-logo { grid-row: 1 / span 3; height: auto; margin: 0; }
  .biz-logo img { max-width: 96px; max-height: 56px; }
  .biz-name { font-size: 16px; margin-bottom: 2px; }
  .biz-short { font-size: 13px; }
  .biz-more { margin-top: 6px; font-size: 13px; }
}

/* ---------- news ---------- */
.news { list-style: none; margin: 0 0 24px; padding: 0; }
.news li { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news li:first-child { border-top: 1px solid var(--line); }
.news time { color: var(--accent-dark); font-weight: 700; }
.news p { margin: 0; }
.news .news-img, .news .btn { grid-column: 2; margin: 12px 0 0; justify-self: start; }
@media (max-width: 600px) {
  .news li { grid-template-columns: 1fr; gap: 4px; }
  .news .news-img, .news .btn { grid-column: 1; }
}

/* ---------- melmaga ---------- */
.melmaga { background: var(--brown); color: #fff; }
.melmaga-label { font-size: 14px; letter-spacing: .1em; opacity: .85; margin-bottom: 6px; }
.melmaga h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.6; margin: 0 0 16px; }
.melmaga .btn-main { margin-top: 8px; padding: 14px 32px; font-size: 16px; }
@media (max-width: 600px) { .melmaga h2 { font-size: 21px; } }

/* ---------- sub pages ---------- */
.sub-hero { background: var(--tint); padding: 48px 0 40px; text-align: center; border-bottom: 1px solid var(--line); }
.sub-hero h1 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 0; color: var(--brown); line-height: 1.5; }
.sub-lead { margin: 10px 0 0; color: var(--ink-soft); }
@media (max-width: 600px) { .sub-hero { padding: 36px 0 30px; } .sub-hero h1 { font-size: 24px; } .sub-lead { font-size: 14px; } }

/* profile */
.profile-photo { margin: 0 auto 20px; max-width: 520px; }
.profile-photo img { border-radius: 10px; }
.profile-name { text-align: center; font-family: var(--serif); font-size: 20px; line-height: 1.6; margin-bottom: 32px; }
.profile-name small { font-family: var(--sans); font-size: 14px; color: var(--ink-soft); }
.timeline { margin: 0 0 24px; display: grid; grid-template-columns: 5em 1fr; }
.timeline dt { font-weight: 700; color: var(--accent-dark); padding: 14px 0; border-top: 1px solid var(--line); }
.timeline dd { margin: 0; padding: 14px 0; border-top: 1px solid var(--line); }
.voice { margin: 8px 0 28px; padding: 18px 20px; background: #fff; border-left: 3px solid var(--accent); font-family: var(--serif); font-size: 17px; line-height: 2; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 32px 0 28px; }
.facts div { background: #fff; border-radius: 10px; padding: 14px 8px; text-align: center; }
.facts b { display: block; font-size: 13px; font-weight: 400; color: var(--ink-soft); }
.facts span { font-family: var(--serif); font-size: 24px; color: var(--brown); }
@media (max-width: 600px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline dt { padding-bottom: 0; }
  .timeline dd { border-top: 0; padding-top: 4px; }
  .facts span { font-size: 19px; }
}

/* business */
.toc { padding-top: 28px; padding-bottom: 8px; }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.toc a { display: block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; color: var(--ink); font-size: 14px; }
.toc a:hover { border-color: var(--accent); color: var(--accent-dark); }
.biz-num { margin: 0; font-family: var(--serif); color: var(--accent); font-size: 15px; letter-spacing: .1em; }
.biz-head { display: flex; align-items: center; gap: 18px; margin: 4px 0 24px; }
.biz-head img { max-height: 76px; max-width: 190px; width: auto; background: #fff; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); }
.biz-head h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 0; color: var(--brown); line-height: 1.4; }
.biz-photo { margin: 0 0 24px; }
.biz-photo img { border-radius: 10px; width: 100%; max-height: 420px; object-fit: cover; }
@media (max-width: 600px) {
  .biz-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .biz-head img { max-height: 64px; }
  .biz-head h2 { font-size: 22px; }
}
.items { margin-top: 40px; }
.items h3 { font-family: var(--serif); font-weight: 500; font-size: 20px; color: var(--brown); margin: 0 0 16px; }
.item-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.item { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--ink); }
.item img { width: 100%; height: auto; background: #f6f1ea; }
.item b { padding: 12px 14px 4px; font-size: 15px; line-height: 1.6; }
.item span { padding: 0 14px; font-size: 13px; line-height: 1.8; color: var(--ink-soft); flex: 1; }
.item em { font-style: normal; padding: 10px 14px 14px; font-size: 13px; font-weight: 700; color: var(--accent-dark); }
.item em::after { content: " →"; }
@media (max-width: 600px) { .item-grid { grid-template-columns: 1fr; } }
.lecture { background: #fff; border-top: 1px solid var(--line); }

/* media */
.tv-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tv-list li { background: #fff; border-radius: 6px; padding: 10px 14px; font-size: 15px; }
@media (max-width: 600px) { .tv-list { grid-template-columns: 1fr; } }
.books { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; }
.books figure { margin: 0; }
.books img { border-radius: 4px; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
@media (max-width: 600px) { .books { grid-template-columns: 1fr; } .books figure { max-width: 180px; margin: 0 auto; } }

/* company */
.company { width: 100%; border-collapse: collapse; background: #fff; }
.company th, .company td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.company th { width: 11em; background: var(--tint); font-weight: 700; color: var(--brown); }
@media (max-width: 600px) {
  .company, .company tbody, .company tr, .company th, .company td { display: block; width: 100%; }
  .company th { padding: 10px 14px; border-bottom: 0; }
  .company td { padding: 10px 14px 16px; }
}

/* policy */
.policy h2 { font-size: 18px; color: var(--brown); margin: 32px 0 10px; padding-left: 10px; border-left: 3px solid var(--accent); line-height: 1.5; }
.policy ul { padding-left: 1.4em; margin: 0 0 1.1em; }

/* ---------- footer ---------- */
.site-footer { background: #2f2119; color: #e9dfd4; padding: 48px 0 28px; text-align: center; font-size: 14px; }
.site-footer a { color: #e9dfd4; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-logo { width: 160px; margin: 0 auto 8px; border-radius: 4px; }
.footer-tag { margin: 0 0 24px; letter-spacing: .1em; }
.footer-biz, .footer-nav { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.footer-biz { padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.15); }
.footer-address { margin: 16px 0 4px; font-size: 13px; opacity: .8; }
.copyright { margin: 0; font-size: 12px; opacity: .7; }

/* books */
.books-intro { margin-bottom: 8px; }
.books-head { font-family: var(--serif); font-weight: 500; font-size: 20px; color: var(--brown); margin: 36px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.books-head small { font-family: var(--sans); font-size: 14px; color: var(--ink-soft); margin-left: 4px; }
.books-head.center { border-bottom: 0; margin-top: 40px; }
.book-grid { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px 14px; }
.book-grid a { display: block; text-decoration: none; color: var(--ink); }
.book-grid img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 3px; box-shadow: 0 4px 10px rgba(0,0,0,.12); background: #fff; transition: transform .15s; }
.book-grid a:hover img { transform: translateY(-3px); }
.book-grid span { display: block; margin-top: 8px; font-size: 12px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.book-grid small { display: block; color: var(--ink-soft); font-size: 11px; }
.book-row { grid-template-columns: repeat(6, 1fr); }
.related-books { margin-top: 36px; }
.related-books h3 { font-family: var(--serif); font-weight: 500; font-size: 20px; color: var(--brown); margin: 0 0 16px; }
.related-books .book-row { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 600px) {
  .book-grid { grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
  .book-row { grid-template-columns: repeat(3, 1fr); }
  .related-books .book-row { grid-template-columns: repeat(4, 1fr); }
  .related-books .book-row span { display: none; }
  .book-row span { display: none; }
}
.hero-proof { display: inline-block; margin: 14px 0 0; padding: 4px 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--brown); letter-spacing: .04em; }
@media (max-width: 600px) { .hero-proof { font-size: 13px; padding: 4px 6px; } }
