@charset "utf-8";

/* 表示切替用クラス */
.SP{
  display:inherit;
}
.PC{
  display:none;
}

.tab-off {
    display: none;
}

body {
    font-size: 14px;
}

html, body {
    overflow-x: hidden;
}


/* 基本の文字サイズなど少し調整 */
body{
  font-size:14px;
  letter-spacing:0.08em;
}

/* ヘッダーまわり ------------------- */
/* SPではヘッダーの青帯を消す（ボタンだけ表示） */
header{
  background:transparent;
  height:0;
}

/* 帯ぶんの余白も不要なので0にする */
body{
  padding-top:0;
}

/* ▼▼▼ ハンバーガー追加 ▼▼▼ */
.nav-toggle{
  position:fixed;          /* 画面右上に固定 */
  right:10px;
  top:10px;
  padding:20px;            /* 線の周りに上下左右10pxの余白 → 青い四角になる */
  background:#21345c;
  border:none;
  cursor:pointer;
  z-index:1100;
  width:auto;
  height:auto;
}

/* 三本線（1セットだけ） */
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after{
  content:"";
  position:absolute;
  left:50%;
  width:24px;              /* 線の長さ */
  height:2px;
  background:#fff;
  transition:.3s;
}

/* 中央の線 */
.nav-toggle span{
  top:50%;
  transform:translate(-50%,-50%);
}

/* 上の線 */
.nav-toggle span::before{
  top:-8px;
  transform:translateX(-50%);
}

/* 下の線 */
.nav-toggle span::after{
  top:8px;
  transform:translateX(-50%);
}

/* 開いたときのバツ印 */
.nav-toggle.is-open span{
  background:transparent;
}
.nav-toggle.is-open span::before{
  top:0;
  transform:translateX(-50%) rotate(45deg);
}
.nav-toggle.is-open span::after{
  top:0;
  transform:translateX(-50%) rotate(-45deg);
}

/* ▼ メニュー本体（SPでアニメ表示） */
#header-menu{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100vh;              /* 画面全体を覆う */
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-items:center;
  background:#21345c;
  padding:140px 0 40px;       /* 上に余白をとって「ホーム」が見えるように */
  box-sizing:border-box;
  z-index:1000;

  /* アニメーション用初期状態（非表示＋上に少し隠す） */
  opacity:0;
  pointer-events:none;
  transform:translateY(-20px);
  transition:opacity .4s ease, transform .35s ease;
}

/* 開いたとき：フェード＋下にスライドしてくる */
#header-menu.is-open{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}

/* ナビのスクロールは特に不要なので visible でOK */
#header-nav{
  overflow-x:visible;
}

/* メニューの個別調整 */
#header-menu li{
  list-style:none;
}
#header-menu a{
  font-size:15px;
  padding:16px 0;
  display:block;
  color:#fff;
  text-decoration:none;
}

#header-menu .ec span {
    padding: 0.3em 0.8em;
    border-radius: 0;
}

/* メインビジュアル ------------------ */
/* ▼ object-fit: cover でトリミング */
#mainvisual{
  width:100%;
  height:40vh;
  max-height:420px;
  overflow:hidden;
}

#mainvisual.info-visual{
  height:20vh;
}


#mainvisual img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

#concept{
  width:100%;
  gap:4px;
}

/* あいさつブロック ------------------ */
#greeting{
  padding:40px 0;
}

#greeting .greet-wrap{
  width:100%;
  margin:0 auto 32px;
  padding:0 16px;
  box-sizing:border-box;
  flex-direction:column;
  gap:20px;
}

/* 2つ目以降の左右反転は解除して縦積みに */
#greeting > .greet-wrap:not(:first-of-type){
  flex-direction:column;
}

#greeting .greet-photo img{
  width:100%;
  max-width:500px;
  margin:0 auto;
}

/* 新着情報 -------------------------- */
#news{
  padding:40px 0;
}

#news .news-wrap{
  width:100%;
  padding:0 16px;
  box-sizing:border-box;
}

/* 1行3カラム → 縦積み風に */
#news .news-item{
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
}

#news .news-date{
  flex:none;
  text-align:left;
}

#news .news-cat{
  flex:none;
}

#news .news-text{
  width:100%;
}

/* MOREボタン幅調整 */
#news .news-more{
  width:100%;
  max-width:300px;
}

/* 店舗情報 -------------------------- */
#shop_info{
  padding:40px 0;
}

#shop_info .shop-wrap{
  width:100%;
  padding:0 16px;
  box-sizing:border-box;
  flex-direction:column;
  gap:24px;
}

#shop_info .shop-photo{
  flex:0 0 auto;
}

#shop_info .shop-photo img{
  width:100%;
  height:auto;
}

#shop_info .shop-table .row{
  align-items:flex-start;
  gap:8px;
}

#shop_info .shop-table dt{
  flex:0 0 80px;
}

/* Google Map */
.map{
  width:100%;
  padding:0 16px;
  box-sizing:border-box;
}

.map iframe{
  width:100%;
  height:260px;
}

/* ECボタン */
#shop_info .ec-more{
  width:100%;
  max-width:350px;
}

/* ECバナー -------------------------- */
.ec_bnrbox{
  text-align:center;
  padding:0 16px;
  box-sizing:border-box;
}

.ec_bnrbox a{
  width:100%;
  height:auto;
}

.ec_bnrbox img{
  width:100%;
  height:auto;
}

/* トップへ戻るボタン ----------------- */
#page-top{
  right:12px;
  bottom:12px;
}

#page-top a{
  width:52px;
  height:52px;
  font-size:0.55rem;
}

/* footer ----------------------------- */
footer h1{
  font-size:13px;
  padding:0 16px;
  box-sizing:border-box;
  line-height: 1.6;
}

footer img {
    width: 120px;
}

.outline, .breeding_process{
  width:95%;
}

@media screen and (max-width: 767px){

.SP{
  display:inherit;
}

/* コンセプト（縦書き → スマホでは横書き） --- */
#concept{
  padding:0 16px;
  box-sizing:border-box;
  flex-direction:column;
  align-items:flex-start;
}

/* SPでは横書きに戻す */
#concept > *{
  -webkit-writing-mode:horizontal-tb;
  writing-mode:horizontal-tb;
  line-height:1.9;
  letter-spacing:0.12em;
}

#concept h2{
  font-size:18px;
  margin-bottom:8px;
}

/* メニューバナー全体 */
.menu_box {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

/* ▼ 親リンクを確実に全幅にする（最重要） */
.menu_box a{
  flex:0 0 100%;
  width:100%;
  display:block;      /* ← 必須 */
  margin:0;
  padding:0;
  box-sizing:border-box;
}

/* 画像も全幅に */
.menu_box a img{
  width:100%;
  height:auto;
  display:block;
}

/* 並び順：②③① */
.menu_box a:nth-child(2){
  order:1;
}
.menu_box a:nth-child(3){
  order:2;
}
.menu_box a:nth-child(1){
  order:3;
}

/* まず全画像を通常サイズに戻す */
.menu_box img {
  width: 100%;
  height: auto !important;   /* ← ①を確実に全幅で表示する */
  display: block;
}

/* ▼②・③のみ：トリミング用の比率ボックスを作る */
.menu_box a:nth-child(2),
.menu_box a:nth-child(3) {
  position: relative;
  aspect-ratio: 2 / 1;   /* 4:3 ボックスを作る */
  overflow: hidden;
}

/* ②・③の画像をカバー表示に */
.menu_box a:nth-child(2) img,
.menu_box a:nth-child(3) img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100% !important;   /* トリミング用 */
  object-fit: cover;
  object-position: center;
}

/* SPでは1つ目のバナーも必ず全幅にする */
.menu_box a:first-child{
  flex-basis:100% !important;   /* ← ここがポイント */
}


/* ---------------------------------------
   SP専用：でしこバナー改善版
--------------------------------------- */

#deshiko_bnr{
  display:block;
  background:none;
  width:100%;
}

#deshiko_bnr img {
    width: 100%;
}

/* ▼ 画像を大きく見せる（左右余白あり・中央トリミング） */
.deshiko_img_wrap{
  padding:0 16px;
  box-sizing:border-box;
}

.deshiko_img_wrap img{
  width:100%;
  height:200px;            /* ← スマホで見やすい高さに調整 */
  object-fit:cover;        /* ← 中央でトリミングして拡大 */
  object-position:center;
  display:block;
  border-radius:4px;       /* お好み、消してもOK */
}

/* ▼ テキスト部分 */
#deshiko_bnr .deshiko_text {
  padding:24px 16px 32px;
  box-sizing:border-box;
  background:transparent;
  color:#21345c;
}

#deshiko_bnr .deshiko_text h2{
  margin:10px 0;
  color:#21345c;
}

#deshiko_bnr .deshiko_text h2::after{
  content:"";
  display:block;
  width:100%;
  height:1px;
  background:#21345c;
  margin-top:8px;
}

/* ▼ ボタンのはみ出し防止 */
#deshiko_bnr .deshiko_text .btn-outline{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  max-width:100%;          /* ← はみ出し防止の要 */
  padding:14px 0;
  margin:20px 0 0;
  border:1px solid #21345c;
  color:#21345c;
  background:transparent;
  box-sizing:border-box;
}

#deshiko_bnr .deshiko_text .btn-outline span{
  color:#21345c;
}


/* single page ------------------------ */
#single-page{
  width:100%;
  padding:0 16px;
  box-sizing:border-box;
}

#single-page .single-title h1,
.single-title h2{
  font-size:20px;
}

/* outline & breeding_process（養殖ページ） */
.outline{
  width:100%;
  padding:0 16px;
  box-sizing:border-box;
  flex-direction:column;
  gap:16px;
}

.breeding_process{
  width:100%;
  padding:0 16px;
  box-sizing:border-box;
}

/* 高さ固定を解除してスマホでは自然な高さに */
.processdetails{
  height:auto;
  display:flex;
  flex-direction:column;
}

.processdetails .details_text{
  width:100%;
  height:auto;
}

.processdetails > img{
  position:static;
  width:100%;
  height:auto;
  margin-top:0px;
}

/* inversion 反転レイアウトも縦積みでOK */
.processdetails.inversion > img{
  left:auto;
}


#concept p {
    font-size: 14px;
}


/* 左側に薄く大きめのうなぎイラストを配置 */
#concept::before {
  left: 150px;            /* もう少し外に出したければ -40px などに */
  top: 150px;              /* 上下位置はここで調整 */
  width: 300px;           /* 大きさ（420〜480px で微調整） */
  height: 300px;
  transform: scaleX(-1);
  opacity: 0.5;
}

#concept.shirayaki_concept::before {
  left: 150px;            /* もう少し外に出したければ -40px などに */
  top: 70px;              /* 上下位置はここで調整 */
  width: 300px;           /* 大きさ（420〜480px で微調整） */
  height: 300px;
}

#concept.yoman_concept::before {
  left: 150px;            /* もう少し外に出したければ -40px などに */
  top: 170px;              /* 上下位置はここで調整 */
  width: 300px;           /* 大きさ（420〜480px で微調整） */
  height: 300px;
}


/* === SPだけ：こだわりテキスト中央揃え === */
#concept.shirayaki_concept p, #concept.yoman_concept p {
  text-align: center;
  margin: 0 auto;
}


/* === SPだけ：両サイドカットして中央表示 === */
.heading img {
  width: 100%;
  height: 150px;       /* 適度な高さに調整（お好みで変更可） */
  object-fit: cover;   /* ← 両端カットで中央を表示 */
  object-position: center;
  display: block;
}


/* === SP：outline画像をテキスト幅に合わせる === */
.outline img {
  width: 100%;           /* 親幅いっぱい（= テキスト幅と揃う） */
  max-width: 450px;      /* 元画像サイズを超えない */
  height: auto;
  display: block;
  margin: 0 auto;        /* 中央揃え */
  box-sizing: border-box;
}


.processdetails .details_text p {
    line-height: 1.6;
}

/* ===== SP：カテゴリー絞り込みボタン ===== */
.category-filter {
  width: 100%;
  padding: 0 16px;     /* お知らせ一覧と同じ幅 */
  box-sizing: border-box;
  display: flex;
  flex-direction: column; /* ← 縦並び */
  gap: 5px;             /* ボタンの間隔 */
  margin-bottom: 24px;
}

.category-filter .filter-btn {
  width: 100%;          /* お知らせ一覧と同じ幅で横いっぱい */
  padding: 5px 0;
  font-size: 15px;
  text-align: center;
  border: 1px solid #21345c;
  background: #fff;
  color: #21345c;
  box-sizing: border-box;
}

/* Active状態の見た目（青背景） */
.category-filter .filter-btn.active {
  background: #21345c;
  color: #fff;
}

}