/* 自宅にビールサーバーを置きたい！！ 共通スタイル */

:root {
  --main: #b0601a;
  --main-dark: #7a3f10;
  --main-light: #fbefdc;
  --beige: #fbf7f0;
  --cream: #ffffff;
  --ink: #2e241b;
  --ink-soft: #66584a;
  --line: #eadcc6;
  --gold: #e9a92a;
  --shadow: 0 10px 30px rgba(90, 55, 20, 0.10);
  --radius: 16px;
  --font: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--beige);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.95;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--main-dark);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--main);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  padding: 8px 16px;
  z-index: 100;
}

.skip:focus {
  left: 8px;
}

/* ---------- ヘッダー ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.logo-text {
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  color: var(--main-dark);
}

.logo-text small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}

.global-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.global-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}

.global-nav a:hover,
.global-nav a[aria-current="page"] {
  background: var(--main-light);
  color: var(--main-dark);
}

.menu-button {
  display: none;
}

@media (max-width: 1100px) {
  .menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    background: var(--main-light);
    cursor: pointer;
  }

  .menu-icon {
    position: relative;
    width: 22px;
    height: 16px;
  }

  .menu-icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--main-dark);
    transition: transform 0.35s, opacity 0.35s, top 0.35s;
  }

  .menu-icon span:nth-child(1) { top: 0; }
  .menu-icon span:nth-child(2) { top: 7px; }
  .menu-icon span:nth-child(3) { top: 14px; }

  .menu-open .menu-icon span:nth-child(1) { top: 7px; transform: rotate(45deg); }
  .menu-open .menu-icon span:nth-child(2) { opacity: 0; }
  .menu-open .menu-icon span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

  .global-nav {
    position: fixed;
    top: 67px;
    right: 0;
    left: 0;
    max-height: calc(100vh - 67px);
    overflow-y: auto;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.35s, transform 0.35s, visibility 0.35s;
  }

  .menu-open .global-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .global-nav ul {
    flex-direction: column;
    padding: 12px 16px 20px;
  }

  .global-nav a {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 16px;
    border-bottom: 1px dashed var(--line);
  }

  .logo-text {
    font-size: 17px;
  }
}

/* ---------- レイアウト ---------- */

.main {
  display: block;
  min-height: 60vh;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 56px;
}

.container.narrow {
  max-width: 860px;
}

.section-title {
  position: relative;
  margin: 56px 0 24px;
  padding-bottom: 12px;
  font-size: 24px;
  line-height: 1.5;
  text-align: center;
  color: var(--ink);
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 56px;
  height: 3px;
  margin-left: -28px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--main), var(--gold));
}

/* ---------- ヒーロー ---------- */

.hero {
  position: relative;
  overflow: hidden;
  max-height: 560px;
}

.hero-image {
  width: 100%;
  height: min(70vw, 560px);
  object-fit: cover;
  animation: heroZoom 14s ease-out both;
}

.hero-text {
  position: absolute;
  inset: auto 0 0 0;
  padding: 48px 24px 40px;
  text-align: center;
  color: #fff;
  background: linear-gradient(to top, rgba(45, 25, 8, 0.75), rgba(45, 25, 8, 0));
}

.hero-kicker {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 4px 0 8px;
  font-size: clamp(24px, 4.2vw, 40px);
  line-height: 1.45;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero p {
  margin: 0;
  font-size: clamp(14px, 2vw, 17px);
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

/* ---------- トップ ---------- */

.intro p {
  max-width: 780px;
  margin: 0 auto 1.2em;
}

.category-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.category-grid a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.4s, box-shadow 0.4s;
}

.category-grid a:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(90, 55, 20, 0.18);
}

.category-grid img {
  width: 100%;
  aspect-ratio: 12 / 5;
  object-fit: cover;
}

.category-name {
  display: block;
  padding: 12px 16px 0;
  font-weight: 700;
  font-size: 17px;
}

.category-count {
  display: block;
  padding: 0 16px 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 18px;
}

.rank-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.3s, transform 0.3s;
}

.rank-list a:hover {
  border-color: var(--main);
  transform: translateX(4px);
}

.rank-no {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--main-light);
  color: var(--main-dark);
  font-weight: 700;
}

.rank-top .rank-no {
  background: linear-gradient(135deg, var(--gold), #f6d0b4);
  color: #fff;
}

.rank-list img {
  flex: none;
  width: 84px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
}

.rank-name {
  font-weight: 700;
  line-height: 1.5;
  font-size: 15.5px;
}

.rank-name small {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-soft);
}

.more {
  text-align: center;
}

.more a {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 999px;
  border: 1px solid var(--main);
  text-decoration: none;
  font-weight: 700;
}

.more a:hover {
  background: var(--main);
  color: #fff;
}

/* ---------- カード ---------- */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.4s, box-shadow 0.4s;
}

.card a:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(90, 55, 20, 0.18);
}

.card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.8s;
}

.card a:hover img {
  transform: scale(1.04);
}

.card-body {
  display: block;
  padding: 14px 16px 18px;
}

.card-cat {
  display: inline-block;
  margin-bottom: 6px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--main-light);
  color: var(--main-dark);
  font-size: 12px;
  font-weight: 700;
}

.card-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- カテゴリページ ---------- */

.category-header {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  margin-bottom: 8px;
}

.category-image {
  width: 100%;
  aspect-ratio: 12 / 5;
  object-fit: cover;
}

.category-text {
  padding: 22px 4px 0;
}

.category-text h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3.4vw, 32px);
  color: var(--main-dark);
}

/* ---------- パンくず ---------- */

.breadcrumb ol {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-soft);
}

.breadcrumb li + li::before {
  content: "›";
  margin: 0 6px;
}

/* ---------- 記事 ---------- */

.article {
  background: var(--cream);
  border-radius: 22px;
  padding: 36px 44px 40px;
  box-shadow: var(--shadow);
}

.article-cat {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.article-cat a {
  text-decoration: none;
}

.article-title {
  margin: 6px 0 8px;
  font-size: clamp(23px, 3.4vw, 31px);
  line-height: 1.5;
  color: var(--ink);
}

.article-date {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.pr-note {
  display: inline-block;
  margin: 8px 0 0;
  padding: 2px 12px;
  border-radius: 6px;
  background: #f8eedf;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.eyecatch {
  margin: 22px 0 26px;
}

.eyecatch img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.lead {
  font-size: 17.5px;
  font-weight: 500;
}

.toc {
  margin: 26px 0;
  padding: 18px 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.toc-title {
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--main-dark);
}

.toc ol {
  margin: 0;
  padding-left: 1.4em;
}

.toc a {
  color: var(--ink);
  text-decoration: none;
}

.toc a:hover {
  color: var(--main);
  text-decoration: underline;
}

.article-body h2 {
  margin: 52px 0 18px;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--main-light), rgba(251, 239, 220, 0.15));
  border-left: 6px solid var(--main);
  font-size: 22px;
  line-height: 1.55;
  scroll-margin-top: 90px;
}

.article-body h3 {
  margin: 34px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px dotted var(--main);
  font-size: 19px;
  line-height: 1.6;
}

.article-body p {
  margin: 0 0 1.4em;
}

.list {
  margin: 0 0 1.5em;
  padding-left: 1.4em;
}

.list li {
  margin-bottom: 0.4em;
}

.list li::marker {
  color: var(--main);
}

.box {
  margin: 26px 0;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 2px solid var(--main-light);
}

.box p,
.box ul {
  margin: 0 0 0.6em;
}

.box ul {
  padding-left: 1.3em;
}

.box-title {
  font-weight: 700;
  color: var(--main-dark);
}

.box-title::before {
  content: "◆ ";
  color: var(--gold);
}

.box-voice {
  background: #fffaf3;
  border-color: #f1e2c8;
}

.box-caution {
  background: #fdf8f0;
  border-color: #ecd9bd;
}

.box-data {
  background: #fcf8f1;
  border-color: #eadbc5;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.6em;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: #fff;
}

th,
td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--main-light);
}

.official {
  margin: 36px 0 10px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px dashed var(--main);
}

.official p {
  margin: 0 0 4px;
}

.official-title {
  font-weight: 700;
  color: var(--main-dark);
}

.official-note {
  font-size: 13px;
  color: var(--ink-soft);
}

.related .section-title {
  margin-top: 64px;
}

/* ---------- 広告 ---------- */

.ad {
  margin: 34px auto;
  text-align: center;
  min-height: 120px;
}

.ad-label {
  margin: 0 0 4px;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
}

/* ---------- 検索 ---------- */

.search-form {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}

.search-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
}

.search-form button {
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--main);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.search-status {
  color: var(--ink-soft);
}

/* ---------- フッター ---------- */

.site-footer {
  margin-top: 40px;
  background: #3b2614;
  color: #f7ecdc;
  font-size: 14.5px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 20px 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}

.footer-logo {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: #f7ecdc;
  text-decoration: none;
  line-height: 2.2;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.copyright {
  margin: 0;
  padding: 14px;
  text-align: center;
  font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--main);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  z-index: 40;
}

.to-top.is-shown {
  opacity: 0.9;
  pointer-events: auto;
}

/* ---------- ふわっと表示 ---------- */

.fade-in {
  animation: fadeUp 1s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

.hero-text .fade-in:nth-child(2) { animation-delay: 0.25s; }
.hero-text .fade-in:nth-child(3) { animation-delay: 0.5s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 0.8, 0.3, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- スマホ ---------- */

@media (max-width: 760px) {
  body {
    font-size: 16.5px;
    line-height: 1.9;
  }

  .container {
    padding: 16px 14px 44px;
  }

  .article {
    padding: 24px 18px 28px;
    border-radius: 16px;
  }

  .article-body h2 {
    font-size: 19.5px;
    padding: 10px 14px;
  }

  .article-body h3 {
    font-size: 17.5px;
  }

  .section-title {
    font-size: 21px;
    margin-top: 44px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .card-body {
    padding: 10px 10px 12px;
  }

  .card-title {
    font-size: 14px;
    line-height: 1.55;
  }

  .card-cat {
    font-size: 11px;
  }

  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .category-name {
    font-size: 14.5px;
    padding: 8px 10px 0;
    line-height: 1.5;
  }

  .category-count {
    padding: 0 10px 10px;
  }

  .rank-list {
    grid-template-columns: 1fr;
  }

  .rank-list img {
    width: 72px;
    height: 48px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-text {
    padding: 36px 16px 22px;
  }
}

/* 本文中の写真（取り寄せた資料など） */
.photo {
  margin: 2em auto;
  max-width: 640px;
}

.photo img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 520px;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.photo figcaption {
  margin-top: 0.6em;
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: center;
}

.footer-note {
  font-size: 0.85rem;
  opacity: 0.85;
}

.box-update {
  background: #eef7f2;
  border-color: #bfe0cc;
}

.box-my {
  background: #fdf8ef;
  border-color: #f1dfba;
}

.box-set {
  background: #f7f8f3;
  border-color: #dde3cf;
}

.box-memo {
  background: #fcf8f2;
  border-color: #e8dac6;
}
