/*
Theme Name: Blocksy Child - Kasho Seiga
Description: 菓匠清雅 KASHO SEIGA 用 子テーマCSS
Template: blocksy
Version: 1.0.0

Blocksyはハイブリッド型テーマです。ヘッダー/フッターは
「カスタマイズ→ヘッダー/フッター」のBlocksy独自ビルダーで組むか、
「外観→エディター」のサイトエディター(テンプレートパーツ)で組むかの
2通りがあります。作業前に「カスタマイズ→ヘッダー」の画面を開き、
どちらの仕組みで作られているかを確認してください(前回の糸と革案件と同じ
確認手順です)。
Blocksy独自ビルダーで組む場合は、下部の「Blocksyヘッダービルダー用の
デザイン調整」セクションが効きます。サイトエディターで組む場合は
custom-html-blocks.html の内容をそのままテンプレートパーツに貼るだけで、
このセクションは使いません。
*/

:root{
  --ink:#211D1A;
  --ink-soft:#5C5650;
  --paper:#FFFFFF;
  --paper-alt:#F8F4EE;
  --gold:#A9824F;
  --gold-soft:#C9A874;
  --line:#E7E1D6;
  --shadow: 0 20px 60px -25px rgba(33,29,26,.35);
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  background:var(--paper);
  color:var(--ink);
  font-family:'Noto Sans JP',sans-serif;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
}
h1,h2,.serif{ font-family:'Shippori Mincho',serif; letter-spacing:.02em; }
img{display:block; max-width:100%;}
::selection{ background:var(--ink); color:#fff; }
:focus-visible{ outline:2px solid var(--gold); outline-offset:3px; }

.wrap{ max-width:1180px; margin:0 auto; padding:0 32px; }
.eyebrow{
  display:flex; align-items:center; gap:14px;
  font-family:'Cormorant Garamond',serif; font-style:italic;
  font-size:14px; letter-spacing:.18em; color:var(--gold);
  margin-bottom:10px;
}
.eyebrow::before{ content:""; width:34px; height:1px; background:var(--gold); display:inline-block; }
.section-head{ margin-bottom:32px; }
.section-head h2{ font-size:clamp(24px,3.2vw,34px); margin:0; font-weight:600; }

.stitch-link{ position:relative; padding-bottom:4px; text-decoration:none; color:inherit; }
.stitch-link::after{
  content:""; position:absolute; left:0; bottom:0; height:1px; width:100%;
  background:var(--gold); transform:scaleX(0); transform-origin:left;
  transition:transform .4s cubic-bezier(.2,.8,.2,1);
}
.stitch-link:hover::after, .stitch-link:focus-visible::after{ transform:scaleX(1); }

/* ---------- ボタン ---------- */
.btn{ display:inline-flex; align-items:center; gap:12px; padding:15px 28px; font-size:13.5px; letter-spacing:.1em; text-decoration:none; transition:background .3s ease, color .3s ease, transform .15s ease; }
.btn svg{ width:14px; height:14px; stroke:currentColor; fill:none; stroke-width:2; transition:transform .3s ease; }
.btn:hover svg{ transform:translateX(4px); }
.btn-dark{ background:var(--ink); color:#fff; }
.btn-dark:hover{ background:#000; }
.btn-outline{ border:1px solid var(--ink); color:var(--ink); }
.btn-outline:hover{ background:var(--ink); color:#fff; }
.btn-light{ background:#fff; color:var(--ink); }
.btn-light:hover{ background:var(--gold-soft); }

/* ---------- ヘッダー ---------- */
header.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,.94); backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; padding:16px 32px; max-width:1180px; margin:0 auto; flex-wrap:wrap; gap:16px; }
.logo{ display:flex; align-items:center; gap:12px; }
.logo-mark{ width:38px; height:38px; display:flex; align-items:center; justify-content:center; }
.logo-mark svg{ width:26px; height:26px; }
.logo-text .ja{ font-family:'Shippori Mincho',serif; font-size:17px; font-weight:600; line-height:1.1; }
.logo-text .en{ font-family:'Cormorant Garamond',serif; font-style:italic; font-size:10.5px; letter-spacing:.16em; color:var(--gold); }

nav.main-nav ul{ display:flex; gap:32px; list-style:none; margin:0; padding:0; }
nav.main-nav a{ font-size:14px; letter-spacing:.03em; }

.header-icons{ display:flex; align-items:center; gap:18px; }
.icon-btn{ position:relative; width:22px; height:22px; display:flex; align-items:center; justify-content:center; color:var(--ink); text-decoration:none; }
.icon-btn svg{ width:19px; height:19px; transition:color .3s ease, transform .3s ease; }
.icon-btn:hover svg{ color:var(--gold); transform:translateY(-2px); }

.burger{ display:none; width:24px; height:18px; position:relative; background:none; border:none; cursor:pointer; z-index:210; }
.burger span{ position:absolute; left:0; width:100%; height:1.5px; background:var(--ink); transition:transform .3s ease, opacity .3s ease; }
.burger span:nth-child(1){top:0;} .burger span:nth-child(2){top:8px;} .burger span:nth-child(3){top:16px;}
.burger.is-active span:nth-child(1){ transform:translateY(8px) rotate(45deg); }
.burger.is-active span:nth-child(2){ opacity:0; }
.burger.is-active span:nth-child(3){ transform:translateY(-8px) rotate(-45deg); }

/* ---------- ヒーロー ---------- */
.hero{ position:relative; height:78vh; min-height:460px; overflow:hidden; background:var(--ink); }
.hero-bg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.hero::after{ content:""; position:absolute; inset:0; background:linear-gradient(100deg, rgba(20,17,15,.72) 20%, rgba(20,17,15,.15) 55%); }
.hero-tab{
  position:absolute; z-index:2; left:0; top:50%; transform:translateY(-50%) rotate(180deg);
  writing-mode:vertical-rl; font-family:'Cormorant Garamond',serif; font-style:italic;
  font-size:12px; letter-spacing:.3em; color:rgba(255,255,255,.55); padding:14px 8px;
  border-left:1px solid rgba(255,255,255,.3);
}
.hero-content{ position:relative; z-index:2; height:100%; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; padding:0 32px 0 96px; max-width:1180px; margin:0 auto; color:#fff; }
.hero-content h1{
  writing-mode:vertical-rl;
  font-family:'Shippori Mincho',serif !important;
  font-size:clamp(20px,2.6vw,30px);
  line-height:2;
  letter-spacing:.14em;
  margin:0 0 22px;
  font-weight:600;
  color:var(--gold-soft) !important;
  text-shadow:0 2px 24px rgba(0,0,0,.25);
}
.hero-content p{ font-size:14px; line-height:1.9; color:#f2ece3; margin:0; }

/* ---------- ごあいさつ ---------- */
.greeting{ padding:64px 0; }
.greeting-grid{ display:grid; grid-template-columns:1fr 1.1fr; gap:64px; align-items:center; }
.greeting-text p{ font-size:14.5px; line-height:2; color:var(--ink-soft); margin:0; }
.greeting-text .diamond{ margin-top:28px; color:var(--gold); font-size:20px; }
.greeting-photos{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.greeting-photos img{ aspect-ratio:1/1; object-fit:cover; }

/* ---------- 注文バナー ---------- */
.order-banner{ background:var(--paper-alt); padding:28px 0; }
.order-banner-inner{ display:flex; align-items:center; gap:28px; flex-wrap:wrap; }
.order-banner-icon{ color:var(--gold); flex-shrink:0; }
.order-banner-icon svg{ width:34px; height:34px; }
.order-banner-text{ display:flex; flex-direction:column; gap:4px; flex:1; min-width:220px; }
.order-banner-text strong{ font-size:16px; }
.order-banner-text span{ font-size:13px; color:var(--ink-soft); }

/* ---------- 特徴セクション(季節の和菓子 / 詰め合わせ・贈答) ---------- */
.feature{ padding:64px 0; }
.feature-grid{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.feature-grid.reverse .feature-photo{ order:2; }
.feature-photo img{ aspect-ratio:4/3.2; object-fit:cover; }
.feature-text h2{ font-size:clamp(22px,3vw,30px); margin:0 0 16px; }
.feature-text p{ font-size:14.5px; line-height:1.9; color:var(--ink-soft); margin:0 0 28px; }

/* ---------- 人気のお菓子 ---------- */
.popular{ padding:64px 0; background:var(--paper-alt); }
.product-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:24px; }
.product-card{ text-align:left; }
.product-thumb{ aspect-ratio:1/1; overflow:hidden; background:#fff; border:1px solid var(--line); margin-bottom:14px; }
.product-thumb img{ width:100%; height:100%; object-fit:cover; transition:transform .6s cubic-bezier(.2,.7,.2,1); }
.product-card:hover .product-thumb img{ transform:scale(1.06); }
.product-info .name{ font-size:14px; margin-bottom:6px; }
.product-info .price{ font-family:'Cormorant Garamond',serif; font-size:16px; color:var(--gold); font-style:italic; }
.section-more{ display:flex; justify-content:center; margin-top:32px; }

/* ---------- ご贈答バナー ---------- */
/* ---------- ご贈答バナー(写真を背景にしつつ、文字側は明るいグラデーションで読みやすく) ---------- */
.gift-banner{ position:relative; min-height:300px; overflow:hidden; background:var(--paper-alt); }
.gift-banner-bg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.gift-banner::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(100deg, rgba(248,244,238,.94) 28%, rgba(248,244,238,.15) 62%);
}
.gift-banner-content{
  position:relative; z-index:2; max-width:1180px; margin:0 auto;
  padding:56px 32px; color:var(--ink);
}
.gift-banner-content h2{ font-size:clamp(22px,3vw,30px); margin:0 0 14px; color:var(--ink); }
.gift-banner-content p{ font-size:14px; line-height:1.8; color:var(--ink-soft); margin:0 0 22px; max-width:400px; }

/* ---------- お知らせ ---------- */
.news{ padding:64px 0; }
.news-grid{ display:grid; grid-template-columns:1fr 1.4fr; gap:56px; align-items:flex-start; }
.news-photo img{ aspect-ratio:4/3.4; object-fit:cover; }
.news-head{ display:flex; align-items:flex-end; justify-content:space-between; }
.link-more{ display:inline-flex; align-items:center; gap:8px; font-size:13px; color:var(--ink); text-decoration:none; }
.link-more svg{ width:13px; height:13px; stroke:currentColor; fill:none; stroke-width:2; }

/* WordPress標準「投稿」ブロック(Latest Postsブロック)の実際の出力クラス名 */
.news-list{ border-top:1px solid var(--line); list-style:none; margin:0; padding:0; }
.news-list > li{
  display:flex; align-items:center; flex-wrap:wrap; gap:12px 24px;
  padding:22px 0; border-bottom:1px solid var(--line);
}
.news-list .wp-block-latest-posts__post-date{
  order:1; flex:0 0 100px; font-family:'Cormorant Garamond',serif; font-size:13px; color:var(--gold);
  white-space:nowrap; letter-spacing:.02em;
}
.news-list .wp-block-latest-posts__post-title{
  order:2; flex:1; min-width:200px; font-size:14.5px; color:var(--ink); text-decoration:none;
}
/* お知らせカテゴリ名を表示したい場合は投稿にカテゴリータクソノミーを設定し、
   テンプレート側でカテゴリー名を出力するか、タイトルに【】書きで含める運用でも可 */

/* ---------- フッター ---------- */
/* 【注意】以下はCustom HTML/サイトエディターでフッターを組む場合のスタイル。
   Blocksy独自のフッタービルダーで組む場合は、下部の
   「Blocksyフッタービルダー用のデザイン調整」セクションを参照。 */
footer.site-footer{ background:var(--paper-alt); border-top:1px solid var(--line); }
.footer-cols{ display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr; gap:40px; padding:72px 32px 48px; }
.footer-about p{ font-size:13.5px; line-height:1.9; color:var(--ink-soft); margin:16px 0 20px; }
.footer-logo{ margin-bottom:4px; }
.footer-logo img{ max-height:40px; width:auto; }
.sns{ display:flex; gap:14px; }
.sns a{ color:var(--ink); }
.sns svg{ width:19px; height:19px; }
.footer-menu h4{ font-family:'Cormorant Garamond',serif; font-style:italic; font-size:13px; letter-spacing:.1em; color:var(--gold); margin:0 0 18px; font-weight:500; }
.footer-menu ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.footer-menu a{ font-size:13.5px; color:var(--ink-soft); text-decoration:none; }
.footer-menu a:hover{ color:var(--ink); }
.footer-bottom{ border-top:1px solid var(--line); padding:22px 32px; display:flex; justify-content:space-between; align-items:center; font-size:11.5px; color:#8f8479; }
.to-top{ width:34px; height:34px; border-radius:50%; background:var(--ink); color:#fff; border:none; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.to-top svg{ width:16px; height:16px; }

/* =========================================================
   Blocksyヘッダービルダー用のデザイン調整
   「カスタマイズ→ヘッダー/フッター」のBlocksy独自ビルダーで
   組んだ場合にのみ使うセクション。サイトエディター(テンプレートパーツ)
   で組んだ場合はこのセクションは不要(効かせる必要もない)。
   実クラス名はBlocksyのバージョンで変わることがあるため、
   効かない場合は検証ツールで確認し直してください。
   ========================================================= */
.ct-header{
  background:rgba(255,255,255,.94) !important;
  border-bottom:1px solid var(--line);
  font-family:'Noto Sans JP',sans-serif;
}

/* カートアイコン・バッジ・ポップアップ(Blocksy独自ビルダーの「カート」要素) */
.ct-header-cart .ct-cart-item{ color:var(--ink) !important; }
.ct-header-cart .ct-cart-item:hover{ color:var(--gold) !important; }
.ct-header-cart .ct-cart-item svg{ fill:var(--ink) !important; }
.ct-dynamic-count-cart{
  background:var(--ink) !important;
  color:#fff !important;
}
.ct-header-cart .ct-cart-content{
  background:var(--paper) !important;
  color:var(--ink) !important;
  border:1px solid var(--line) !important;
  box-shadow: var(--shadow) !important;
}

/* WooCommerceのミニカートの中身(標準クラスなのでテーマに依存せず安定して効く) */
.woocommerce-mini-cart-item a{
  color:var(--ink) !important;
  text-decoration:none !important;
}
.woocommerce-mini-cart-item a:hover{ color:var(--gold) !important; }
.woocommerce-mini-cart__buttons .button,
.woocommerce-mini-cart__buttons a.button{
  background:var(--ink) !important;
  border-color:var(--ink) !important;
  color:#fff !important;
}
.woocommerce-mini-cart__buttons .button:hover,
.woocommerce-mini-cart__buttons a.button:hover{
  background:#000 !important;
  border-color:#000 !important;
}
.woocommerce-mini-cart__total .amount,
.woocommerce-mini-cart-item .quantity{ color:var(--gold); }

/* フッター全体(Blocksyのフッタービルダーを使う場合の実ラッパー) */
.ct-footer, #footer{
  background:var(--paper-alt) !important;
  color:var(--ink) !important;
}

/* モバイル用オフキャンバスメニュー(Blocksy独自ビルダーでモバイルメニューを
   組む場合の実クラス。今回のように独自HTML+script.jsのハンバーガーで
   実装する場合は、この#offcanvasセクションは使わない) */
#offcanvas{ color:var(--ink); }
#offcanvas a{ color:var(--ink) !important; text-decoration:none !important; }
#offcanvas a:hover{ color:var(--gold) !important; }

/* =========================================================
   Blocksyフッタービルダー用のデザイン調整
   「カスタマイズ→フッター」のBlocksy独自ビルダーで4カラム構成を
   組んだ場合に使うセクション。列の内訳:
     ①ロゴ+紹介文+SNS(HTML要素) / ②③④メニュー要素(各列の見出しは
     HTML要素でh4を置き、その下にメニュー要素を配置する)
   実クラス名はBlocksyのバージョンで変わることがあるため、
   効かない場合は検証ツールで確認し直してください。
   ========================================================= */
.ct-footer, #footer{
  background:var(--paper-alt) !important;
  color:var(--ink) !important;
}
.ct-footer a{ color:var(--ink-soft); text-decoration:none; }
.ct-footer a:hover{ color:var(--ink); }

/* 各列の見出し(HTML要素に置く h4)。マークアップ例:
   <h4 class="footer-col-title">お菓子</h4> */
.ct-footer .footer-col-title{
  font-family:'Cormorant Garamond',serif; font-style:italic;
  font-size:13px; letter-spacing:.1em; color:var(--gold);
  margin:0 0 18px; font-weight:500;
}

/* メニュー要素(各列)の実際の出力に合わせて調整 */
.ct-footer [data-id="menu"] ul,
.ct-footer .ct-footer-menu{
  list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px;
}
.ct-footer [data-id="menu"] a.ct-menu-link,
.ct-footer .ct-footer-menu a{
  font-size:13.5px; color:var(--ink-soft) !important; text-decoration:none !important;
}
.ct-footer [data-id="menu"] a.ct-menu-link:hover,
.ct-footer .ct-footer-menu a:hover{ color:var(--ink) !important; }

/* ロゴ列の画像サイズ・紹介文・SNSアイコン */
.ct-footer [data-id="logo"] img{ max-height:40px; width:auto; }
.ct-footer .footer-col-text{ font-size:13.5px; line-height:1.9; color:var(--ink-soft); margin:16px 0 20px; }
.ct-footer [data-id="socialIcons"] a,
.ct-footer .sns a{ color:var(--ink); }

/* フッターの「ナビゲーションメニュー」ウィジェット(標準のwidget_nav_menu)の
   項目間隔。Blocksyのウィジェットエリアではこの形で出力されることが多い */
.widget_nav_menu ul{
  list-style:none; margin:0; padding:0;
  display:flex; flex-direction:column; gap:12px;
}
.widget_nav_menu ul li{ margin:0; }
.widget_nav_menu a{
  font-size:13.5px; color:var(--ink-soft); text-decoration:none;
}
.widget_nav_menu a:hover{ color:var(--ink); }

@media (max-width:960px){
  .burger{ display:block; }
  nav.main-nav{
    position:fixed; top:0; right:-100%; width:80%; max-width:300px; height:100vh;
    background:var(--paper); box-shadow:var(--shadow); padding:96px 28px 40px;
    overflow-y:auto; transition:right .35s ease; z-index:200;
  }
  nav.main-nav.nav-open{ right:0; }
  nav.main-nav ul{ flex-direction:column; gap:0; }
  nav.main-nav li{ border-bottom:1px solid var(--line); }
  nav.main-nav a{ display:block; padding:16px 2px; font-size:15.5px; }

  .greeting-grid, .feature-grid, .news-grid{ grid-template-columns:1fr; }
  .feature-grid.reverse .feature-photo{ order:0; }
  .gift-banner{ min-height:240px; }
  .gift-banner::after{ background:linear-gradient(180deg, rgba(248,244,238,.35) 0%, rgba(248,244,238,.95) 68%); }
  .gift-banner-content{ padding:40px 32px; }
  .gift-banner-content p{ max-width:none; }
  .product-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-cols{ grid-template-columns:1fr 1fr; }
  .hero-tab{ display:none; }
  .hero-content{ padding:0 32px; }
  .hero-content h1{ writing-mode:horizontal-tb; line-height:1.5; font-size:clamp(24px,6vw,34px); }
}
@media (prefers-reduced-motion: reduce){
  *{ transition-duration:.01ms !important; }
}
