@charset "UTF-8";

/* --- フォント（元CSSのまま） --- */
@font-face {
  font-family: "HGRSKP";
  src: url("../font/HGRSKP.TTF") format("truetype");
}

/* =========================================================
   ページ全体（※ヘッダーと干渉しにくく最小限）
   ========================================================= */

/* 背景演出：SPは bg.gif を使っていたので、PC/SPで切替 */
body{
  margin:0;
  padding:0;
  text-align:center;
  text-decoration:none;
}

/* 画像などの余計な線を消す（ただし全体指定は最小限） */
img{
  border:0;
}

/* =========================================================
   #wrappar 内だけを設計（ヘッダーと喧嘩しない）
   ========================================================= */

#wrappar{
  width:100%;
  height:100%;
}

/* -----------------------------
   上部の白帯（ページタイトル）
   ※共通ヘッダーが上に来るので、上の余白は後で調整できる
------------------------------ */
#wrappar .text-box{
  width:100%;
  z-index:10;
  background-color:#fff;
  /* 固定していたが、共通ヘッダーと競合しやすいので “sticky” にする */
  position: sticky;
  top: 0;
  padding: 12px 0;
}

/* h1 をページ内だけ装飾 */
#wrappar h1{
  font: 3.5em "HGRSKP";
  margin: 0;
  width:100%;
  color: rgba(34,28,28,0.8);
  /* float は今のHTMLだと不要なので外す */
}

/* -----------------------------
   背景セクション（固定背景＋中央にh2）
   元CSSは .top を fixed にしていた
   → これを残すと共通ヘッダーと干渉しやすいので、
     “疑似固定”として background-attachment を使う方式に寄せる
------------------------------ */
#wrappar .top{
  min-height: 100vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-image: url(../img/backgraund.png);
  display: flex;
  align-items: center;
  justify-content: center;
  /* ここが“固定背景っぽさ” */
  background-attachment: fixed;
  /* 上に白帯があるので少し余白 */
  padding-top: 56px;
  box-sizing: border-box;
}

#wrappar .top h2{
  font: 3.5em "HGRSKP";
  color: #fff;
  margin: 0;
  /* 見やすくするため軽く影（ヘッダーと干渉しない） */
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

/* -----------------------------
   商品紹介（半透明パネル）
------------------------------ */
#wrappar .senden{
  position: relative;
  width:100%;
  display: inline-block;
  background-color: rgba(255,255,255,0.80);
  padding: 5% 0;
  max-width: 1900px;
}

/* 画像と文章を横並びに（元CSSのsend-l/send-rを踏襲） */
#wrappar .send-l{
  padding: 0 5%;
  width: 100%;
  max-width: 280px;
  display: inline-block;
  vertical-align: middle;
  box-sizing: border-box;
}

#wrappar .send-l img{
  width:100%;
  height:auto;
  display:block;
}

#wrappar .send-r{
  width: 100%;
  max-width: 500px;
  display: inline-block;
  vertical-align: middle;
  box-sizing: border-box;
  padding: 0 2%;
}

#wrappar .t-img{
  font: 1.7em "HGRSKP";
  text-align: left;
  line-height: 2em;
  color: rgba(34,28,28,0.8);
  margin: 0;
}

/* -----------------------------
   レシピ集（タイトル）
------------------------------ */
#wrappar .cont-top-p{
  font: 3em "HGRSKP";
  background-color: darkblue;
  color: #fff;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  letter-spacing: 20px;
  text-align: center;
  border-radius: 30px;
  padding: 10px 0;
}

/* -----------------------------
   レシピ一覧（元CSSの ul/li をページ内に閉じ込める）
------------------------------ */
#wrappar .content{
  width:100%;
  max-width:1900px;
  background-color: rgba(255,255,255,0.80);
  padding: 8% 0 6%;
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
}

/* “ページ内”だけ ul/li を潰す（ヘッダーのulを殺さない） */
#wrappar .content ul{
  width:100%;
  max-width:1300px;
  display:inline-block;
  margin: 5% auto 0;
  padding: 0;
}

#wrappar .content li{
  list-style:none;
  width:33%;
  max-width:250px;
  float:left;
  margin:7%;
  padding:0;
  box-sizing: border-box;
}

#wrappar .content li img{
  border-radius: 50%;
  width:100%;
  height:auto;
  display:block;
}

/* キャプション */
#wrappar .rt-img{
  font:150% "HGRSKP";
  text-align:left;
  display: inline-block;
  color: rgba(34,28,28,1);
  border: none;
  margin-top: 10px;
}

/* リンクの下線を消す（ページ内だけ） */
#wrappar .content a{
  text-decoration:none;
  color: inherit;
}

/* PDF iframe（もし今後使うなら） */
#wrappar iframe[src$=".pdf"]{
  width:100%;
  height:1000px;
}

/* =========================================================
   スマホ用（元 sp.css を統合）
   ========================================================= */
@media screen and (max-width:520px){

  body{
    background: url("../img/bg.gif") repeat-y top #ffffff;
  }

  #wrappar{
    max-width:510px;
    width:100%;
    margin:0 auto;
  }

  #wrappar .text-box{
    /* 共通ヘッダーの高さにより要調整だが、まずは安定重視 */
    padding: 10px 0;
  }

  #wrappar h1{
    font: 2.5em "HGRSKP";
  }

  #wrappar .top{
    min-height: 38vh;
    padding-top: 24px;
    background-attachment: scroll; /* iOS対策（fixedが効きにくい） */
  }

  #wrappar .top h2{
    font: 2.0em "HGRSKP";
    padding: 20px 10px;
    text-align:center;
  }

  #wrappar .senden{
    padding: 10% 0;
  }

  #wrappar .send-l{
    max-width: 100%;
    padding: 0 10%;
    margin-bottom: 6%;
  }

  #wrappar .send-r{
    max-width: 100%;
    padding: 0 6%;
  }

  #wrappar .t-img{
    font: 1.0em "HGRSKP";
    margin: 0 0 2%;
  }

  #wrappar .cont-top-p{
    font: 2.0em "HGRSKP";
    letter-spacing: 10px;
    max-width: 260px;
  }

  #wrappar .content{
    padding-top: 10%;
  }

  #wrappar .content li{
    float:none;
    width:100%;
    max-width: 320px;
    margin: 10% auto;
  }

  #wrappar .content li img{
    width: 60%;
    margin: 0 auto;
  }

  #wrappar .rt-img{
    font: 1.0em "HGRSKP";
    text-align: center;
    display:block;
  }
}

/* =========================================================
   パンくず：このページだけ（breadcrumbs.phpを触らずに調整）
   ========================================================= */

/* ヘッダーが fixed/sticky の場合に “かぶり” を避けるための基準値 */
:root{
  --header-offset: 240px; /* まずはこれ。大きければ縮める */
}

/* パンくずの上下を詰める + かぶり回避 */
#wrappar .page-breadcrumb{
  margin: 6px auto 6px;
  padding: calc(var(--header-offset) * 0.15) 16px 0; /* 上だけ少し持ち上げる */
  max-width: 1100px;
  box-sizing: border-box;
}

/* breadcrumbs.php が nav / ol / ul / li を使ってても雑に潰す（#wrappar内限定） */
#wrappar .page-breadcrumb nav,
#wrappar .page-breadcrumb ol,
#wrappar .page-breadcrumb ul{
  margin: 0 !important;
  padding: 0 !important;
}

#wrappar .page-breadcrumb li{
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2;
}

/* =========================================================
   #アンカーがヘッダーに隠れる問題の根治（ピリ辛にも効かせたいなら共通CSSへ）
   ========================================================= */
#wrappar [id]{
  scroll-margin-top: var(--header-offset);
}

/* =========================================================
   パンくず：左寄せ + 余白詰め（このページだけ）
   ========================================================= */

#wrappar .page-breadcrumb{
  max-width: 1100px;
  margin: 6px auto 6px;
  padding: 4px 16px 0;
  box-sizing: border-box;

  /* ★左寄せ強制 */
  text-align: left;
}

/* breadcrumbs.php が flex で中央寄せしてても左に戻す */
#wrappar .page-breadcrumb nav,
#wrappar .page-breadcrumb ul,
#wrappar .page-breadcrumb ol{
  margin: 0 !important;
  padding: 0 !important;

  text-align: left !important;
  justify-content: flex-start !important;
}

/* li の余白も詰める（大きい上下の原因対策） */
#wrappar .page-breadcrumb li{
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2;
}

/* ==================================
   固定ヘッダー対策：アンカーが隠れないように
   （商品情報ページ側で効かせるのが正解）
   ================================== */

