/* ===========================
   藤原保険サービス - スタイルシート
   =========================== */

/* --- リセット & 基本設定 --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a3a6b;
  --navy-dark: #0f2348;
  --navy-light: #2a5298;
  --gold: #c8a84b;
  --gold-light: #e2c97e;
  --white: #ffffff;
  --off-white: #f5f7fa;
  --gray-light: #e8ecf2;
  --gray: #8a96a8;
  --text: #1e2a3a;
  --text-light: #5a6678;
  --font-sans: 'Noto Sans JP', sans-serif;
  --font-serif: 'Noto Serif JP', serif;
  --header-h: 72px;
  --section-py: 96px;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(26,58,107,.10);
  --shadow-lg: 0 12px 48px rgba(26,58,107,.16);
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- ユーティリティ --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.pc-only { display: inline; }

/* --- ボタン --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-primary-dark {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary-dark:hover { background: var(--navy-dark); border-color: var(--navy-dark); }

/* ===========================
   ヘッダー
   =========================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--gray-light);
  backdrop-filter: blur(8px);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 16px rgba(26,58,107,.10); }

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ロゴ */
.logo-link { flex-shrink: 0; }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark { height: 56px; width: auto; display: block; }

/* グローバルナビ */
.global-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.global-nav ul li a {
  display: block;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.global-nav ul li a:hover { color: var(--navy); background: var(--off-white); }
.global-nav ul li a.nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 4px;
}
.global-nav ul li a.nav-cta:hover { background: var(--navy-light); }

/* ハンバーガー（モバイル） */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   ヒーロー
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: url("images/hero-image.jpg") center center / cover no-repeat;
  padding-top: var(--header-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  opacity: 0.25;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,30,56,.15) 0%, rgba(15,30,56,.45) 100%);
}
.hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: var(--white);
}
.shape-1 { width: 600px; height: 600px; top: -200px; right: -100px; }
.shape-2 { width: 400px; height: 400px; bottom: -100px; left: -80px; }
.shape-3 { width: 200px; height: 200px; top: 40%; right: 20%; }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 80px 24px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(200,168,75,.4);
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  line-height: 1.9;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* スクロールインジケーター */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollDrop 1.6s ease infinite;
}
@keyframes scrollDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===========================
   セクション共通
   =========================== */
.section { padding: var(--section-py) 0; }

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.section-label.light { color: var(--gold-light); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  line-height: 1.4;
}
.section-title.light { color: var(--white); }

.section-lead {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 56px;
  line-height: 2;
  max-width: 680px;
}
.section-lead.light { color: rgba(255,255,255,0.8); }

/* ===========================
   コンセプト
   =========================== */
.concept { background: var(--off-white); }

.concept-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.concept-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 3px solid var(--gold);
}
.concept-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.concept-card:nth-child(1) { background: #eaf2fb; }
.concept-card:nth-child(2) { background: #fdebf0; }
.concept-card:nth-child(3) { background: #eaf5ee; }
.concept-icon { width: 76px; height: 76px; margin-bottom: 20px; }
.concept-icon img { width: 76px; height: 76px; object-fit: contain; }
.concept-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.concept-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.9; }

/* ===========================
   経営理念
   =========================== */
.philosophy {
  position: relative;
  background: var(--navy);
  overflow: hidden;
}
.philosophy-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  opacity: 0.98;
}
.philosophy .container { position: relative; z-index: 1; }

.philosophy-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.philosophy-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 36px 32px;
  border-left: 3px solid var(--gold);
  transition: background var(--transition);
}
.philosophy-item:hover { background: rgba(255,255,255,0.10); }
.philosophy-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.7;
}
.philosophy-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.philosophy-body p { font-size: 0.9rem; color: rgba(255,255,255,0.75); line-height: 1.9; }

/* ===========================
   取引保険会社
   =========================== */
.insurers { background: var(--white); }
.insurers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.insurer-card {
  display: block;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 24px 12px;
  text-align: center;
  transition: all var(--transition);
  background: var(--white);
  text-decoration: none;
  color: inherit;
}
.insurer-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.insurer-type {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.insurer-card:nth-child(-n+3) .insurer-type {
  background: #e8edf7;
  color: var(--navy);
}
.insurer-card:nth-child(n+4) .insurer-type {
  background: #fdf4e3;
  color: #8a6820;
}
.insurer-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.6;
}
.insurer-name span { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.insurer-name--boxed {
  min-height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.insurer-logo {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.insurer-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.insurer-logo img.insurer-logo--fwd {
  max-height: 80%;
}

/* ===========================
   ネット通販保険
   =========================== */
.netshop { background: #faf7f0; }
.netshop-head { text-align: center; margin-bottom: 48px; }
.netshop-title {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 700;
  color: var(--navy);
  padding: 12px 40px;
  border: 1px solid var(--gold);
  margin-bottom: 16px;
}
.netshop-sub {
  font-size: 0.95rem;
  color: var(--text-light);
}
.netshop-banners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-bottom: 48px;
}
.netshop-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.netshop-banner img {
  transition: transform var(--transition), opacity var(--transition);
}
.netshop-banner:hover img {
  transform: translateY(-4px);
  opacity: 0.85;
}
.netshop-caption {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}
.netshop-note {
  max-width: 760px;
  margin: 0 auto;
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.9;
  text-align: center;
}

/* ===========================
   会社概要
   =========================== */
.company { background: var(--off-white); }
.company-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.company-table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td {
  padding: 16px 20px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-light);
  vertical-align: top;
  line-height: 1.8;
}
.company-table th {
  width: 36%;
  background: var(--off-white);
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}
.company-table td a { color: var(--navy-light); }
.company-table td a:hover { text-decoration: underline; }
.company-table tr:last-child th,
.company-table tr:last-child td { border-bottom: none; }

.company-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.company-map iframe { display: block; }

/* ===========================
   お問い合わせ
   =========================== */
.contact {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  text-align: center;
}
.contact-ways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.contact-card {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 40px 32px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: background var(--transition);
}
.contact-card:hover { background: rgba(255,255,255,0.13); }
.contact-icon { width: 48px; height: 48px; margin: 0 auto 20px; }
.contact-icon svg path { stroke: var(--gold); }
.contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.contact-card p { font-size: 0.88rem; color: rgba(255,255,255,0.7); margin-bottom: 24px; }

/* ===========================
   フッター
   =========================== */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.footer-logo .logo-mark { height: 52px; }
.footer-addr {
  margin-top: 12px;
  font-size: 0.82rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.55);
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer-nav ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-nav ul li a:hover { color: var(--gold-light); }
.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ===========================
   サブページ共通
   =========================== */
.subpage-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: calc(var(--header-h) + 48px) 0 56px;
  text-align: center;
}
.subpage-hero-watermark {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  z-index: 0;
  pointer-events: none;
}
.subpage-hero h1 {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.subpage-hero p {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
}

.subpage-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 72px 24px;
}
.subpage-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 16px;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
}
.subpage-content p { font-size: 0.92rem; color: var(--text-light); line-height: 2; margin-bottom: 16px; }
.subpage-content ol, .subpage-content ul {
  margin: 0 0 16px 0;
  padding-left: 1.5em;
}
.subpage-content li { font-size: 0.92rem; color: var(--text-light); line-height: 2; list-style: disc; }
.subpage-content ol li { list-style: decimal; }

/* ===========================
   レスポンシブ
   =========================== */
@media (max-width: 1024px) {
  .insurers-grid { grid-template-columns: repeat(3, 1fr); }
}

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

  /* ヘッダー */
  .hamburger { display: flex; }
  .global-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-light);
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    padding: 16px 0 24px;
  }
  .global-nav.open { display: block; }
  .global-nav ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
  .global-nav ul li a {
    padding: 13px 24px;
    font-size: 0.95rem;
    border-radius: 0;
  }
  .global-nav ul li a.nav-cta {
    margin: 8px 24px 0;
    text-align: center;
    border-radius: 4px;
  }

  /* コンセプト */
  .concept-cards { grid-template-columns: 1fr; gap: 16px; }
  .concept-card { padding: 28px 24px; }

  /* 経営理念 */
  .philosophy-items { grid-template-columns: 1fr; gap: 16px; }
  .philosophy-item { padding: 24px 20px; }

  /* 保険会社 */
  .insurers-grid { grid-template-columns: repeat(2, 1fr); }

  /* ネット通販保険 */
  .netshop-banners { gap: 28px; }
  .netshop-title { padding: 10px 28px; }

  /* 会社概要 */
  .company-inner { grid-template-columns: 1fr; }

  /* お問い合わせ */
  .contact-ways { grid-template-columns: 1fr; }
  .contact-card { padding: 28px 24px; }

  /* フッター */
  .footer-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.7rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
  .insurers-grid { grid-template-columns: 1fr; }
  .company-table th { width: 40%; }
  .company-table th, .company-table td { padding: 12px 14px; }
}
