/* RENODE コーポレートサイト
   ブランドカラーはロゴPNGから実測（ガイドライン: セルリアンブルー＝海 / ディープスカイブルー＝空）
   レイアウト: 白とごく淡い空色の面を交互に重ね、ロゴの「流れる曲線」を背景の飾りに使う */
:root {
  --cerulean: #2B50A2;
  --cerulean-deep: #213F82;
  --sky: #31B3E8;
  --sky-pale: #EAF6FC;
  --ink: #1C2433;
  --ink-sub: #4A5568;
  --line: #DCE3EC;
  --white: #FFFFFF;
  --radius: 18px;
  --header-h: 76px;

  /* 文字サイズ（本文17pxを基準にした段階） */
  --fs-xs: 13px;
  --fs-sm: 15px;
  --fs-base: 17px;
  --fs-md: 19px;
  --fs-lg: 22px;
  --fs-h3: clamp(20px, 2vw, 24px);
  --fs-h2: clamp(28px, 3vw, 38px);
  --fs-h1: clamp(32px, 4vw, 48px);

  --shadow: 0 12px 36px rgba(43,80,162,.09);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: var(--fs-base);
  color: var(--ink);
  background: var(--white);
  line-height: 1.95;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cerulean); }
h1, h2, h3 { line-height: 1.5; margin: 0; text-wrap: balance; word-break: auto-phrase; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.sp { display: none; }

/* ---- header ---- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
/* ロゴは天地44px（ガイドライン最小サイズ以上）＋周囲に余白を確保 */
.header-logo { display: block; padding: 8px 8px 8px 0; flex-shrink: 0; }
.header-logo img { height: 44px; width: auto; }
.global-nav { display: flex; align-items: center; gap: 36px; font-size: var(--fs-sm); font-weight: 500; }
.global-nav a { position: relative; color: var(--ink); text-decoration: none; padding: 6px 0; }
.global-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sky); transform: scaleX(0); transition: transform .2s; }
.global-nav a:hover, .global-nav a[aria-current="page"] { color: var(--cerulean); }
.global-nav a:hover::after, .global-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---- hero ---- */
.hero { position: relative; background: linear-gradient(160deg, var(--sky-pale) 0%, #FFFFFF 72%); padding: 104px 0 150px; overflow: hidden; }
.hero-ribbons { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: 56px; }
.hero-identity {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px;
  padding: 8px 20px 8px 16px; border-radius: 999px; background: var(--white);
  border: 1px solid rgba(49,179,232,.45); box-shadow: 0 6px 18px rgba(43,80,162,.08);
  font-size: var(--fs-base); font-weight: 700; letter-spacing: .08em; color: var(--cerulean);
}
.hero-identity::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sky); }
.hero h1 { font-size: var(--fs-h1); color: var(--cerulean); margin: 0 0 28px; }
.tagline-en { display: block; font-size: 1.7em; letter-spacing: .03em; color: var(--sky); line-height: 1.15; margin-bottom: 10px; }
/* 「結ぶ、」「寄り添う、」「共に在る。」の途中で改行しない */
.tagline-ja { display: block; font-size: clamp(26px, 2.9vw, 38px); text-wrap: wrap; }
.tagline-ja span { display: inline-block; }
.hero-lead { margin: 0; max-width: 32em; font-size: var(--fs-md); line-height: 2; color: var(--ink-sub); }
.hero-logo { padding: 32px; }
.hero-logo img { width: 100%; max-width: 380px; margin: 0 auto; }
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 90px; fill: var(--sky-pale); }

/* ---- 共通パーツ ---- */
.eyebrow { margin: 0; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .24em; color: var(--sky); }
.btn {
  display: inline-block; padding: 16px 44px;
  background: var(--cerulean); color: var(--white); text-decoration: none;
  border-radius: 999px; font-size: var(--fs-base); font-weight: 700; transition: background .2s;
}
.btn:hover { background: var(--sky); }
.btn-outline { background: var(--white); color: var(--cerulean); border: 2px solid var(--cerulean); }
.btn-outline:hover { background: var(--cerulean); color: var(--white); }
.ext { margin-left: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- sections ---- */
.section { padding: 112px 0; }
.section h2 { font-size: var(--fs-h2); margin: 8px 0 56px; }
.section-tint { background: var(--sky-pale); }
.section-deep { background: var(--cerulean); color: var(--white); }

/* 企業理念（MISSION / VISION）。背景に Re+Node の「結び目」画像を淡く敷く */
.philosophy-bg {
  background:
    linear-gradient(rgba(234,246,252,.72), rgba(234,246,252,.72)),
    var(--sky-pale) url(../img/philosophy-bg.webp) center / cover no-repeat;
}
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.mv-item { background: var(--white); border-radius: var(--radius); padding: 48px 44px; box-shadow: var(--shadow); }
.mv-label { margin: 0 0 12px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .2em; color: var(--sky); }
.mv-label span { margin-left: 10px; letter-spacing: .05em; color: var(--ink-sub); font-weight: 500; }
.mv-item h3 { font-size: clamp(22px, 2.4vw, 28px); color: var(--cerulean); margin-bottom: 18px; }
.mv-item p:last-child { margin: 0; color: var(--ink-sub); }
.name-origin { margin-top: 64px; text-align: center; }
.name-origin p { margin: 0; font-size: var(--fs-base); color: var(--ink-sub); }
.name-formula { font-size: 26px !important; font-weight: 700; letter-spacing: .08em; margin-bottom: 8px !important; }
.name-formula span { color: var(--sky); }
.name-formula strong { color: var(--cerulean); }

/* 価値観（VALUE） */
.value-list { list-style: none; counter-reset: v; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.value-list li { counter-increment: v; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); padding: 32px 24px; display: flex; flex-direction: column; gap: 12px; }
.value-list li::before { content: counter(v, decimal-leading-zero); color: var(--sky); font-weight: 700; font-size: var(--fs-sm); }
.value-key { margin: 0; font-size: var(--fs-lg); font-weight: 700; line-height: 1.4; }
.value-key small { display: block; font-size: var(--fs-xs); font-weight: 400; opacity: .75; letter-spacing: .1em; }
.value-list h3 { font-size: var(--fs-sm); font-weight: 500; line-height: 1.85; opacity: .95; }

/* お客様と向き合う3つの姿勢 */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pillar { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.pillar-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pillar-body { padding: 36px 36px 44px; }
.pillar-no { display: block; font-size: 36px; font-weight: 700; color: var(--sky); line-height: 1; margin-bottom: 18px; }
.pillar h3 { font-size: var(--fs-h3); color: var(--cerulean); margin-bottom: 16px; }
.pillar p { margin: 0; font-size: var(--fs-base); color: var(--ink-sub); }

/* 取扱保険（トップの概要カード・取扱保険ページ共通） */
.ins-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 56px; }
.ins-intro-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--sky-pale); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.ins-intro-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ins-intro-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s; }
.ins-intro-card:hover .ins-intro-img { transform: scale(1.03); }
.ins-intro-body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 36px 40px 40px; }
.ins-icon { width: 56px; height: 56px; color: var(--cerulean); }
.ins-intro-card h3 { font-size: 28px; color: var(--cerulean); }
.ins-intro-card p { margin: 0; color: var(--ink-sub); }
.ins-intro-more { margin-top: auto; padding-top: 8px; font-size: var(--fs-sm); font-weight: 700; color: var(--cerulean); display: inline-flex; gap: 8px; }
.ins-chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ins-chips li { font-size: var(--fs-sm); font-weight: 500; padding: 6px 16px; border-radius: 999px; background: var(--white); color: var(--cerulean); }

/* 下層ページ共通: ページタイトル */
.page-hero { position: relative; background: linear-gradient(160deg, var(--sky-pale) 0%, #FFFFFF 75%); padding: 88px 0 120px; overflow: hidden; }
.page-hero .container { position: relative; }
/* 取扱保険ページ: 港町の写真を背景に敷く */
.page-hero-photo { padding: 112px 0 150px; background: var(--sky-pale) url(../img/insurance-hero.webp) center 65% / cover no-repeat; }
.page-hero-photo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.7) 40%, rgba(255,255,255,.1) 75%);
}
.page-hero h1 { font-size: var(--fs-h1); color: var(--cerulean); margin: 0 0 16px; }
.page-hero .wave { fill: var(--white); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: var(--fs-sm); color: var(--ink-sub); }
.breadcrumb a { color: var(--ink-sub); }

/* 取扱保険ページ */
.ins-lead-section { padding-top: 40px; }
.ins-lead { max-width: 800px; margin: 0 auto 64px; text-align: center; }
.ins-lead h2 { font-size: var(--fs-h2); color: var(--cerulean); margin: 0 0 24px; }
.ins-lead p { margin: 0 0 12px; font-size: var(--fs-md); color: var(--ink-sub); }
.ins-detail { scroll-margin-top: var(--header-h); }
.ins-detail-head { display: flex; align-items: center; gap: 20px; }
.ins-detail-head h2 { margin: 0 !important; }
.ins-detail-head .ins-icon { width: 64px; height: 64px; flex-shrink: 0; }
.ins-detail-lead { margin: 20px 0 8px; font-size: var(--fs-md); font-weight: 500; padding-bottom: 24px; border-bottom: 3px solid var(--sky); }
.ins-sub { margin: 36px 0 16px; font-size: var(--fs-base); font-weight: 700; color: var(--cerulean); display: flex; align-items: center; gap: 12px; }
.ins-sub::before { content: ""; width: 22px; height: 2px; background: var(--sky); }
.ins-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ins-grid li { display: flex; align-items: center; gap: 12px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.ins-grid li::before { content: ""; width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--sky); }
.ins-grid .item { font-size: var(--fs-base); font-weight: 700; }
.ins-company {
  display: inline-flex; align-items: center; gap: 8px; padding: 20px 28px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--white); color: var(--ink); font-size: var(--fs-base); font-weight: 500; text-decoration: none; transition: border-color .2s, color .2s;
}
.ins-company:hover { border-color: var(--cerulean); color: var(--cerulean); }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.link-list a { display: flex; justify-content: space-between; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.link-list a:hover { border-color: var(--cerulean); color: var(--cerulean); }

/* ネット加入 */
.net-entry { padding: 36px 40px; border-radius: var(--radius); border: 2px solid var(--sky); background: var(--white); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.net-entry h3 { font-size: var(--fs-lg); color: var(--cerulean); margin-bottom: 8px; }
.net-entry p { margin: 0; color: var(--ink-sub); }
.net-entry .btn { flex-shrink: 0; }

/* 会社概要 */
.company-table { display: grid; grid-template-columns: 200px 1fr; margin: 0; border-top: 1px solid var(--line); }
.company-table dt, .company-table dd { margin: 0; padding: 22px 8px; border-bottom: 1px solid var(--line); }
.company-table dt { font-weight: 700; color: var(--cerulean); }

/* 方針ページ */
.policy-page { padding: 80px 0 112px; font-size: 16px; }
.policy { padding-top: 48px; }
.policy h2 { font-size: 28px; color: var(--cerulean); padding-bottom: 12px; border-bottom: 3px solid var(--sky); margin-bottom: 24px; }
.policy h2 small { font-size: var(--fs-base); font-weight: 500; margin-left: 4px; }
.policy h3 { font-size: var(--fs-md); margin: 36px 0 12px; }
.policy p { margin: 0 0 14px; }
.policy li { margin-bottom: 8px; }
.policy-lead { font-weight: 700; color: var(--ink-sub); }
.policy-sub { font-weight: 700; color: var(--cerulean); margin: 18px 0 4px !important; }
.policy-note { margin-top: 28px !important; font-size: var(--fs-sm); color: var(--ink-sub); }
.policy-dl { margin: 0; }
.policy-dl dt { font-weight: 700; color: var(--cerulean); margin-top: 16px; }
.policy-dl dd { margin: 2px 0 0; }
.policy-circled { list-style: none; counter-reset: c; padding-left: 0; }
.policy-circled li { counter-increment: c; position: relative; padding-left: 1.9em; }
.policy-circled li::before { content: counter(c); position: absolute; left: 0; top: .3em; width: 1.35em; height: 1.35em; border: 1px solid currentColor; border-radius: 50%; font-size: 13px; line-height: 1.3em; text-align: center; }
.policy-contact { margin-top: 24px; padding: 28px 32px; border-radius: var(--radius); background: var(--sky-pale); }
.policy-contact-title { font-weight: 700; color: var(--cerulean); }
.policy-contact dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 16px; margin: 0; }
.policy-contact dt { font-weight: 700; }
.policy-contact dd { margin: 0; min-width: 0; }

/* ---- footer ---- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding: 64px 0 36px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.footer-logo { height: 48px; width: auto; padding: 4px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; font-size: var(--fs-sm); }
.footer-nav a { color: rgba(255,255,255,.88); text-decoration: none; }
.footer-nav a:hover { color: var(--sky); }
.copyright { margin: 0; font-size: var(--fs-xs); opacity: .6; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ins-intro-card, .ins-intro-img, .global-nav a::after { transition: none; }
  .ins-intro-card:hover, .ins-intro-card:hover .ins-intro-img { transform: none; }
}

/* ---- responsive ---- */
@media (max-width: 1000px) {
  .value-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .global-nav { gap: 22px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-logo { order: -1; padding: 0; }
  .hero-logo img { max-width: 220px; }
  /* 文字が写真の上に広く重なるので、白を上から下へかける */
  .page-hero-photo::before {
    background: linear-gradient(180deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.78) 55%, rgba(255,255,255,.2) 100%);
  }
  .pillars, .mv, .ins-intro { grid-template-columns: 1fr; }
  .value-list { grid-template-columns: 1fr 1fr; }
  .net-entry { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  :root { --header-h: 64px; --fs-base: 16px; --fs-md: 17px; --fs-h2: 25px; }
  .container { padding: 0 16px; }
  .header-logo img { height: 34px; }
  .global-nav { display: none; }
  .hero { padding: 48px 0 112px; }
  .page-hero-photo { padding: 64px 0 120px; }
  .hero-identity { font-size: 15px; padding: 6px 16px 6px 12px; }
  .section { padding: 72px 0; }
  .section h2 { margin-bottom: 40px; }
  .sp { display: inline; }
  .mv-item, .pillar-body, .ins-intro-body { padding: 32px 24px; }
  .value-list { grid-template-columns: 1fr; }
  .net-entry { padding: 28px 22px; }
  .company-table { grid-template-columns: 1fr; }
  .company-table dt { border-bottom: none; padding-bottom: 0; }
  .policy-contact dl { grid-template-columns: 1fr; gap: 0; }
  .policy-contact dd { margin-bottom: 8px; }
}
