/* ════════════════════════════════════════════════
   株式会社ケイハン — メインスタイルシート
   css/index.css
════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:       #F5F0E8;
  --warm-white:  #FDFAF4;
  --wheat:       #E8D5B0;
  --crust:       #C4903A;
  --dark-crust:  #8B5E1A;
  --deep-brown:  #2C1810;
  --charcoal:    #3D3530;
  --sage:        #7A8C6E;
  --text-main:   #2C1810;
  --text-muted:  #7A6B5A;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Zen Kaku Gothic New', 'Hiragino Kaku Gothic Pro', sans-serif;
  --max-w:  1280px;
  --nav-h:  72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--warm-white);
  color: var(--text-main);
  font-weight: 300;
  line-height: 1.8;
  overflow-x: hidden;
}

/* ────────────────────────────────────
   NAV
──────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(253,250,244,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196,144,58,0.15);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.nav-logo {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans";
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-crust);
  letter-spacing: 0.04em;
  text-decoration: none;
  line-height: 1.2;
}
.nav-logo span {
  display: block;
  font-size: 0.65rem;
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--charcoal);
  font-weight: 400;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--crust); }

.nav-cta {
  background: var(--crust) !important;
  color: #fff !important;
  padding: 0.5rem 1.4rem;
  border-radius: 2px;
  font-size: 0.76rem !important;
  letter-spacing: 0.08em !important;
  transition: background 0.25s !important;
}
.nav-cta:hover { background: var(--dark-crust) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--charcoal);
  transition: 0.3s;
}

/* ────────────────────────────────────
   HERO
──────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: var(--nav-h);
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem clamp(2rem, 6vw, 6rem) 6rem clamp(1.5rem, 5vw, 4rem);
  position: relative;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--crust);
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--crust);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.12;
  color: var(--deep-brown);
  margin-bottom: 2rem;
}
.hero-title em {
  font-style: italic;
  color: var(--crust);
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 70ch;
  line-height: 2;
  margin-bottom: 3rem;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(253,250,244,0.18) 0%, transparent 40%);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--wheat);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--crust);
  animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%   { left: -100%; }
  50%  { left: 0; }
  100% { left: 100%; }
}

/* ────────────────────────────────────
   BUTTONS
──────────────────────────────────── */
.btn-primary {
  background: var(--deep-brown);
  color: #fff;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.25s, transform 0.2s;
  border-radius: 2px;
}
.btn-primary:hover { background: var(--charcoal); transform: translateY(-1px); }

.btn-outline {
  border: 1px solid var(--crust);
  color: var(--crust);
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s;
  border-radius: 2px;
}
.btn-outline:hover { background: var(--crust); color: #fff; }

/* ────────────────────────────────────
   MARQUEE
──────────────────────────────────── */
.marquee-section {
  background: var(--deep-brown);
  color: var(--wheat);
  padding: 1rem 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}
.marquee-item {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  letter-spacing: 0.05em;
  padding: 0 2.5rem;
  flex-shrink: 0;
}
.marquee-dot { color: var(--crust); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ────────────────────────────────────
   SECTION COMMONS
──────────────────────────────────── */
section { padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 5vw, 4rem); }

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--crust);
  font-weight: 400;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--deep-brown);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.section-title em { font-style: italic; color: var(--crust); }

/* ────────────────────────────────────
   NEWS
──────────────────────────────────── */
.news {
  background: var(--warm-white);
  padding: clamp(4rem, 7vw, 7rem) clamp(1.5rem, 5vw, 4rem);
}

.news-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.news-list {
  list-style: none;
  border-top: 1px solid var(--wheat);
}

.news-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--wheat);
  transition: background 0.2s;
}
.news-item:hover { background: rgba(245,240,232,0.6); margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; }

.news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.news-date {
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  white-space: nowrap;
}

/* タグカラー */
.news-tag {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  padding: 2px 10px;
  border-radius: 2px;
  white-space: nowrap;
  font-weight: 400;
}
.news-tag--info    { background: rgba(196,144,58,0.12);  color: var(--dark-crust); border: 1px solid rgba(196,144,58,0.3); }
.news-tag--shop    { background: rgba(122,140,110,0.12); color: #4a6640;            border: 1px solid rgba(122,140,110,0.35); }
.news-tag--holiday { background: rgba(61,53,48,0.08);    color: var(--charcoal);    border: 1px solid rgba(61,53,48,0.2); }
.news-tag--new     { background: rgba(185,64,64,0.08);   color: #943030;            border: 1px solid rgba(185,64,64,0.25); }

.news-title-link {
  font-size: 0.92rem;
  color: var(--charcoal);
  text-decoration: none;
  line-height: 1.7;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  display: block;
}
.news-title-link:hover { color: var(--crust); }
.news-title-link::after {
  content: ' →';
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  display: inline-block;
  transform: translateX(-4px);
  color: var(--crust);
}
.news-item:hover .news-title-link::after {
  opacity: 1;
  transform: translateX(2px);
}

/* ────────────────────────────────────
   PHILOSOPHY
──────────────────────────────────── */
.philosophy {
  background: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  min-height: 520px;
}
.philosophy-img { overflow: hidden; }
.philosophy-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}
.philosophy-img:hover img { transform: scale(1.04); }

.philosophy-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 6rem);
}

.philosophy-quote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-style: italic;
  color: var(--dark-crust);
  line-height: 1.6;
  border-left: 2px solid var(--crust);
  padding-left: 1.5rem;
  margin: 1.5rem 0 2rem;
}
.philosophy-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 2;
}

/* ────────────────────────────────────
   STATS
──────────────────────────────────── */
.stats {
  background: var(--deep-brown);
  padding: clamp(4rem, 6vw, 6rem) clamp(1.5rem, 5vw, 4rem);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  border: 1px solid rgba(196,144,58,0.25);
}
.stat-item {
  padding: 3rem 2rem;
  border-right: 1px solid rgba(196,144,58,0.25);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--wheat);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-num span { font-size: 1.4rem; color: var(--crust); }
.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}

/* ────────────────────────────────────
   RECIPE BANNER
──────────────────────────────────── */
.recipe-banner {
  background: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  min-height: 500px;
}
.recipe-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 6rem);
  order: 1;
}
.recipe-img {
  overflow: hidden;
  order: 2;
}
.recipe-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}
.recipe-img:hover img { transform: scale(1.04); }

.step-list {
  list-style: none;
  margin: 1.5rem 0 2.5rem;
}
.step-list li {
  display: flex;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(196,144,58,0.2);
  font-size: 0.88rem;
  color: var(--text-muted);
  align-items: flex-start;
}
.step-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--crust);
  line-height: 1;
  flex-shrink: 0;
  min-width: 1.8rem;
}
.recipe-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ────────────────────────────────────
   SUPPLIERS
──────────────────────────────────── */
.suppliers { background: var(--warm-white); }
.suppliers-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.supplier-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin-top: 3rem;
  border: 1px solid var(--wheat);
}
.supplier-logo-item {
  flex: 1 1 200px;
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--wheat);
  border-bottom: 1px solid var(--wheat);
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: color 0.25s, background 0.25s;
  cursor: default;
  text-align: center;
  line-height: 1.6;
}
.supplier-logo-item:hover { 
  color: var(--dark-crust); background: var(--cream); 
}
/* SUPPLIERS — リンクのアンダーライン除去・色を親要素に合わせる */
.supplier-logo-item a {
  text-decoration: none;
  color: inherit;
}
.supplier-logo-item:hover a {
  color: inherit;
}


/* ────────────────────────────────────
   COMPANY INFO
──────────────────────────────────── */
.company { background: var(--cream); }
.company-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: start;
}
.company-map {
  border: none;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  filter: sepia(0.2) contrast(0.95);
}
.info-table {
  width: 100%;
  border-collapse: collapse;
}
.info-table tr { border-bottom: 1px solid rgba(196,144,58,0.2); }
.info-table td {
  padding: 1rem 0;
  vertical-align: top;
  font-size: 0.88rem;
}
.info-table td:first-child {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crust);
  width: 9rem;
  font-weight: 400;
  padding-right: 1.5rem;
}
.info-table td:last-child { color: var(--charcoal); line-height: 1.7; }
.tel-link { color: var(--dark-crust); text-decoration: none; }
.tel-link:hover { text-decoration: underline; }
.company-sub { font-size: 0.82rem; color: var(--text-muted); }

/* ────────────────────────────────────
   CONTACT
──────────────────────────────────── */
.contact {
  background: var(--deep-brown);
  text-align: center;
  padding: clamp(5rem, 10vw, 10rem) clamp(1.5rem, 5vw, 4rem);
}
.contact .section-title { color: var(--wheat); }
.contact .section-label { color: var(--crust); }
.contact-sub {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  margin-bottom: 3rem;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}
.contact-cards {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}
.contact-card {
  border: 1px solid rgba(196,144,58,0.3);
  padding: 2rem 2.5rem;
  min-width: 200px;
  transition: border-color 0.25s, background 0.25s;
  cursor: default;
}
.contact-card:hover { border-color: var(--crust); background: rgba(196,144,58,0.06); }
/* CONTACT — カード内リンクのアンダーライン除去・色を親要素に合わせる */
.contact-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.contact-card-icon { font-size: 1.6rem; margin-bottom: 0.5rem; display: block; }
.contact-card-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crust);
  margin-bottom: 0.5rem;
}
.contact-card-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--wheat);
  letter-spacing: 0.03em;
}

/* ────────────────────────────────────
   FOOTER
──────────────────────────────────── */
footer {
  background: #1A0E08;
  color: rgba(255,255,255,0.3);
  text-align: center;
  padding: 2.5rem clamp(1.5rem, 5vw, 4rem);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
footer a { color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--crust); }
.footer-logo {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans";
  font-size: 1rem;
  font-style: italic;
  color: rgba(255,255,255,0.5);
}

/* ────────────────────────────────────
   ANIMATIONS
──────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ────────────────────────────────────
   RESPONSIVE
──────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-links { gap: 1.5rem; }
  .nav-links a { font-size: 0.74rem; }
}

@media (max-width: 900px) {
  .nav-links    { display: none; }
  .nav-hamburger { display: flex; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-image { height: 55vw; min-height: 280px; }
  .hero-scroll-hint { display: none; }

  /* News */
  .news-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .news-meta { gap: 0.75rem; }

  .philosophy { grid-template-columns: 1fr; }
  .philosophy-img { height: 60vw; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid rgba(196,144,58,0.25); }

  .recipe-banner { grid-template-columns: 1fr; }
  .recipe-img { height: 60vw; order: -1; }

  .company-inner { grid-template-columns: 1fr; gap: 2.5rem; }

  footer { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 2.4rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .news-header { flex-direction: column; align-items: flex-start; }
  .news-item:hover { margin: 0; padding-left: 0; padding-right: 0; }
}
