html {scroll-behavior: smooth;}

/* =========================
   リセット
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =========================
   背景全体
========================= */
.lp-bg {
  display: flex;
  width: 100%;
  min-height: 100vh;
  background-color: #f15a24;
  font-family: "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

/* 左右背景 */
.bg-left,
.bg-right {
  flex: 2.5;
  background-color: #f15a24;
}

/* 中央 */
.bg-center {
  flex: 5;
  background-color: #fff2ee;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 格子背景 */
.grid {
  width: 100%;
  height: 100%;
  background-color: #fff2ee;
  background-image:
    linear-gradient(to right, #f15a24 3.5px, transparent 3.5px),
    linear-gradient(to bottom, #f15a24 3.5px, transparent 3.5px);
  background-size: 60px 60px;
}

/* 中央コンテンツ幅 */
.lp-inner {
  width: 100%;
  max-width: 960px;   /* 720〜1040くらいで好み調整OK */
  margin: 0 auto;
}

/* SP */
@media screen and (max-width: 767px) {
  .bg-left,
  .bg-right {
    display: none;
  }
  .bg-center {
    flex: 1;
  }
}

/* =========================
   学校タブ
========================= */
.school-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap; /* SPで折り返し許可 */
}

/* 共通：幅を固定して中央揃え */
.school-tabs .tab {
  background: #fff;
  border: 2px solid #f4c542;
  color: #000;

  width: 140px;              /* ← まず全タブ共通の基準幅 */
  padding: 10px 8px;

  font-size: 13px;
  font-weight: bold;
  cursor: pointer;

  text-align: center;       /* 文字を中央 */
  line-height: 1.4;        /* 2行になってもOK */
  white-space: normal;     /* 折り返し許可 */
}

/* アクティブ時 */
.school-tabs .tab.is-active {
  background: #f15a24;
  border-color: #f15a24;
  color: #fff;
}

/* ===== SP調整 ===== */
@media (max-width: 767px) {
  .school-tabs {
    padding: 0 12px;        /* 画面端から少し余白 */
    gap: 10px;
  }

  .school-tabs .tab {
    width: 45%;            /* 画面いっぱいにせず、少し余裕 */
    max-width: 160px;
    font-size: 12px;
  }
}

/* ===== PC調整 ===== */
@media (min-width: 768px) {
  .school-tabs .tab {
    width: 180px;          /* PCは一番長い文字基準で固定幅 */
    font-size: 14px;
  }
}


/* =========================
   商品グリッド
========================= */
.item-grid {
  display: grid;
  gap: 24px;
}

@media (max-width: 767px) {
  .item-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 12px;
  }
}

@media (min-width: 768px) {
  .item-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================
   商品カード
========================= */
.item-card {
  display: block;
  text-decoration: none;
  color: #000;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  max-width: 200px;
  margin: 0 auto;
}

.item-image img {
  width: 100%;
  display: block;
}

.item-info {
  background: #f15a24;
  text-align: center;
  padding: 10px 8px;
}

.item-name,
.item-price {
  font-size: 12px;
  font-weight: bold;
}

/* =========================
   ストーリー
========================= */
.section-story {   padding: 60px 0; }

.story-mat {
  background: #ffb39c;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px;
}

.story-logo {
  text-align: center;
  margin-bottom: 32px;
}

.story-logo img {
  max-width: 240px;
  width: 100%;
}

.story-text {
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 40px;
}

.story-image {
  text-align: center;
}

.story-image img {
  max-width: 360px;
  width: 100%;
}

/* =========================
   フッター
========================= */
.lp-footer {  background: #f15a24;   padding: 24px 16px;   text-align: center; }

.footer-credit {  font-size: 11px;  line-height: 1.6; }

/* PC格子サイズ */
@media screen and (min-width: 768px) {
  .grid {
    background-size: 80px 80px;
  }
}

/* =========================
   バナー挿入ブロック
========================= */
.banner-block {
  text-align: center;
  margin: 40px auto;
}

.banner-block img {
  width: 100%;
  max-width: 720px; /* PC時の上限 */
  height: auto;
  display: block;
  margin: 0 auto;
}

/* =========================
   メニューブロック
========================= */
.menu-block {
  background-color: #f15a24;
  padding: 16px 12px;
  flex-basis: 100%;
}

.menu-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-list a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.6;
}

.menu-break {
  flex-basis: 100%;
}

/* PCのみホバー下線 */
@media (min-width: 768px) {
  .menu-list a:hover {
    text-decoration: underline;
  }
}

/* =========================
   画像ブロック
========================= */
.image-block {
  text-align: center;
  margin: 48px auto;
}

.image-block img {
  width: 100%;
  max-width: 600px;   /* ← バナーより少し小さめ想定 */
  height: auto;
  display: block;
  margin: 0 auto;
}

/* SP */
@media (max-width: 767px) {
  .image-block {
    margin: 32px auto;
  }

  .image-block img {
    max-width: 320px;
  }
}

/* PC */
@media (min-width: 768px) {
  .image-block img {
    max-width: 600px;
  }
}

/* =========================
   タイトルブロック
========================= */
.title-block {
  text-align: center;
  margin: 48px auto;
}

/* タイトル本体 */
.title-box {
  display: inline-block;
  padding: 14px 40px;
  background-color: #f4c542;
  color: #000;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0.08em;
  margin: 0;
  box-shadow: 6px 6px 0 #727272;
}

/* =========================
   テキスト → 画像 → テキスト
========================= */
.text-image-text {
  text-align: center;
  margin: 64px auto;
  font-weight: 700;
}

/* 上下テキスト */
.tit-text {
  font-size: 14px;
  line-height: 2;
  margin: 0 auto 24px;
  max-width: 640px;
}

/* 画像 */
.tit-image {
  margin: 32px auto;
}

.tit-image img {
  width: 100%;
  max-width: 420px;   /* PC時の上限 */
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .text-image-text {
    margin: 48px auto;
  }

  .tit-text {
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 20px;
  }

  .tit-image img {
    max-width: 320px;
  }
}

/* =========================
   取り扱い店舗ボタン
========================= */
.shop-btn-block {
  text-align: center;
  margin: 72px auto;
}

/* ボタン本体 */
.shop-btn {
  display: inline-block;
  padding: 22px 64px;          /* ← 大きめ */
  background-color: #f15a24;
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-decoration: none;

  /* 影 */
  box-shadow: 8px 8px 0 #727272;
}

@media (max-width: 767px) {
  .shop-btn {
    font-size: 18px;
    padding: 18px 48px;
    box-shadow: 6px 6px 0 #727272;
  }
}

@media (min-width: 768px) {
  .shop-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0 #727272;
  }
}


/* =========================
   マット付きタイトル
========================= */

.section-title-mat {
text-align: center;  
margin-bottom: 8px;
}

.mat-title {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background-color: #f15a24;
  color: #fff;

  padding: 14px 20px;
  text-align: center;

  font-family: "BIZ UDPGothic", "BIZ UDPゴシック", sans-serif;
  font-weight: 700; /* ボールド */
}

/* 1行目 */
.mat-title-main {
  font-size: 18px; /* SP基準 */
  line-height: 1.2;
}

/* 2行目（2回り小さく） */
.mat-title-sub {
  font-size: 13px;
  line-height: 1.2;
  margin-top: 4px;
}

/* ===== PC ===== */
@media screen and (min-width: 768px) {
  .mat-title {
    padding: 18px 28px;
  }

  .mat-title-main {
    font-size: 26px;
  }

  .mat-title-sub {
    font-size: 18px;
    margin-top: 6px;
  }
}


/* =========================
   アイテムボタン（共通）
========================= */

.item-btn-block {
  text-align: center;
margin-top: 6px;
margin-bottom: 18px; 
}

/* ボタン本体 */
.item-btn {
  display: inline-block;
  background-color: #f15a24;
  color: #ffffff;
  text-decoration: none;
  text-align: center;

  font-weight: bold;

  box-shadow: 4px 4px 0 #727272;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* =========================
   サイズ：小（今回用）
========================= */

.item-btn-block-sm .item-btn {
  padding: 12px 24px;   /* 2回りほど小さめ */
  font-size: 16px;
}

/* =========================
   PCのみ：押した感
========================= */

@media screen and (min-width: 768px) {
  .item-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #727272;
  }
}


/* =========================
   画像＋タイトル＋ボタンを
   きゅっとまとめるユニット
========================= */

.compact-unit .section-title-mat {
  margin-bottom: 0;
}

.compact-unit .image-block {
  margin-top: 8px;
  margin-bottom: 8px;
}

.compact-unit .item-btn-block {
  margin-top: 6px;
}

/* =========================
   ページ上部へ戻るボタン
========================= */

.page-top-btn {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000;

  width: 44px;
  height: 44px;
  border-radius: 50%;

  background-color: #f15a24;
  color: #fff;
  font-size: 20px;
  font-weight: bold;

  border: none;
  cursor: pointer;

  display: none; /* 最初は非表示 */

  box-shadow: 3px 3px 0 #727272;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* PCのみ hover */
@media screen and (min-width: 768px) {
  .page-top-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 #727272;
  }
}

@media screen and (max-width: 767px) {
  .text-image-text,
  .story-text {
    padding-left: 16px;
    padding-right: 16px;
  }
}
