/*
Theme Name:  Safety Life
Theme URI:   https://safety-life-insurance.com
Description: 有限会社セーフティーライフ保険 カスタムテーマ
Author:      Safety Life
Version:     1.0.0
Text Domain: safety-life
*/

/* ====== リセット & ベース ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  color: #333;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ====== カラー変数 ====== */
:root {
  --primary:       #1a5fa8;
  --primary-dark:  #0d3d72;
  --primary-light: #2d7dd2;
  --accent:        #f5a623;
  --bg-light:      #f4f8fd;
  --text-muted:    #666;
  --border:        #dce6f0;
}

/* ====== ヘッダー ====== */
header {
  background: #fff;
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.site-logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

/* ナビ */
.global-nav ul { display: flex; list-style: none; gap: 4px; }
.global-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.global-nav a:hover { background: var(--bg-light); color: var(--primary); }
.global-nav .cta-link { background: var(--primary); color: #fff !important; }
.global-nav .cta-link:hover { background: var(--primary-light); }

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span { width: 24px; height: 2px; background: var(--primary); border-radius: 2px; }

/* ====== ヒーロー ====== */
.hero { width: 100%; line-height: 0; }
.hero img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ====== ボタン ====== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-gold    { background: var(--accent); color: #fff; }
.btn-ghost   { background: rgba(255,255,255,.12); color: #fff; border: 2px solid rgba(255,255,255,.45); }
.btn-outline { background: #fff; color: var(--primary); border: 2px solid var(--primary); }

/* ====== セクション共通 ====== */
.section { padding: 80px 24px; }
.section--gray  { background: var(--bg-light); }
.section--white { background: #fff; }
.section--dark  { background: linear-gradient(130deg, var(--primary-dark), var(--primary)); color: #fff; }
.container { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.section--dark .section-label { color: rgba(255,255,255,.7); }
.section-header h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: #1a1a2e;
}
.section--dark .section-header h2 { color: #fff; }
.section-header h2::after {
  content: "";
  display: block;
  width: 48px; height: 4px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ====== 新着情報 ====== */
.news-list { list-style: none; max-width: 720px; margin: 0 auto; }
.news-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.news-list li:first-child { border-top: 1px solid var(--border); }
.news-date { font-size: 13px; color: var(--text-muted); white-space: nowrap; padding-top: 2px; min-width: 88px; }
.news-tag {
  font-size: 11px; font-weight: 700;
  padding: 2px 10px; border-radius: 20px; white-space: nowrap;
}
.tag-info    { background: #e8f4fd; color: var(--primary); }
.tag-recruit { background: #fff3e0; color: #e07b00; }
.news-text { font-size: 14px; }
.news-text a:hover { color: var(--primary); text-decoration: underline; }

/* ====== 会社案内（トップ） ====== */
.about-grid {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.about-label { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.about-grid h3 { font-size: 26px; font-weight: 800; color: var(--primary-dark); line-height: 1.4; margin-bottom: 18px; }
.about-grid p { color: #555; margin-bottom: 20px; font-size: 14px; }

/* ====== MVV ====== */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mvv-card {
  border-radius: 20px;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
}
.mvv-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  border-radius: 20px 20px 0 0;
}
.mvv-card.mission { background: #fff9ee; border: 1px solid #f5e4bb; }
.mvv-card.mission::before { background: linear-gradient(90deg, #f5a623, #ffd166); }
.mvv-card.vision  { background: var(--bg-light); border: 1px solid var(--border); }
.mvv-card.vision::before  { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.mvv-card.value   { background: #f0f4ff; border: 1px solid #c8d5f0; }
.mvv-card.value::before   { background: linear-gradient(90deg, #0d3d72, var(--primary)); }
.mvv-label {
  display: inline-block;
  font-size: 11px; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 10px;
  padding: 3px 12px; border-radius: 20px;
}
.mission .mvv-label { background: #f5a623; color: #fff; }
.vision  .mvv-label { background: var(--primary); color: #fff; }
.value   .mvv-label { background: var(--primary-dark); color: #fff; }
.mvv-card h3 { font-size: 17px; font-weight: 800; line-height: 1.5; margin-bottom: 14px; color: #1a1a2e; }
.mission .mvv-sub { font-size: 13px; color: #a07020; font-weight: 700; }
.mvv-card p { font-size: 13px; color: #555; line-height: 1.85; }
.mvv-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.mvv-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #444; line-height: 1.7; }
.mvv-list li::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--primary); border-radius: 50%;
  flex-shrink: 0; margin-top: 6px;
}

/* ====== 業務内容 ====== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--bg-light);
  border-radius: 20px;
  padding: 40px 28px 32px;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform .22s, box-shadow .22s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(26,95,168,.13); }
.service-icon-wrap {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: #fff; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  box-shadow: 0 4px 12px rgba(26,95,168,.08);
}
.service-icon-wrap img { width: 52px; height: 52px; object-fit: contain; }
.service-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; color: var(--primary); }
.service-card p  { font-size: 13px; color: var(--text-muted); line-height: 1.8; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 16px; }
.service-tag { font-size: 11px; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 3px 10px; color: var(--text-muted); }
.service-card.coming-soon { opacity: .6; }
.coming-badge { display: inline-block; font-size: 11px; background: #aaa; color: #fff; border-radius: 20px; padding: 3px 12px; margin-top: 12px; }

/* ====== 取り扱い保険会社 ====== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.partner-card {
  background: #fff; border-radius: 14px; border: 1px solid var(--border);
  padding: 28px 16px; text-align: center;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.partner-card:hover { border-color: var(--primary); box-shadow: 0 6px 20px rgba(26,95,168,.12); transform: translateY(-3px); }
.partner-card img { width: 100%; height: 64px; object-fit: contain; margin: 0 auto; }

/* ====== ネット契約 ====== */
.online-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.online-card {
  border-radius: 12px; overflow: hidden;
  border: 2px solid var(--border); display: block;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.online-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(26,95,168,.14); }
.online-card img { width: 100%; height: auto; display: block; }

/* ====== CTAセクション ====== */
.cta-section { text-align: center; }
.cta-section h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.cta-section p  { opacity: .85; margin-bottom: 36px; font-size: 15px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ====== 会社案内ページ ====== */
.page-hero {
  background: linear-gradient(130deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 64px 24px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 900; margin-bottom: 8px; }
.page-hero p  { opacity: .8; font-size: 15px; }

.philosophy-section {
  background: var(--primary-dark);
  color: #fff;
  padding: 72px 24px;
  text-align: center;
}
.philosophy-section .section-label { color: rgba(255,255,255,.6); }
.philosophy-section h2 {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 800;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
  color: #fff;
}
.philosophy-section h2::after { background: var(--accent); margin-top: 20px; }

.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.company-table th,
.company-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.company-table th {
  width: 180px;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg-light);
  white-space: nowrap;
}

/* ====== お問い合わせページ ====== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}
.contact-info h3 { font-size: 18px; font-weight: 800; color: var(--primary); margin-bottom: 20px; }
.contact-info-item { display: flex; gap: 12px; margin-bottom: 20px; font-size: 14px; }
.contact-info-item .label { font-weight: 700; color: var(--primary); min-width: 80px; }
.contact-form-wrap {
  background: var(--bg-light);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid var(--border);
}

/* Contact Form 7 スタイル */
.wpcf7-form label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: #444; }
.wpcf7-form .required { color: #e05252; margin-left: 4px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  transition: border-color .2s;
  margin-bottom: 20px;
}
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,95,168,.1); }
.wpcf7-form textarea { height: 140px; resize: vertical; }
.wpcf7-form input[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 48px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.wpcf7-form input[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }

/* ====== 新着情報一覧 ====== */
.archive-list { list-style: none; max-width: 760px; margin: 0 auto; }
.archive-item {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px 0; border-bottom: 1px solid var(--border);
}
.archive-item:first-child { border-top: 1px solid var(--border); }
.archive-meta { display: flex; flex-direction: column; gap: 6px; min-width: 100px; }
.archive-date { font-size: 12px; color: var(--text-muted); }
.archive-body h2 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.archive-body h2 a:hover { color: var(--primary); }
.archive-body p { font-size: 13px; color: var(--text-muted); }

/* ====== 記事詳細 ====== */
.single-article {
  max-width: 760px;
  margin: 0 auto;
}
.single-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.single-header h1 { font-size: clamp(20px, 3vw, 28px); font-weight: 800; line-height: 1.4; margin-bottom: 12px; }
.single-meta { display: flex; gap: 12px; align-items: center; }
.single-date { font-size: 13px; color: var(--text-muted); }
.single-body { font-size: 15px; line-height: 1.9; }
.single-body h2 { font-size: 20px; font-weight: 800; margin: 40px 0 16px; padding-left: 16px; border-left: 4px solid var(--primary); }
.single-body h3 { font-size: 17px; font-weight: 700; margin: 32px 0 12px; }
.single-body p  { margin-bottom: 20px; }
.single-body img { border-radius: 12px; margin: 24px 0; }
.single-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }

/* ====== パンくず ====== */
.breadcrumb { font-size: 12px; color: var(--text-muted); padding: 12px 24px; background: var(--bg-light); border-bottom: 1px solid var(--border); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ====== ページネーション ====== */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.pagination a,
.pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  font-size: 14px; font-weight: 700;
  border: 1px solid var(--border);
  transition: background .2s, border-color .2s;
}
.pagination a:hover { background: var(--bg-light); border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ====== フッター ====== */
footer {
  background: #111827;
  color: rgba(255,255,255,.65);
  padding: 56px 24px 28px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 28px;
}
.footer-brand-logo img { height: 48px; width: auto; object-fit: contain; margin-bottom: 16px; background: #fff; padding: 6px 12px; border-radius: 8px; }
.footer-tagline { font-size: 13px; color: var(--accent); margin-bottom: 10px; }
.footer-brand p { font-size: 12px; line-height: 1.9; }
.footer-nav h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-nav a { font-size: 13px; transition: color .2s; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 12px;
}
.footer-bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom-links a:hover { color: #fff; }

/* ====== レスポンシブ ====== */
@media (max-width: 900px) {
  .mvv-grid       { grid-template-columns: 1fr; }
  .services-grid  { grid-template-columns: 1fr 1fr; }
  .partners-grid  { grid-template-columns: 1fr 1fr; }
  .online-grid    { grid-template-columns: 1fr 1fr; }
  .contact-grid   { grid-template-columns: 1fr; }
  .footer-top     { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .header-inner .global-nav { display: none; }
  .hamburger        { display: flex; }
  .hero img         { height: 260px; }
  .services-grid    { grid-template-columns: 1fr; }
  .partners-grid    { grid-template-columns: 1fr 1fr; }
  .online-grid      { grid-template-columns: 1fr 1fr; }
  .footer-top       { grid-template-columns: 1fr; }
  .footer-bottom    { flex-direction: column; align-items: flex-start; }
  .company-table th { width: 100px; }
  .contact-form-wrap { padding: 24px; }
}
