@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700;900&display=swap');

:root {
  --bg:          #f7f6f2;
  --panel:       #ffffff;
  --text:        #1c1d1d;
  --text-mid:    #5c5a54;
  --text-lt:     #928f86;
  --accent:      #1c1d1d;
  --accent-soft: #efece4;
  --danger:      #a33;
  --border:      #e7e4dc;
  --white:       #ffffff;
  --radius:      10px;
  --radius-sm:   6px;
  --radius-pill: 999px;
  --font:        'Zen Kaku Gothic New','Hiragino Sans','Yu Gothic',sans-serif;
  --max:         1280px;
  --gutter:      clamp(20px,5vw,60px);
  --bottom-nav-h:64px;
  --ease:        cubic-bezier(0.16,1,0.3,1);
  --shadow:      0 2px 14px rgba(30,25,15,.06);
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--font);background:var(--bg);color:var(--text);line-height:1.75;-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%}
a{text-decoration:none;color:inherit}
ul{list-style:none}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
input{font-family:inherit}
.container{max-width:var(--max);margin:0 auto;padding:0 var(--gutter)}
.sp-only{display:none}
.sp-hide{}
body.no-scroll{overflow:hidden}

/* ============================================================
   ヘッダー
   ============================================================ */
.site-header{position:sticky;top:0;z-index:100;background:var(--bg);border-bottom:1px solid var(--border)}
.header-inner{display:flex;align-items:center;gap:28px;height:74px}
.site-logo{font-size:16.5px;font-weight:700;letter-spacing:.02em;white-space:nowrap}
.site-logo span{color:var(--text-mid);font-weight:500;font-size:14px}
.header-search{display:flex;align-items:center;gap:8px;background:var(--panel);border:1px solid var(--border);border-radius:var(--radius-pill);padding:10px 18px;flex:1;max-width:440px}
.header-search-icon{font-size:13px;opacity:.6}
.header-search input{flex:1;border:none;background:none;outline:none;font-size:13px;color:var(--text)}
.header-search input::placeholder{color:var(--text-lt)}
.site-nav{display:flex;align-items:center;gap:26px}
.site-nav a{font-size:13px;font-weight:500;color:var(--text-mid);padding:8px 2px;border-bottom:2px solid transparent;transition:color .2s,border-color .2s;white-space:nowrap}
.site-nav a:hover,.site-nav a.is-current{color:var(--text);border-color:var(--text)}
.header-actions{display:flex;align-items:center;gap:16px;margin-left:auto}
.header-icon-link{position:relative;width:24px;height:24px;color:var(--text);display:flex;align-items:center;justify-content:center}
.header-icon-link svg{width:22px;height:22px}
.header-icon-badge{position:absolute;top:-7px;right:-9px;background:var(--text);color:var(--white);font-size:9.5px;font-weight:700;min-width:16px;height:16px;border-radius:99px;display:flex;align-items:center;justify-content:center;padding:0 3px}

.mobile-tabs{display:none}

.hamburger{display:none;flex-direction:column;justify-content:center;gap:5px;width:28px;height:28px}
.hamburger span{display:block;width:22px;height:2px;background:var(--text);transition:transform .25s var(--ease),opacity .25s var(--ease)}
.hamburger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.hamburger[aria-expanded="true"] span:nth-child(2){opacity:0}
.hamburger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

.drawer{position:fixed;top:0;right:0;bottom:0;width:min(320px,84vw);background:var(--white);z-index:210;transform:translateX(100%);transition:transform .3s var(--ease);display:flex;flex-direction:column;gap:20px;padding:26px 24px;box-shadow:-8px 0 30px rgba(20,20,10,.1);overflow-y:auto}
.drawer.is-open{transform:translateX(0)}
.drawer-search{display:flex;align-items:center;gap:8px;background:var(--accent-soft);border-radius:var(--radius-pill);padding:11px 16px}
.drawer-search input{flex:1;border:none;background:none;outline:none;font-size:13px;color:var(--text)}
.drawer-nav{display:flex;flex-direction:column;gap:2px}
.drawer-nav a{display:block;padding:13px 4px;font-size:14px;font-weight:500;color:var(--text);border-bottom:1px solid var(--border)}
.drawer-nav-sm a{font-size:12.5px;font-weight:500;color:var(--text-mid);padding:10px 4px}
.drawer-heading{font-size:11px;color:var(--text-lt);font-weight:700;letter-spacing:.06em}
.drawer-footer{display:flex;flex-direction:column;gap:10px;margin-top:auto}
.drawer-login{display:block;text-align:center;padding:14px;background:var(--text);color:var(--white);font-size:13px;font-weight:600;letter-spacing:.02em;border-radius:var(--radius-sm)}
.drawer-login-outline{background:var(--white);color:var(--text);border:1px solid var(--border)}
.drawer-overlay{position:fixed;inset:0;background:rgba(20,20,10,.4);z-index:200;opacity:0;pointer-events:none;transition:opacity .25s var(--ease)}
.drawer-overlay.is-open{opacity:1;pointer-events:auto}

/* ============================================================
   ヒーロー
   ============================================================ */
.hero{display:grid;grid-template-columns:1.15fr 1fr;gap:28px;margin:28px 0 8px;align-items:stretch}
.hero-main{background:var(--panel);border-radius:var(--radius);padding:48px 44px;position:relative;display:flex;flex-direction:column;justify-content:center;overflow:hidden;background-image:linear-gradient(135deg,#e9e4d8,#cfd6cf 55%,#b9c6c2);min-height:420px;color:var(--text)}
.hero-corner{position:absolute;right:28px;top:24px;font-size:12.5px;line-height:1.6;text-align:right;color:rgba(28,29,29,.65)}
.hero-title{font-size:38px;font-weight:900;line-height:1.35;margin-bottom:18px;max-width:420px}
.hero-lead{font-size:12.5px;line-height:2;color:rgba(28,29,29,.75);margin-bottom:22px;max-width:360px}
.hero-link{font-size:12.5px;font-weight:700;text-decoration:underline;text-underline-offset:4px}
.hero-collage{position:relative;border-radius:var(--radius);overflow:hidden;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:6px;min-height:420px;background:#20241f}
.hero-collage-tile{position:relative}
.hero-collage-tile-a{background:linear-gradient(140deg,#3a4a52,#6d8a91)}
.hero-collage-tile-b{background:linear-gradient(140deg,#6b7256,#9aa27a)}
.hero-collage-tile-c{background:linear-gradient(140deg,#8a8272,#c4baa4)}
.hero-collage-tile-d{background:linear-gradient(140deg,#4a5a4c,#7c9484)}
.hero-collage-copy{position:absolute;left:16px;bottom:70px;z-index:2;color:var(--white);font-size:12px;line-height:1.8;font-weight:700;text-shadow:0 1px 6px rgba(0,0,0,.35)}
.hero-collage-brand{position:absolute;right:16px;bottom:16px;z-index:2;color:var(--white);font-size:11px;font-weight:900;line-height:1.5;text-align:right;text-shadow:0 1px 6px rgba(0,0,0,.35)}
.hero-collage-brand span{font-weight:500;opacity:.85}

/* ============================================================
   カテゴリー丸アイコン
   ============================================================ */
.section{margin:52px 0}
.category-row{display:flex;gap:22px;overflow-x:auto;padding:6px 2px 10px;scrollbar-width:thin}
.category-row::-webkit-scrollbar{height:6px}
.category-row::-webkit-scrollbar-thumb{background:var(--border);border-radius:99px}
.category-circle{flex:0 0 auto;width:96px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}
.category-circle-photo{display:block;width:88px;height:88px;border-radius:50%;background:linear-gradient(135deg,#dcd6c6,#b7c2bb);background-size:cover;background-position:center;overflow:hidden}
.category-circle-photo-icon{display:flex;align-items:center;justify-content:center;font-size:26px;background:var(--accent-soft)}
.category-circle-label{font-size:11.5px;color:var(--text-mid);font-weight:600;line-height:1.4}
.category-circle:hover .category-circle-photo{box-shadow:0 0 0 2px var(--text)}

/* ============================================================
   セクション見出し
   ============================================================ */
.section-head{display:flex;align-items:baseline;gap:14px;margin-bottom:20px;flex-wrap:wrap}
.section-head h2{font-size:19px;font-weight:700}
.section-sub{font-size:12px;color:var(--text-lt)}
.section-more{margin-left:auto;font-size:12px;color:var(--text-mid)}
.section-more:hover{color:var(--text)}
.search-group-label{font-size:12.5px;font-weight:700;color:var(--text-mid);margin:20px 0 12px}
.search-group-label:first-of-type{margin-top:0}

/* ============================================================
   商品カード・グリッド
   ============================================================ */
.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:26px 22px}
.product-card{position:relative}
.product-card-link{display:block}
.product-card-thumb{position:relative;width:100%;aspect-ratio:1/1;border-radius:var(--radius-sm);overflow:hidden;background:var(--accent-soft);margin-bottom:12px}
.product-card-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.product-card-badge{position:absolute;left:10px;top:10px;background:var(--text);color:var(--white);font-size:10px;font-weight:700;letter-spacing:.04em;padding:4px 9px;border-radius:4px}
.product-card-title{font-size:13.5px;font-weight:600;line-height:1.6;margin-bottom:4px}
.product-card-maker{font-size:11px;color:var(--text-lt);margin-bottom:6px}
.product-card-price{font-size:14px;font-weight:700}
.product-card-variants{display:flex;align-items:center;gap:6px;margin-top:8px;flex-wrap:wrap}
.variant-dot{width:14px;height:14px;border-radius:50%;background:linear-gradient(135deg,#c9c2ae,#8f9a90);border:1px solid var(--border);display:inline-block}
.variant-pill{font-size:10px;color:var(--text-mid);border:1px solid var(--border);border-radius:4px;padding:2px 6px}
.product-card-wish-form{position:absolute;right:8px;top:8px}
.product-card-wish-btn{width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.92);color:var(--text-mid);display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.product-card-wish-btn svg{width:16px;height:16px}
.product-card-wish-btn.is-wish{color:#c0473f}
.product-card-wish-btn:hover{transform:scale(1.06)}

/* ============================================================
   つくり手スポットライト（トップページ）
   ============================================================ */
.maker-spotlight-row{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:18px}
.maker-spotlight-main,.maker-spotlight-mini{position:relative;display:block;border-radius:var(--radius);overflow:hidden;background:linear-gradient(140deg,#3a3f34,#6b7259);background-size:cover;background-position:center;min-height:200px}
.maker-spotlight-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,20,15,.15) 0%,rgba(20,20,15,.65) 100%)}
.maker-spotlight-eyebrow{position:relative;z-index:1;color:#e7e4d8;font-size:11px;font-weight:700;letter-spacing:.1em;padding:22px 24px 0}
.maker-spotlight-copy{position:relative;z-index:1;color:var(--white);font-size:16px;font-weight:700;line-height:1.7;padding:10px 24px 24px;max-width:320px}
.maker-spotlight-arrow{position:absolute;right:20px;bottom:20px;z-index:1;color:var(--white);width:34px;height:34px;border-radius:50%;border:1px solid rgba(255,255,255,.5);display:flex;align-items:center;justify-content:center}
.maker-spotlight-mini-name{position:relative;z-index:1;color:var(--white);font-size:13.5px;font-weight:700;padding:16px 16px 2px}
.maker-spotlight-mini-tagline{position:relative;z-index:1;color:#e7e4d8;font-size:11px;padding:0 16px 16px}

/* ============================================================
   地域から探す
   ============================================================ */
.region-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px}
.region-card{display:flex;align-items:center;justify-content:center;background:var(--panel);border:1px solid var(--border);border-radius:var(--radius-sm);padding:22px 14px;text-align:center;transition:box-shadow .2s,transform .2s}
.region-card:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
.region-card-label{font-size:13px;font-weight:600}

/* ============================================================
   つくり手 一覧・カード
   ============================================================ */
.maker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:24px}
.maker-card{display:block;text-align:center}
.maker-card-photo{width:120px;height:120px;border-radius:50%;overflow:hidden;background:var(--accent-soft);margin:0 auto 12px}
.maker-card-photo img{width:100%;height:100%;object-fit:cover}
.maker-card-photo-placeholder{width:100%;height:100%;background:linear-gradient(135deg,#dcd6c6,#b7c2bb)}
.maker-card-name{font-size:14px;font-weight:700;margin-bottom:2px}
.maker-card-area{font-size:11px;color:var(--text-lt);margin-bottom:4px}
.maker-card-tagline{font-size:11.5px;color:var(--text-mid)}

/* ============================================================
   読みもの 一覧・カード
   ============================================================ */
.journal-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:24px}
.journal-card{display:block;background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:box-shadow .2s,transform .2s}
.journal-card:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
.journal-card-cover{position:relative;height:150px;background:var(--accent-soft)}
.journal-card-cover img{width:100%;height:100%;object-fit:cover}
.journal-card-cover-placeholder{width:100%;height:100%;background:linear-gradient(135deg,#dcd6c6,#b7c2bb)}
.journal-card-tag{position:absolute;left:10px;top:10px;background:rgba(20,20,20,.7);color:var(--white);font-size:10.5px;padding:4px 9px;border-radius:99px}
.journal-card-date{font-size:11px;color:var(--text-lt);padding:14px 16px 0}
.journal-card-title{font-size:14.5px;font-weight:700;padding:6px 16px 4px;line-height:1.6}
.journal-card-excerpt{font-size:12px;color:var(--text-mid);padding:0 16px 16px;line-height:1.7}

/* ============================================================
   ページ見出し・単体ページ・認証・マイページ（共通パターン）
   ============================================================ */
.page-head{display:flex;align-items:center;justify-content:space-between;margin:28px 0 24px;flex-wrap:wrap;gap:12px}
.page-head h1{font-size:22px;font-weight:900}
.section-label{font-size:13px;font-weight:700;color:var(--text-mid);margin:28px 0 14px}
.section-label:first-child{margin-top:0}

.detail-head{display:flex;align-items:flex-end;gap:24px;margin:28px 0 32px;flex-wrap:wrap}
.detail-cover{width:180px;height:180px;border-radius:var(--radius);overflow:hidden;background:linear-gradient(135deg,#dcd6c6,#b7c2bb);flex:0 0 auto}
.detail-cover img{width:100%;height:100%;object-fit:cover}
.detail-label{font-size:11.5px;color:var(--text-lt);margin-bottom:6px}
.detail-title{font-size:26px;font-weight:900;margin-bottom:8px}
.detail-sub{font-size:13px;color:var(--text-mid)}
.detail-bio{max-width:640px;font-size:13.5px;color:var(--text-mid);line-height:1.9;margin-bottom:28px}

.auth-page{max-width:440px;margin:44px auto}
.auth-head{text-align:center;margin-bottom:32px}
.auth-head-label{font-size:11.5px;letter-spacing:.14em;color:var(--text-mid);font-weight:700;margin-bottom:8px}
.auth-head-title{font-size:24px;font-weight:900;margin-bottom:12px}
.auth-head-lead{font-size:13px;color:var(--text-mid);line-height:1.8}
.auth-error{background:#fbeaea;border:1px solid #e3b8b8;color:var(--danger);font-size:13px;padding:14px 16px;margin-bottom:24px;line-height:1.7;border-radius:var(--radius-sm)}
.auth-form{display:flex;flex-direction:column;gap:16px}
.auth-form-group{display:flex;flex-direction:column;gap:6px}
.auth-form-label{font-size:12.5px;font-weight:600;color:var(--text-mid)}
.auth-required{color:var(--danger);font-size:10.5px;border:1px solid var(--danger);border-radius:3px;padding:1px 5px;margin-left:4px}
.auth-form-input{border:1px solid var(--border);border-radius:var(--radius-sm);padding:13px 14px;font-size:14px;color:var(--text);background:var(--panel)}
.auth-form-input:focus{outline:none;border-color:var(--text)}
.auth-form-btn{margin-top:6px;background:var(--text);color:var(--white);font-size:14.5px;font-weight:700;padding:14px;border-radius:var(--radius-sm)}
.auth-submit-note{font-size:11.5px;color:var(--text-lt);line-height:1.8;margin-top:2px;text-align:center}
.auth-switch{text-align:center;margin-top:24px;font-size:13px;color:var(--text-mid)}
.auth-switch a{text-decoration:underline;text-underline-offset:3px}

.simple-page-title{font-size:22px;font-weight:900;margin:28px 0 20px}
.simple-page-empty{color:var(--text-mid);font-size:14px}
.mypage-welcome{background:var(--accent-soft);border-radius:var(--radius-sm);padding:14px 18px;font-size:13.5px;margin-bottom:20px}
.mypage-greeting{font-size:16px;font-weight:700;margin-bottom:24px}
.mypage-links{display:flex;flex-direction:column;gap:10px;max-width:420px;margin-bottom:32px}
.mypage-link-card{display:flex;align-items:center;justify-content:space-between;background:var(--panel);border:1px solid var(--border);border-radius:var(--radius-sm);padding:16px 18px;font-size:14px;font-weight:600}
.mypage-link-count{color:var(--text-mid);font-weight:700}
.mypage-logout-btn{font-size:13px;color:var(--text-mid);text-decoration:underline;text-underline-offset:3px;margin-bottom:60px}

/* ============================================================
   フッター・ボトムナビ
   ============================================================ */
.site-footer{margin-top:60px;border-top:1px solid var(--border);padding:32px 0}
.footer-logo{font-size:14px;font-weight:900;margin-bottom:4px}
.footer-logo span{font-weight:500;color:var(--text-mid)}
.footer-lead{font-size:11.5px;color:var(--text-mid);margin-bottom:10px}
.footer-copy{font-size:11px;color:var(--text-lt)}
.bottom-nav{display:none}

/* ============================================================
   レスポンシブ（スマホ）
   ============================================================ */
@media (max-width: 980px) {
  .sp-hide{display:none !important}
  .site-nav{display:none}
  .hamburger{display:flex}
  .header-inner{height:64px;gap:14px}
  .site-logo{font-size:14px}
  .mobile-tabs{display:flex;gap:8px;padding:0 var(--gutter) 12px;overflow-x:auto}
  .mobile-tabs a{flex:0 0 auto;font-size:12px;color:var(--text-mid);background:var(--panel);border:1px solid var(--border);padding:7px 14px;border-radius:99px;white-space:nowrap}

  .hero{grid-template-columns:1fr;margin:16px 0 4px;gap:14px}
  .hero-main{padding:30px 22px;min-height:280px}
  .hero-title{font-size:26px}
  .hero-corner{display:none}
  .hero-collage{min-height:200px}

  .section{margin:38px 0}
  .section-head h2{font-size:16px}

  .product-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:18px 14px}
  .maker-spotlight-row{grid-template-columns:1fr;gap:12px}
  .maker-spotlight-main,.maker-spotlight-mini{min-height:170px}

  body{padding-bottom:var(--bottom-nav-h)}
  .bottom-nav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:90;background:var(--panel);border-top:1px solid var(--border);padding:6px 0 calc(6px + env(safe-area-inset-bottom))}
  .bottom-nav a{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:10px;color:var(--text-lt)}
  .bottom-nav a.is-active{color:var(--text);font-weight:700}
  .bottom-nav-icon{font-size:17px}

  .sp-only{display:block}
  .detail-head{gap:16px}
  .detail-cover{width:120px;height:120px}
  .detail-title{font-size:20px}
}
