/* =========================================================
   有限会社リアシュアランス スタイルシート
   ========================================================= */
:root {
  --green: #24684E;
  --green-dark: #164433;
  --green-soft: #E9F4EF;
  --cream: #FBF9F4;
  --orange: #E86A1E;
  --orange-light: #F79432;
  --orange-hover: #D45A10;
  --orange-soft: #FFF1E6;
  --text: #222B27;
  --text-sub: #576660;
  --line: #D8E5DF;
  --white: #FFFFFF;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --en: "Inter", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--green-dark);
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  line-height: 1.8;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
svg, img { display: block; max-width: 100%; }

/* スクロール連動アニメーション */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-item {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.is-visible .stagger-item:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateX(0); }
.is-visible .stagger-item:nth-child(2) { transition-delay: 0.25s; opacity: 1; transform: translateX(0); }
.is-visible .stagger-item:nth-child(3) { transition-delay: 0.4s; opacity: 1; transform: translateX(0); }
.is-visible .stagger-item:nth-child(4) { transition-delay: 0.55s; opacity: 1; transform: translateX(0); }

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.float-badge {
  animation: gentleFloat 4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes popIn {
  0% { opacity: 0; transform: translateY(14px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.fv-anim-1 { animation: popIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.fv-anim-2 { opacity: 0; animation: popIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.15s; }
.fv-anim-3 { opacity: 0; animation: popIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.3s; }

/* カプセル型・二重枠・光が走るボタン */
@keyframes shineSweep {
  0% { left: -80%; }
  28% { left: 135%; }
  100% { left: 135%; }
}

.btn-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 52px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange-light) 0%, var(--orange) 100%);
  color: var(--white);
  font-weight: 900;
  text-align: center;
  border: 2.5px solid var(--white);
  box-shadow: 0 0 0 2.5px var(--orange), 0 8px 20px rgba(232, 106, 30, 0.32);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 2.5px var(--orange-hover), 0 12px 26px rgba(232, 106, 30, 0.42);
}
.btn-pill::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -80%;
  width: 48px;
  height: 140%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.68) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: shineSweep 3.4s ease-in-out infinite;
  pointer-events: none;
}
.btn-pill__txt {
  position: relative;
  z-index: 1;
  line-height: 1.3;
}
.btn-pill__txt small {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
  opacity: 0.96;
}
.btn-pill__txt strong {
  display: block;
  font-size: 16.5px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.btn-pill__arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  color: var(--orange);
  display: grid;
  place-items: center;
  z-index: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* PC左サイドパネル専用ボタン調整（1行表示） */
.side--l .btn-pill {
  padding: 12px 46px 12px 22px;
}
.side--l .btn-pill__txt small { font-size: 11px; }
.side--l .btn-pill__txt strong { font-size: 14.5px; letter-spacing: 0.01em; }
.side--l .btn-pill__arrow { right: 12px; width: 26px; height: 26px; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger-item, .fv-anim-1, .fv-anim-2, .fv-anim-3 { opacity: 1; transform: none; transition: none; animation: none; }
  .float-badge, .tags__track, .btn-pill::before { animation: none; }
}

/* PC 3カラム・シェル構造 */
.shell {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  gap: 32px;
  padding: 0 24px;
}
.side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}
.side--l { width: 290px; padding: 32px 0; }
.side__badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 4px 12px; border-radius: 999px;
  margin-bottom: 16px; align-self: flex-start;
}
.side__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange-light); }
.side__logo { font-size: 22px; font-weight: 900; line-height: 1.3; margin-bottom: 14px; letter-spacing: .02em; }
.side__logo span {
  display: block; font-family: var(--en); font-size: 12px;
  font-weight: 800; letter-spacing: .18em; color: #9ED4BE; margin-bottom: 4px;
}
.side__catch { font-size: 15px; line-height: 1.75; color: rgba(255,255,255,0.9); margin-bottom: 22px; }
.side__catch b { color: #FFB07A; font-weight: 700; }
.side__illust {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px; padding: 16px; margin-bottom: 24px;
}

.side--r { width: 210px; padding: 32px 0; }
.index__ttl {
  font-family: var(--en); font-size: 12px; font-weight: 800;
  letter-spacing: .2em; color: #9ED4BE; margin-bottom: 16px; display: block;
}
.index {
  display: flex; flex-direction: column; gap: 12px;
  border-left: 2px solid rgba(255,255,255,0.18); padding-left: 16px;
}
.index a {
  font-size: 13.5px; font-weight: 500;
  color: rgba(255,255,255,0.65); transition: all .2s; display: block; position: relative;
}
.index a:hover, .index a.is-active { color: var(--white); font-weight: 700; transform: translateX(3px); }
.index a.is-active::before {
  content: ""; position: absolute; left: -19px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--orange-light);
}

/* 中央メインカラム */
.main-col {
  width: 100%; max-width: 520px; background: var(--cream);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.35);
  min-height: 100vh; position: relative; overflow-x: hidden;
}
.hd {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.hd__logo { font-weight: 900; font-size: 15px; color: var(--green-dark); display: flex; align-items: center; gap: 8px; }
.hd__logo-dot { width: 12px; height: 12px; border-radius: 3px; background: var(--green); position: relative; }
.hd__logo-dot::after {
  content: ""; position: absolute; right: -3px; bottom: -3px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--orange);
}
.hd__cta {
  background: linear-gradient(90deg, var(--orange-light) 0%, var(--orange) 100%);
  color: var(--white); font-size: 12.5px; font-weight: 700;
  padding: 7px 14px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 5px;
  box-shadow: 0 2px 8px rgba(232, 106, 30, 0.25); transition: transform .2s;
}
.hd__cta:hover { transform: translateY(-1px); }

.tags {
  background: var(--green); color: var(--white); overflow: hidden;
  padding: 7px 0; font-size: 12px; font-weight: 500; white-space: nowrap;
}
.tags__track { display: inline-flex; gap: 18px; animation: marquee 28s linear infinite; }
.tags__track span { opacity: 0.95; }
.tags__track span b { color: #FFB07A; margin-right: 2px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.sec { padding: 56px 24px; border-bottom: 1px solid var(--line); }
.sec--white { background: var(--white); }
.sec--soft { background: var(--green-soft); }

.eyebrow {
  font-family: var(--en); font-size: 11.5px; font-weight: 800;
  letter-spacing: .18em; color: var(--orange); margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 16px; height: 2px; background: var(--orange); }
.h2 { font-size: 24px; font-weight: 900; line-height: 1.4; color: var(--green-dark); margin-bottom: 16px; }
.h2 .accent { color: var(--orange); }
.sec-lead { font-size: 14.5px; color: var(--text-sub); margin-bottom: 28px; }

/* ファーストビュー */
.fv {
  padding: 26px 18px 42px;
  background: linear-gradient(180deg, var(--green-soft) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
}
.fv__card {
  background-color: var(--white);
  background-image:
    linear-gradient(to right, rgba(36, 104, 78, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(36, 104, 78, 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
  border: 2.5px solid var(--green-dark); border-radius: 22px; overflow: hidden;
  box-shadow: 0 12px 30px rgba(22, 68, 51, 0.1); margin-bottom: 20px;
}
.fv__inner { padding: 28px 20px 22px; }
.fv__lead {
  text-align: center; font-size: 13.5px; font-weight: 700; color: var(--green-dark);
  margin-bottom: 16px; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.fv__lead::before, .fv__lead::after { content: ""; width: 2px; height: 16px; background: var(--orange); border-radius: 2px; }
.fv__lead::before { transform: rotate(-24deg); }
.fv__lead::after { transform: rotate(24deg); }

.fv__h1 { font-weight: 900; color: var(--green-dark); line-height: 1.22; letter-spacing: -0.02em; margin-bottom: 22px; }
.fv__h1 .ln { display: block; }
.fv__h1 .l1 { font-size: clamp(28px, 7.5vw, 35px); margin-bottom: 4px; }
.fv__h1 .l2 { font-size: clamp(40px, 11vw, 50px); line-height: 1.15; margin-bottom: 6px; }
.fv__h1 .l2 .big-accent {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  display: inline-block; padding: 0 2px;
}
.fv__h1 .l2 .sub-txt { font-size: clamp(28px, 7.5vw, 35px); color: var(--green-dark); }
.fv__h1 .l3 { font-size: clamp(30px, 8vw, 38px); }

.fv__body { display: grid; grid-template-columns: 1.24fr 0.76fr; gap: 10px; align-items: end; margin-bottom: 18px; }
.fv__bars { display: flex; flex-direction: column; gap: 6px; padding-bottom: 2px; }
.fv__bar {
  display: inline-block; align-self: flex-start; background: var(--green-dark);
  color: var(--white); font-size: 12px; font-weight: 700;
  padding: 6px 10px; border-radius: 6px; line-height: 1.3;
  box-shadow: 0 3px 8px rgba(22, 68, 51, 0.15);
}
.fv__bar b { color: #FFB07A; font-weight: 900; }
.fv__stage { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.fv__ring {
  position: absolute; width: 114px; height: 114px; border-radius: 50%;
  background: radial-gradient(circle, var(--orange-soft) 0%, rgba(233, 244, 239, 0.7) 100%);
  border: 2px dashed rgba(232, 106, 30, 0.35); bottom: 4px; z-index: 0;
}
.fv__stage svg { position: relative; z-index: 1; width: 132px; }
.fv__diagram { background: var(--cream); border-radius: 14px; padding: 12px 10px; border: 1px dashed var(--line); }

.fv__bottom {
  background: var(--green-dark); color: var(--white); padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.fv__bottom-brand { font-family: var(--en); font-weight: 900; font-size: 18px; letter-spacing: 0.06em; line-height: 1.1; }
.fv__bottom-brand span { color: #FFB07A; }
.fv__bottom small {
  font-family: var(--en); font-size: 9.5px; font-weight: 700;
  line-height: 1.3; letter-spacing: 0.1em; color: #9ED4BE; text-align: right;
}
.fv__subcopy { font-size: 14px; color: var(--text); line-height: 1.75; margin-bottom: 24px; padding: 0 4px; }

/* 3つのコア事業 */
.srv-list { display: grid; gap: 20px; }
.srv-card {
  background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--green);
  border-radius: 14px; padding: 22px 20px; box-shadow: 0 4px 14px rgba(0,0,0,0.03);
  transition: transform .25s ease, box-shadow .25s ease;
}
.srv-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(22, 68, 51, 0.08); }
.srv-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.srv-card__num {
  font-family: var(--en); font-size: 12px; font-weight: 800;
  color: var(--orange); background: var(--orange-soft); padding: 3px 10px; border-radius: 4px;
}
.srv-card h3 { font-size: 18px; font-weight: 900; color: var(--green-dark); margin-bottom: 8px; line-height: 1.4; }
.srv-card p { font-size: 14px; color: var(--text-sub); margin-bottom: 14px; }
.srv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.srv-tags span {
  font-size: 12px; font-weight: 500; background: var(--green-soft);
  color: var(--green-dark); padding: 4px 10px; border-radius: 6px;
}

/* 選ばれる3つの理由 */
.promise-list { display: grid; gap: 32px; }
.promise {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 22px; box-shadow: 0 6px 20px rgba(22, 68, 51, 0.05);
}
.promise__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.promise__no { font-family: var(--en); font-size: 24px; font-weight: 900; color: var(--orange); line-height: 1; }
.promise h3 { font-size: 18px; font-weight: 900; color: var(--green-dark); line-height: 1.4; }
.koma { background: #F4F8F6; border: 1px solid var(--line); border-radius: 12px; padding: 16px 14px; margin: 14px 0 16px; }
.koma__cap {
  font-size: 12px; font-weight: 700; color: var(--green);
  display: flex; align-items: center; gap: 6px; margin-bottom: 12px;
}
.koma__cap::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.sheet-row {
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 12px; font-size: 13px; font-weight: 700; color: var(--green-dark);
  display: flex; align-items: center; gap: 9px; margin-bottom: 7px;
}
.sheet-row:last-child { margin-bottom: 0; }
.sheet-check {
  width: 18px; height: 18px; border-radius: 4px; background: var(--orange);
  color: var(--white); display: grid; place-items: center; flex-shrink: 0; font-size: 11px;
}
.dash-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--white); padding: 9px 12px; border-radius: 8px;
  border: 1px solid var(--line); margin-bottom: 7px; font-size: 13px;
}
.dash-row:last-child { margin-bottom: 0; }
.dash-row b { color: var(--green); font-size: 13.5px; }
.dash-row b.up { color: var(--orange); }
.promise p { font-size: 14.5px; color: var(--text); }

/* ご相談の流れ */
.flow-steps { display: grid; gap: 14px; }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start;
}
.step__no {
  font-family: var(--en); font-size: 11.5px; font-weight: 800;
  background: var(--green); color: var(--white); padding: 4px 9px; border-radius: 6px; flex-shrink: 0; margin-top: 2px;
}
.step--goal .step__no { background: var(--orange); }
.step h3 { font-size: 15.5px; font-weight: 700; color: var(--green-dark); margin-bottom: 4px; }
.step p { font-size: 13.5px; color: var(--text-sub); line-height: 1.65; }

/* 代表メッセージ・経歴 */
.msg-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px; }
.msg-profile {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px dashed var(--line);
}
.msg-avatar { width: 72px; height: 72px; flex-shrink: 0; }
.msg-role { font-size: 12px; color: var(--text-sub); display: block; margin-bottom: 6px; }

/* 代表名PNG画像用スタイル */
.sign-img-lg { height: 26px; width: auto; display: block; }
.sign-img-sm { height: 21px; width: auto; display: inline-block; }
.rep-cell { display: flex; align-items: center; gap: 8px; }

.msg-body p { font-size: 14.5px; margin-bottom: 14px; }
.career-box { background: var(--cream); border-radius: 10px; padding: 16px; margin-top: 18px; }
.career-box h4 { font-size: 13px; font-weight: 700; color: var(--orange); margin-bottom: 8px; }
.career-box li { font-size: 13.5px; padding-left: 14px; position: relative; margin-bottom: 6px; }
.career-box li:last-child { margin-bottom: 0; }
.career-box li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
}

/* 会社概要 */
.comp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.comp-table th, .comp-table td { padding: 14px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comp-table th { width: 100px; color: var(--green-dark); font-weight: 700; }
.comp-table td li { padding-left: 14px; position: relative; margin-bottom: 4px; }
.comp-table td li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--orange);
}

/* お問い合わせ（Googleフォーム高さ最適化） */
.contact-sec { background: var(--green-soft); padding: 56px 20px; }
.form-box {
  background: var(--white); border: 2px solid var(--green); border-radius: 18px;
  padding: 16px 8px; box-shadow: 0 8px 24px rgba(22, 68, 51, 0.08);
}
.google-form-iframe { width: 100%; height: 1220px; border: none; display: block; }

/* フッター */
.foot {
  background: var(--green-dark); color: rgba(255,255,255,0.85);
  text-align: center; padding: 28px 20px; font-size: 12.5px;
}

@media (max-width: 1080px) {
  .side { display: none; }
  .shell { padding: 0; }
  .main-col { max-width: 640px; }
}
@media (max-width: 640px) {
  .main-col { max-width: 100%; }
}