@charset "utf-8";
/* ========================
   Tree Village Cafe 2026
   中華風デザイン
======================== */

/* ---- CSS変数 ---- */
:root {
  --red-dark:   #D63212;
  --red-mid:    #D63212;
  --gold:       #C89C1A;
  --gold-light: #E8C84A;
  --cream:      #FFF9E3;
  --text:       #231815;
}

/* ---- リセット・共通 ---- */
html {
  scroll-padding-top: 68px;
}
body {
  font-family: 'Noto Sans JP', '游ゴシック体', 'Yu Gothic', sans-serif;
  font-size: clamp(14px, 1.6vw, 16px);
  color: var(--text);
  line-height: 1.8;
}

/* ---- ナビゲーション上書き ---- */
.global_nav {
  border-bottom: 3px solid var(--red-dark);
  background-color: var(--cream) !important;
  padding: 0 !important; /* standard.cssのpadding-bottomを打ち消して上下中央に */
}
/* nav全体を1行flexに強制 */
.global_nav nav {
  max-width: 1200px;
  margin: 0 auto;
}
.nav1 {
  max-width: 1200px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: space-around !important;
  align-items: center !important;
  padding: 0.8rem 1rem !important; /* 上下の余白を均等に */
}
.nav1 > li {
  float: none !important;
  padding-right: 0 !important;
  font-size: clamp(0.78rem, 1.1vw, 1rem) !important;
  font-weight: 700;
  white-space: nowrap;
  display: flex !important;
  align-items: center !important;
  height: 100%;
}
/* SNSアイコングループ（nav2）を横1列に */
.nav2 {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 1.2rem;
  padding: 0 !important;
  margin: 0 !important;
}
.nav2 li {
  float: none !important;
  padding-right: 0 !important;
  list-style: none;
  display: flex !important;
  align-items: center !important;
}
.nav1 a,
.nav1 a:visited {
  color: var(--red-dark) !important;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  display: flex !important;
  align-items: center !important;
}
.nav1 a:hover {
  color: var(--gold) !important;
  opacity: 1 !important;
}
.icons {
  width: 26px !important;
  height: auto;
  display: block !important;
}

/* SPメニュー内SNSアイコン行：中央揃え */
.spli2_1 {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}
.spli2_1 span {
  float: none !important;
  display: inline-flex !important;
  padding-right: 0 !important;
}
.spli2_1 > span,
.spli2_1 > br ~ span {
  display: inline-flex !important;
}
/* アイコンをまとめて横並び中央揃え */
.spli2_1 .icon-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* ---- h1（KVキービジュアル） ---- */
h1 {
  padding-top: 4.25rem; /* fixed nav 分だけ下げる */
  background-color: var(--cream);
  margin: 0;
}
h1 img {
  padding-top: 0 !important;
  width: 100%;
  display: block;
}

/* ---- セクション共通 ---- */
main {
  background-color: var(--cream);
}
section {
  scroll-margin-top: 68px;
}
.section-wrap {
  padding: 4% 2%;
}

/* ---- border-imageフレーム ---- */
.cnt {
  max-width: 1200px;
  margin: 0 auto;
  border-image-slice: 307 307 307 307 fill;
  border-image-width: clamp(60px, 10vw, 110px);
  border-image-outset: 0;
  border-image-repeat: stretch;
  border-image-source: url("../img/frame.png");
  padding: clamp(80px, 10vw, 130px) clamp(70px, 11vw, 160px);
}

/* ============================================
   【案A】セクション背景：交互配置
   奇数(cafe/X/attention)：クリーム
   偶数(online/items)：ミントグリーン＋ドット
============================================ */
#online,
#items {
  background-color: #B2DAD5;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.55) 1.5px,
    transparent 1.5px
  );
  background-size: 18px 18px;
}

/* ============================================
   【案B】h2 見出し：赤バッジ帯スタイル
============================================ */
h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--red-dark);
  margin-bottom: 1.8rem;
  letter-spacing: 0.08em;
}
h2::before,
h2::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold));
  max-width: 80px;
}
h2::after {
  background: linear-gradient(to left, transparent, var(--gold));
}
/* spanに赤バッジを適用 */
h2 span {
  display: inline-block;
  background: var(--red-dark);
  color: #FFF9E3;
  padding: 0.25rem 1.8rem;
  border-radius: 3px;
  letter-spacing: 0.1em;
  box-shadow: 0 2px 6px rgba(139, 26, 26, 0.35);
}

/* ---- h3 情報項目見出し ---- */
h3 {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 700;
  color: var(--red-dark);
  margin-bottom: 0.3rem;
}
h3::before {
  content: "◆ ";
  color: var(--gold);
  font-size: 0.75em;
}

/* ---- 情報リスト ---- */
.info-list {
  list-style: none;
  padding: 0 0 1.5em;
  margin: 0 0 1.5em;
  border-bottom: 1px solid rgba(200, 156, 26, 0.35);
}
.info-item {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.25rem 0;
}
.info-item:last-child {
  border-bottom: none;
}
.info-item h3 {
  flex-shrink: 0;
  min-width: 8em;
  margin-bottom: 0;
}
.info-item p {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  line-height: 1.85;
  margin: 0;
}
.info-item small {
  font-size: 0.82em;
  color: #666;
}
.info-item a {
  color: var(--red-mid);
  text-underline-offset: 2px;
}

@media screen and (max-width: 600px) {
  .info-item {
    flex-direction: column;
    gap: 0.3rem;
  }
  .info-item h3 {
    min-width: unset;
  }
}

/* 紹介文（タイトルなし・中央寄せ） */
.info-item--intro {
  display: block;
  text-align: center;
}
.intro-text {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem) !important;
  line-height: 2 !important;
  text-align: center;
  margin: 0 auto;
}

/* ---- オンラインショップ下部バナー ---- */
.online-bot {
  margin-top: 1.6rem;
  text-align: center;
}
.online-bot p {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  margin-bottom: 0.8rem;
}
.online-bot img {
  max-width: 76%;
  margin: 0.6rem auto 0.8rem;
}
.online-bot small {
  font-size: 0.82em;
  color: #666;
  display: block;
  line-height: 1.6;
}

/* ---- X（旧Twitter）セクション ---- */
.x-cnt {
  max-width: 600px;
  margin: 5rem auto 0; /* OnlineShop内で独立させるための余白 */
  scroll-margin-top: 68px; /* ナビゲーションスクロール用 */
}
/* ---- 購入特典セクション ---- */
#tokuten .item-block p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.8;
}
/* 特典注意書き */
.tokuten-notes {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  text-align: left;
}
.tokuten-notes li {
  font-size: clamp(0.78rem, 1.3vw, 0.875rem);
  line-height: 1.75;
  color: #555;
}
.x-content {
  text-align: center;
}
.x-content p {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  line-height: 2;
}
.x-content a {
  color: var(--red-mid);
  font-weight: 700;
}

/* ---- Cafeメニュー画像（#cafeセクション内 大きく1枚） ---- */
.cafe-menu-img {
  margin-top: 2rem;
}
.cafe-menu-img img {
  width: 100%;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

/* ---- Itemセクション（商品画像 大きく1枚） ---- */
.item-block {
  width: 100%;
  text-align: center;
}
.item-block img {
  width: 100%;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}
h3.item-category {
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  margin-bottom: 0.8rem;
}

/* ---- プレースホルダー ---- */
.img-placeholder {
  background: #f5edd8;
  border: 2px dashed var(--gold);
  border-radius: 6px;
  padding: 3rem 1.5rem;
  color: #999;
  font-size: 0.875rem;
  line-height: 1.8;
  text-align: center;
}
.img-placeholder.large {
  padding: 5rem 2rem;
  font-size: 1rem;
}
.img-placeholder p {
  margin: 0;
  background: transparent;
}

/* ---- 注意事項 ---- */
.attention-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.attention-list li {
  font-size: clamp(0.85rem, 1.4vw, 0.96rem);
  line-height: 1.9;
  padding: 0.45rem 0 0.45rem 1.3em;
  text-indent: -1.3em;
  border-bottom: 1px solid rgba(200, 156, 26, 0.25);
}
.attention-list li:last-child {
  border-bottom: none;
}
.attention-list li::before {
  content: "・";
  color: var(--red-dark);
  font-weight: 700;
}

/* ---- TOPへ戻るボタン ---- */
#top {
  position: fixed;
  bottom: 5%;
  right: 3%;
  z-index: 100;
  background: var(--red-dark);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: background 0.2s, opacity 0.3s;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#top a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: #FFF9E3;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  background: transparent;
}
#top a span {
  font-size: 0.55rem;
  letter-spacing: 0.05em;
  background: transparent;
}
#top:hover {
  background: var(--gold);
}

/* ---- フッター ---- */
footer {
  padding: 1.2rem 0;
  text-align: center;
  background-color: var(--red-dark);
}
.copyright {
  color: #FFF9E3;
  font-size: clamp(0.75rem, 1.2vw, 0.875rem);
  letter-spacing: 0.05em;
  background: transparent;
}

/* ============================================
   レスポンシブ
============================================ */
@media screen and (max-width: 900px) {
  .cnt {
    border-image-width: clamp(50px, 8vw, 80px);
    padding: clamp(60px, 9vw, 90px) clamp(50px, 8vw, 90px);
  }
}

@media screen and (max-width: 750px) {
  .section-wrap {
    padding: 6% 3%;
  }
  .cnt {
    border-image-width: 50px;
    padding: 55px 40px;
  }
  .online-bot img {
    max-width: 90%;
  }
  .items-grid {
    flex-direction: column;
    align-items: center;
  }
  .item-block {
    width: 100%;
    max-width: 100%;
  }
  /* PC用ナビを非表示（standard.cssのdisplay:noneを!importantで上書き対策） */
  .nav1 > li,
  .nav2 {
    display: none !important;
  }
  /* SP時：グローバルナビのborder-bottomを非表示 */
  .global_nav {
    border-bottom: none !important;
  }
}

@media screen and (max-width: 550px) {
  h1 {
    padding-top: 3.5rem;
  }
  html {
    scroll-padding-top: 56px;
  }
  .cnt {
    border-image-width: 38px;
    padding: 42px 28px;
  }
  .section-wrap {
    padding: 7% 1%;
  }

  /* イントロ文：SP時は左揃えにして自然な折り返しに */
  .intro-text {
    text-align: left !important;
  }
  /* イントロ文内の手動brをSP時は非表示 */
  .intro-text br {
    display: none;
  }

  /* info-list：行間・間隔を広く */
  .info-item {
    padding: 0.8rem 0;
    gap: 0.4rem;
  }
  .info-item p {
    font-size: 0.9rem;
    line-height: 1.9;
  }
  .info-item h3 {
    font-size: 0.9rem;
  }

  /* 注意事項：文字を少し大きく、行間を広く */
  .attention-list li {
    font-size: 0.875rem;
    line-height: 2;
    padding: 0.6rem 0 0.6rem 1.3em;
  }

  /* 特典注意書き：行間改善 */
  .tokuten-notes li {
    font-size: 0.82rem;
    line-height: 1.9;
  }

  /* オンラインショップ説明文 */
  .online-bot p {
    font-size: 0.875rem;
    line-height: 1.9;
  }
}

@media screen and (max-width: 420px) {
  .cnt {
    border-image-width: 30px;
    padding: 36px 22px;
  }
}
