@charset "UTF-8";
/* =========================================================
   ミユキ産業 令和リニューアル 共通スタイル
   カラー：ワインレッド #8B2040 / ゴールド #C9952A
   フォント：Noto Sans JP
   ========================================================= */

:root {
  --wine: #8B2040;
  --wine-dark: #6E182F;
  --wine-light: #A8385A;
  --gold: #C9952A;
  --gold-light: #E0B856;
  --ink: #2B2B2B;
  --ink-mid: #555;
  --ink-light: #888;
  --line: #E6E1DD;
  --bg: #FFFFFF;
  --bg-soft: #FAF7F4;
  --bg-wine-soft: #FBF2F4;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 6px 24px rgba(80, 20, 40, 0.08);
  --shadow-hover: 0 12px 36px rgba(80, 20, 40, 0.16);
  --maxw: 1120px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s, background .2s, box-shadow .2s, transform .2s; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== セクション共通 ===== */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 52px; }
.section-en {
  display: block; color: var(--gold); font-size: .82rem; font-weight: 700;
  letter-spacing: .22em; margin-bottom: 10px;
}
.section-title {
  font-size: 1.9rem; font-weight: 700; color: var(--ink); letter-spacing: .04em;
}
.section-title .accent { color: var(--wine); }
.section-lead { margin-top: 18px; color: var(--ink-mid); font-size: .98rem; }

/* ===== ボタン ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 34px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; letter-spacing: .04em;
}
.btn-primary { background: var(--wine); color: #fff; }
.btn-primary:hover { background: var(--wine-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline { background: transparent; color: var(--wine); border-color: var(--wine); }
.btn-outline:hover { background: var(--wine); color: #fff; }
.btn-white { background: #fff; color: var(--wine); }
.btn-white:hover { background: var(--bg-soft); transform: translateY(-2px); }

/* =========================================================
   ヘッダー（固定）
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--header-h);
  background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom: 1px solid var(--line); z-index: 1000;
}
/* ヘッダーだけは .container の最大幅（--maxw）を解除して画面幅いっぱいに広げる */
.header-inner { max-width: none; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo img { height: 48px; width: auto; }
.site-logo .logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.site-logo .logo-en { font-size: .66rem; letter-spacing: .12em; color: var(--gold); font-weight: 700; }
.site-logo .logo-ja { font-size: 1.02rem; font-weight: 700; color: var(--wine); letter-spacing: .04em; }

.global-nav { display: flex; align-items: center; gap: 2px; }
.global-nav a.nav-link {
  position: relative; padding: 9px 14px; font-size: clamp(0.75rem, 1.1vw, 0.92rem); letter-spacing: 0; font-weight: 500; color: var(--ink);
}
.global-nav a.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.global-nav a.nav-link:hover { color: var(--wine); }
.global-nav a.nav-link:hover::after { transform: scaleX(1); }
.nav-contact {
  margin-left: 6px; padding: 10px 22px; border-radius: 999px; background: var(--wine);
  color: #fff !important; font-weight: 700; font-size: clamp(0.75rem, 1.1vw, 0.92rem); letter-spacing: 0;
}
.nav-contact:hover { background: var(--wine-dark); }
.nav-contact::after { display: none; }

/* ハンバーガー */
.hamburger {
  display: none; width: 44px; height: 44px; border: none; background: transparent;
  cursor: pointer; position: relative; z-index: 1100;
}
.hamburger span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--wine);
  transition: transform .3s, opacity .3s;
}
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 27px; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* モバイルドロワー */
.mobile-nav {
  position: fixed; top: 0; right: 0; width: min(82vw, 340px); height: 100vh;
  background: #fff; box-shadow: -8px 0 32px rgba(0,0,0,.15); z-index: 1050;
  transform: translateX(100%); transition: transform .32s ease; padding: calc(var(--header-h) + 16px) 28px 40px;
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { display: block; padding: 15px 6px; font-size: 1rem; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-nav a:hover { color: var(--wine); }
.mobile-nav .mobile-contact {
  margin-top: 24px; text-align: center; background: var(--wine); color: #fff; border-radius: 999px;
  border-bottom: none; font-weight: 700;
}
.nav-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1040; opacity: 0; visibility: hidden;
  transition: opacity .3s;
}
.nav-backdrop.open { opacity: 1; visibility: visible; }

/* =========================================================
   ヒーロー
   ========================================================= */
.hero {
  margin-top: var(--header-h);
  background: linear-gradient(135deg, #6B0F2A 0%, #8B2040 40%, #A0293A 70%, #5a0a20 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: -120px; right: -120px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(201,149,42,.35), transparent 70%); border-radius: 50%;
}
/* 上部のゴールド輝きライン（既存の::before光彩を残すため::afterで追加） */
.hero::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent 0%, #C9952A 30%, #e8b84b 50%, #C9952A 70%, transparent 100%);
  z-index: 1;
}
.hero-inner { position: relative; padding: 96px 0 104px; text-align: center; }
/* ヒーロー キャッチコピー「回転研磨材の総合メーカー」を大きく強調（枠なし白文字＋影） */
.hero-tag {
  display: block;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.45);
  margin-bottom: 0.5em;
}
.hero-title { font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 700; letter-spacing: .06em; line-height: 1.3; }
.hero-title .gold { color: var(--gold-light); }
.hero-sub { margin: 26px auto 0; max-width: 664px; font-size: 1.02rem; line-height: 2.1; opacity: .95; }
.hero-btns { margin-top: 42px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   動画・カタログ
   ========================================================= */
.media-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: stretch; }
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); background: #000;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.catalog-card {
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  background: linear-gradient(160deg, var(--bg-wine-soft), #fff);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; text-align: center;
}
.catalog-card .cat-en { color: var(--gold); font-weight: 700; letter-spacing: .2em; font-size: .78rem; }
.catalog-card h3 { font-size: 1.3rem; color: var(--wine); font-weight: 700; }
.catalog-card p { font-size: .92rem; color: var(--ink-mid); }
.catalog-icon { font-size: 2.6rem; }

/* =========================================================
   製品カテゴリカード
   ========================================================= */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.cat-card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.cat-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px 14px;
}
.cat-card-head .ja { font-size: 1.18rem; font-weight: 700; color: var(--wine); }
.cat-card-head .en { font-size: .68rem; font-weight: 700; letter-spacing: .12em; color: var(--gold); }
.cat-card-list { padding: 0 22px 22px; display: flex; flex-direction: column; }
.cat-card-list a {
  display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: .9rem;
  color: var(--ink-mid); border-bottom: 1px dashed var(--line);
}
.cat-card-list a::before { content: "›"; color: var(--gold); font-weight: 700; }
.cat-card-list a:hover { color: var(--wine); padding-left: 4px; }
.cat-card-list a.is-about { font-weight: 700; color: var(--wine); }
.cat-card-foot { margin-top: auto; padding: 0 22px 22px; }
.cat-card-foot .btn { width: 100%; }

/* =========================================================
   用途で探す
   ========================================================= */
.usage-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px;
}
.usage-tag {
  display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .92rem; font-weight: 500;
  color: var(--ink); box-shadow: 0 2px 8px rgba(80,20,40,.04);
}
.usage-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.usage-tag:hover { border-color: var(--wine); color: var(--wine); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ===== 外部リンク ===== */
.ext-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; margin-top: 36px; }
.ext-links a { color: var(--wine); font-weight: 500; font-size: .95rem; }
.ext-links a::before { content: "→ "; color: var(--gold); }
.ext-links a:hover { text-decoration: underline; }

/* =========================================================
   CTA
   ========================================================= */
.cta {
  background: linear-gradient(135deg, var(--wine-dark), var(--wine)); color: #fff; text-align: center;
  padding: 72px 0;
}
.cta h2 { font-size: 1.7rem; font-weight: 700; letter-spacing: .04em; }
.cta p { margin: 16px 0 32px; opacity: .92; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   フッター
   ========================================================= */
.site-footer { background: #2A1118; color: rgba(255,255,255,.8); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo .logo-ja { font-size: 1.2rem; font-weight: 700; color: #fff; }
.footer-logo .logo-en { font-size: .72rem; letter-spacing: .14em; color: var(--gold-light); margin-bottom: 14px; }
.footer-info { font-size: .86rem; line-height: 2; }
.footer-col h4 { font-size: .92rem; color: #fff; margin-bottom: 16px; letter-spacing: .06em; }
.footer-col h4::before { content: ""; display: inline-block; width: 16px; height: 2px; background: var(--gold); vertical-align: middle; margin-right: 8px; }
.footer-nav a { display: block; padding: 6px 0; font-size: .88rem; color: rgba(255,255,255,.75); }
.footer-nav a:hover { color: var(--gold-light); }
.footer-bottom { margin-top: 48px; border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; text-align: center; font-size: .8rem; color: rgba(255,255,255,.55); }
.footer-bottom a { color: inherit; }

/* ===== ページトップへ ===== */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--wine); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .3s, transform .2s; z-index: 900;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--wine-dark); transform: translateY(-3px); }

/* =========================================================
   下層ページ用 共通パーツ
   ========================================================= */
.page-hero {
  margin-top: var(--header-h); background: linear-gradient(135deg, var(--wine), var(--wine-dark));
  color: #fff; padding: 56px 0;
}
.page-hero h1 { font-size: 1.9rem; font-weight: 700; letter-spacing: .04em; }
.page-hero .en { display: block; color: var(--gold-light); font-size: .78rem; letter-spacing: .2em; margin-top: 8px; }
.breadcrumb { margin-top: 18px; font-size: .8rem; opacity: .9; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 8px; opacity: .6; }

/* =========================================================
   レスポンシブ
   ========================================================= */
/* ナビ切替（ハンバーガー表示）ポイント */
@media (max-width: 1024px) {
  .global-nav { display: none; }
  .hamburger { display: block; }
}

@media (max-width: 900px) {
  .media-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 64px 0; }
  .hero-inner { padding: 72px 0 80px; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .section-title { font-size: 1.5rem; }
  .site-logo .logo-ja { font-size: .92rem; }
  .site-logo img { height: 40px; }
  .btn { padding: 13px 26px; }
}

/* トップページ：製品カタログ バナー（画像リンク・hoverで拡大＋シャドウ） */
.catalog-banner-link { display: block; max-width: 860px; margin: 0 auto; line-height: 0; }
.catalog-banner-img {
  display: block; width: 100%; height: auto;
  transition: transform .25s ease, box-shadow .25s ease;
}
.catalog-banner-link:hover .catalog-banner-img {
  transform: scale(1.04);
  box-shadow: 0 12px 30px rgba(80,20,40,.30);
}

/* =========================================================
   NEWS + Facebook 2カラムセクション
   ========================================================= */
#news-latest {
  background: #f9f0f2;
  border-top: 2px solid #8B2040;
  border-bottom: 2px solid #8B2040;
  padding: 56px 0;
}
.news-fb-header {
  text-align: center;
  margin-bottom: 36px;
}
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #C9952A;
  margin: 0 0 6px;
}
/* 他セクションの見出しに影響させないため #news-latest に限定 */
#news-latest .section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0;
  letter-spacing: 0.05em;
}
.news-fb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.news-fb-col {
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(139,32,64,0.15);
  padding: 24px 28px;
}
.news-fb-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #8B2040;
  border-bottom: 1px solid rgba(139,32,64,0.2);
  padding-bottom: 10px;
  margin: 0 0 16px;
}
.news-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.news-list li {
  border-left: 3px solid #8B2040;
  padding: 6px 0 6px 12px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  line-height: 1.6;
}
.news-list li:last-child { margin-bottom: 0; }
.news-more-link,
.fb-page-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8rem;
  color: #8B2040;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.news-more-link:hover,
.fb-page-link:hover {
  color: #C9952A;
}
/* スマホ：縦積み */
@media (max-width: 768px) {
  .news-fb-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ===== 言語切替ボタン ===== */
.lang-btn {
  background: transparent;
  border: 2px solid #C9952A;
  color: #C9952A;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 8px;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.lang-btn:hover,
.lang-btn.lang-active {
  background: #C9952A;
  color: #fff;
}
/* Google翻訳バーの上部バナーを非表示 */
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }
.skiptranslate { display: none !important; }

/* ===== プライバシーポリシー注記 ===== */
.privacy-note {
  font-size: 0.82rem;
  color: #666;
  text-align: center;
  margin-bottom: 16px;
}
.privacy-note a {
  color: #8B2040;
  text-decoration: underline;
}
.privacy-note a:hover {
  color: #C9952A;
}

/* ===== 沿革テーブル ===== */
.history-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.history-table tr {
  border-bottom: 1px solid rgba(139,32,64,0.15);
}
.history-table tr:first-child {
  border-top: 1px solid rgba(139,32,64,0.15);
}
.history-table td {
  padding: 14px 12px;
  vertical-align: top;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #333;
}
.history-year {
  white-space: nowrap;
  font-weight: 600;
  color: #8B2040;
  width: 7em;
}
.history-month {
  white-space: nowrap;
  width: 3em;
  color: #666;
}
@media (max-width: 600px) {
  .history-table td {
    padding: 10px 8px;
    font-size: 0.85rem;
  }
  .history-year {
    width: 6em;
  }
}

/* ===== スクロールアニメーション ===== */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
/* ===== ナビ：幅広（1200px超）ではアイコンを隠して従来どおり1段表示 ===== */
.nav-icon {
  display: none;
  flex-shrink: 0;
}
.nav-link .nav-icon {
  color: var(--ink-mid);
}
.nav-link:hover .nav-icon,
.nav-link.current .nav-icon {
  color: var(--wine);
}
.nav-contact .nav-icon {
  color: #fff;
}

/* 1200px以下でアイコン＋小テキスト2段に切替 */
@media (max-width: 1200px) {
  .global-nav a.nav-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
    font-size: clamp(0.65rem, 0.9vw, 0.72rem);
    letter-spacing: 0.03em;
    line-height: 1.35;
  }
  .global-nav a.nav-contact {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 10px;
    font-size: clamp(0.65rem, 0.9vw, 0.72rem);
    line-height: 1.35;
  }
  /* 2段化で padding が変わるため、hover 下線の左右位置を合わせる */
  .global-nav a.nav-link::after { left: 8px; right: 8px; bottom: 0; }
  .nav-icon { display: block; width: 18px; height: 18px; }
}