/* Reset & Basics */
:root {
  --c-primary: #7CBC41; /* Seedling green */
  --c-primary-light: #F0F8EA;
  --c-primary-dark: #2C4A19;
  --c-secondary: #74C2E1; /* Sky blue */
  --c-accent: #D9A036; /* Golden rice */
  --c-accent-light: #FDF9F0;
  --c-text: #333333;
  --c-text-light: #555555;
  --c-bg: #FFFFFF;
  --c-bg-sand: #FCF0E1;
  --f-heading: 'Shippori Mincho', serif;
  --f-body: 'Noto Sans JP', sans-serif;
  --max-width: 1200px;
  --radius: 16px;
  --radius-small: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--f-body); color: var(--c-text); background-color: var(--c-bg); line-height: 1.8; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-heading); font-weight: 500; line-height: 1.4; color: #222; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: all 0.3s ease; }
ul { list-style: none; }

/* Utilities */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 5%; }
.bg-white { background-color: var(--c-bg); }
.bg-sand { background-color: var(--c-bg-sand); }
.bg-watercolor { background-color: var(--c-bg-sand); background-image: url('../photo/watercolor_bg.png'); background-size: cover; background-position: center; }
.bg-primary-dark { background-color: var(--c-primary-dark); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: #fff !important; }
.text-dark { color: var(--c-text) !important; }
.m-0 { margin: 0 !important; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 3rem; }
.mt-5 { margin-top: 5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 4rem; }
.pt-4 { padding-top: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.font-en { font-family: sans-serif; letter-spacing: 0.1em; text-transform: uppercase; }
.flex-column-center { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.drop-shadow { box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.border-radius-large { border-radius: 20px; }
.border-radius-small { border-radius: var(--radius-small); }
.max-w-600 { max-width: 600px; }
.max-w-800 { max-width: 800px; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.flex-1 { flex: 1; }
.flex-col { display: flex; flex-direction: column; }
.object-cover { object-fit: cover; }
.min-h-0 { min-height: 0; }
.block { display: block; }
.align-stretch { align-items: stretch; }
.gap-40 { gap: 40px; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.line-height-2 { line-height: 2; }
.aspect-square { aspect-ratio: 1/1; }
.max-h-240 { max-height: 240px; }

/* Display Helpers */
.pc-only { display: none !important; }
.sp-only { display: block !important; }

/* Mobile First Layouts */
.flex-container { display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; }
.flex-container.reverse { flex-direction: column; }
.text-box { width: 100%; max-width: 100%; }
.image-box { width: 100%; position: relative; }

/* Header & Navigation */
.header { position: fixed; top: 0; left: 0; width: 100%; padding: 15px 0; z-index: 1000; transition: all 0.4s ease; }
.header.scrolled { background-color: rgba(255, 255, 255, 0.98); padding: 10px 0; box-shadow: 0 2px 15px rgba(0,0,0,0.08); backdrop-filter: blur(10px); }
.header-container { max-width: 1400px; margin: 0 auto; padding: 0 4%; display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo-img { max-height: 50px; display: block; transition: max-height 0.3s ease; }
.header.scrolled .logo-img { max-height: 40px !important; }

/* Hamburger Menu */
.hamburger { display: block; position: relative; z-index: 1001; cursor: pointer; width: 30px; height: 20px; }
.hamburger span { position: absolute; left: 0; width: 100%; height: 2px; background-color: var(--c-primary-dark); transition: all 0.3s ease; }
.header:not(.scrolled) .hamburger span { background-color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.header:not(.scrolled) .hamburger.active span { background-color: var(--c-text); }
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { bottom: 0; }
.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile Navigation */
.global-nav { position: fixed; top: 0; right: -100%; width: 100%; max-width: 300px; height: 100vh; background-color: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); padding-top: 100px; transition: right 0.4s ease; z-index: 1000; box-shadow: -5px 0 20px rgba(0,0,0,0.1); }
.global-nav.active { right: 0; }
.global-nav ul { display: flex; flex-direction: column; gap: 30px; align-items: center; }
.global-nav a { color: var(--c-text); font-size: 1.2rem; font-weight: 500; font-family: var(--f-heading); letter-spacing: 0.05em; text-shadow: none; }
.global-nav a:hover { color: var(--c-accent); }
.global-nav .header-btn { background-color: var(--c-accent); padding: 12px 30px; border-radius: 30px; color: #fff !important; box-shadow: 0 4px 10px rgba(217,160,54,0.3); transition: all 0.3s ease; display: inline-block; white-space: nowrap; }
.global-nav .header-btn:hover { background-color: #c99332; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(217,160,54,0.5); }

/* Hero */
.hero { position: relative; height: 100vh; min-height: 600px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-image { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2; }
.hero-image-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.6)); z-index: -1; }
.hero-content { position: absolute; inset: 0; z-index: 1; mix-blend-mode: screen; pointer-events: none; }
.hero-catch-wrapper { position: relative; width: 100%; height: 100%; }
.hero-logo-img { position: absolute; top: 12%; left: 50%; transform: translateX(-50%); max-width: 400px; width: 70%; height: auto; filter: invert(1) grayscale(100%) contrast(200%); }
.hero-catch-img { position: absolute; top: 55%; left: 50%; transform: translate(-50%, -50%); max-width: 800px; width: 90%; height: auto; filter: invert(1) grayscale(100%) contrast(500%); clip-path: inset(0 100% 0 0); animation: drawText 10s cubic-bezier(0.4, 0.0, 0.2, 1) forwards 0.8s; } /* アニメーション速度を修正: 5s -> 10s */
@keyframes drawText {
  0% { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}
.scroll-indicator { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; color: #fff; font-size: 0.8rem; letter-spacing: 0.2em; opacity: 0.9; }
.scroll-indicator .line { width: 1px; height: 40px; background-color: rgba(255,255,255,0.3); margin-top: 10px; position: relative; overflow: hidden; }
.scroll-indicator .line::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #fff; animation: scrollDown 2s infinite cubic-bezier(0.65, 0.05, 0.36, 1); }
@keyframes scrollDown { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* Story Sections */
.story-section { padding: 80px 0; overflow: hidden; } /* モバイル用にパディング縮小 */
.story-number { display: block; font-family: var(--f-heading); font-size: 1.1rem; color: var(--c-primary); letter-spacing: 0.1em; margin-bottom: 10px; font-style: italic; }
.section-title { font-size: 1.8rem; margin-bottom: 1.5rem; line-height: 1.4; } /* フォントサイズ調整 */
.story-text { font-size: 1rem; line-height: 2; color: var(--c-text-light); }

/* Photo Grid */
.photo-grid { display: flex; flex-direction: column; gap: 15px; width: 100%; max-width: 800px; margin: 0 auto; }
.photo-grid-row { display: flex; gap: 15px; width: 100%; flex-direction: column; }
.photo-grid-item { flex: 1; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }

/* Collage */
.collage { position: relative; min-height: auto; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.story-img.main-visual { width: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.bottom-left { position: relative; width: 80%; border-radius: 12px; border: 6px solid #F9F6F0; margin-top: -40px; z-index: 2; }
.inline-img { max-width: 100%; border-radius: 8px; }

/* Profile */
.profile-container { flex-direction: column; text-align: center; gap: 30px; }
.profile-img-wrap { width: 100%; max-width: 250px; margin: 0 auto; }
.profile-img { width: 100%; height: auto; }
.profile-text-wrap { width: 100%; text-align: left; }

/* Safety Check */
.safety-img { width: 100%; max-width: 500px; margin: 0 auto; border: 1px solid #eee; }

/* Process Gallery */
.process-section { background-color: #fff; }
.process-container { display: flex; flex-direction: column; width: 100%; height: auto; }
.process-item { position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 30px; border-bottom: 2px solid #fff; height: 50vh; min-height: 350px; width: 100%; }
.process-item:last-child { border-bottom: none; }
.process-item img, .process-item video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform 0.8s ease; filter: brightness(0.85); }
.process-item:hover img, .process-item:hover video { transform: scale(1.05); filter: brightness(1); }
.process-item p { position: relative; z-index: 2; color: #fff; font-size: 1.5rem; font-family: var(--f-heading); font-weight: bold; text-shadow: 0 4px 10px rgba(0,0,0,0.8); background: rgba(0,0,0,0.4); padding: 10px 30px; border-radius: 40px; backdrop-filter: blur(5px); text-align: center; width: 80%; }

/* Products Layout */
.product-showcase { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.06); width: 100%; max-width: 500px; margin: 0 auto; transition: transform 0.4s ease; }
.showcase-video { background: transparent; box-shadow: none; overflow: visible; display: block; aspect-ratio: 16/9; }
.product-img-wrapper { height: auto; aspect-ratio: 4/3; overflow: hidden; }
.product-img-wrapper img { transition: transform 0.6s ease; }
.product-showcase:hover .product-img-wrapper img { transform: scale(1.05); }
.product-info { padding: 30px 20px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.product-info h3 { font-size: 1.4rem; margin-bottom: 10px; color: var(--c-primary-dark); }
.product-info p { color: var(--c-text-light); }
.min-h-120 { min-height: 120px; }

/* Accompaniments */
.products-subheading { font-family: var(--f-heading); font-size: 1.5rem; color: var(--c-primary-dark); }
.accompaniments-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; justify-content: center; width: 100%; }
.accompaniment-item { background: transparent; box-shadow: none; overflow: visible; margin: 0; }

/* Reviews */
.reviews-container { position: relative; overflow: hidden; margin-top: 30px; padding: 20px 0; width: 100vw; margin-left: calc(-50vw + 50%); display:flex; }
.marquee-content { display: flex; gap: 20px; width: max-content; animation: scrollLeft 70s linear infinite; }
.marquee-content:hover { animation-play-state: paused; }
@keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-50% - 10px)); } }
.tweet-wrapper { width: 300px; flex-shrink: 0; display: flex; justify-content: center; align-items: flex-start; }

/* Web3 */
.web3-item { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; }
.video-wrapper { position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); width: 100%; }
.video-full { width: 100%; height: auto; display: block; }
.with-glow::after { content: ''; position: absolute; inset: -10px; background: radial-gradient(circle, rgba(116, 194, 225, 0.3) 0%, transparent 60%); z-index: -1; pointer-events: none; }
.jpyc-section { background: rgba(255,255,255,0.8); padding: 30px 20px; border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 10px 40px rgba(0,0,0,0.03); }
.jpyc-heading { font-size: 1.4rem; }
.jpyc-item { flex: 1; background: #fff; padding: 20px; border-radius: 16px; text-align: center; display: flex; flex-direction: column; align-items: center; width: 100%; }
.jpyc-item h4 { font-size: 1.1rem; color: #2E5C9A; margin: 15px 0 10px; }
.jpyc-img { height: auto; max-height: 200px; width: 100%; object-fit: contain; }
.small-text { font-size: 0.9rem; color: var(--c-text-light); line-height: 1.6; }

/* Stores */
.links { padding: 60px 0; }
.store-card { flex: 1; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s; box-shadow: 0 10px 30px rgba(0,0,0,0.1); width: 100%; }
.store-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.store-img { height: 200px; overflow: hidden; background: #f5f5f5; }
.store-img img { width: 100%; height: 100%; object-fit: contain; padding: 20px; background: #fff;}
.store-content { padding: 30px 20px; display: flex; flex-direction: column; flex-grow: 1; text-align: left; }
.store-content h3 { font-size: 1.2rem; margin-bottom: 10px; }
.store-content h3 small { display: block; font-size: 0.85rem; color: #888; margin-top: 5px; }
.store-content p { color: #555; margin-bottom: 20px; flex-grow: 1; line-height: 1.6; font-size: 0.95rem; }

/* Links / CTA */
.btn { display: inline-block; padding: 14px 30px; border-radius: 40px; font-size: 1rem; font-weight: bold; text-align: center; transition: all 0.3s ease; width: 100%; }
.btn-primary { background-color: var(--c-accent); color: #fff; box-shadow: 0 5px 20px rgba(217, 160, 54, 0.4); }
.btn-primary:hover { background-color: #c99332; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(217, 160, 54, 0.6); }
.btn-secondary { background-color: #2E5C9A; color: #fff; box-shadow: 0 5px 20px rgba(46, 92, 154, 0.4); }
.btn-secondary:hover { background-color: #1e457c; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(46, 92, 154, 0.6); color: #fff;}
.social-links h3 { font-size: 1.1rem; margin-bottom: 20px; color: rgba(255,255,255,0.8); border-top: 1px solid rgba(255,255,255,0.2); display: inline-block; padding-top: 30px; }
.social-icons { display: flex; justify-content: center; gap: 15px; }
.social-icon { background: rgba(255,255,255,0.05); padding: 10px 20px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.1); color: #fff; transition: all 0.3s; font-size: 0.9rem; }
.social-icon:hover { background: rgba(255,255,255,0.2); border-color: #fff; }

/* Footer */
.footer { background-color: #16240D; padding: 50px 0; color: rgba(255,255,255,0.4); }
.footer-logo img { max-height: 180px; }

/* Animations */
.fade-in { opacity: 0; animation: fadeIn 1.5s ease forwards; }
.fade-in-up { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
@keyframes fadeIn { to { opacity: 1; } }

/* PC / Tablet adjustments (Overriding Mobile First) */
@media (min-width: 768px) {
  /* Display Helpers */
  .pc-only { display: block !important; }
  .sp-only { display: none !important; }

  /* Layouts */
  .flex-container { flex-direction: row; justify-content: space-between; gap: 60px; text-align: left; }
  .flex-container.reverse { flex-direction: row-reverse; }
  .text-box { flex: 1; max-width: 500px; }
  .image-box { flex: 1.2; }
  .story-section { padding: 120px 0; }
  .section-title { font-size: 2.2rem; }
  .story-text { font-size: 1.1rem; }
  .story-number { font-size: 1.2rem; }
  
  /* Photo Grid */
  .photo-grid-row { flex-direction: row; }
  
  /* Settings Collage */
  .collage { min-height: 500px; display: flex; align-items: center; gap: 0; }
  .bottom-left { position: absolute; bottom: -40px; left: -40px; width: 50%; border-radius: 12px; border: 8px solid #F9F6F0; margin-top: 0; }

  /* Profile */
  .profile-container { flex-direction: row; text-align: left; gap: 40px; align-items: flex-start; }
  .profile-img-wrap { flex: 1; }
  .profile-text-wrap { flex: 2; padding-top: 10px; }
  
  /* Hero */
  .hero-catch-img { width: 80%; top: 60%; }
  
  /* Process */
  .process-item { height: 80vh; min-height: 500px; }
  .process-item p { font-size: 2.5rem; padding: 15px 50px; width: auto; }

  /* Products */
  .products-subheading { font-size: 1.8rem; }
  .accompaniments-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .product-img-wrapper { height: 350px; }
  .product-info h3 { font-size: 1.6rem; }
  
  /* Web3 */
  .jpyc-section { padding: 50px; }
  .jpyc-heading { font-size: 1.8rem; }
  .jpyc-img { height: 220px; max-height: none; }
  
  /* Stores */
  .links { padding: 100px 0; }
  .store-img { height: 250px; }
  .store-content { padding: 40px; }
  .store-content h3 { font-size: 1.4rem; }
  .btn { width: auto; font-size: 1.1rem; padding: 18px 40px; }
  
  /* Reviews */
  .tweet-wrapper { width: 350px; }
  @keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-50% - 15px)); } }
  
  /* Nav Header Overrides */
  .hamburger { display: none; }
  .logo-img { max-height: 80px; }
  .header.scrolled .logo-img { max-height: 50px !important; }
  .global-nav { position: static; width: auto; height: auto; background: transparent; padding-top: 0; backdrop-filter: none; box-shadow: none; transition: none; display: block; }
  .global-nav ul { flex-direction: row; gap: 2vw; justify-content: flex-end; align-items: center; }
  .global-nav a { color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.3); font-size: 1rem; }
  .header.scrolled .global-nav a { color: var(--c-text); text-shadow: none; }
  .global-nav .header-btn { text-shadow: none !important; color: #fff !important; padding: 10px 24px; }
}

@media (min-width: 992px) {
  /* Process Layout adjustments */
  .process-container { flex-direction: row; height: auto; }
  .process-item { border-right: 2px solid #fff; border-bottom: none; width: 33.333%; padding-bottom: 50px;}
  .products-hero-row { max-height: 500px; }
  .accompaniments-grid { display: flex; flex-wrap: wrap; }
  .accompaniment-item { flex: 1; min-width: 250px; }
}
