/* ==========================================================
   豪彦 -KATSUHIKO- | 抹茶Web
   Adobe XDデザインから抽出したトークンを基にしたスタイル
   ========================================================== */

:root{
  /* -- Colors（XDから抽出）-- */
  --color-matcha:        #748C4D;   /* rgb(116,140,77)  メイングリーン */
  --color-matcha-deep:   #385B01;   /* rgb(56,91,1)     見出し用ディープグリーン */
  --color-cream:         #E3E0DB;   /* rgb(227,224,219) ベージュ背景 */
  --color-ink:           #1F1F1F;   /* フッター背景 */
  --color-text:          #333333;
  --color-text-mute:     #AAAAAA;
  --color-white:         #FFFFFF;

  /* -- Type -- */
  --font-serif: "Zen Old Mincho", "Noto Serif JP", serif;
  --font-sans:  "Noto Sans JP", "YuGothic", "Hiragino Sans", sans-serif;

  /* -- Layout -- */
  --content-width: 1240px;
  --gutter: clamp(20px, 5vw, 140px);
  --radius: 4px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  background: #E3E0DB 0% 0% no-repeat padding-box;
  opacity: 1;
  width: 100vw;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family: var(--font-serif); font-weight: 500; margin:0; }
p{ margin:0; }
ul{ list-style:none; margin:0; padding:0; }
.section-banner__text{ font-family: var(--font-serif); }

/* ============ LOADING ============
   実データ: 背景 rgb(227,224,219)、中央に黒版ロゴ
   (emblem + 豪彦kanji画像 + KATSUHIKOワードマーク)。
   PC/SP共通デザイン。表示1000ms後にフェードアウト。 */
.loading-screen{
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-cream);
  display:flex;
  align-items:center;
  justify-content:center;
  transition: opacity .6s ease;
}
.loading-logo{
  display:flex;
  align-items:center;
  gap: clamp(10px, 2vw, 20px);
}
.loading-emblem{ width: clamp(48px, 6vw, 72px); height:auto; }
.loading-kanji{ height: clamp(56px, 7vw, 84px); width:auto; }
.loading-wordmark{ height: clamp(24px, 3vw, 36px); width:auto; margin-top: .6em; }

.loading-screen.is-hidden{
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px){
  .loading-logo{ flex-direction:column; gap:12px; }
  .loading-emblem{ width:56px; }
  .loading-kanji{ height:64px; }
  .loading-wordmark{ height:26px; margin-top:0; }
}

/* ============ HEADER ============ */
.site-header{
  position: sticky; top:0; z-index:100;
  backdrop-filter: blur(6px);
  background-color: #E3E0DB;
  opacity: 0.875;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.header-inner{
  /*max-width: var(--content-width);*/
  margin:0 auto;
  padding: 18px var(--gutter);
  display:flex;
  align-items:center;
  gap: clamp(16px,4vw,56px);
}
.logo{ display:flex; align-items:center; gap: 10px; margin-right:auto; }
/* 実データ比率: emblem 59x59(正方形) / kanji画像 80x46 / wordmark 143x25(横長) */
.logo-emblem{ width: 45px; height:60px; flex:none; }
.logo-kanji{ height: 36px; width:auto; flex:none; }
.logo-wordmark{ height: 26px; width:auto; flex:none; margin-top:2px; }
.logo-kanji--w{ filter: brightness(0) invert(1); } /* フッター用に白化 */

.main-navbar {
  display: flex;
}
.header-inner .icon-jas{
  width: 88px;
  height: 46px;
}
.main-nav{ display:flex; gap: clamp(16px,3vw,40px); font-size:15px; }
.main-nav a{ white-space:nowrap; position:relative; padding:4px 0; }
.main-nav a::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:1px;
  background: var(--color-matcha); transform: scaleX(0); transition: transform .25s ease;
}
.main-nav a:hover::after{ transform: scaleX(1); }

.lang-switch{ display:flex; align-items:center; gap:8px; font-family: var(--font-serif); font-size:16px; color:#ccc; }
.lang-switch .is-active{ color: var(--color-matcha); }

.hamburger{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:32px; height:32px; background:none; border:0; cursor:pointer; padding:0;
}
.hamburger span{ height:2px; background: var(--color-ink); display:block; }

.mobile-nav{
  display:none; 
  flex-direction:column; 
  gap:0;
  border-top:1px solid rgba(0,0,0,.06);
  background: #E3E0DB 0% 0% no-repeat padding-box;
  opacity: 1;
}
.mobile-nav a{ padding:16px var(--gutter); border-bottom:1px solid rgba(0,0,0,.05); font-size:15px; }
.mobile-lang{ display:flex; gap:8px; padding:16px var(--gutter); font-family:var(--font-serif); color:#ccc; }
.mobile-lang .is-active{ color:var(--color-matcha); }

.site-header.is-open {opacity: 1;}
.site-header.is-open .mobile-nav{ display:flex; }

@media (max-width: 640px){
  .logo-emblem{display: none;}
  .logo-kanji{ height: 32px;}
  .logo-wordmark{ height: 14px; margin-top:2px; }
}
/* ============ HERO ============
   TOP(1920px基準): 画像 x=384 y=90 w=1536 h=900
     → 左マージン 384/1920=20% ／ 幅 1536/1920=80% ／ 縦横比 1536:900
     → コピー文はXD上のTOPには存在しないため、画像左の余白20%を
       活用してSPと同じ文言を配置（ユーザー指定によりPCにも表示）
   SP(375px基準): 画像 x=37 y=70 w=337 h=565、直下 y=681 にコピー文
     → 左マージン 37/375≈9.87% ／ 幅 337/375≈89.87% ／ 縦横比 337:565
     → 画像下端(70+565=635)からコピー開始(681)まで約46pxの余白
   ================================================================= */
.hero{
  position: relative;
  display: grid;
  gap: clamp(16px, 2vw, 32px);
  max-height: 900px;
  max-width: 100vw;
  overflow: hidden;
}
.hero .hero-content {
  display:flex;
  align-items:stretch;
}
.hero-media {
  flex: 1 0 80%;
  height: 900px;
  max-height: 900px;
  width: 80%;
}
.hero-media .carousel {
  overflow: hidden;
  height: 100%;
}
.hero-media .carousel .carousel-inner {
  overflow: hidden;
  height: 100%;
}
.hero-media .carousel .carousel-inner .carousel-item {
  overflow: hidden;
  height: 100%;
}
.hero-media .carousel .carousel-inner .carousel-item img{ 
  border-radius: 0px 0px 0px 50px;
}

.hero-copy{
  flex: 0 0 20%;
  box-sizing: border-box;
  min-height: 260px;
  display:flex;
  justify-content:center;
  align-items:center;
  padding: 24px 0;
  writing-mode: vertical-rl;   /* PC版は縦書き */
  text-orientation: mixed;
  font-family: var(--font-serif);
  color: var(--color-matcha-deep);
  /*font-size: clamp(15px, 1.3vw, 18px);*/
  font-size: 1.75rem;
  line-height:1.9;
  letter-spacing: .05em;
}
.hero-logo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
}
.hero-logo > div {
  width: 274px;
}
.hero-logo img {
  width: 100%;
  height: auto;
}
@media (max-width: 1920px){
  .hero-media .carousel .carousel-inner .carousel-item img{ 
    height: 100%;
    width: auto;
    object-fit: cover;
  }
}
@media (max-width: 768px){
  .hero{
    flex-direction: column-reverse;
  }
  .hero .hero-content {
    flex-direction: column-reverse;
  }
  .hero-media{
    margin-left: var(--gutter);
    min-height: 565px;
    width: 100%;
  }
  .hero-media .carousel .carousel-inner .carousel-item img{ 
    object-fit: cover;
  }
  .hero-copy{
    display: block;
    height:auto; min-height:0;
    writing-mode: horizontal-tb;   /* SP版は横書きに戻す */
    margin-left: 9.87%;
    width: 89.87%;
    padding: 0;
    padding-top: 24px; /* 実データ比: 46px / 565px(画像高) ≈ 8.1% ≒ 24px相当 */
    text-align: left;
    font-family: var(--font-serif);
    color: var(--color-matcha-deep);
    font-size: 14px; /* SPアートボード実測値 */
    line-height: 1.8;
  }
  .hero-logo > div {
    width: 164px;
  }
}

/* ============ ABOUT ============ */
.about{ position:relative; padding: 80px var(--gutter) 100px; }
.about-texture{
  position:absolute; inset:0 0 auto 0; height:420px; z-index:-1; overflow:hidden;
}
.about-texture img{ width:100%; height:100%; object-fit:cover; }

/* icon_logo: 実データ位置(76,1429)・opacity .2 を踏まえ、
   About上部左側にうっすら重ねる装飾ウォーターマークとして配置 */
.about-watermark{
  position:absolute;
  top: 380px; left: 2%;
  width: min(320px, 22vw);
  height:auto;
  opacity: .2;
  z-index:-1;
  pointer-events:none;
}

/* img_crea01(570x360) / img_crea02(420x310) を実比率で復元。
   両パネルの幅比 570:420 ≒ 4:3 をflexの比率に反映 */
.about-creative{
  display:flex; 
  flex-wrap:wrap; 
  gap:24px;
  max-width: 1100px; 
  margin: 0 auto calc(var(--gutter) * 1.5);
  background: transparent url('../assets/images/texture.jpg') 0% 0% no-repeat padding-box;
  box-shadow: 2px 2px 20px #4E470F33;
  border-radius: 20px;
  align-items: center;
}
.crea-panel{
  margin: 0 var(--gutter) 0; 
  flex:1 1;
  background:#F5F4F0; border-radius: var(--radius); overflow:hidden;
}
.crea-panel--badges{ 
  /*aspect-ratio: 570 / 360; flex-grow: 1.36; */
  max-width: 570px;
  height: 360px;
  /*margin: 25px 0px 15px 80px;*/
  background: transparent 0% 0% no-repeat padding-box;
  /*
  background-image: image-set(
    url('../assets/images/img_crea01.png') 1x,
    url('../assets/images/img_crea01@2x.png') 2x
  );
  */
}
.crea-panel--photos{ 
  /*aspect-ratio: 420 / 310; flex-grow: 1; */
  /*margin: 45px 28px 45px 0px;*/
  background: transparent 0% 0% no-repeat padding-box;
  /*
  background-image: image-set(
    url('../assets/images/img_crea02.png') 1x,
    url('../assets/images/img_crea02@2x.png') 2x
  );
  */
}
.crea-panel > img:first-child{ width:100%; height:100%; object-fit:contain; padding:12%; }
.crea-panel--photos > img:first-child{ object-fit:cover; padding:0; }
.crea-panel__accent{
  position:absolute; right:6%; bottom:6%;
  width:52%; height:52%; object-fit:cover;
  border:3px solid #fff; border-radius:4px;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}

.about-content{
  display: flex;
  flex-direction: column;
}

/* about-primary: about-intro(テキスト) と img_about01(実データ復元・
   右端ブリード画像) を横並びに。
   img_about01 実測値: 位置(1212,1688) サイズ708x464、
   右端がartboard右端(1920)にフラッシュしていたため、
   about-photo はセクションの右gutterを打ち消して端側へ伸ばしている。 */
.about-primary{
  margin-left: calc(var(--gutter) * -1);
  margin-right: calc(var(--gutter) * -1);
  mix-blend-mode: multiply;
  display: flex;
  flex-direction: row;
  background-image: linear-gradient(to right, rgba(116, 140, 77, 0.2), rgba(116, 140, 77, 0.2));
  background-repeat: no-repeat;
  background-size: 67% 100%;
  align-items: center;
}
.about-intro{ 
  margin-top: var(--gutter);
  margin-left: calc(var(--gutter) * 2.5);
  padding-right: var(--gutter);
  padding-bottom: calc(var(--gutter));
  text-align:left;
 }
.about-intro h2{
  color: var(--color-matcha-deep);
  font-size: clamp(24px, 3.4vw, 40px);
  line-height:1.5; margin-bottom:24px;
}
.about-intro p{ font-size:15px; color:#333; }

.about-photo{
  margin-top: var(--gutter);
  /*margin-right: calc(var(--gutter) * -1);*/
  margin-bottom: var(--gutter);
  margin-right: 0;
  border-radius: var(--radius);
  overflow:hidden;
  max-width: 708px;
  max-height: 464px;
}
.about-photo img{
  object-fit:cover;
  display:block;
  width: 100%;
  height: auto;
  aspect-ratio: 708/464; 
}

.about-gallery{
  display: flex;
  gap: 80px;
  max-width: 1100px;
  margin: calc(var(--gutter) * -0.5) auto 80px; 
  align-items:center;
}
.about-img{ 
  
  object-fit:cover; 
  border-radius: var(--radius); 
}
.about-img--tall{ 
  aspect-ratio: 389/583; 
}
.about-img--wide{ 
  aspect-ratio: 669/446; 
}

/* about-safety: 実データ = 白カード(1100x573)内に見出し＋4項目。
   各アイコンは半透明グリーンの円(242x242 / opacity .2)を背景に、
   文字はダークグリーン(#385B01)・Zen Old Mincho・22px。
   （白地に緑文字であり、緑地に白文字ではない点を修正） */
.about-safety{
  background: var(--color-white);
  max-width: 1100px; margin:0 auto;
  padding: 48px clamp(20px,4vw,56px);
  box-shadow: 0 10px 40px rgba(0,0,0,.06);
  border-radius: var(--radius);
  text-align:center;
  border: 1px solid var(--unnamed-color-748c4d);
  background: #FFFFFF34 0% 0% no-repeat padding-box;
  border: 1px solid #748C4D;
  opacity: 1;
}
.about-safety h3{
  color: var(--color-matcha-deep);
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 32px);
  margin-bottom:40px;
}
.safety-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap:20px;
}
.safety-grid li{
  background: none;
  padding: 0; display:flex; align-items:center; justify-content:center;
}
/* 実データの楕円(242x242, opacity .2, matcha green)をそのまま円として使い、
   アイコンは使わずテキストを円内に収める */
.safety-circle{
  width: 168px; height:168px; border-radius:50%;
  background: rgba(116,140,77,.2);
  display:flex; align-items:center; justify-content:center;
  text-align:center;
  font-family: var(--font-serif);
  color: var(--color-matcha-deep);
  font-size:15px; line-height:1.5;
  padding: 12px;
}

/* icon_merit01〜06: XDのクリップマスク付きベクターパスから復元した
   実SVGアセットを使用。位置データ(x=594..1229, y=3253, 各100x100)を
   踏まえ、6個を等間隔の帯として表示。 */
.merit-checks{
  display:flex; justify-content:center; flex-wrap:wrap;
  gap: clamp(12px, 2vw, 24px);
  margin-top: 32px; padding-top: 28px;
  border-top: 1px solid rgba(56,91,1,.12);
  background: #FFFFFF 0% 0% no-repeat padding-box;
}
.merit-checks li{
  width:100px; height:100px; 
  display:flex; align-items:center; justify-content:center;
  padding: 12px;
}
.merit-checks img{
  width:100%; height:100%; object-fit:contain; display:block;
}

/* ============ SECTION BANNER（帯見出し）============ */
.section-banner{
  position:relative; height: clamp(120px,14vw,178px);
  display:flex; align-items:center; justify-content:center;
  margin: 0 0 60px;
}
.section-banner__bg{
  position:absolute; inset:0; background-size:cover; background-position:center;
}
.section-banner__bg::after{ content:""; }
.section-banner__text{
  position:relative; color:#fff; font-size: clamp(24px,3.4vw,40px); letter-spacing:.08em;
}
.section-banner{ background:#000; }
.section-banner__bg{ opacity:.55; }

/* ============ FEATURE ============ */
.feature{ padding-bottom: 40px; }
.feature-item{
  display:grid; grid-template-columns: 1fr 1fr;
  max-width: var(--content-width); margin: 0 auto 24px; gap:0;
  min-height: 320px;
}
.feature-item:nth-child(even) .feature-media{ order:2; }
.feature-media{
  background-size:cover; background-position:center; min-height:280px;
}
.feature-copy{
  padding: clamp(24px,4vw,56px); display:flex; flex-direction:column; justify-content:center; gap:18px;
  background: var(--color-white);
}
.feature-copy h3{ font-size: clamp(20px,2.4vw,28px); color:#222; }
.feature-copy p{ font-size:15px; color:#444; }

/* value-props: 実データ = 白カード(1100x557, 角丸)内に3行。
   各行「グリーンのラベルバー(940x47)＋説明文」構成。
   商品ラインナップセクションの先頭（バナー直下）に配置。 */
.value-props{
  max-width: 1100px; margin: 0 auto 56px;
  border: 1px solid var(--unnamed-color-748c4d);
  background: #FFFFFF34 0% 0% no-repeat padding-box;
  border: 1px solid #748C4D;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,.06);
  padding: 32px clamp(20px,4vw,60px);
}
.value-row{ margin-bottom: 28px; }
.value-row:last-child{ margin-bottom:0; }
.value-bar{
  background: var(--color-matcha);
  border-radius: 4px;
  min-height: 47px;
  display:flex; align-items:center; flex-wrap:wrap;
  gap: 8px clamp(16px, 3vw, 48px);
  padding: 10px 24px;
  margin-bottom: 14px;
}
.value-bar__title{
  font-family: var(--font-serif); font-size:20px; color:#fff; font-weight:500;
}
.value-bar__tag, .value-bar__note{
  font-family: var(--font-serif); font-size:14px; color:#fff; opacity:.92;
}
.value-desc{ font-size:14px; color:#555; line-height:1.9; }

/* ============ PRODUCTS ============ */
.products{ background: var(--color-cream); padding: 80px 0 100px; }
.products-subtitle{
  text-align:center; color: var(--color-matcha-deep);
  font-size: clamp(24px,3vw,40px); margin-bottom:48px;
}
.product-grid{
  max-width: var(--content-width); margin:0 auto;
  padding: 0 var(--gutter);
  display:grid; grid-template-columns: repeat(3, 1fr); gap:28px;
}
.product-card{ background:#fff; border-radius: var(--radius); overflow:hidden; height: 100%; }
.product-card img{ width:100%; aspect-ratio: 330/400; object-fit:cover; }
.product-card h4{
  font-size:15px; font-weight:400; padding: 16px 16px 8px; line-height:1.6; color:#333;
}
.product-card h4 span{ display:inline; }
.product-card .price{
  padding: 0 16px 20px; font-family: var(--font-serif); font-size:22px; color:#333;
}
.product-card .price small{ font-size:13px; font-weight:400; margin-left:4px; }

/* ============ FOOTER ============
   footer-logoは中央寄せの縦配置（emblem→kanji→wordmardを縦に積む）。
   フッター全体も中央揃えの縦スタック構成にしている。 */
.site-footer{ background: var(--color-ink); color:#fff; padding: 56px var(--gutter); }
.footer-inner{
  max-width: var(--content-width); margin:0 auto;
  display:flex; flex-direction:column; align-items:center; text-align:center;
  gap:20px;
}
.footer-logo{ display:flex; flex-direction:column; align-items:center; gap:10px; }
.footer-logo .logo-emblem{ width:40px; height:40px; }
.footer-logo .logo-kanji{ height:34px; }
.footer-logo .logo-wordmark{ height:16px; margin-top:0; }
.footer-nav{ display:flex; gap:32px; font-size:14px; }
.copyright{ font-size:12px; color:#ccc; }

/* ==========================================================
   レスポンシブ（SPアートボード375pxをベースに再現）
   ========================================================== */
@media (max-width: 768px){
  :root{ --gutter: 20px; }

  .main-nav, .lang-switch{ display:none; }
  .hamburger{ display:flex; }

  .about-creative{ 
    flex-direction:column;
    margin-bottom: 60px;
  }
  .about-watermark{
    top: 520px;
    width: 154px;
  }

  .about-content {
    flex-direction:column;
  }
  .about-content > figure {
    max-width: 100%;
  }
  .about-primary{ 
    flex-direction:column; 
    width: auto;
    margin-right: var(--gutter);
    background-size: 100% 80%;
  }
  .about-intro-panel {
    width: 100%;
  }
  .about-intro{ 
    flex:1 1 auto;
    max-width:none;
    height: 460px;
  }
  .about-intro p {
    font-size: 13px;
  }
  .about-photo{ 
    width: 284px;
    height: 186px;
    margin-top: calc(var(--gutter) * -1);
    margin-left: auto;
    margin-right: calc(var(--gutter) * -2);
  }
  .about-gallery{ 
    flex-direction: row;
    margin: var(--gutter) calc(var(--gutter) * -1) var(--gutter);
    grid-template-columns: 1fr;
  }
  .about-gallery > div {
    margin: 0;
  }
  .about-safety{ 
    padding: 32px 10px;
    margin: 0 alc(var(--gutter) * -0.5) 0;
  }
  .safety-grid{ grid-template-columns: repeat(2,1fr); }
  .safety-circle{ width:140px; height:140px; font-size:14px; }
  .merit-checks{ gap:10px; }
  .merit-checks li{ width:80px; height:80px; padding:8px; }

  .feature-item{ grid-template-columns: 1fr; min-height:auto; }
  .feature-item:nth-child(even) .feature-media{ order:0; }
  .feature-media{ aspect-ratio: 337/180; min-height:auto; }

  .value-props{ 
    margin: 0 var(--gutter) 0;
    padding: 20px 20px; 
  }
  .value-bar{ padding: 10px 16px; }
  .value-bar__title{ font-size:17px; }

  .product-grid{ grid-template-columns: repeat(2,1fr); gap:16px; }
  .product-card h4{ font-size:12px; }
  .product-card h4 span { font-size: 10px;}
  .product-card .price{ font-size:18px; }

  .footer-inner{ flex-direction:column; text-align:center; }
  .footer-nav{ flex-direction:column; gap:12px; }
}

@media (max-width: 420px){
  .product-grid{ grid-template-columns: 1fr 1fr; }
}
