@charset "UTF-8";
/* =====================================================================
   base5.scss  —  WEB編集モード デザイン バージョン5（和モダン）
   既存クラスフック（header / .container-tanuki / .badges-top /
   .badge-top-* / .location / .content / footer 等）はすべて保持し、
   DB 側マークアップを壊さずに見た目と動きを刷新する。
   コンパイル: sass base5.scss base5.css
   ===================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Shippori+Mincho+B1:wght@500;600;700;800&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap");
/* ------------------------------------------------------------------ */
/* トークン                                                            */
/* ------------------------------------------------------------------ */
:root {
  /* 和の色 */
  --c-kinari: #f6f1e7; /* 生成り（地色・和紙） */
  --c-washi: #fdfaf3; /* 白練（カード面） */
  --c-sumi: #1c1714; /* 墨（本文） */
  --c-sumi-70: rgba(28, 23, 20, 0.7);
  --c-bengara: #b23a2e; /* 弁柄（主アクセント） */
  --c-bengara-d:#8f2c22; /* 弁柄・濃 */
  --c-kincha: #b3893f; /* 金茶（金の差し色） */
  --c-matsuba: #4f5d47; /* 松葉（緑の差し色） */
  --c-line: rgba(28, 23, 20, 0.12);
  /* 書体 */
  --f-mincho: "Shippori Mincho B1", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --f-gothic: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  /* 造形 */
  --radius: 14px;
  --shadow-1: 0 2px 10px rgba(28, 23, 20, 0.06);
  --shadow-2: 0 14px 40px rgba(28, 23, 20, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ink-line: linear-gradient(90deg, transparent, var(--c-bengara) 20%, var(--c-bengara) 80%, transparent);
}

/* ------------------------------------------------------------------ */
/* キーフレーム                                                        */
/* ------------------------------------------------------------------ */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes seal-in {
  0% {
    opacity: 0;
    transform: scale(0.4) rotate(-12deg);
  }
  70% {
    opacity: 1;
    transform: scale(1.08) rotate(3deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}
@keyframes noren-sway {
  0%, 100% {
    transform: translateX(0) rotate(0);
  }
  50% {
    transform: translateX(3px) rotate(0.4deg);
  }
}
@keyframes ring-draw {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* ------------------------------------------------------------------ */
/* 基本                                                                */
/* ------------------------------------------------------------------ */
html, body {
  font-size: 12pt;
}

body {
  margin: 0;
  color: var(--c-sumi);
  font-family: var(--f-gothic);
  line-height: 1.9;
  letter-spacing: 0.02em;
  background-color: var(--c-kinari);
  /* 和紙のかすかな地紋（画像不使用・多層グラデーション） */
  background-image: radial-gradient(rgba(179, 137, 63, 0.05) 1px, transparent 1.4px), radial-gradient(rgba(28, 23, 20, 0.025) 1px, transparent 1.4px), linear-gradient(180deg, #f8f4ec 0%, var(--c-kinari) 60%);
  background-size: 22px 22px, 22px 22px, 100% 100%;
  background-position: 0 0, 11px 11px, 0 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

::selection {
  background: var(--c-bengara);
  color: #fff;
}

/* スクロール・リビール（JS が html に .js を付与した時のみ隠す。
   JS 無し・未対応時はコンテンツを常に表示＝安全側） */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}

.js [data-reveal].in-view {
  opacity: 1;
  transform: none;
}

.js [data-reveal].d1 {
  transition-delay: 0.08s;
}

.js [data-reveal].d2 {
  transition-delay: 0.16s;
}

.js [data-reveal].d3 {
  transition-delay: 0.24s;
}

.js [data-reveal].d4 {
  transition-delay: 0.32s;
}

/* ------------------------------------------------------------------ */
/* ヘッダー（暖簾×和紙）                                               */
/* ------------------------------------------------------------------ */
header {
  height: 150px;
  position: sticky;
  top: 0;
  z-index: 1100;
  background-color: rgba(253, 250, 243, 0.86);
  background-image: url(../images/header_bg5.png), linear-gradient(180deg, rgba(253, 250, 243, 0.9), rgba(246, 241, 231, 0.82));
  background-repeat: repeat-x, no-repeat;
  background-position: top, center;
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  backdrop-filter: blur(8px) saturate(1.05);
  box-shadow: 0 1px 0 var(--c-line), 0 6px 24px rgba(28, 23, 20, 0.07);
  font-size: 1.1rem;
  animation: fade-in 0.8s var(--ease) both;
  /* 弁柄の一本罫（暖簾の裾） */
}
header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--ink-line);
  opacity: 0.85;
}
header .nav {
  width: 100%;
  padding: 10px;
}
header .nav ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  padding: 0;
  font-size: 0.8rem;
}
header .nav ul li {
  border-radius: 4px;
}
header .nav ul li img {
  width: 200px;
  height: auto;
  border-radius: 12px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), filter 0.5s var(--ease);
}
header .nav ul li:hover img {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-2);
  filter: saturate(1.08);
}
header .nav ul a {
  color: var(--c-sumi);
  text-decoration: none;
}
header .nav ul a:link, header .nav ul a:visited {
  color: var(--c-sumi);
}
header .nav .left {
  position: absolute;
  top: 60px;
  left: 10px;
}
header .nav .right {
  position: absolute;
  top: 60px;
  right: 10px;
}
@media screen and (max-width: 576px) {
  header .nav {
    display: none;
  }
}
header {
  /* 中央ロゴ */
}
header > img {
  width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
  animation: rise-in 0.9s var(--ease) 0.1s both;
  transition: transform 0.6s var(--ease);
}
header > img:hover {
  transform: scale(1.03);
}
header {
  /* 円窓バッジ（署名要素） */
}
header .badge-kokomo {
  position: absolute;
  top: 8px;
  left: 10px;
  width: 54px;
  height: 54px;
  background: var(--c-washi);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(178, 58, 46, 0.25), var(--shadow-1);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: seal-in 0.7s var(--ease) 0.4s both;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  /* 画像は {link:top} でアンカーに包まれるため、アンカーを全面フレックス容器にして中央化 */
}
header .badge-kokomo a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
}
header .badge-kokomo img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  display: block;
  margin: 0;
}
header .badge-kokomo:hover {
  transform: rotate(-4deg) scale(1.06);
  box-shadow: 0 0 0 3px rgba(178, 58, 46, 0.4), var(--shadow-2);
}
header .badge-hanjotei {
  background: rgba(253, 250, 243, 0.9);
  border-radius: 12px;
}

/* ------------------------------------------------------------------ */
/* コンテナと見出し                                                    */
/* ------------------------------------------------------------------ */
.container {
  min-height: 60vh;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}
.container h1, .container h2 {
  font-family: var(--f-mincho);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
}
.container h1 {
  padding: 2.2rem 1rem 0.6rem;
  font-size: 1.7rem;
}
.container {
  /* 落款（朱印）風アクセント＋弁柄の飾り罫 */
}
.container h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 0.7rem auto 0;
  background: var(--c-bengara);
  border-radius: 2px;
}
.container h2 {
  padding: 1.4rem 1rem 0.5rem;
  font-size: 1.32rem;
  text-align: left;
}
.container img {
  max-width: 100%;
  width: auto;
  height: auto;
}
.container {
  /* ------- 店舗ブロック（和紙カード） ------- */
}
.container .location {
  position: relative;
  z-index: 1; /* .content(.badge-ig) を上に重ねるため下位に */
  margin-top: 56px;
  background: var(--c-washi);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 8px 22px 24px;
  overflow: hidden;
  transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.container .location:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
.container .location h2 {
  position: relative;
  margin: 0 -22px 18px;
  padding: 0.75rem 1rem;
  color: #fff;
  text-align: center;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--c-bengara), var(--c-bengara-d));
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.container .location {
  /* 見出し左右の金の縁 */
}
.container .location h2::before, .container .location h2::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--c-kincha);
}
.container .location h2::before {
  left: 0;
}
.container .location h2::after {
  right: 0;
}
.container .location .panel img {
  width: 200px;
  height: auto;
  border-radius: 10px;
  transition: transform 0.5s var(--ease);
}
.container .location .panel img:hover {
  transform: scale(1.04);
}
.container .location dl dt {
  float: left;
  clear: left;
  width: 5em;
  color: var(--c-bengara);
  font-weight: 700;
}
.container .location dl dd {
  margin-left: 5.5em;
}
.container {
  /* ------- サイトマップ ------- */
}
.container .sitemap-0, .container .sitemap-1, .container .sitemap-2 {
  position: relative;
  list-style: none;
  line-height: 1.5;
  margin-top: 8px;
  padding: 12px 16px;
  font-family: var(--f-mincho);
  font-weight: 700;
  background: var(--c-washi);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-bengara);
  border-radius: 10px;
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.container .sitemap-0:hover, .container .sitemap-1:hover, .container .sitemap-2:hover {
  box-shadow: var(--shadow-2);
  transform: translateX(3px);
}
.container .sitemap-0 {
  margin-left: 0;
  padding: 15px 18px 17px;
  font-size: 1.42rem;
  letter-spacing: 0.06em;
  border-left-width: 4px;
}
.container .sitemap-0::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 12px;
  height: 12px;
  margin-right: 12px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--c-bengara), var(--c-bengara-d));
  transform: rotate(45deg);
}
.container .sitemap-0::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 9px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-kincha) 15%, var(--c-kincha) 85%, transparent);
}
.container .sitemap-1::before, .container .sitemap-2::before {
  content: "";
  position: absolute;
  left: -11px;
  top: -8px;
  bottom: 0;
  border-left: 1px solid var(--c-line);
}
.container .sitemap-1::after, .container .sitemap-2::after {
  content: "";
  position: absolute;
  left: -11px;
  top: 50%;
  width: 11px;
  border-top: 1px solid var(--c-line);
}
.container .sitemap-1 {
  margin-left: 22px;
  font-size: 1.1rem;
}
.container .sitemap-2 {
  margin-left: 44px;
  padding: 9px 14px;
  font-family: var(--f-gothic);
  font-weight: 500;
  font-size: 1rem;
  border-left-width: 2px;
  border-left-color: var(--c-kincha);
}
@media screen and (max-width: 576px) {
  .container .sitemap-0 {
    font-size: 1.24rem;
    padding: 12px 14px 15px;
  }
  .container .sitemap-1 {
    font-size: 1.02rem;
    margin-left: 18px;
  }
  .container .sitemap-2 {
    margin-left: 34px;
  }
  .container .sitemap-1::before, .container .sitemap-2::before,
  .container .sitemap-1::after, .container .sitemap-2::after {
    left: -9px;
  }
  .container .sitemap-1::after, .container .sitemap-2::after {
    width: 9px;
  }
}
.container a:link, .container a:visited {
  color: var(--c-bengara-d);
  text-decoration: none;
  background-image: linear-gradient(var(--c-bengara), var(--c-bengara));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.4s var(--ease), color 0.3s var(--ease);
}
.container a:hover {
  background-size: 100% 1px;
}
.container iframe {
  max-width: 100%;
}
.container {
  /* ------- コンテンツ本文 ------- */
}
.container .content {
  position: relative;
  z-index: 2; /* .badge-ig を .location より前面に */
  padding: 12px 0;
}
.container .content .badge-ig {
  background: var(--c-washi);
  border-radius: 12px;
  box-shadow: var(--shadow-1);
  position: absolute;
  z-index: 1000;
  top: -80px;
  /* PC（画面が広い）ほど右ガター側へ逃がし、.location 内部に重ならないように。
     狭い画面では従来の -80px を維持し横スクロールを防ぐ。
     1084px = コンテナ最大幅 1120 − 左右パディング 36 */
  right: min(-80px, (1084px - 100vw) / 2 + 15px);
  width: 200px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.container .content .badge-ig img {
  max-width: 100%;
  width: auto;
  height: auto;
}
.container .content .badge-ig:hover {
  transform: translateY(-4px) rotate(-2deg);
  box-shadow: var(--shadow-2);
}
@media screen and (max-width: 576px) {
  .container .content .badge-ig {
    position: relative;
    width: 100%;
    top: auto;
    right: auto;
    box-shadow: none;
    text-align: center;
    border-top: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
    border-radius: 0;
    padding: 10px 0;
    margin: 10px 0;
  }
  .container .content .badge-ig img {
    max-width: 100px;
    display: block;
    margin: 0 auto;
  }
  .container .content .badge-ig:hover {
    transform: none;
  }
}
.container .content img {
  border-radius: 12px;
  display: inline-block;
  margin: 4px 0;
  box-shadow: var(--shadow-1);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.container .content img:hover {
  transform: scale(1.015);
  box-shadow: var(--shadow-2);
}

/* ------------------------------------------------------------------ */
/* たぬきヒーロー（円窓演出）                                           */
/* ------------------------------------------------------------------ */
.container-tanuki .title {
  max-width: 90%;
  height: auto;
  animation: rise-in 1s var(--ease) 0.15s both;
}
.container-tanuki .disp-tanuki {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  animation: rise-in 1.1s var(--ease) 0.3s both;
}
.container-tanuki .disp-tanuki .caption {
  outline: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transform: translateY(8px);
}
.container-tanuki .disp-tanuki:hover .caption {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------------ */
/* トップの店舗パネル（円窓グリッド）                                   */
/* ------------------------------------------------------------------ */
.badges-top {
  margin: 40px 0 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* PC も 2×2 で大きく見せる */
  gap: 22px;
}
@media screen and (max-width: 576px) {
  .badges-top {
    gap: 12px;
  }
}
.badges-top > div {
  /* 実マークアップの Bootstrap 列（col-12 col-md-6）の制約を打ち消し、
     グリッドのセル幅いっぱいに広げる */
  max-width: none;
  width: auto;
  flex: initial;
  padding: 0;
  position: relative;
  text-align: center;
  aspect-ratio: 16/10;
  min-height: 240px;
}
@media screen and (max-width: 576px) {
  .badges-top > div {
    aspect-ratio: 4/3;
    min-height: 150px;
  }
}
.badges-top > div {
  /* 円窓（丸窓）フレーム＝署名要素 */
}
.badges-top > div > div {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
  background-size: cover !important;
  background-position: center center !important;
  transform: scale(1);
}
.badges-top > div {
  /* 内側の朱の円環（丸窓の意匠） */
}
.badges-top > div > div::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px solid rgba(253, 250, 243, 0.55);
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
  transition: inset 0.55s var(--ease), border-color 0.55s var(--ease);
}
.badges-top > div {
  /* 暗幕（可読性） */
}
.badges-top > div > div::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 23, 20, 0) 45%, rgba(28, 23, 20, 0.55) 100%);
  z-index: 1;
  transition: opacity 0.55s var(--ease);
}
.badges-top > div:hover > div {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}
.badges-top > div:hover > div::before {
  inset: 8px;
  border-color: var(--c-kincha);
}
.badges-top > div {
  /* カード全体をクリック領域にする（タップしやすい大きなボタン） */
}
.badges-top > div a {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 0 10px 18px;
  color: #fff !important;
  text-decoration: none;
  font-family: var(--f-mincho);
  font-weight: 700;
  font-size: 1.34rem;
  letter-spacing: 0.16em;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
}
@media screen and (max-width: 576px) {
  .badges-top > div a {
    font-size: 1.08rem;
  }
}
.badges-top > div a {
  transition: padding-bottom 0.45s var(--ease), letter-spacing 0.45s var(--ease);
  /* 「詳しく見る」風の金の下線（押せることを示す） */
}
.badges-top > div a::after {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--c-kincha);
  border-radius: 2px;
  transform: scaleX(0.6);
  opacity: 0.75;
  transition: transform 0.45s var(--ease), width 0.45s var(--ease), opacity 0.45s var(--ease);
}
.badges-top > div:hover a {
  padding-bottom: 24px;
  letter-spacing: 0.2em;
}
.badges-top > div:hover a::after {
  width: 46px;
  transform: scaleX(1);
  opacity: 1;
}
.badges-top > div a:focus-visible {
  outline: 3px solid var(--c-kincha);
  outline-offset: -3px;
  border-radius: var(--radius);
}
.badges-top {
  /* 背景画像は既存クラスのまま（内側 div へ拡大適用） */
}
.badges-top .badge-top-ngk > div {
  background-image: url(../images/ngk_01.jpg);
}
.badges-top .badge-top-shinsekai > div {
  background-image: url(../images/shinsekai_01.jpg);
}
.badges-top .badge-top-cafe > div {
  background-image: url(../images/cafe_01.jpg);
}
.badges-top .badge-top-hanjo > div {
  background-image: url(../images/hanjo_01.jpg);
}

/* ------------------------------------------------------------------ */
/* パノラマ                                                            */
/* ------------------------------------------------------------------ */
.panorama-view {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 50vh;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}

/* ------------------------------------------------------------------ */
/* フッター（暖簾）                                                     */
/* ------------------------------------------------------------------ */
footer {
  position: relative;
  min-height: 10vh;
  margin-top: 60px;
  padding: 8px 0 18px;
  text-align: center;
  font-size: 0.8rem;
  color: #fff;
  background: linear-gradient(180deg, var(--c-bengara), var(--c-bengara-d));
  /* 暖簾の縫い目（金の一本罫） */
}
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--c-kincha) 15%, var(--c-kincha) 85%, transparent);
}
footer .nav-bottom {
  padding: 16px 10px 8px;
  font-size: 1rem;
}
footer a {
  display: inline-block;
  margin: 4px 12px;
  position: relative;
}
footer a:link, footer a:visited {
  color: #fff;
  text-decoration: none;
  opacity: 0.92;
  transition: opacity 0.3s var(--ease);
}
footer a:hover {
  opacity: 1;
}
footer a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--c-kincha);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease);
}
footer a:hover::after {
  transform: scaleX(1);
}
footer span.active {
  color: #fff;
  font-weight: 800;
  border-bottom: 1px solid var(--c-kincha);
}
footer copyright {
  color: rgba(255, 255, 255, 0.85);
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

/* ------------------------------------------------------------------ */
/* モーション配慮                                                      */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
