/*
Theme Name: 桃匠島村
Theme URI: https://example.com
Author: 桃匠島村
Description: 桃匠島村 オリジナルテーマ（アイボリー×ゴールドの高級ミニマルデザイン）
Version: 1.0
Requires PHP: 7.4
Text Domain: tousho-shimamura
*/

:root{
  --paper:#F4EFE4;
  --paper-deep:#ECE4D3;
  --ink:#332B20;
  --ink-soft:#6B6152;
  --gold:#A9822F;
  --gold-light:#D9BE78;
  --gold-deep:#7C5E22;
  --line:#DCCFAE;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--paper);
  color:var(--ink);
  font-family:'Noto Serif JP', serif;
  font-weight:300;
  line-height:1.9;
  -webkit-font-smoothing:antialiased;
}
.en{font-family:'Cormorant Garamond', serif; font-style:italic;}
a{color:inherit; text-decoration:none;}
.wrap{max-width:1160px; margin:0 auto; padding:0 40px;}
img{max-width:100%; display:block;}

/* Header */
header.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(244,239,228,0.92);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:20px 40px;
  max-width:1160px; margin:0 auto;
}
.logo-mini{display:flex; align-items:center; gap:12px; transition:opacity .25s;}
.logo-mini:hover{opacity:0.75;}
.logo-mini img{width:34px; height:34px; object-fit:contain; display:block;}
.logo-text{font-size:16px; letter-spacing:0.28em; font-weight:500;}
.nav ul{display:flex; gap:44px; list-style:none;}
.nav ul li a{font-family:'Cormorant Garamond',serif; font-size:13px; letter-spacing:0.1em; color:var(--ink-soft); transition:color .25s;}
.nav ul li a:hover{color:var(--gold-deep);}
.nav .cart{font-family:'Cormorant Garamond',serif; font-size:13px; letter-spacing:0.06em; border:1px solid var(--gold); padding:9px 22px; border-radius:2px; transition:all .25s; color:var(--gold-deep);}
.nav .cart:hover{background:var(--gold); color:var(--paper);}

/* Hamburger (mobile) */
.hamburger{
  display:none; width:26px; height:18px; position:relative; cursor:pointer; background:none; border:none; padding:0; margin-left:20px;
}
.hamburger span{
  position:absolute; left:0; width:100%; height:1px; background:var(--ink); transition:transform .3s ease, opacity .3s ease;
}
.hamburger span:nth-child(1){top:0;}
.hamburger span:nth-child(2){top:8px;}
.hamburger span:nth-child(3){top:16px;}
.hamburger.active span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2){ opacity:0; }
.hamburger.active span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

.mobile-menu{
  position:fixed; inset:0; z-index:200;
  background:var(--paper);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:34px;
  opacity:0; visibility:hidden; transition:opacity .3s ease;
}
.mobile-menu.open{ opacity:1; visibility:visible; }
.mobile-menu a{ font-family:'Cormorant Garamond',serif; font-size:21px; letter-spacing:0.1em; color:var(--ink); }
.mobile-menu .mm-cart{ margin-top:8px; border:1px solid var(--gold); padding:12px 30px; border-radius:2px; color:var(--gold-deep); font-size:14px; }
.mobile-menu-close{
  position:absolute; top:26px; right:28px; width:24px; height:24px; background:none; border:none; cursor:pointer;
}
.mobile-menu-close span{ position:absolute; top:50%; left:0; width:100%; height:1px; background:var(--ink); }
.mobile-menu-close span:nth-child(1){ transform: rotate(45deg); }
.mobile-menu-close span:nth-child(2){ transform: rotate(-45deg); }
body.nav-lock{ overflow:hidden; height:100vh; }

/* Hero */
.hero{
  position:relative;
  padding:110px 40px 100px;
  max-width:1160px; margin:0 auto;
  display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:40px;
}
.seal-wrap{
  position:relative; display:flex; align-items:center; justify-content:center; height:440px;
  overflow:hidden; border-radius:4px;
}
.hero-bg{ position:absolute; inset:0; z-index:0; overflow:hidden; background:#2A2318; }
.hero-video{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; object-position:center 40%;
  filter:saturate(0.88) brightness(0.97);
}
.seal-wrap::before{
  content:"";
  position:absolute; inset:-10%; z-index:1;
  background:radial-gradient(circle, rgba(244,239,228,0.9) 0%, rgba(244,239,228,0.55) 55%, rgba(244,239,228,0.12) 78%);
}
.hero-logo{ position:relative; z-index:2; max-width:340px; width:100%; height:auto; object-fit:contain; filter:drop-shadow(0 22px 34px rgba(124,94,34,0.16)); }
.hero-eyebrow{
  font-family:'Cormorant Garamond',serif; font-style:italic;
  font-size:14px; letter-spacing:0.28em; color:var(--gold-deep); margin-bottom:28px; display:block;
}
.hero h1{
  font-weight:200;
  font-size:clamp(32px, 4.2vw, 52px);
  line-height:1.65;
  letter-spacing:0.08em;
}
.hero p{ margin-top:32px; color:var(--ink-soft); font-size:14px; max-width:420px; letter-spacing:0.04em; }
.hero .ctas{display:flex; gap:18px; margin-top:44px;}
.btn-primary{
  background:var(--ink); color:var(--paper); padding:15px 34px; font-family:'Cormorant Garamond',serif; font-size:14px; letter-spacing:0.1em; border-radius:2px; transition:opacity .25s;
}
.btn-primary:hover{opacity:0.75;}
.btn-ghost{
  border-bottom:1px solid var(--gold-deep); padding:15px 4px; font-family:'Cormorant Garamond',serif; font-size:14px; letter-spacing:0.1em; color:var(--gold-deep);
}

/* Section shared */
section{padding:110px 0;}
.eyebrow{font-family:'Cormorant Garamond',serif; font-style:italic; font-size:14px; letter-spacing:0.26em; color:var(--gold-deep); display:block; margin-bottom:18px;}
.sec-title{font-weight:200; font-size:29px; letter-spacing:0.08em; margin-bottom:20px;}
.rule{width:44px; height:1px; background:var(--gold); margin:26px 0;}

/* Story */
.story{background:var(--paper-deep); border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
.story .wrap{display:grid; grid-template-columns:0.7fr 1.3fr; gap:80px; align-items:start;}
.story p{color:var(--ink-soft); font-size:14px; max-width:520px; font-family:'Noto Serif JP',serif; font-weight:300;}

/* Shipping status table */
.status .head-row{display:flex; align-items:baseline; justify-content:space-between; margin-bottom:60px; flex-wrap:wrap; gap:20px;}
.status .note{font-family:'Cormorant Garamond',serif; font-style:italic; font-size:13.5px; color:var(--ink-soft); letter-spacing:0.03em;}
.status-grid{ display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid var(--gold); border-left:1px solid var(--line); }
.status-cell{ border-bottom:1px solid var(--line); border-right:1px solid var(--line); padding:38px 26px; text-align:center; transition:background .3s; }
.status-cell:hover{background:var(--paper-deep);}
.status-cell .variety{font-size:15px; letter-spacing:0.1em; margin-bottom:22px; display:block; font-weight:400;}
.status-cell .stamp{
  width:46px; height:46px; border-radius:50%; margin:0 auto 16px;
  display:flex; align-items:center; justify-content:center;
  font-family:'Cormorant Garamond',serif; font-style:italic; font-size:20px;
  border:1px solid var(--ink);
}
.stamp.ok{border-color:var(--gold); color:var(--gold-deep); background:linear-gradient(160deg,#F6ECD2,#EAD9A8);}
.stamp.mid{border-color:#B7794A; color:#9C5F31; background:linear-gradient(160deg,#F3E2CC,#E7C7A0);}
.stamp.ng{border-color:#C9BFA8; color:#B4A88C;}
.status-cell .en-label{font-family:'Cormorant Garamond',serif; font-size:11px; letter-spacing:0.16em; color:var(--ink-soft);}
.status-legend{ display:flex; gap:34px; justify-content:center; margin-top:36px; flex-wrap:wrap; }
.status-legend .item{display:flex; align-items:center; gap:10px; font-size:12px; color:var(--ink-soft); letter-spacing:0.04em;}
.status-legend .dot{
  width:22px; height:22px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-family:'Cormorant Garamond',serif; font-style:italic; font-size:12px; border:1px solid var(--ink);
}

/* Products */
.products-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:2px; background:var(--line);}
.product-card{background:var(--paper); padding:44px 34px;}
.product-thumb{
  height:220px; border-radius:2px; margin-bottom:26px;
  background:linear-gradient(160deg, #EFE3C4, var(--gold-light) 60%, var(--gold) 130%);
  position:relative; overflow:hidden;
}
.product-thumb img{width:100%; height:100%; object-fit:cover;}
.product-thumb::after{content:"桃"; position:absolute; right:18px; bottom:12px; font-size:13px; letter-spacing:0.3em; color:rgba(255,255,255,0.6);}
.grade{font-family:'Cormorant Garamond',serif; font-style:italic; font-size:12.5px; letter-spacing:0.14em; color:var(--gold-deep); margin-bottom:10px; display:block;}
.product-card h3{font-weight:400; font-size:18px; margin-bottom:12px; letter-spacing:0.04em;}
.product-card .desc{font-family:'Noto Serif JP',serif; font-size:12.5px; color:var(--ink-soft); margin-bottom:22px; font-weight:300;}
.product-card .price{font-family:'Cormorant Garamond',serif; font-size:20px; letter-spacing:0.03em;}
.product-card .price span{font-size:11px; color:var(--ink-soft); margin-left:6px;}

/* Instagram */
.insta .head-row{display:flex; justify-content:space-between; align-items:baseline; margin-bottom:50px; flex-wrap:wrap; gap:16px;}
.insta-grid{display:grid; grid-template-columns:repeat(5,1fr); gap:2px;}
.insta-tile{ aspect-ratio:1/1; background:linear-gradient(150deg, var(--paper-deep), var(--gold-light)); position:relative; overflow:hidden; }
.insta-tile img{width:100%; height:100%; object-fit:cover;}
.insta-tile:nth-child(2n){background:linear-gradient(150deg, var(--gold-light), var(--gold));}
.insta-tile::after{ content:""; position:absolute; inset:0; background:rgba(51,43,32,0); transition:background .3s; }
.insta-tile:hover::after{background:rgba(51,43,32,0.12);}

footer.site-footer{border-top:1px solid var(--line); padding:70px 0 40px;}
footer.site-footer .wrap{display:flex; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; gap:30px;}
footer.site-footer .logo-text{margin-bottom:14px; display:block;}
footer.site-footer .addr{font-family:'Noto Serif JP',serif; font-size:12px; color:var(--ink-soft); line-height:1.8; font-weight:300;}
footer.site-footer .copy{font-family:'Cormorant Garamond',serif; font-style:italic; font-size:12px; color:#A79A7A; letter-spacing:0.04em;}

.badge-note{
  display:inline-block; margin-top:6px; font-family:'Cormorant Garamond',serif; font-style:italic; font-size:12px; color:var(--gold-deep); letter-spacing:0.03em;
  border:1px solid var(--gold-light); padding:3px 12px; border-radius:12px; background:#F8F1DD;
}

/* ===== Intro animation ===== */
.intro{
  position:fixed; inset:0; z-index:999;
  background:var(--paper);
  display:flex; align-items:center; justify-content:center;
  animation: introHold 2.3s forwards, introDissolve 0.9s ease-in forwards 2.3s;
}
.intro-emblem-wrap{
  width:min(46vw, 280px); height:min(46vw, 280px);
  display:flex; align-items:center; justify-content:center; position:relative;
}
.intro-emblem-img{
  width:100%; height:100%; object-fit:contain;
  opacity:0; transform:scale(0.7) rotate(-14deg); transform-origin:center;
  filter:drop-shadow(0 18px 30px rgba(124,94,34,0.18));
  animation: introImgIn 1.15s cubic-bezier(.19,.86,.24,1) forwards 0.2s;
}
.intro-ring-glow{
  position:absolute; inset:8%; border-radius:50%; opacity:0;
  background:radial-gradient(circle, rgba(233,217,166,0.55) 0%, rgba(233,217,166,0) 68%);
  animation: introGlow 1.6s ease-out forwards 0.3s;
}
@keyframes introImgIn{
  0%{ opacity:0; transform:scale(0.7) rotate(-14deg); }
  65%{ opacity:1; transform:scale(1.04) rotate(2deg); }
  100%{ opacity:1; transform:scale(1) rotate(0deg); }
}
@keyframes introGlow{
  0%{ opacity:0; transform:scale(0.6); }
  45%{ opacity:1; }
  100%{ opacity:0; transform:scale(1.15); }
}
@keyframes introHold{ to{ opacity:1; } }
@keyframes introDissolve{
  0%{ opacity:1; transform:scale(1); }
  100%{ opacity:0; transform:scale(1.1); visibility:hidden; }
}
body.intro-lock{ overflow:hidden; height:100vh; }
@media (prefers-reduced-motion: reduce){ .intro{ display:none; } }

@media (max-width:860px){
  .hero{grid-template-columns:1fr; padding-top:70px;}
  .seal-wrap{height:260px; order:-1;}
  .hero-logo{max-width:190px;}
  .story .wrap{grid-template-columns:1fr; gap:30px;}
  .status-grid{grid-template-columns:repeat(2,1fr);}
  .products-grid{grid-template-columns:1fr;}
  .insta-grid{grid-template-columns:repeat(3,1fr);}
  .nav ul{display:none;}
  .hamburger{display:block;}
}
/* ===== WooCommerce overrides ===== */
.woocommerce{ color:var(--ink); }
.woocommerce .wrap, .woocommerce-page .wrap{ max-width:1160px; margin:0 auto; padding:60px 40px 100px; }

/* Buttons (add to cart / checkout / update cart etc.) */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-cart .checkout-button,
.woocommerce a.checkout-button {
  background:var(--ink) !important;
  color:var(--paper) !important;
  border:none !important;
  border-radius:2px !important;
  padding:14px 30px !important;
  font-family:'Cormorant Garamond',serif !important;
  font-size:14px !important;
  letter-spacing:0.1em !important;
  text-transform:none !important;
  transition:opacity .25s !important;
  box-shadow:none !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.checkout-button:hover{
  opacity:0.75 !important;
  background:var(--ink) !important;
  color:var(--paper) !important;
}
.woocommerce a.button.alt,
.woocommerce-cart .wc-proceed-to-checkout a.button{
  background:var(--gold-deep) !important;
  color:var(--paper) !important;
}

/* Shop loop / product cards */
.woocommerce ul.products{
  display:grid !important;
  grid-template-columns:repeat(3,1fr);
  gap:2px;
  background:var(--line);
  list-style:none;
  margin:0 !important;
}
.woocommerce ul.products li.product{
  background:var(--paper);
  padding:34px 30px 40px;
  text-align:left !important;
  width:100% !important;
  margin:0 !important;
}
.woocommerce ul.products li.product img{
  border-radius:2px;
  margin-bottom:20px !important;
  aspect-ratio:1/1;
  object-fit:cover;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-family:'Noto Serif JP',serif;
  font-weight:400;
  font-size:16px;
  letter-spacing:0.04em;
  color:var(--ink);
  padding:0; margin:0 0 8px;
}
.woocommerce ul.products li.product .price{
  font-family:'Cormorant Garamond',serif;
  font-size:19px;
  color:var(--ink);
  margin-bottom:16px;
}
.woocommerce ul.products li.product .price ins{ text-decoration:none; }
.woocommerce span.onsale{
  background:var(--gold-deep) !important;
  font-family:'Cormorant Garamond',serif;
  font-weight:400;
  border-radius:0;
  min-height:auto; line-height:1; padding:6px 10px;
  top:10px; left:10px;
}
.woocommerce ul.products li.product .button{
  width:auto !important;
  display:inline-block !important;
}

/* Single product page */
.woocommerce div.product .woocommerce-tabs ul.tabs li,
.woocommerce div.product p.price, .woocommerce div.product span.price{
  font-family:'Cormorant Garamond',serif; color:var(--ink);
}
.woocommerce div.product form.cart .button{
  font-size:15px !important;
}

/* Cart page */
.woocommerce-cart table.shop_table, .woocommerce table.shop_table{
  border:none;
  border-collapse:collapse;
  width:100%;
}
.woocommerce table.shop_table th{
  font-family:'Cormorant Garamond',serif;
  font-style:italic;
  letter-spacing:0.08em;
  font-weight:400;
  color:var(--gold-deep);
  border-bottom:1px solid var(--gold);
  padding:14px 12px;
}
.woocommerce table.shop_table td{
  border-bottom:1px solid var(--line);
  padding:18px 12px;
  vertical-align:middle;
}
.woocommerce td.product-name a{
  font-family:'Noto Serif JP',serif;
  color:var(--ink);
}
.woocommerce table.shop_table td.actions .coupon .input-text{
  border:1px solid var(--line);
  border-radius:2px;
  padding:10px 12px;
  font-family:'Noto Serif JP',serif;
}
.woocommerce .quantity .qty{
  border:1px solid var(--line);
  border-radius:2px;
  padding:8px;
  width:64px;
  font-family:'Cormorant Garamond',serif;
}
.woocommerce-cart .cart-collaterals .cart_totals{
  background:var(--paper-deep);
  border:1px solid var(--line);
  padding:26px 28px;
  border-radius:2px;
}
.woocommerce-cart .cart_totals h2{
  font-family:'Noto Serif JP',serif;
  font-weight:400;
  font-size:18px;
  letter-spacing:0.06em;
  margin-bottom:16px;
}
.woocommerce-cart .cart_totals table{ border:none; }
.woocommerce-cart .cart_totals table td, .woocommerce-cart .cart_totals table th{
  border-top:1px solid var(--line);
  border-bottom:none;
  font-family:'Cormorant Garamond',serif;
}
.woocommerce-cart .cart_totals .order-total .woocommerce-Price-amount{
  font-size:20px;
  color:var(--gold-deep);
}
.woocommerce a.remove{
  color:var(--ink-soft) !important;
  border-radius:50% !important;
}
.woocommerce a.remove:hover{
  background:var(--gold-deep) !important;
  color:var(--paper) !important;
}
.woocommerce-message, .woocommerce-info{
  border-top-color:var(--gold) !important;
  background:var(--paper-deep) !important;
  font-family:'Noto Serif JP',serif;
}
.woocommerce-message::before, .woocommerce-info::before{ color:var(--gold-deep) !important; }

@media (max-width:860px){
  .woocommerce ul.products{ grid-template-columns:1fr; }
}
