/*
Theme Name: MORIKULO
Theme URI: https://morikulo.jp/
Author: MORIKULO JAPAN
Description: MORIKULO JAPAN brand website theme with Customizer image settings.
Version: 1.7.0
Text Domain: morikulo
*/

:root {
  --font-en: 'Inter', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;
  --color-black: #111111;
  --color-dark: #222222;
  --color-gray: #666666;
  --color-light: #f5f5f5;
  --color-white: #ffffff;
  --color-accent: #1e3a5f;
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ja);
  color: var(--color-black);
  line-height: 1.6;
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.section-pad { padding: 120px 0; }
.bg-light { background-color: var(--color-light); }
.text-center { text-align: center; }
.mt-4 { margin-top: 25px; }
.mt-5 { margin-top: 50px; }

h1, h2, h3, .en-label, .en-desc { font-family: var(--font-en); }
h2 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.en-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gray);
  margin-bottom: 10px;
}

.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.admin-bar .header { top: 32px; }
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}
.brand .mark {
  font-size: 1.5rem;
  color: var(--color-accent);
}

.header-brand-logo {
  display: block;
  width: auto;
  height: 52px;
  max-width: 240px;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 768px) {
  .header-brand-logo {
    height: 40px;
    max-width: 180px;
  }
}
.menu-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-en);
  font-weight: 600;
}
.menu-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.menu-lines i {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-black);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 20px;
}
.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}
.hero-brand .mark {
  font-family: var(--font-en);
  font-weight: 800;
  color: var(--color-white);
}
.hero-brand .brand-name {
  font-family: var(--font-en);
  font-weight: 800;
  letter-spacing: 0.08em;
}
.hero-brand-logo {
  display: block;
  width: min(300px, 58vw);
  max-height: 120px;
  object-fit: contain;
}
.hero-kicker {
  font-family: var(--font-en);
  letter-spacing: 0.15em;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.en-sub {
  display: inline-block;
  margin-top: 5px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  opacity: 0.65;
}
.hero h1 {
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.en-main {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.58em;
}
.hero h1 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 2px var(--color-white);
}
.hero-ja {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
}
.scroll-indicator .line {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}
.scroll-indicator .line::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--color-white);
  animation: scrollDrop 2s infinite ease-in-out;
}
@keyframes scrollDrop {
  0% { transform: translateY(-100%); }
  50% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

.about { position: relative; overflow: hidden; }
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.55fr;
  gap: 40px;
  align-items: center;
}
.about-logo-panel {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.about-brand-logo {
  width: min(100%, 300px);
  max-height: 260px;
  object-fit: contain;
}
.about-logo-fallback {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  letter-spacing: 0.08em;
  color: #d7d7d7;
}
.about-subtitle {
  font-family: var(--font-ja);
  font-size: 1.55rem;
  line-height: 1.55;
  margin-bottom: 25px;
}
.en-desc {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 30px;
}
.ja-desc {
  color: var(--color-gray);
  margin-bottom: 40px;
}
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 2px solid var(--color-black);
  padding-bottom: 5px;
  transition: opacity 0.3s;
}
.arrow-link:hover { opacity: 0.6; }
.wave-ornament {
  position: absolute;
  bottom: -50px; left: -50px;
  width: 400px; height: 400px;
  background:
    radial-gradient(circle, transparent 20%, rgba(30,58,95,0.03) 21%, rgba(30,58,95,0.03) 34%, transparent 35%, transparent),
    radial-gradient(circle, transparent 20%, rgba(30,58,95,0.03) 21%, rgba(30,58,95,0.03) 34%, transparent 35%, transparent);
  background-size: 60px 60px;
  background-position: 0 0, 30px 30px;
  z-index: -1;
  border-radius: 50%;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-top: 70px;
}
.a-stat {
  border-top: 1px solid #ddd;
  padding-top: 25px;
}
.a-num {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(4.5rem, 10vw, 8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
}
.a-num em {
  color: var(--color-accent);
  font-size: 0.45em;
  font-style: normal;
  vertical-align: top;
}
.a-text {
  display: block;
  margin-top: 12px;
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--color-gray);
}

.product-carousel-wrap {
  margin-top: 60px;
  overflow-x: auto;
  padding: 0 5% 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.product-carousel-wrap::-webkit-scrollbar { display: none; }
.product-carousel {
  display: flex;
  gap: 30px;
  width: max-content;
}
.product-card {
  width: 320px;
  display: block;
}
.card-img {
  height: 400px;
  background-color: var(--color-dark);
  background-size: cover;
  background-position: center;
  margin-bottom: 20px;
  transition: transform 0.5s var(--ease-out);
}
.product-card:hover .card-img { transform: translateY(-10px); }
.card-info { font-family: var(--font-en); }
.card-info .num {
  font-size: 0.8rem;
  color: var(--color-gray);
  display: block;
  margin-bottom: 5px;
}
.card-info .cat {
  font-size: 0.9rem;
  margin-bottom: 5px;
  font-weight: 500;
}
.card-info h3 {
  font-family: var(--font-ja);
  font-size: 1.2rem;
}

.story-header { margin-bottom: 60px; }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.story-images img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.story-text h3 {
  font-size: 1.5rem;
  margin-bottom: 30px;
}
.story-text p {
  color: var(--color-gray);
  margin-bottom: 20px;
}

.vision {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}
.vision-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
}
.vision-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17,17,17,0.6);
  z-index: 2;
}
.vision-content { position: relative; z-index: 3; }
.vision h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin: 20px 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: var(--color-black);
  color: var(--color-white);
  padding: 20px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  margin-top: 30px;
}
.btn-primary:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
}

.footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: 60px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
}
.footer-brand-logo {
  display: block;
  width: auto;
  height: 54px;
  max-width: 260px;
  object-fit: contain;
  object-position: left center;
}
.footer-copy {
  font-size: 0.85rem;
  color: #999;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

@media (max-width: 782px) {
  .admin-bar .header { top: 46px; }
}
@media (max-width: 768px) {
  .about-grid,
  .story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-logo-panel {
    min-height: auto;
    padding: 10px 0 20px;
    justify-content: flex-start;
  }
  .about-brand-logo {
    width: min(220px, 68vw);
    max-height: 170px;
  }
  .hero-brand-logo {
    width: min(210px, 60vw);
    max-height: 90px;
  }
  .section-pad { padding: 80px 0; }
  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .wave-ornament { display: none; }
  .about-stats { grid-template-columns: 1fr; gap: 28px; }
  .product-card { width: 78vw; max-width: 320px; }
  .hero-ja { font-size: 0.9rem; letter-spacing: 0.05em; }
  .hero-brand { margin-bottom: 22px; }
  .vision-bg { background-attachment: scroll; }
}


/* ========================================
   OFFICIAL STORE / AMAZON CTA
======================================== */
.contact {
  background: #f7f7f5;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 88px;
  align-items: center;
}
.contact-product {
  min-width: 0;
}
.contact-product img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}
.contact-copy {
  text-align: left;
}
.contact-copy .en-label {
  margin-bottom: 20px;
  color: #747a80;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.20em;
}
.contact-copy h2 {
  margin: 0 0 26px;
  color: #111111;
  font-size: clamp(2.7rem, 4.5vw, 4.5rem);
  font-weight: 650;
  line-height: 1.14;
  letter-spacing: -0.04em;
}
.contact-description {
  margin: 0 0 36px;
  color: #62676c;
  font-size: 1rem;
  line-height: 1.9;
}
.amazon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 360px;
  padding: 19px 27px;
  border: 1px solid #f0c200;
  border-radius: 999px;
  background: #ffd814;
  color: #111111;
  box-shadow: 0 2px 5px rgba(15, 17, 17, 0.12);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.amazon-btn:hover {
  background: #f7ca00;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 17, 17, 0.16);
}
.amazon-arrow {
  flex: 0 0 auto;
  font-family: var(--font-en);
  font-size: 1.3rem;
  line-height: 1;
}
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .contact-product img {
    max-width: 420px;
  }
  .contact-copy {
    text-align: left;
  }
  .contact-copy h2 {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }
  .contact-description {
    font-size: 0.92rem;
  }
  .amazon-btn {
    width: 100%;
    min-width: 0;
    padding: 18px 22px;
    font-size: 0.95rem;
  }
}


/* ========================================
   MORIKULO REASONS
======================================== */
.reasons {
  background: #ffffff;
}
.reasons-heading {
  max-width: 820px;
  margin: 0 auto 58px;
  text-align: center;
}
.reasons-heading .en-label {
  margin-bottom: 12px;
  color: #9b111e;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
}
.reasons-heading h2 {
  margin: 0;
  color: #111;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.035em;
}
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #dcdcdc;
  border-left: 1px solid #dcdcdc;
}
.reason-card {
  min-width: 0;
  padding: 24px 24px 34px;
  border-right: 1px solid #dcdcdc;
  border-bottom: 1px solid #dcdcdc;
  background: #fff;
}
.reason-image {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 28px;
  background: #f2f2f0;
}
.reason-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.reason-card:hover .reason-image img {
  transform: scale(1.025);
}
.reason-num {
  display: block;
  margin-bottom: 12px;
  color: #9b111e;
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.reason-body h3 {
  min-height: 3.2em;
  margin-bottom: 18px;
  color: #111;
  font-family: var(--font-ja);
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.6;
  text-align: center;
}
.reason-body p {
  margin: 0;
  color: #62676c;
  font-size: 0.94rem;
  line-height: 1.95;
}

@media (max-width: 768px) {
  .reasons-heading {
    margin-bottom: 38px;
    text-align: left;
  }
  .reasons-heading h2 {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }
  .reasons-grid {
    grid-template-columns: 1fr;
  }
  .reason-card {
    padding: 20px 20px 30px;
  }
  .reason-image {
    margin-bottom: 22px;
  }
  .reason-body h3 {
    min-height: auto;
    font-size: 1.18rem;
    text-align: left;
  }
  .reason-body p {
    font-size: 0.92rem;
  }
  .footer-brand-logo {
    height: 44px;
    max-width: 200px;
    margin: 0 auto;
  }
}


/* ========================================
   REASONS BACKGROUND
======================================== */

.reasons {
  position: relative;
  background-color: #ffffff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.reasons.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(247, 247, 245, 0.84);
  z-index: 0;
}

.reasons.has-bg .container {
  position: relative;
  z-index: 1;
}

.reasons.has-bg .reason-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

@media (max-width: 768px) {
  .reasons {
    background-position: center;
  }

  .reasons.has-bg::before {
    background: rgba(247, 247, 245, 0.89);
  }
}


/* ========================================
   LANGUAGE SWITCH / JP EN
======================================== */
.language-switch {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-en);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.lang-btn {
  appearance: none;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #a2a2a2;
  font: inherit;
  cursor: pointer;
  transition: color .2s ease, opacity .2s ease;
}
.lang-btn:hover,
.lang-btn.is-active { color: #111; }
.lang-divider { color: #c5c5c5; font-size: .68rem; }

.lang-block { display: block; }
.lang-inline { display: inline; }
.i18n-en { display: none !important; }
html[data-morikulo-lang="en"] .i18n-ja { display: none !important; }
html[data-morikulo-lang="en"] .i18n-en.lang-block { display: block !important; }
html[data-morikulo-lang="en"] .i18n-en.lang-inline { display: inline !important; }

html[data-morikulo-lang="en"] .hero h1,
html[data-morikulo-lang="en"] .about .section-title h2,
html[data-morikulo-lang="en"] .about-subtitle,
html[data-morikulo-lang="en"] .story-header h2,
html[data-morikulo-lang="en"] .story-text h3,
html[data-morikulo-lang="en"] .reasons-heading h2,
html[data-morikulo-lang="en"] .reason-body h3,
html[data-morikulo-lang="en"] .contact-copy h2 {
  font-family: var(--font-en);
}

@media (max-width: 768px) {
  .language-switch { gap: 7px; font-size: .7rem; }
}


/* ========================================
   PRODUCT AMAZON BUTTONS
======================================== */

.product-detail-link,
.product-name-link {
  color: inherit;
  text-decoration: none;
}

.product-name-link {
  transition: opacity 0.2s ease;
}

.product-name-link:hover {
  opacity: 0.62;
}

.product-amazon-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-top: 20px;
  padding: 14px 18px;
  border: 1px solid #f0c200;
  border-radius: 999px;
  background: #ffd814;
  color: #111;
  font-family: var(--font-ja);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(15,17,17,0.10);
  transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.product-amazon-btn:hover {
  background: #f7ca00;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(15,17,17,0.14);
}

.product-amazon-arrow {
  flex: 0 0 auto;
  font-family: var(--font-en);
  font-size: 1.05rem;
}

@media (max-width: 768px) {
  .product-amazon-btn {
    margin-top: 16px;
    padding: 15px 19px;
    font-size: 0.92rem;
  }
}
