@charset "UTF-8";
/* ==========================================================================
   木蘭酒家 mokurann.com
   1. 変数・基本
   2. ヘッダー（写真ページ用・文字ページ用）
   3. 固定の部品（店名・予約ボタン・LINE）
   4. ページの見出し写真・スライドショー
   5. お知らせ
   6. 各ページの本文（トップ・お品書き・地域貢献・店舗案内）
   7. 写真リンク・予約の案内
   8. お知らせ詳細
   9. フッター
   10. 動き（フェードイン・ズームイン）
   ブレークポイント：768px 未満をスマホ、1025px 以上をPC として扱う
   ========================================================================== */

/* 1. 変数・基本 -------------------------------------------------------------- */
:root {
  --accent: #6e0f0a;
  --ink: #54595f;
  --text: #7a7a7a;
  --base: #334155;
  --title: #1e293b;
  --line: #e6e6e6;
  --mincho: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif CJK JP", "Noto Serif JP", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  background: #fff;
  color: var(--base);
  font-family: var(--mincho);
  font-size: 16px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.vertical { writing-mode: vertical-rl; }
.sp-only { display: none; }

/* 2. ヘッダー --------------------------------------------------------------- */
/* 写真ページ：写真の上に白い帯を重ねる（スマホでは出さない） */
.hero-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 66px;
  padding: 10px;
  background: #fff;
}

.gnav ul { display: flex; }

.gnav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 13px 20px;
  color: var(--ink);
  font-weight: 600;
  line-height: 20px;
  transition: color .4s;
}

/* 今いるページと、マウスを乗せた項目に下線を出す */
.gnav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0);
  transition: opacity .4s, transform .4s;
}

.gnav a:hover,
.gnav a:focus-visible,
.gnav a[aria-current="page"] { color: var(--accent); }

.gnav a:hover::after,
.gnav a:focus-visible::after,
.gnav a[aria-current="page"]::after { opacity: 1; transform: scaleX(1); }

/* 文字ページ：店名とメニューを横に並べる */
.plain-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 81px;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
}

.plain-header__title {
  color: var(--title);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}

.plain-header__nav ul { display: flex; }

.plain-header__nav a {
  display: block;
  padding: 0 16px;
  line-height: 80px;
  color: var(--base);
  transition: color .2s;
}

.plain-header__nav a:hover { color: var(--accent); }

/* 3. 固定の部品 ------------------------------------------------------------- */
/* 左上の店名（縦書きの白い箱）。スクロールしても左上に残る（このサイトの特徴）。
   基本は手前。お品書きのメニュー表の画像の上に来たときだけ、その画像の後ろに隠れる（下の .menu-sheets） */
.brand {
  position: fixed;
  top: 0;
  left: 64px;
  z-index: 3;
  display: flex;
  justify-content: center;
  width: 128px;
  height: 420px;
  padding: 100px 0;
  background: #fff;
}

.brand__name {
  writing-mode: vertical-rl;
  color: var(--ink);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 10px;
}

/* 右の予約ボタン */
.reserve {
  position: fixed;
  top: 25%;
  right: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  width: 56px;
  height: 200px;
  padding: 30px 7px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  line-height: 21px;
  writing-mode: vertical-rl;
  text-align: center;
  transition: opacity .3s;
}

.reserve:hover { opacity: .85; }

/* 右下の LINE */
.line-link {
  position: fixed;
  right: 26px;
  bottom: 16px;
  z-index: 3;
  width: 38px;
}

/* 4. 見出し写真・スライドショー ----------------------------------------------- */
.slideshow {
  position: relative;
  height: 100vh;
  margin-top: 20px;
  overflow: hidden;
}

.slideshow__item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.slideshow__item.is-active { opacity: 1; }

.page-hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 10px;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 88px;
  height: 226px;
  padding-top: 45px;
  background: #fff;
}

.page-hero__title {
  writing-mode: vertical-rl;
  color: var(--ink);
  font-size: 28px;
  font-weight: 400;
  line-height: 26px;
}

.page-hero__en {
  margin-top: 10px;
  color: var(--text);
  font-size: 12px;
  line-height: 1;
}

/* 5. お知らせ --------------------------------------------------------------- */
.news {
  width: min(700px, 56.4%);
  margin: 50px auto 0;
}

.news__title {
  padding: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
}

.news__list { margin: 5px -5px 0; }

.news__item a {
  display: flex;
  padding: 10px;
  transition: transform .2s linear;
}

.news__item a:hover { transform: scale(1.02); }

.news__date {
  flex: 0 0 138px;
  color: var(--accent);
}

.news__label { color: var(--text); }

.news__more {
  margin-top: 5px;
  margin-bottom: 22px;
  text-align: right;
  font-size: 12px;
  line-height: 2.2;
}

.news__more a { color: var(--accent); }

.pill {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 12px 24px;
  border: 2px solid var(--accent);
  border-radius: 60px;
  background: #fff;
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  transition: background .3s, color .3s;
}

.pill:hover { background: var(--accent); color: #fff; }

.news--page { margin-top: 50px; margin-bottom: 110px; }

/* 文字ページは中身が少なくてもフッターを画面の下端に置く */
.layout-plain { display: flex; flex-direction: column; min-height: 100vh; }
.layout-plain main { flex: 1; }

/* 6. 各ページの本文 ---------------------------------------------------------- */
/* トップ：店の紹介（PCは縦書き2段、スマホは横書き） */
.intro {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin: 206px auto 0;
  color: var(--ink);
}

.intro__lead {
  order: 2;
  padding-bottom: 1.75em;
  writing-mode: vertical-rl;
  font-size: 50px;
  font-weight: 400;
  line-height: 70px;
}

.intro__text {
  order: 1;
  padding-bottom: 1.75em;
  writing-mode: vertical-rl;
  font-size: 20px;
  line-height: 38px;
}

/* 段落の間は1行あける */
.intro__text p + p { margin-right: 38px; }

/* お品書き：メニュー表を2列。ここだけ店名の箱より手前に置き、重なったときは箱を隠す */
.menu-sheets {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 20px;
}

/* 地域貢献：番号つきの2つの柱 */
.pillar {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  margin: 100px auto 0;
  color: var(--ink);
}

.pillar + .pillar { margin-top: 100px; }

.pillar__no {
  order: 3;
  padding: 9px 13px;
  background: var(--accent);
  color: #fff;
  font-size: 33px;
  font-weight: 600;
  line-height: 1.3;
}

.pillar__head {
  order: 2;
  height: 700px;
  writing-mode: vertical-rl;
  font-size: 50px;
  font-weight: 400;
  line-height: 70px;
}

.pillar__text {
  order: 1;
  height: 700px;
  writing-mode: vertical-rl;
  font-size: 20px;
  line-height: 38px;
}

/* 店舗案内：左に縦書きの見出し、右に中身 */
/* 見出しの列はページの左端から354px。中身は414pxの位置から（店舗情報の段だけ地図・写真より広い） */
.info-row {
  display: grid;
  grid-template-columns: 354px minmax(0, 1fr);
  gap: 60px;
  color: var(--ink);
}

/* 段の始まりは中身の量によらず一定（店舗情報 880px・アクセス 1610px・店舗紹介 2410px） */
.info-row--about { margin-top: 80px; min-height: 730px; }
.info-row--map { min-height: 800px; }
.info-row .map,
.info-row .shop-photos { margin-top: 50px; }

.info-row > :last-child { max-width: 826px; }
.info-row .map,
.info-row .shop-photos { max-width: 708px; }


.info-row__head {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.info-row__title {
  writing-mode: vertical-rl;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
}

.info-row__en {
  writing-mode: vertical-rl;
  font-size: 16px;
}

.about {
  display: grid;
  grid-template-columns: 452px 314px;
  gap: 60px;
  padding-top: 50px;
}

.about__name { font-size: 36px; font-weight: 600; line-height: 1.3; }
.about__text { margin-top: 20px; font-size: 20px; line-height: 38px; }

.contact { color: var(--ink); }
.contact p { margin: 20px 0; }
.contact p:last-child { margin-bottom: 0; }

.tag {
  display: inline-block;
  padding: 2px 15px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.contact .tag + p { margin-top: 20px; }
.contact p + .tag { margin-top: 20px; }

.contact__tel { font-size: 30px; font-weight: 600; line-height: 1.3; }
.contact__mail { font-weight: 600; }

.map { width: 100%; height: 640px; border: 0; }

.shop-photos { display: grid; gap: 20px; }

/* 7. 写真リンク・予約の案内 --------------------------------------------------- */
/* 写真リンクの上の余白（元のサイトに合わせてページごとに違う） */
.page-links { margin-top: 5px; }
.page-top .page-links { margin-top: 211px; }
.page-access .page-links { margin-top: 85px; }

.cards {
  display: grid;
  grid-template-columns: repeat(2, 367px);
  justify-content: center;
  gap: 20px;
}

.cards__item {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.cards__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0 0;
  transition: transform .6s ease;
}

.cards__item:hover img { transform: scale(1.04); }

.cards__label {
  position: relative;
  padding: 30px 6px;
  background: #fff;
  color: var(--ink);
  writing-mode: vertical-rl;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
}

/* 予約の案内（全画面） */
.guide {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(110, 15, 10, .95);
  color: #fff;
}

.guide[open] { animation: zoomIn .75s both; }
/* 後ろのページは見せない（赤95%を白の上に重ねた色＝元のサイトと同じ見え方） */
.guide::backdrop { background: #fff; }

.guide__inner {
  display: grid;
  grid-template-columns: 528px 314px;
  grid-template-rows: auto auto;
  justify-content: center;
  align-content: center;
  gap: 0 98px;
  min-height: 100%;
  padding: 70px 20px;
}

.guide__close {
  position: fixed;
  top: 18px;
  right: 34px;
  width: 20px;
  height: 20px;
}

.guide__close::before,
.guide__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  transform: rotate(45deg);
}

.guide__close::after { transform: rotate(-45deg); }

.cards--guide {
  grid-template-columns: repeat(2, 253px);
  gap: 20px;
}

/* スマホではヘッダーのメニューを出さないので、この案内から HOME へ戻れるようにする */
.guide__home {
  grid-column: 1;
  margin-top: 16px;
  font-weight: 600;
  letter-spacing: .08em;
}

.guide__home a { border-bottom: 1px solid currentColor; padding-bottom: 2px; }

.guide .contact { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: #fff; }
.guide .tag { background: #fff; color: var(--ink); font-weight: 400; }
.guide .contact p { font-weight: 600; }

/* 8. お知らせ詳細 ------------------------------------------------------------ */
.article {
  max-width: 1200px;
  margin: 104px auto 0;
  padding: 0 40px;
}

.article__title { color: var(--title); font-size: 32px; font-weight: 600; line-height: 1.2; }
.article__date { margin-top: 10px; color: #046bd2; font-size: 16px; line-height: 1.45; }

.article__body {
  margin-top: 33px;
  color: var(--base);
  font-size: 16px;
  line-height: 1.65;
}

.article__body p { margin-bottom: 1.6em; }
.article__body figure { margin: 0 0 16px; box-shadow: 0 0 30px rgba(0, 0, 0, .15); }

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 39px auto 65px;
  padding: 32px 40px 0;
  color: var(--base);
}

.article-nav a:hover { color: var(--accent); }
.article-nav__next { margin-left: auto; text-align: right; }

/* 9. フッター -------------------------------------------------------------- */
.site-footer {
  margin-top: 10px;
  padding: 37px 40px;
  border-top: 1px solid var(--line);
  color: var(--base);
  text-align: center;
}

.layout-hero .site-footer { margin-top: 10px; }

/* 10. 動き ----------------------------------------------------------------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { opacity: 0; transform: scale3d(.3, .3, .3); } 50% { opacity: 1; } }

/* スクロールで見えたらフェードイン（JS が .is-visible を付ける） */
[data-reveal] { opacity: 0; }
[data-reveal].is-visible { animation: fadeIn 1.25s both; }
.no-js [data-reveal] { opacity: 1; }

/* 開いた瞬間から始めるもの（ファーストビュー） */
.fade-in { animation: fadeIn 1.25s both; }

@media (max-width: 1024px) {
  .brand { left: 32px; }
  .about { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .info-row { grid-template-columns: 160px minmax(0, 1fr); gap: 40px; padding-right: 20px; }
  .guide__inner { grid-template-columns: minmax(0, 528px); gap: 40px; }
}

/* ==========================================================================
   タブレット（768〜1024px）
   固定している店名の箱（32〜160px）と予約ボタン（712px〜）の間に本文を収める
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
  .intro,
  .pillar { justify-content: flex-start; gap: 20px; margin-left: 180px; margin-right: 76px; }
  .intro__lead,
  .pillar__head { font-size: 32px; line-height: 46px; }
  .intro__text,
  .pillar__text { font-size: 16px; line-height: 28px; }
  .intro__text p + p { margin-right: 28px; }
  .pillar__head,
  .pillar__text { height: 560px; }
  .pillar__no { margin-left: 0; }
  .info-row { grid-template-columns: 120px minmax(0, 1fr); gap: 30px; padding: 0 76px 0 180px; }
  .info-row--about { min-height: 0; }
  .info-row--map { min-height: 0; margin-top: 110px; }
  .info-row--photos { margin-top: 110px; }
}


/* ==========================================================================
   スマホ（767px 以下）
   ========================================================================== */
@media (max-width: 767px) {
  body { font-size: 14.6px; }
  .sp-only { display: block; }
  .pc-only { display: none; }

  .hero-header { display: none; }

  .brand { left: 0; width: 70px; height: 176px; padding: 30px 0; }
  .brand__name { font-size: 22px; letter-spacing: 2px; }

  .line-link { right: 8px; bottom: 17px; width: 39px; }

  .news { margin-top: 50px; }
  .news__title { font-size: 18px; }
  .news__item a { flex-direction: column; }
  .news__date { flex: none; }
  .pill { padding: 12px 24px; }

  /* 本文は、左の店名の箱（〜70px）と右の予約ボタン（334px〜）の間に収める */
  .intro { display: block; width: auto; margin: 150px 56px 0 80px; }
  .intro__lead,
  .intro__text { padding-bottom: 0; writing-mode: horizontal-tb; }
  .intro__lead { font-size: 22px; font-weight: 600; line-height: 1.3; }
  .intro__text { margin-top: 20px; color: var(--text); font-size: 16px; line-height: 30.4px; text-align: justify; }
  .intro__text p { margin-bottom: 1.75em; }
  .intro__text p + p { margin-right: 0; }

  /* 最初の2枚だけ横に並べ、3枚目から1枚ずつ（元のサイトと同じ並び） */
  .menu-sheets { gap: 20px; padding: 20px 10px; }
  .menu-sheets img:nth-child(n+3) { grid-column: 1 / -1; }

  .pillar { display: block; width: auto; margin: 128px 56px 0 80px; }
  .pillar + .pillar { margin-top: 247px; }
  .pillar__no { position: static; display: inline-block; margin-bottom: -10px; padding: 8px 10px; font-size: 15px; line-height: 19.5px; }
  .pillar__head,
  .pillar__text { height: auto; writing-mode: horizontal-tb; }
  .pillar__head { margin-top: 20px; font-size: 22px; font-weight: 600; line-height: 1.3; }
  .pillar__text { margin: 20px 0 1.75em; color: var(--text); font-size: 16px; line-height: 30.4px; }
  .page-concept .page-links { margin-top: 117px; }
  .page-menu .page-links { margin-top: 9px; }

  .info-row { display: block; min-height: 0; padding: 0 56px 0 80px; }
  .info-row--about { margin-top: 90px; }
  .info-row--map { margin-top: 111px; }
  .info-row--photos { margin-top: 225px; padding: 0; }
  .info-row__head { align-items: center; gap: 20px; margin-bottom: 10px; }
  .info-row__title,
  .info-row__en { writing-mode: horizontal-tb; }
  .info-row__title { font-size: 20px; line-height: 26px; }
  .info-row__en { font-size: 12px; line-height: 30px; }
  .about { display: block; padding-top: 0; }
  .about__name { font-size: 20px; line-height: 26px; }
  .about__text { padding-bottom: 1.75em; font-size: 16px; line-height: 30.4px; }
  /* 店舗案内ページの連絡先（予約の案内の中は大きさを変えない） */
  .info-row .contact__tel { font-size: 16px; line-height: 1.3; }
  .info-row .contact__line { font-size: 12px; }
  .info-row .contact p:not(.contact__tel):not(.contact__mail):not(.contact__line) { line-height: 22.4px; }
  /* 文章の段落は下に1.75文字ぶんの余白（元のサイトの段落と同じ） */
  .info-row .contact__line,
  .info-row .contact p:not(.contact__tel):not(.contact__mail) { padding-bottom: 1.75em; }
  .guide .contact__tel { font-size: 16px; }
  .info-row .map { height: 338px; margin-top: 97px; }
  .info-row .shop-photos { margin-top: 0; }
  .page-access .page-links { margin-top: 80px; }

  .page-top .page-links { margin-top: 163px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cards__label { padding: 30px 8px 30px 4px; font-size: 22.8px; }

  .guide__inner { display: block; padding: 56px 12px 40px; }
  .cards--guide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cards--guide .cards__label { font-size: 18px; padding: 20px 6px; }
  .guide .contact { margin-top: 32px; padding: 0 0 20px; }
  .guide__close { right: 16px; }

  .plain-header { flex-direction: column; justify-content: center; gap: 4px; height: auto; padding: 16px 20px; }
  .plain-header__title { font-size: 18px; text-align: center; }
  .plain-header__nav a { padding: 0 10px; line-height: 2.4; font-size: 14.6px; }
  .article { margin-top: 50px; padding: 0 20px; }
  .article__title { font-size: 24px; }
  .article-nav { padding: 20px 20px 0; flex-direction: column; }
  .site-footer { padding: 12px 20px; }
}
