/* ============================================
   株式会社オカモトトレーディング 公式サイト
   完全動作版 style.css【2026/05/14・本開設版】
============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: "Noto Serif JP", "Yu Mincho", "游明朝", "YuMincho", "Hiragino Mincho ProN", serif;
  color: #1a1a1a;
  background-color: #f5f1ea;
  line-height: 1.8;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity 0.3s ease; }
a:hover { opacity: 0.7; }

/* ヘッダー */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%;
  background-color: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(168, 134, 74, 0.3);
}
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.site-logo { color: #f5f1ea; font-size: 1.1rem; font-weight: 500; letter-spacing: 0.15em; }
.site-logo span { display: block; font-family: "Cormorant Garamond", serif; font-size: 0.75rem; color: #a8864a; letter-spacing: 0.25em; margin-top: 0.2rem; }
.global-nav ul { display: flex; list-style: none; gap: 2.5rem; }
.global-nav a { color: #f5f1ea; font-size: 0.9rem; letter-spacing: 0.15em; position: relative; padding-bottom: 0.3rem; }
.global-nav a::after { content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background-color: #a8864a; transition: width 0.3s ease; }
.global-nav a:hover::after, .global-nav a.current::after { width: 100%; }
.menu-toggle { display: none; background: none; border: none; color: #f5f1ea; cursor: pointer; padding: 0.5rem; z-index: 1001; }
.menu-toggle span { display: block; width: 28px; height: 1px; background-color: #f5f1ea; margin: 6px 0; transition: all 0.3s ease; }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 言語切替ボタン(白文字版) */
.site-header .lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 2rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
}
.site-header .lang-switcher a,
.site-header .lang-switcher a:link,
.site-header .lang-switcher a:visited {
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  transition: all 0.3s ease;
  text-decoration: none;
  line-height: 1;
  background-color: transparent;
}
.site-header .lang-switcher a:hover {
  color: #1a1a1a;
  background-color: #a8864a;
  border-color: #a8864a;
}
.site-header .lang-switcher a.active,
.site-header .lang-switcher a.active:link,
.site-header .lang-switcher a.active:visited {
  color: #1a1a1a;
  background-color: #a8864a;
  border-color: #a8864a;
  font-weight: 500;
}
.site-header .lang-switcher span {
  color: #ffffff;
  margin: 0 0.1rem;
  opacity: 0.6;
}

/* メインビジュアル */
.hero {
  height: 100vh; min-height: 600px;
  background-image:
    linear-gradient(rgba(26, 26, 26, 0.5), rgba(26, 26, 26, 0.6)),
    url("../images/hero.jpg"),
    linear-gradient(135deg, #2a1f15 0%, #1a1a1a 50%, #3d2b1f 100%);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  background-color: #1a1a1a;
  display: flex; align-items: center; justify-content: center;
  color: #f5f1ea; text-align: center; position: relative;
}
.hero-content { max-width: 800px; padding: 0 2rem; }
.hero-tagline { font-family: "Cormorant Garamond", serif; font-size: 1.1rem; letter-spacing: 0.4em; color: #a8864a; margin-bottom: 1.5rem; text-transform: uppercase; }
.hero-title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 400; letter-spacing: 0.15em; line-height: 1.6; margin-bottom: 2rem; }
.hero-subtitle { font-size: 1rem; letter-spacing: 0.1em; line-height: 2; opacity: 0.9; }
.scroll-indicator { position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%); color: #a8864a; font-family: "Cormorant Garamond", serif; font-size: 0.8rem; letter-spacing: 0.3em; }
.scroll-indicator::after { content: ""; display: block; width: 1px; height: 40px; background-color: #a8864a; margin: 0.8rem auto 0; animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0%, 100% { transform: scaleY(0.3); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }

/* 下層ページヘッダー */
.page-hero {
  height: 50vh; min-height: 320px;
  background-image:
    linear-gradient(rgba(26, 26, 26, 0.55), rgba(26, 26, 26, 0.65)),
    url("../images/hero.jpg"),
    linear-gradient(135deg, #2a1f15 0%, #1a1a1a 50%, #3d2b1f 100%);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  background-color: #1a1a1a;
  display: flex; align-items: center; justify-content: center;
  color: #f5f1ea; text-align: center; padding-top: 80px;
}
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 400; letter-spacing: 0.3em; margin-bottom: 0.8rem; }
.page-hero .en { font-family: "Cormorant Garamond", serif; font-size: 0.9rem; letter-spacing: 0.4em; color: #a8864a; text-transform: uppercase; }

/* セクション共通 */
.section { padding: 4.5rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title .en { display: block; font-family: "Cormorant Garamond", serif; font-size: 0.9rem; letter-spacing: 0.4em; color: #a8864a; margin-bottom: 0.8rem; text-transform: uppercase; }
.section-title h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 400; letter-spacing: 0.25em; color: #1a1a1a; position: relative; display: inline-block; padding-bottom: 1rem; }
.section-title h2::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 40px; height: 1px; background-color: #a8864a; }
.section-lead { text-align: center; max-width: 700px; margin: 0 auto 3rem; font-size: 1rem; line-height: 2.2; color: #3d2b1f; }
.intro { background-color: #f5f1ea; text-align: center; padding: 4rem 2rem; }
.intro p { font-size: 1.05rem; line-height: 2.4; color: #3d2b1f; max-width: 720px; margin: 2rem auto 0; }

/* 画像セクション */
.hero-visual { position: relative; margin: 2.5rem auto 0; max-width: 560px; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid rgba(168, 134, 74, 0.35); box-shadow: 0 30px 60px rgba(0,0,0,0.55); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.92) contrast(1.05); }
.product-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 2rem auto; max-width: 960px; }
.product-gallery figure { margin: 0; background: #0f0f10; border: 1px solid rgba(168,134,74,0.25); padding: 1rem; text-align: center; }
.product-gallery img { width: 100%; height: 200px; object-fit: cover; display: block; }
.product-gallery figcaption { margin-top: 0.8rem; font-size: 0.85rem; letter-spacing: 0.12em; color: #a8864a; }
.product-gallery figure.no-image { display: none; }
.craft-photo { width: 100%; max-width: 700px; max-height: 460px; object-fit: cover; margin: 2rem auto; display: block; border: 1px solid rgba(168,134,74,0.3); filter: brightness(0.95) contrast(1.08) saturate(0.95); }
.about-photo { width: 100%; max-width: 620px; max-height: 420px; object-fit: cover; margin: 1.5rem auto; display: block; border: 1px solid rgba(168,134,74,0.3); }

/* トップ3コラム */
.feature-grid { background-color: #1a1a1a; color: #f5f1ea; padding: 6rem 2rem; }
.feature-grid-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.feature-card { text-align: center; padding: 2rem; border: 1px solid rgba(168, 134, 74, 0.3); transition: all 0.4s ease; }
.feature-card:hover { background-color: rgba(168, 134, 74, 0.08); transform: translateY(-5px); }
.feature-card .num { font-family: "Cormorant Garamond", serif; font-size: 1rem; color: #a8864a; letter-spacing: 0.3em; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.2rem; font-weight: 400; letter-spacing: 0.2em; margin-bottom: 1.2rem; }
.feature-card p { font-size: 0.9rem; line-height: 2; color: #c8c0b0; margin-bottom: 1.5rem; }
.feature-card a.more { display: inline-block; font-family: "Cormorant Garamond", serif; font-size: 0.85rem; letter-spacing: 0.3em; color: #a8864a; padding-bottom: 0.3rem; border-bottom: 1px solid #a8864a; }

/* コンテンツブロック */
.content-block { margin-bottom: 5rem; }
.content-block:last-child { margin-bottom: 0; }
.content-block h3 { font-size: 1.3rem; font-weight: 400; letter-spacing: 0.2em; color: #3d2b1f; margin-bottom: 1.5rem; padding-left: 1rem; border-left: 2px solid #a8864a; }
.content-block p { font-size: 1rem; line-height: 2.2; color: #3d2b1f; margin-bottom: 1.2rem; }
.content-block p:last-child { margin-bottom: 0; }
.history-table, .company-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.history-table th, .history-table td, .company-table th, .company-table td { padding: 1.2rem 1rem; text-align: left; border-bottom: 1px solid rgba(61, 43, 31, 0.15); vertical-align: top; font-size: 0.95rem; }
.history-table th { font-family: "Cormorant Garamond", serif; font-weight: 500; color: #a8864a; width: 140px; letter-spacing: 0.1em; }
.history-table td, .company-table td { color: #3d2b1f; line-height: 1.9; }
.company-table th { width: 150px; color: #a8864a; font-weight: 500; letter-spacing: 0.1em; }

/* 引用ブロック */
.quote-block { background-color: #1a1a1a; color: #f5f1ea; padding: 5rem 2rem; text-align: center; margin: 4rem 0; }
.quote-block .quote-mark { font-family: "Cormorant Garamond", serif; font-size: 3rem; color: #a8864a; line-height: 1; margin-bottom: 1.5rem; }
.quote-block p { font-size: 1.15rem; line-height: 2.4; letter-spacing: 0.1em; max-width: 720px; margin: 0 auto; }
.quote-block .source { font-family: "Cormorant Garamond", serif; font-size: 0.85rem; letter-spacing: 0.3em; color: #a8864a; margin-top: 2rem; display: block; }

/* 商品ヘッダー */
.product-header { display: flex; align-items: baseline; justify-content: center; gap: 1.5rem; margin-bottom: 3rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(168, 134, 74, 0.4); }
.product-header .label { font-family: "Cormorant Garamond", serif; font-size: 1rem; letter-spacing: 0.4em; color: #a8864a; text-transform: uppercase; }
.product-header h2 { font-size: 1.5rem; font-weight: 400; letter-spacing: 0.25em; color: #1a1a1a; }

/* 問い合わせフォーム */
.contact-form { max-width: 720px; margin: 0 auto; }
.form-group { margin-bottom: 2rem; }
.form-group label { display: block; font-size: 0.9rem; color: #3d2b1f; letter-spacing: 0.1em; margin-bottom: 0.6rem; font-weight: 500; }
.form-group label .required { color: #a8864a; font-size: 0.75rem; margin-left: 0.5rem; font-family: "Cormorant Garamond", serif; letter-spacing: 0.2em; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.9rem 1rem; border: 1px solid rgba(61, 43, 31, 0.3); background-color: #ffffff; font-family: inherit; font-size: 1rem; color: #1a1a1a; transition: border-color 0.3s ease; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: #a8864a; }
.form-group textarea { min-height: 180px; resize: vertical; }
.form-submit { text-align: center; margin-top: 3rem; }
.btn-submit { background-color: #1a1a1a; color: #f5f1ea; border: 1px solid #1a1a1a; padding: 1.2rem 4rem; font-family: inherit; font-size: 0.95rem; letter-spacing: 0.3em; cursor: pointer; transition: all 0.3s ease; }
.btn-submit:hover { background-color: #a8864a; border-color: #a8864a; }
.contact-info { background-color: #1a1a1a; color: #f5f1ea; padding: 3rem 2rem; margin-top: 4rem; text-align: center; }
.contact-info h3 { font-size: 1.1rem; font-weight: 400; letter-spacing: 0.25em; margin-bottom: 1.5rem; color: #a8864a; }
.contact-info p { line-height: 2; font-size: 0.95rem; }
.contact-info a { color: #a8864a; border-bottom: 1px solid rgba(168,134,74,0.5); }
.contact-info a:hover { color: #f5f1ea; border-bottom-color: #f5f1ea; }

/* フッター */
.site-footer { background-color: #1a1a1a; color: #c8c0b0; padding: 4rem 2rem 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand h3 { font-size: 1rem; font-weight: 500; letter-spacing: 0.15em; color: #f5f1ea; margin-bottom: 0.3rem; }
.footer-brand .en { font-family: "Cormorant Garamond", serif; font-size: 0.75rem; color: #a8864a; letter-spacing: 0.25em; margin-bottom: 1.5rem; display: block; }
.footer-brand address { font-style: normal; font-size: 0.85rem; line-height: 1.9; }
.footer-brand address a { color: #c8c0b0; }
.footer-brand address a:hover { color: #a8864a; }
.footer-nav h4, .footer-contact h4 { font-family: "Cormorant Garamond", serif; font-size: 0.85rem; color: #a8864a; letter-spacing: 0.3em; margin-bottom: 1.2rem; text-transform: uppercase; }
.footer-nav ul { list-style: none; }
.footer-nav ul li { margin-bottom: 0.7rem; font-size: 0.85rem; }
.footer-contact p { font-size: 0.85rem; line-height: 1.9; }
.footer-contact a { color: #c8c0b0; }
.footer-contact a:hover { color: #a8864a; }
.copyright { text-align: center; font-family: "Cormorant Garamond", serif; font-size: 0.75rem; letter-spacing: 0.25em; color: #6e6354; padding-top: 2rem; border-top: 1px solid rgba(168, 134, 74, 0.15); }

/* フェードイン */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 1s ease, transform 1s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* パンくず */
.breadcrumb {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.2rem 2rem 0;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: #6e6354;
}
.breadcrumb a { color: #a8864a; }
.breadcrumb a:hover { color: #1a1a1a; }
.breadcrumb span.sep { margin: 0 0.5rem; color: #c8c0b0; }

/* マップ埋め込み */
.map-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 1.5rem auto;
  border: 1px solid rgba(168, 134, 74, 0.3);
  overflow: hidden;
}
.map-wrap iframe { display: block; filter: grayscale(0.2) contrast(1.05); }

/* ローディング */
.loader {
  position: fixed;
  inset: 0;
  background: #1a1a1a;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; color: #f5f1ea; }
.loader-en {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  letter-spacing: 0.5em;
  color: #a8864a;
  margin-bottom: 0.8rem;
  opacity: 0;
  animation: loaderFadeIn 1s ease forwards;
}
.loader-jp {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: #c8c0b0;
  opacity: 0;
  animation: loaderFadeIn 1s ease 0.3s forwards;
}
.loader-line {
  width: 0;
  height: 1px;
  background: #a8864a;
  margin: 1.5rem auto 0;
  animation: loaderLine 1.5s ease 0.5s forwards;
}
@keyframes loaderFadeIn { to { opacity: 1; } }
@keyframes loaderLine { to { width: 120px; } }

/* ライトボックス */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  padding: 2rem;
  cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border: 1px solid rgba(168, 134, 74, 0.4);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: #f5f1ea;
  font-size: 2rem;
  font-family: "Cormorant Garamond", serif;
  cursor: pointer;
}
.product-gallery img,
.craft-photo,
.about-photo {
  cursor: zoom-in;
  transition: opacity 0.3s ease;
}
.product-gallery img:hover,
.craft-photo:hover,
.about-photo:hover { opacity: 0.85; }

/* 沿革タイムライン演出 */
.history-table { position: relative; }
.history-table::before {
  content: "";
  position: absolute;
  left: 70px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, #a8864a 10%, #a8864a 90%, transparent);
}
.history-table tr { position: relative; }
.history-table th { position: relative; padding-left: 0; }
.history-table th::after {
  content: "";
  position: absolute;
  left: 65px;
  top: 50%;
  transform: translateY(-50%);
  width: 11px;
  height: 11px;
  background: #f5f1ea;
  border: 2px solid #a8864a;
  border-radius: 50%;
  z-index: 1;
}
.history-table td { padding-left: 2.5rem; }

/* 連絡先強調 */
.contact-highlight {
  font-size: 1.4rem;
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.15em;
  color: #a8864a;
  margin: 0.5rem 0;
  display: inline-block;
}
.contact-highlight a { color: #a8864a; }

/* タブレット */
@media (max-width: 960px) {
  .feature-grid-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .product-gallery { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .product-gallery img { height: 200px; }
}

/* スマホ */
@media (max-width: 768px) {
  .site-header { padding: 0.8rem 1.2rem; }
  .site-logo { font-size: 0.9rem; }
  .site-logo span { font-size: 0.6rem; letter-spacing: 0.18em; }
  .menu-toggle { display: block; }
  .global-nav { position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100vh; background-color: #1a1a1a; padding: 6rem 2rem 2rem; transition: right 0.4s ease; }
  .global-nav.active { right: 0; }
  .global-nav ul { flex-direction: column; gap: 2rem; }
  .global-nav a { font-size: 1rem; letter-spacing: 0.14em; }
  .site-header .lang-switcher { margin-left: auto; margin-right: 1rem; gap: 0.3rem; }
  .site-header .lang-switcher a { font-size: 0.78rem; padding: 0.3rem 0.55rem; letter-spacing: 0.2em; }
  .hero { min-height: 88vh; padding: 4rem 1.2rem 3rem; }
  .hero-title { font-size: clamp(1.5rem, 7vw, 2.4rem); line-height: 1.7; letter-spacing: 0.08em; }
  .hero-subtitle { font-size: 0.92rem; line-height: 1.9; }
  .section { padding: 3rem 1.2rem; }
  .section-title h2 { font-size: clamp(1.4rem, 5.5vw, 2rem); line-height: 1.6; }
  .hero-visual { max-width: 92%; margin: 1.5rem auto 0; }
  .feature-card { padding: 2.2rem 1.2rem; }
  .feature-card h3 { font-size: 1.05rem; line-height: 1.6; }
  .quote-block { padding: 3rem 1.2rem; }
  .quote-block .quote-mark { font-size: 2.4rem; }
  .quote-block p { font-size: 1rem; line-height: 2.2; }
  .history-table, .company-table,
  .history-table tbody, .company-table tbody,
  .history-table tr, .company-table tr,
  .history-table th, .history-table td,
  .company-table th, .company-table td { display: block; width: 100%; box-sizing: border-box; }
  .history-table th, .company-table th { background: #141414; color: #a8864a; padding: 0.6rem 1rem; font-size: 0.75rem; letter-spacing: 0.2em; border-bottom: 1px solid rgba(168,134,74,0.3); width: 100%; }
  .history-table td, .company-table td { padding: 0.9rem 1rem 1.4rem; font-size: 0.95rem; line-height: 1.8; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .history-table::before { display: none; }
  .history-table th::after { display: none; }
  .history-table td { padding-left: 1rem; }
  .product-gallery { grid-template-columns: 1fr; gap: 1rem; }
  .product-gallery img { height: 180px; }
  .product-header { flex-direction: column; gap: 0.6rem; }
  .form-group input, .form-group textarea, .form-group select { font-size: 16px; padding: 0.9rem 1rem; }
  .btn-submit { width: 100%; padding: 1rem; font-size: 0.95rem; letter-spacing: 0.2em; }
  .craft-photo { max-width: 100%; max-height: 280px; }
  .about-photo { max-width: 100%; max-height: 260px; }
  .site-footer { padding: 2.5rem 1.2rem; font-size: 0.85rem; }
  .breadcrumb { padding: 1rem 1.2rem 0; font-size: 0.75rem; }
  .contact-highlight { font-size: 1.1rem; }
}

@media (max-width: 480px) {
  .product-gallery img { height: 160px; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 1.35rem; }
  .global-nav a { font-size: 0.9rem; }
  .section-title h2 { font-size: 1.2rem; }
  .contact-highlight { font-size: 1rem; letter-spacing: 0.1em; }
}
