/* ==========================================================
   株式会社国際東日ジュエリー コーポレートサイト
   カラー：白背景 × ネイビー × グレー
   ========================================================== */

:root {
  --navy: #1b2a4a;
  --navy-dark: #12203a;
  --navy-light: #2e4370;
  --gray: #6b7280;
  --gray-light: #f4f5f7;
  --gray-border: #e2e5ea;
  --text: #2b2f36;
  --white: #ffffff;
  --accent: #b39a68; /* 控えめなゴールド（アクセント） */
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic",
    "Noto Sans JP", Meiryo, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  font-size: 16px;
}

img { max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration: none; }
a:hover { opacity: 0.75; }
ul { list-style: none; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- ヘッダー ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--gray-border);
  z-index: 100;
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; flex-direction: column; line-height: 1.3; }
.logo-main { font-size: 18px; font-weight: 700; color: var(--navy); }
.logo-sub { font-size: 10px; letter-spacing: 0.12em; color: var(--gray); }

.nav-list { display: flex; gap: 28px; }
.nav-list a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav-list a:hover { color: var(--navy); border-bottom-color: var(--navy); opacity: 1; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px auto;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  color: var(--white);
  padding: 180px 24px 110px;
  text-align: center;
}

.hero-inner { position: relative; z-index: 2; }

/* 宝石の装飾（写真） */
.hero-gems {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.gem {
  position: absolute;
  opacity: 0.95;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35)) brightness(1.05);
  animation: gemFloat 7s ease-in-out infinite alternate;
}

@keyframes gemFloat {
  from { transform: translateY(0) rotate(var(--rot, 0deg)); }
  to   { transform: translateY(-14px) rotate(var(--rot, 0deg)); }
}

/* 左側 */
.p1  { top: 14%; left: 4%;  width: 114px; --rot: -12deg; animation-delay: 0s; }
.p2  { top: 36%; left: 11%; width: 68px; --rot: 8deg;   animation-delay: 1.4s; }
.p3  { top: 60%; left: 5%;  width: 92px; --rot: -6deg;  animation-delay: 2.6s; }
.p4  { top: 82%; left: 12%; width: 60px; --rot: 14deg;  animation-delay: 0.7s; }
.p5  { top: 8%;  left: 21%; width: 52px; --rot: -18deg; animation-delay: 1.9s; opacity: 0.8; }
.p6  { top: 74%; left: 22%; width: 48px; --rot: 10deg;  animation-delay: 3.1s; opacity: 0.75; }
.p7  { top: 27%; left: 2%;  width: 56px; --rot: 20deg;  animation-delay: 2.2s; opacity: 0.85; }
.p8  { top: 48%; left: 16%; width: 42px; --rot: 0deg;   animation-delay: 0.4s; opacity: 0.65; }
.p9  { top: 90%; left: 3%;  width: 70px; --rot: 8deg;   animation-delay: 1.1s; opacity: 0.9; }
.p10 { bottom: 4%; left: 32%; width: 52px; --rot: 6deg; animation-delay: 2.8s; opacity: 0.7; }

/* 右側 */
.p11 { top: 12%; right: 5%;  width: 108px; --rot: 10deg;  animation-delay: 0.9s; }
.p12 { top: 34%; right: 12%; width: 62px; --rot: -10deg; animation-delay: 2.1s; }
.p13 { top: 58%; right: 4%;  width: 98px; --rot: 6deg;   animation-delay: 0.2s; }
.p14 { top: 80%; right: 13%; width: 62px; --rot: -14deg; animation-delay: 1.6s; }
.p15 { top: 6%;  right: 21%; width: 50px; --rot: 16deg;  animation-delay: 2.9s; opacity: 0.8; }
.p16 { top: 72%; right: 23%; width: 48px; --rot: -8deg;  animation-delay: 0.6s; opacity: 0.75; }
.p17 { top: 25%; right: 2%;  width: 58px; --rot: -16deg; animation-delay: 1.3s; opacity: 0.85; }
.p18 { top: 46%; right: 17%; width: 42px; --rot: 0deg;   animation-delay: 3.3s; opacity: 0.65; }
.p19 { top: 89%; right: 4%;  width: 72px; --rot: -6deg;  animation-delay: 2.4s; opacity: 0.9; }
.p20 { bottom: 5%; right: 33%; width: 50px; --rot: -10deg; animation-delay: 1.8s; opacity: 0.7; }

/* エメラルド（両端・中央付近） */
.p21 { top: 43%; left: 1%;  width: 86px; --rot: -8deg; animation-delay: 1.0s; }
.p22 { top: 41%; right: 1%; width: 78px; --rot: 10deg; animation-delay: 2.5s; }

.hero-en {
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
}

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 40px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.btn-primary { background: var(--white); color: var(--navy); }
.btn-primary:hover { background: var(--gray-light); opacity: 1; }
.btn-outline { border: 1px solid rgba(255, 255, 255, 0.7); color: var(--white); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); opacity: 1; }

/* ---------- 強み ---------- */
.features { padding: 70px 0; border-bottom: 1px solid var(--gray-border); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature-num {
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-item h3 { font-size: 18px; color: var(--navy); margin-bottom: 10px; }
.feature-item p { font-size: 14.5px; color: var(--gray); }

/* ---------- セクション共通 ---------- */
.section { padding: 90px 0; }
.section-gray { background: var(--gray-light); }

.section-head { text-align: center; margin-bottom: 40px; }
.section-en {
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-size: 28px;
  color: var(--navy);
  position: relative;
  padding-bottom: 16px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background: var(--navy);
}

.section-lead {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--text);
}

/* ---------- 事業内容 ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-top: 3px solid var(--navy);
  padding: 32px 26px;
}
.service-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 12px; line-height: 1.5; }
.service-card p { font-size: 14.5px; color: var(--gray); }

/* ---------- 会社概要 ---------- */
.company-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--gray-border);
}
.company-table th,
.company-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--gray-border);
  text-align: left;
  vertical-align: top;
  font-size: 15px;
}
.company-table th {
  width: 180px;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}
.company-table tr:last-child th,
.company-table tr:last-child td { border-bottom: none; }

.company-list li { position: relative; padding-left: 16px; }
.company-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

/* ---------- お問い合わせ ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 560px;
  margin: 0 auto;
}

.contact-card {
  background: var(--gray-light);
  border: 1px solid var(--gray-border);
  padding: 36px 28px;
  text-align: center;
}
.contact-card h3 { font-size: 16px; color: var(--navy); margin-bottom: 14px; }
.contact-value { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.contact-value a { color: var(--navy); }
.contact-note { font-size: 13px; color: var(--gray); }

/* ---------- プライバシーポリシー ---------- */
.privacy-body {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-border);
  padding: 40px 36px;
  font-size: 15px;
}
.privacy-body h3 {
  font-size: 16px;
  color: var(--navy);
  margin: 28px 0 8px;
  padding-left: 12px;
  border-left: 3px solid var(--navy);
}
.privacy-body p { color: var(--text); }

/* ---------- フッター ---------- */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 50px 0 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-name { font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.footer-address { font-size: 13px; line-height: 1.9; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: flex-start; }
.footer-nav a { color: rgba(255, 255, 255, 0.85); font-size: 13px; }
.footer-nav a:hover { color: var(--white); }

.copyright {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 24px;
}

/* ---------- フェードイン ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================
   レスポンシブ（スマホ・タブレット）
   ========================================================== */
@media (max-width: 900px) {
  .feature-grid,
  .service-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .pc-only { display: none; }

  .hero { padding: 140px 20px 80px; }
  .hero-title { font-size: 24px; }
  .hero-lead { font-size: 14.5px; }

  /* 宝石：スマホでは小さく・少なめに */
  .p1  { width: 72px; top: 11%; }
  .p3  { width: 58px; }
  .p11 { width: 70px; top: 10%; }
  .p13 { width: 62px; }
  .p2, .p12 { width: 46px; }
  .p4, .p14 { width: 40px; }
  .p9, .p19 { width: 50px; }
  .p21 { width: 52px; }
  .p22 { width: 48px; }
  .p5, .p6, .p7, .p8, .p10,
  .p15, .p16, .p17, .p18, .p20 { display: none; }

  .section { padding: 60px 0; }
  .section-title { font-size: 23px; }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 12px 18px;
  }
  .company-table th { border-bottom: none; }

  .privacy-body { padding: 28px 20px; }

  .footer-inner { flex-direction: column; }

  /* モバイルナビ */
  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 78%;
    max-width: 320px;
    height: 100vh;
    background: var(--navy-dark);
    padding: 90px 32px 32px;
    transition: right 0.3s ease;
  }
  .nav.open { right: 0; }

  .nav-list { flex-direction: column; gap: 4px; }
  .nav-list a {
    display: block;
    color: var(--white);
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 15px;
  }
  .nav-list a:hover { border-bottom-color: rgba(255, 255, 255, 0.4); }

  .nav-toggle.open span { background: var(--white); }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
