/* =========================================================
   株式会社アドヴァンス保険サービス
   温かく、やわらかい印象（クリーム × 若草 × 藍）
   ========================================================= */
:root {
  --cream: #fbf7f0;
  --cream-2: #f5eee2;
  --sand: #eadfcc;
  --ink: #3b3a40;
  --ink-soft: #6b6870;
  --indigo: #3f4596;      /* ロゴの藍色 */
  --indigo-soft: #e9eaf5;
  --sage: #6f9a6a;        /* やさしい若草色 */
  --sage-dark: #557c51;
  --sage-light: #e8f0e2;
  --sky: #e3eef3;
  --white: #fff;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(84, 70, 48, .08);
  --font-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-base: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .04em;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-round); font-weight: 700; line-height: 1.5; }
p { margin: 0; }
.pc { display: inline; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 999; background: var(--white); padding: 8px 16px; border-radius: 8px; }

.container { width: min(1100px, 100% - 40px); margin-inline: auto; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: background .3s, box-shadow .3s, height .3s;
}
.header.is-scrolled { background: rgba(251, 247, 240, .94); backdrop-filter: blur(8px); box-shadow: 0 2px 16px rgba(84, 70, 48, .08); }
.header__inner { height: 100%; width: min(1240px, 100% - 40px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark {
  display: grid; place-items: center;
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--indigo); color: #fff;
  font-family: "Times New Roman", serif; font-size: 18px; letter-spacing: .06em;
  border-radius: 10px;
}
.brand__text { display: flex; flex-direction: column; font-family: var(--font-round); font-weight: 700; font-size: 17px; line-height: 1.35; letter-spacing: .06em; }
.brand__text small { font-size: 11px; font-weight: 500; color: var(--ink-soft); letter-spacing: .1em; }

.gnav { display: flex; align-items: center; gap: 28px; }
.gnav ul { display: flex; gap: 26px; }
.gnav ul a { text-decoration: none; font-size: 15px; font-weight: 500; position: relative; padding-block: 6px; }
.gnav ul a::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 2px; border-radius: 2px; background: var(--sage); transition: width .25s, left .25s; }
.gnav ul a:hover::after { width: 100%; left: 0; }
.gnav__tel {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; border-radius: 999px;
  background: var(--sage); color: #fff; text-decoration: none;
  font-family: var(--font-round); font-weight: 700; font-size: 19px; line-height: 1.2; letter-spacing: .04em;
  transition: background .2s, transform .2s;
}
.gnav__tel:hover { background: var(--sage-dark); transform: translateY(-1px); }
.gnav__tel svg { width: 22px; height: 22px; fill: currentColor; }
.gnav__tel span { display: flex; flex-direction: column; }
.gnav__tel small { font-size: 10px; font-weight: 500; letter-spacing: .1em; opacity: .9; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: url("../images/hero.jpg") center right / cover no-repeat;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(251, 247, 240, .96) 0%, rgba(251, 247, 240, .82) 34%, rgba(251, 247, 240, .2) 62%, rgba(251, 247, 240, 0) 80%),
    linear-gradient(0deg, var(--cream) 0%, rgba(251, 247, 240, 0) 18%);
}
.hero__inner { position: relative; width: min(1240px, 100% - 40px); margin-inline: auto; }
.hero__eyebrow {
  display: inline-block; margin-bottom: 22px;
  padding: 6px 16px; border-radius: 999px;
  background: var(--sage-light); color: var(--sage-dark);
  font-size: 14px; font-weight: 700; letter-spacing: .1em;
}
.hero__title { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.45; letter-spacing: .08em; color: var(--ink); }
.hero__title span { display: block; }
.hero__title span:nth-child(3) { color: var(--indigo); }
.hero__lead { margin-top: 26px; font-size: clamp(15px, 1.3vw, 17px); line-height: 2.1; color: var(--ink); }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 220px; padding: 15px 28px; border-radius: 999px;
  font-family: var(--font-round); font-weight: 700; font-size: 16px; text-decoration: none;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn--primary { background: var(--indigo); color: #fff; box-shadow: 0 8px 20px rgba(63, 69, 150, .22); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(63, 69, 150, .28); }
.btn--ghost { background: rgba(255, 255, 255, .85); color: var(--ink); border: 1.5px solid var(--sand); }
.btn--ghost::before { content: "TEL"; font-size: 12px; color: var(--sage-dark); letter-spacing: .1em; }
.btn--ghost:hover { background: #fff; transform: translateY(-2px); }

/* ---------- Section common ---------- */
.section { padding: 110px 0; position: relative; }
.section__head { text-align: center; margin-bottom: 56px; }
.section__en { font-family: var(--font-round); font-size: 13px; font-weight: 700; letter-spacing: .24em; color: var(--sage); }
.section__title { margin-top: 6px; font-size: clamp(26px, 3vw, 34px); letter-spacing: .12em; }
.section__title::after {
  content: ""; display: block; margin: 18px auto 0;
  width: 40px; height: 6px; border-radius: 6px;
  background: radial-gradient(circle, var(--sage) 3px, transparent 3.5px) 0 0 / 12px 6px repeat-x;
}
.sub-title { margin: 72px 0 28px; text-align: center; font-size: 22px; letter-spacing: .1em; }

.note { margin-top: 16px; text-align: center; font-size: 13px; color: var(--ink-soft); }

/* ---------- Business ---------- */
.business__intro {
  display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center;
  padding: 52px 56px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}
.business__catch {
  aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--sage-light);
  font-family: var(--font-round); font-size: 18px; line-height: 1.7;
}
.business__catch strong { font-size: 27px; color: var(--sage-dark); }
.business__body h3 { font-size: 19px; color: var(--indigo); margin-bottom: 18px; letter-spacing: .08em; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li + li { margin-top: 14px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.product-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.product-card {
  display: flex; align-items: center; gap: 24px;
  padding: 32px 34px; border-radius: var(--radius);
  background: var(--white); text-decoration: none; box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--sage); box-shadow: 0 16px 36px rgba(84, 70, 48, .12); }
.product-card__icon { flex-shrink: 0; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-2); color: var(--sage-dark); }
.product-card:nth-child(2) .product-card__icon { background: var(--indigo-soft); color: var(--indigo); }
.product-card__icon svg { width: 52px; height: 52px; }
.product-card__body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.product-card__label { font-family: var(--font-round); font-weight: 700; font-size: 21px; }
.product-card__desc { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.product-card__arrow { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--sage); color: #fff; font-weight: 700; transition: transform .25s; }
.product-card:hover .product-card__arrow { transform: translateX(4px); }

/* ---------- Philosophy ---------- */
.philosophy { background: var(--cream-2); }
.philosophy::before, .philosophy::after {
  content: ""; position: absolute; left: 0; right: 0; height: 40px;
  background: var(--cream);
}
.philosophy::before { top: -1px; border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.philosophy::after { bottom: -1px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.philosophy__card {
  position: relative; max-width: 860px; margin-inline: auto;
  padding: 64px 72px 56px; border-radius: 28px; background: var(--white); box-shadow: var(--shadow);
}
.philosophy__card::before {
  content: "“"; position: absolute; top: 4px; left: 28px;
  font-family: Georgia, serif; font-size: 110px; line-height: 1; color: var(--sage-light);
}
.philosophy__text { position: relative; font-family: var(--font-round); font-size: clamp(17px, 1.8vw, 20px); line-height: 2.3; font-weight: 500; }
.philosophy__sign { margin-top: 36px; text-align: right; font-size: 14px; color: var(--ink-soft); line-height: 1.9; }
.philosophy__sign span { font-family: var(--font-round); font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: .2em; }

/* ---------- Company ---------- */
.overview { max-width: 860px; margin: 0 auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 48px; }
.overview__row { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px dashed var(--sand); }
.overview__row:last-child { border-bottom: 0; }
.overview dt { font-family: var(--font-round); font-weight: 700; color: var(--sage-dark); }
.overview dd { margin: 0; min-height: 1.9em; }
.overview dd a { color: var(--indigo); font-weight: 700; text-decoration: none; }

/* ---------- Info ---------- */
.info { background: var(--sky); }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.info-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 34px 30px 30px; border-radius: var(--radius);
  background: var(--white); text-decoration: none; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.info-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(60, 90, 110, .14); }
.info-card__tag { align-self: flex-start; padding: 2px 12px; border-radius: 999px; background: var(--indigo-soft); color: var(--indigo); font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.info-card h3 { font-size: 20px; }
.info-card p { flex: 1; font-size: 14px; color: var(--ink-soft); line-height: 1.8; }
.info-card__more { margin-top: 8px; align-self: flex-end; font-size: 14px; font-weight: 700; color: var(--sage-dark); }
.info-card__more::after { content: " →"; transition: margin .2s; }
.info-card:hover .info-card__more::after { margin-left: 4px; }

/* ---------- Links ---------- */
.link-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; max-width: 920px; margin-inline: auto; }
.link-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 24px; border-radius: 14px;
  background: var(--white); text-decoration: none; font-weight: 500;
  border: 1.5px solid var(--sand);
  transition: border-color .2s, background .2s;
}
.link-list a::after {
  content: ""; flex-shrink: 0; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f9a6a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.link-list a:hover { border-color: var(--sage); background: var(--sage-light); }

/* ---------- CTA ---------- */
.cta { padding: 0 0 100px; }
.cta__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 44px 56px; border-radius: 28px;
  background: var(--indigo); color: #fff;
  background-image: radial-gradient(circle at 92% 20%, rgba(255, 255, 255, .12) 0 90px, transparent 91px), radial-gradient(circle at 80% 110%, rgba(255, 255, 255, .08) 0 120px, transparent 121px);
}
.cta__lead { font-family: var(--font-round); font-weight: 700; font-size: clamp(19px, 2vw, 24px); }
.cta__sub { margin-top: 4px; font-size: 14px; opacity: .85; }
.cta__tel {
  display: flex; align-items: baseline; gap: 10px;
  padding: 14px 34px; border-radius: 999px; background: #fff; color: var(--indigo);
  font-family: var(--font-round); font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); text-decoration: none; letter-spacing: .04em;
  transition: transform .2s;
}
.cta__tel small { font-size: 14px; color: var(--sage-dark); }
.cta__tel:hover { transform: translateY(-2px); }

/* ---------- Footer ---------- */
.footer { background: #4a4740; color: #f1ebe0; padding: 56px 0 24px; font-size: 14px; }
.footer a { color: inherit; }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__name { font-family: var(--font-round); font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: .08em; }
.footer__info a { text-decoration: none; }
.footer__links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer__links a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.footer__links a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #a9c7a4; }
.footer__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__links .pdf { padding: 0 6px; border: 1px solid rgba(241, 235, 224, .5); border-radius: 4px; font-size: 10px; letter-spacing: .08em; line-height: 1.6; }
.footer__copy { margin-top: 40px; text-align: center; opacity: .7; }

.pagetop {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sage); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .3s, transform .3s;
}
.pagetop.is-show { opacity: 1; pointer-events: auto; transform: none; }
.pagetop svg { width: 24px; height: 24px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  :root { --header-h: 70px; }
  .brand__mark { width: 42px; height: 42px; font-size: 16px; }
  .brand__text { font-size: 15px; }
  .brand { min-width: 0; }
  .brand__text { white-space: nowrap; }
  .header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(251, 247, 240, .98); }
  .nav-toggle {
    display: block; position: relative; z-index: 120;
    width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--sage); cursor: pointer;
  }
  .nav-toggle span { position: absolute; left: 13px; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s, opacity .3s; }
  .nav-toggle span:nth-child(1) { top: 16px; }
  .nav-toggle span:nth-child(2) { top: 22px; }
  .nav-toggle span:nth-child(3) { top: 28px; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .gnav {
    position: fixed; inset: 0; z-index: 110;
    flex-direction: column; justify-content: center; gap: 36px;
    background: var(--cream);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav-open .gnav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .gnav ul { flex-direction: column; align-items: center; gap: 22px; }
  .gnav ul a { font-family: var(--font-round); font-size: 19px; font-weight: 700; }
}

@media (max-width: 860px) {
  .pc { display: none; }
  .section { padding: 80px 0; }
  .section__head { margin-bottom: 40px; }
  .hero { min-height: auto; padding: calc(var(--header-h) + 260px) 0 56px; align-items: flex-end; }
  .hero__bg { background-position: 70% top; background-size: auto 380px; }
  .hero__bg::after { background: linear-gradient(0deg, var(--cream) 0%, var(--cream) calc(100% - 400px), rgba(251, 247, 240, 0) calc(100% - 250px)); }
  .business__intro { grid-template-columns: 1fr; gap: 28px; padding: 36px 24px; }
  .business__catch { width: 220px; margin-inline: auto; font-size: 16px; }
  .business__catch strong { font-size: 23px; }
  .product-cards, .info-cards, .link-list { grid-template-columns: 1fr; }
  .product-card { padding: 24px 20px; gap: 16px; }
  .product-card__icon { width: 64px; height: 64px; }
  .product-card__icon svg { width: 40px; height: 40px; }
  .product-card__label { font-size: 18px; }
  .philosophy__card { padding: 52px 24px 36px; }
  .philosophy__text { line-height: 2.1; }
  .overview { padding: 8px 22px; }
  .overview__row { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .cta__inner { padding: 36px 24px; justify-content: center; text-align: center; }
  .cta__tel { width: 100%; justify-content: center; }
  .btn { min-width: 0; flex: 1 1 100%; }
}

@media (max-width: 420px) {
  .brand { gap: 8px; }
  .brand__mark { width: 38px; height: 38px; font-size: 14px; border-radius: 8px; }
  .brand__text { font-size: 13px; letter-spacing: .01em; }
  .brand__text small { font-size: 9.5px; letter-spacing: .04em; }
  .hero__title { font-size: 29px; }
}
