:root{
  /* Farm palette (green / yellow / white / brown) */
  --bg:#fbf8f0;           /* warm white */
  --panel:#ffffff;        /* white */
  --card:#ffffff;         /* white */
  --text:#1f2a1e;         /* deep green-brown */
  --muted:#3f4c3c;        /* muted green (darker for readability) */
  --border:rgba(54, 76, 47, .18);
  --shadow:0 10px 24px rgba(34, 28, 16, .10);

  --primary:#2f7d32;      /* leaf green */
  --primary2:#f2c94c;     /* grain yellow */
  --danger:#c0392b;
  --warn:#f2c94c;
  --radius:16px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Noto Sans JP", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 520px at 12% 0%, rgba(242, 201, 76, .26), transparent 60%),
    radial-gradient(900px 520px at 90% 10%, rgba(47, 125, 50, .16), transparent 62%),
    linear-gradient(180deg, #fffdf7, var(--bg));
}

a{color:inherit}
img{max-width:100%;height:auto}

.container{width:calc(100% - 28px); max-width:1100px; margin:0 auto;}

.skip-link{position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;}
.skip-link:focus{left:16px; top:16px; width:auto; height:auto; padding:10px 12px; background:#fff; color:#000; border-radius:10px; z-index:9999;}

.site-header{position:sticky; top:0; z-index:100; backdrop-filter:saturate(140%) blur(10px); background:rgba(255,255,255,.80); border-bottom:1px solid var(--border);}
.header-inner{display:flex; flex-direction:column; align-items:flex-start; justify-content:space-between; gap:10px; padding:12px 0;}
.brand-link{display:flex; align-items:center; gap:10px; text-decoration:none;}
.brand-mark{font-size:20px;}
.brand-name{font-weight:700; letter-spacing:.2px;}

.nav{display:flex; gap:8px; align-items:center; flex-wrap:wrap; justify-content:flex-start;}
.nav a{padding:10px 10px; text-decoration:none; color:var(--muted); border-radius:10px;}
.nav a{font-size:14px}

/* モバイルでタップしやすく：横スクロール可能なナビ */
.nav{overflow-x:auto; -webkit-overflow-scrolling:touch; padding-bottom:2px;}
.nav::-webkit-scrollbar{height:6px}
.nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12); border-radius:999px}
.nav a{white-space:nowrap}
.nav a{padding:10px 10px; text-decoration:none; color:var(--muted); border-radius:10px;}
.nav a:hover{background:rgba(242, 201, 76, .22); color:var(--text)}
.nav a.active{background:rgba(47, 125, 50, .12); color:var(--text); border:1px solid rgba(47, 125, 50, .22)}

/* Links */
a{color:#2b5e2d}
a:hover{color:#1f4a21}
.nav-cart{display:flex; align-items:center; gap:8px;}
.badge{display:inline-flex; min-width:22px; height:22px; padding:0 8px; align-items:center; justify-content:center; border-radius:999px; background:rgba(47, 125, 50, .12); border:1px solid var(--border); font-size:12px; color:var(--text)}

.hero{padding:26px 0 14px;}
.hero-inner{display:grid; grid-template-columns: 1fr; gap:14px; align-items:stretch;}
.hero h1{margin:14px 0 18px; font-size: clamp(26px, 3.4vw, 40px); line-height:1.18;}
.lead{font-size:16px; color:var(--text); line-height:1.75;}
.note{color:var(--muted); font-size:13px; margin-top:14px;}
.hero-actions{display:flex; flex-direction:column; gap:10px; margin-top:12px;}
.hero-actions .btn{width:100%}
/* トップのCTAは縦並びでフル幅（見た目の統一） */
.hero-actions .btn{justify-content:center}

.page{padding:18px 0 40px;}
.page-head{margin:8px 0 18px;}
.page-head h1{margin:0 0 6px; font-size: clamp(24px, 3vw, 34px);}
.muted{color:var(--muted)}
.small{font-size:13px}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;}

.section{padding:14px 0;}
.section-muted{padding:16px 0; background:rgba(242, 201, 76, .08); border:1px solid var(--border); border-left:none; border-right:none;}

.grid-2{display:grid; grid-template-columns:1fr; gap:14px; min-width:0;}
.grid-3{display:grid; grid-template-columns:1fr; gap:14px; min-width:0;}
.grid-3 .card{height:auto}

.card{background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:14px; box-shadow:var(--shadow); min-width:0;}

/* カード内のボタン：カード幅いっぱい＆タップしやすい高さ */
.card .btn, .card button.btn{width:100%; min-height:44px;}

/* カード内ボタン：カード幅いっぱい（縦並びの場合） */
.card .btn{width:100%}
.h2{font-size:20px; margin:0 0 10px;}
.h3{font-size:16px; margin:0 0 10px; color:var(--text)}
.divider{height:1px; background:var(--border); margin:14px 0;}

.table-wrap{overflow:auto; max-width:100%; border-radius:12px; border:1px solid var(--border)}
.table{width:100%; border-collapse:collapse; min-width: 0; background:rgba(242, 201, 76, .06)}
.table th, .table td{padding:12px 12px; border-bottom:1px solid var(--border); text-align:left;}
.table th{font-weight:700; color:var(--text); background:rgba(47, 125, 50, .06);}
.table tbody tr:last-child td{border-bottom:none}

.callout{background:linear-gradient(135deg, rgba(242, 201, 76, .16), rgba(47, 125, 50, .10)); border:1px solid rgba(47, 125, 50, .18); border-radius:var(--radius); padding:18px;}

.list{margin:10px 0 0; padding-left:18px; color:var(--text);}
.list.small{margin-top:8px;}
.list li{margin:6px 0}

.steps{margin:10px 0 0; padding-left:18px;}
.steps li{margin:8px 0; color:var(--text)}

.chips{display:flex; flex-wrap:wrap; gap:8px; margin-top:10px}
.chip{display:inline-flex; padding:8px 10px; border-radius:999px; background:rgba(47, 125, 50, .06); border:1px solid var(--border); font-size:13px; color:var(--text)}

/* Images */
.media{display:block; max-width:100%; width:100%; height:auto; border-radius:14px; border:1px solid var(--border); background:rgba(255,255,255,.04)}

/* iOS/Safari対策：グリッド内の画像がはみ出すのを抑止 */
.media-card{overflow:hidden}

/* デフォルト（モバイル）：商品画像は横スクロール */
.media-grid{
  display:flex;
  gap:12px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x mandatory;
  padding:4px 2px 10px;
}
.media-grid::-webkit-scrollbar{height:8px}
.media-grid::-webkit-scrollbar-thumb{background:rgba(54, 76, 47, .18); border-radius:999px}
.media-grid .media-card{
  flex:0 0 72%;
  scroll-snap-align:start;
}
.media-card{padding:12px; border-radius:16px; border:1px solid var(--border); background:rgba(34, 28, 16, .03)}
.media-title{margin:8px 0 0; font-weight:800; font-size:14px}
.media-sub{margin:2px 0 0; color:var(--muted); font-size:12px}

/* メニュー：画像の下に表（内容量/価格）を配置するための余白調整 */
.menu-price-table{margin-top:10px}

/* 横スクロール（単発注文ページで使用） */
.hscroll{
  display:flex;
  gap:12px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x mandatory;
  padding:4px 2px 10px;
}
.hscroll::-webkit-scrollbar{height:8px}
.hscroll::-webkit-scrollbar-thumb{background:rgba(54, 76, 47, .18); border-radius:999px}
.hscroll-item{
  flex:0 0 82%;
  scroll-snap-align:start;
}
@media (min-width: 520px){
  .hscroll-item{flex-basis: 55%;}
}
@media (min-width: 720px){
  /* PC：従来どおり3カラム表示に戻す */
  .media-grid{display:grid; grid-template-columns:repeat(3, 1fr); overflow:visible; padding:0; scroll-snap-type:none;}
  .media-grid .media-card{flex:auto}

  .table{min-width: 520px;}
  .hscroll{overflow-x:visible}
  .hscroll-item{flex-basis: 1px; flex:1 1 0}
}


.field{display:flex; flex-direction:column; gap:6px; margin:12px 0;}
label{font-weight:700; font-size:14px}
.req{font-size:12px; color:var(--warn); margin-left:6px}
input, select, textarea{
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  padding:11px 12px;
  color:var(--text);
  font-size:16px; /* iOSの自動ズーム対策 */
  outline:none;
}
input:focus, select:focus, textarea:focus{border-color:rgba(79,214,255,.45); box-shadow:0 0 0 3px rgba(79,214,255,.12)}
.help{margin:0; color:var(--muted); font-size:12px}

.actions-row{display:flex; flex-direction:column; gap:10px; align-items:stretch; margin-top:12px}
.actions-row .btn, .actions-row button{width:100%}

/* 料金プレビュー下のCTA（ボタンのバランス調整） */
.actions-row[aria-label="アクション"]{margin-top:0}
.actions-row[aria-label="アクション"] .btn,
.actions-row[aria-label="アクション"] button,
.actions-row[data-cta-style="stack"] .btn,
.actions-row[data-cta-style="stack"] button{
  padding:12px 14px;
  min-height:44px;
}
.actions-row[aria-label="アクション"] .btn-primary,
.actions-row[aria-label="アクション"] button.btn-primary{
  flex:1 1 auto;
}
.actions-row[aria-label="アクション"] .btn-outline{
  flex:1 1 auto;
}
@media (min-width: 720px){
  .actions-row[aria-label="アクション"]{
    gap:12px;
  }
  .actions-row[aria-label="アクション"] .btn,
  .actions-row[aria-label="アクション"] button{
    flex:1 1 0;
    text-align:center;
  }
}

.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:12px 14px; border-radius:12px; border:1px solid transparent; text-decoration:none; cursor:pointer; font-weight:700; font-size:14px;}
.btn-block{width:100%}
.btn-primary{background:linear-gradient(135deg, var(--primary), #1f6a26); color:#ffffff; border-color:rgba(31,106,38,.25);}
.btn-secondary{background:rgba(242, 201, 76, .20); border-color:rgba(242, 201, 76, .38); color:var(--text);}
.btn-outline{background:#fff; border-color:rgba(47, 125, 50, .35); color:var(--text)}
.btn-ghost{background:transparent; border-color:rgba(54, 76, 47, .18); color:var(--muted)}
.btn:hover{filter:brightness(1.05)}
.btn:active{transform:translateY(1px)}

.summary{display:flex; flex-direction:column; gap:10px;}
.summary-row{display:flex; align-items:center; justify-content:space-between; gap:10px;}
.summary-row.total strong{font-size:18px}

.template{width:100%; resize:vertical; min-height:160px;}
.template-actions{display:flex; gap:10px; flex-wrap:wrap; margin:10px 0;}

.cart-list{display:flex; flex-direction:column; gap:12px; margin-top:12px}
.cart-item{display:flex; flex-direction:column; gap:10px; padding:12px; border:1px solid var(--border); border-radius:14px; background:rgba(7,11,20,.18)}
.cart-item-main{flex:1}
.cart-item-title{font-weight:800; margin:0 0 6px}
.cart-item-meta{margin:0; color:var(--muted); font-size:13px; line-height:1.5}
.cart-item-actions{display:flex; flex-direction:column; gap:10px; min-width:auto}
.cart-item-actions select{width:100%}
.cart-item-actions button{width:100%}

.empty{color:var(--muted)}

.site-footer{border-top:1px solid var(--border); background:rgba(34, 28, 16, .06);}
.footer-inner{display:flex; justify-content:space-between; gap:18px; padding:18px 0; flex-wrap:wrap}
.footer-brand{font-weight:800}
.footer-links{display:flex; gap:14px; flex-wrap:wrap;}
.footer-links a{color:var(--muted); text-decoration:none; font-weight:600}
.footer-links a:hover{color:var(--text)}

.page-bottom-actions{display:flex; gap:10px; flex-wrap:wrap; justify-content:center; padding:18px 0 0}

/* ボタン幅の基準：基本は各ページの .container 幅に揃える（端までのフルブリードは使わない） */
.full-bleed{width:100%; margin-left:0; margin-right:0;}
.full-bleed-inner{width:calc(100% - 28px); margin:0 auto; max-width:1100px;}
@media (min-width:720px){
  .full-bleed-inner{width:calc(100% - 40px);}
}
.full-bleed .btn{width:100%;}
.full-bleed h2{padding:0;}
.full-bleed .page-bottom-actions{justify-content:stretch; padding:18px 0 0}
.full-bleed .page-bottom-actions .btn{width:100%;}


.radio-group{border:1px solid var(--border); border-radius:14px; padding:12px; background:rgba(47, 125, 50, .06)}
.radio{display:flex; gap:10px; padding:10px; border-radius:12px; cursor:pointer;}
.radio:hover{background:rgba(255,255,255,.05)}
.radio input{accent-color: var(--primary2);}

/* ====== ここからPC・タブレット向け（モバイルファーストの上書き） ====== */
@media (min-width: 720px){
  .container{width:calc(100% - 40px)}

  .header-inner{flex-direction:row; align-items:center; gap:16px; padding:14px 0;}
  .nav{gap:14px; overflow:visible; padding-bottom:0}
  .nav a{font-size:14px}

  .hero{padding:44px 0 18px;}
  .hero-inner{grid-template-columns: 1.25fr .75fr; gap:22px;}
  .hero-actions{flex-direction:row;}
  .hero-actions .btn{width:auto}

  .page{padding:26px 0 48px;}
  .section{padding:18px 0;}
  .section-muted{padding:22px 0;}

  .grid-2{grid-template-columns:1fr 1fr; gap:18px;}
  .grid-3{grid-template-columns:1fr 1fr 1fr; gap:16px;}
  .grid-3 .card{height:100%}

  .card{padding:18px;}

  .actions-row{flex-direction:row; align-items:center;}
  .actions-row .btn, .actions-row button{width:auto}

  .cart-item{flex-direction:row; gap:12px;}
  .cart-item-actions{min-width:160px}
}
