/* ============================================================
   CONNECT-RC  共通スタイルシート
   style.css
   ============================================================ */

/* ---------- CSS カスタムプロパティ ---------- */
:root {
  --rc-blue: #5f8db7;
  --rc-blue-dark: #2d6b9f;
  --rc-blue-light: #eaf1f6;
  --rc-pink: #c6456b;
  --rc-pink-dark: #a73359;
  --rc-gray: #70808b;
  --rc-gray-light: #eef3f6;
  --rc-text: #3c454c;
  --rc-white: #fff;
  --max: 1120px;
}

/* ---------- リセット / ベース ---------- */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  color: var(--rc-text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Yu Gothic", YuGothic, Meiryo, sans-serif;
  line-height: 1.8;
  background: #fff;
  letter-spacing: .02em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 18px rgba(79,93,105,.08);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo {
  display: flex; align-items: center; gap: 13px;
  color: var(--rc-blue-dark); font-weight: 700; font-size: 30px;
  letter-spacing: .04em; line-height: 1;
}
.logo-mark {
  width: 48px; height: 48px;
  border: 3px solid var(--rc-blue-dark); border-radius: 50%;
  display: grid; place-items: center;
  font-family: Georgia, serif; font-size: 24px; font-weight: 400;
}
.logo-sub {
  display: block; margin-top: 6px;
  font-size: 10px; color: var(--rc-blue-dark);
  letter-spacing: .02em; font-weight: 500;
}
.logo-image {
  width: 300px; height: 70px;
  object-fit: cover; object-position: center;
}
.nav {
  display: flex; gap: 18px; align-items: center;
  font-size: 14px; color: #50636f; font-weight: 700;
}
.nav a:hover { color: var(--rc-pink); }
.nav .nav-cta {
  display: inline-flex;
  align-items: center;
  min-width: 124px;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--rc-pink) 0%, #e21652 100%);
  color: #fff;
  padding: 10px 24px;
  border: 2px solid #b9325a;
  border-radius: 999px;
  font-weight: 800;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.45),
    0 10px 22px rgba(226,22,82,.24);
}
.nav .nav-cta:hover { color: #fff; filter: brightness(1.03); }
.nav .nav-cta-mobile-fix {
  background-color: #e21652;
  background-image: linear-gradient(135deg, var(--rc-pink) 0%, #e21652 100%);
  color: #fff;
  -webkit-text-fill-color: #fff;
  -webkit-tap-highlight-color: rgba(226,22,82,.18);
}
.nav .nav-cta-mobile-fix:link,
.nav .nav-cta-mobile-fix:visited,
.nav .nav-cta-mobile-fix:hover,
.nav .nav-cta-mobile-fix:active,
.nav .nav-cta-mobile-fix:focus {
  background-color: #e21652;
  background-image: linear-gradient(135deg, var(--rc-pink) 0%, #e21652 100%);
  color: #fff;
  -webkit-text-fill-color: #fff;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border-radius: 999px; padding: 14px 28px;
  font-weight: 800; border: 2px solid var(--rc-pink);
  transition: .2s ease; font-size: 16px;
}
.btn.primary {
  min-width: 240px;
  background: linear-gradient(135deg, var(--rc-pink) 0%, #e21652 100%);
  color: #fff;
  border-color: #b9325a;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.45),
    0 16px 28px rgba(226,22,82,.28);
}
.btn.secondary { background: rgba(255,255,255,.9); color: var(--rc-pink); }
.btn:hover { transform: translateY(-2px); filter: brightness(1.02); }

/* ---------- セクション共通 ---------- */
.section { padding: 72px 0; }
#point,
#scene,
#flow,
#consultant {
  scroll-margin-top: 90px;
}
.section-title {
  text-align: center; margin: 0 0 34px;
  color: #4a5b66; font-size: 32px;
  line-height: 1.35; letter-spacing: .05em;
}
.section-title .en {
  display: block; color: var(--rc-blue);
  font-size: 15px; font-weight: 500;
  letter-spacing: .08em; margin-bottom: 4px;
}

/* ---------- ヒーロー ---------- */
.hero-full {
  position: relative; min-height: 100vh; overflow: hidden;
  display: grid; align-items: center; background: #f8fbfd;
}
.hero-full::before {
  content: ""; position: absolute; inset: 0;
  background: url("img/team_doctors.png") center/cover no-repeat;
  transform: scale(1.01);
}
.hero-full::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.78) 34%, rgba(255,255,255,.22) 64%, rgba(255,255,255,.1) 100%),
    linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 55%, rgba(255,255,255,.92) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max); width: 100%;
  margin: 0 auto; padding: 110px 28px 84px;
}
.hero-copy { max-width: 720px; }

.hero-full h1 {
  margin: 18px 0 12px; color: var(--rc-pink);
  text-shadow: 0 2px 12px rgba(255,255,255,.82);
  font-size: clamp(42px, 5.2vw, 64px);
  line-height: 1.13; letter-spacing: .04em; font-weight: 900;
  width: max-content;
}
.hero-title-main { display: block; white-space: nowrap; }
.hero-full h1 .small {
  display: block;
  font-size: .56em;
  text-align: right;
  white-space: nowrap;
}
.hero-lead {
  max-width: 620px; font-size: 20px; font-weight: 800;
  color: #40515d; margin: 0 0 16px;
  text-shadow: 0 2px 12px rgba(255,255,255,.85);
}
.hero-lines {
  display: grid; grid-template-columns: max-content max-content; justify-items: start;
  gap: 8px 12px; max-width: 720px; margin: 18px 0;
}
.hero-lines span {
  display: inline-block; width: max-content; max-width: 100%;
  background:  var(--rc-blue); 
  font-weight: 800; padding: 7px 15px; font-size: 14px; color: #fff; grid-column: 1 / -1; 
}
.badges {
  display: grid; grid-template-columns: repeat(4, 82px);
  gap: 8px; margin-top: 16px;
}
.badges span {
  background: var(--rc-pink); color: #fff;
  font-size: 20px; line-height: 1.22;
  text-align: center; padding: 11px 8px;
  font-weight: 800; box-shadow: 0 8px 20px rgba(198,69,107,.25);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.scroll-cue {
  position: absolute; z-index: 3; bottom: 26px;
  left: 50%; transform: translateX(-50%);
  color: #6e7d86; font-size: 12px;
  letter-spacing: .1em; text-align: center;
}
.scroll-cue::after {
  content: ""; display: block;
  width: 1px; height: 34px; background: var(--rc-pink);
  margin: 8px auto 0;
  animation: cue 1.6s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { opacity: .25; transform: scaleY(.65); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

@media (min-width: 901px) {
  .hero-full h1 {
    margin: 58px 0 24px;
    font-size: clamp(38px, 4.35vw, 54px);
    line-height: 1.08;
  }
  .hero-title-main {
    display: inline-block;
  }
  .hero-full h1 .small {
    display: inline-block;
    margin: 0 0 0 .28em;
    vertical-align: baseline;
    text-align: left;
  }
}

/* ---------- イントロ ---------- */
.intro-split {
  display: grid; grid-template-columns: .95fr 1.05fr;
  align-items: stretch; background: #fff;
  box-shadow: 0 16px 40px rgba(64,80,92,.14);
  margin-top: -38px; position: relative; z-index: 5;
}
.intro-photo {
  min-height: 330px;
  background: url("img/doctor_tablet.png") center/cover no-repeat;
}
.intro-card { padding: 48px 50px; border-top: 8px solid var(--rc-pink); }
.intro-card p { margin: 0 0 16px; }
.intro-card p:last-child { margin-bottom: 0; }
.intro-card .btn { margin-top: 14px; }

/* ---------- 3つのPOINT ---------- */
.point-section { background: #fff; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.point {
  background: #fff; text-align: center; padding: 34px 26px;
  border: 1px solid #e2e9ee;
  box-shadow: 0 10px 24px rgba(75,90,105,.08);
}
.icon {
  height: 110px; display: grid; place-items: center;
  line-height: 1; margin-bottom: 14px;
  overflow: visible;
}
.icon img {
  width: 190px; height: 110px;
  object-fit: contain;
  transform: scale(1.55);
}
.point h3 { margin: 0 0 10px; color: var(--rc-pink); font-size: 27px; line-height: 1.35; }
.point p  { margin: 0; font-size: 15px; color: #5f6e78; }

/* ---------- ご相談シーン ---------- */
.scene-section {
  background: linear-gradient(135deg, #d8e2e8 0%, #eff4f7 100%);
  position: relative; overflow: hidden;
}
.scene-section::before {
  content: "RC"; position: absolute; left: -80px; top: 10px;
  color: rgba(255,255,255,.35);
  font-family: Georgia, serif; font-size: 240px; line-height: 1;
}
.scenes {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.scene {
  background: #fff; padding: 23px 27px;
  border-left: 6px solid var(--rc-pink);
  box-shadow: 0 10px 22px rgba(89,103,116,.08);
}
.scene strong {
  display: block; color: #495a64;
  font-size: 21px; line-height: 1.45; margin-bottom: 4px;
}
.answer {
  margin-top: 24px; text-align: center;
  font-weight: 800; color: var(--rc-pink); font-size: 21px;
  max-width: 100%;
  margin-left: auto; margin-right: auto;
}
.answer span {
  display: inline;
  padding: 0 8px 2px;
  background: linear-gradient(transparent 58%, rgba(226,22,82,.18) 58%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- ご利用の流れ ---------- */
.flow-image {
  margin: -8px auto 34px;
  max-width: 920px;
}
.flow-image img {
  width: 100%;
  margin: 0 auto;
}
.flow-section { background: #fff; }
.flow-box {
  background: #aec0cc; padding: 34px;
  max-width: 920px; margin: 0 auto;
  color: #fff; position: relative; overflow: hidden;
}
.flow-box::before {
  content: "RC"; position: absolute; left: -38px; bottom: -54px;
  color: rgba(255,255,255,.22);
  font-family: Georgia, serif; font-size: 180px; line-height: 1;
}
.flow-step {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr;
  align-items: stretch;
}
.flow-step:last-child { margin-bottom: 0; }
.flow-arrow {
  position: relative; z-index: 1;
  width: 0; height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 16px solid #fff;
  margin: 14px auto;
}
.flow-text {
  background: #fff; color: #52616b;
  padding: 20px 26px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.flow-text h3 { margin: 0; color: #4b5861; font-size: 22px; min-width: 190px; }
.flow-text p  { margin: 0; flex: 1; min-width: 260px; }

/* ---------- コンサルタント ---------- */
.consultants-section { background: #f7fafb; }
.grid-two { display: grid; grid-template-columns: .95fr 1.05fr; gap: 28px; }
.panel {
  background: #fff; padding: 34px 36px;
  box-shadow: 0 10px 26px rgba(65,80,92,.08);
  border-top: 5px solid var(--rc-blue);
}
.panel h3 { margin: 0 0 18px; color: var(--rc-pink); font-size: 22px; letter-spacing: .05em; }
.panel p   { margin: 0 0 10px; }
.consultant-list { display: grid; gap: 7px; }
.consultant-list div {
  display: flex; justify-content: space-between; gap: 20px;
  border-bottom: 1px solid #edf2f5; padding-bottom: 7px;
}
.consultant-list span:first-child { color: #66737c; }
.consultant-list span:last-child  { font-weight: 700; color: #4a555d; white-space: nowrap; }
.message { margin-top: 26px; background: #eef3f6; padding: 26px 30px; color: #53636d; }
.message h3 { margin: 0 0 12px; color: var(--rc-blue); font-size: 18px; }
.message p  { margin: 0; font-size: 15px; }

/* ---------- 運用にあたって ---------- */
.operation-section { background: #fff; }
.operation-text { max-width: 940px; margin: 0 auto; }
.operation-text p { margin: 0 0 18px; }

/* ---------- お問い合わせ ---------- */
.contact-section {
  background: linear-gradient(135deg, var(--rc-pink), #b88978);
  color: #fff; padding: 58px 0;
}
.contact-box {
  display: grid; grid-template-columns: 1fr auto;
  gap: 34px; align-items: center;
}
.contact-box h2 { margin: 0 0 8px; font-size: 28px; }
.contact-box p  { margin: 0; }
.mail-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--rc-pink);
  font-weight: 800; border-radius: 999px; padding: 14px 26px; white-space: nowrap;
  transition: opacity .2s ease;
}
.mail-btn:hover { opacity: .78; }
.mail-tools { margin-top: 16px; font-size: 14px; }
.mail-tools a,
.mail-tools button {
  color: #fff; text-decoration: underline;
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
}
.copied { margin-left: 8px; font-weight: 700; }

/* ---------- フッター ---------- */
.footer {
  padding: 24px 0; background: #45545e;
  color: #fff; font-size: 13px; text-align: center;
}
.to-top { text-align: right; margin-top: 24px; font-size: 14px; }
.to-top a { color: var(--rc-blue); text-decoration: underline; }

/* ---------- サブページ共通 ---------- */
.page-hero {
  padding: 120px 0 54px;
  background: linear-gradient(135deg, var(--rc-blue-light) 0%, #fff 100%);
  border-bottom: 4px solid var(--rc-pink);
}
.page-hero h1 {
  margin: 10px 0 10px;
  font-size: clamp(28px, 3.4vw, 42px);
  color: var(--rc-blue-dark);
  letter-spacing: .04em;
  white-space: normal;
  line-height: 1.2;
}
.page-hero h1 span {
  display: block;
  font-size: .68em;
  margin-top: 10px;
}
.page-hero p { margin: 0; color: var(--rc-gray); font-size: 15px; }
.page-body { padding: 64px 0 80px; }
.content-block { max-width: 860px; margin: 0 auto; }
.content-block h2 {
  font-size: 22px; color: var(--rc-blue-dark);
  border-left: 5px solid var(--rc-pink);
  padding-left: 14px; margin: 40px 0 14px;
}
.content-block h2:first-child { margin-top: 0; }
.content-block h2.plain-heading {
  border-left: 0;
  padding-left: 0;
}
.content-block h3 {
  font-size: 17px; color: var(--rc-pink);
  margin: 28px 0 8px;
}
.content-block p  { margin: 0 0 16px; }
.content-block a {
  color: var(--rc-blue-dark);
  text-decoration: underline;
}
.content-block ul,
.content-block ol { padding-left: 1.5em; margin: 0 0 16px; }
.content-block ol.purpose { list-style-type: lower-alpha; }
.content-block ol.identification,
.content-block ol.personal_information { list-style-type: lower-alpha; }
.content-block ol > li > ul { list-style: none; }
.content-block li { margin-bottom: 6px; }
.content-block table {
  width: 100%; border-collapse: collapse; margin: 0 0 20px;
  font-size: 14px;
}
.content-block th,
.content-block td {
  border: 1px solid #d9e4ec; padding: 10px 14px; text-align: left;
}
.content-block th { background: var(--rc-blue-light); font-weight: 700; }
.info-box {
  background: var(--rc-blue-light); border-left: 5px solid var(--rc-blue);
  padding: 18px 22px; margin: 20px 0; border-radius: 0 4px 4px 0;
}
.warn-box {
  background: #fdf0f3; border-left: 5px solid var(--rc-pink);
  padding: 18px 22px; margin: 20px 0; border-radius: 0 4px 4px 0;
}
.text-alert { color: #d33; }

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 900px) {
  html { scroll-padding-top: 125px; }
  #point,
  #scene,
  #flow,
  #consultant {
    scroll-margin-top: 125px;
  }
  .header-inner { display: block; }
  .nav {
    margin-top: 12px;
    flex-wrap: wrap;
    gap: 10px 14px;
    white-space: normal;
  }
  .nav .nav-cta { padding: 8px 14px; }
  .page-hero { padding-top: 210px; }
  .hero-content { padding-top: 210px; }
  .hero-full h1 { max-width: 100%; }
  .hero-full::before {
    background-image: url("img/team_doctors_2.png");
    background-position: 58% center;
  }
  .hero-full::after {
    background:
      linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.8) 55%, rgba(255,255,255,.42) 100%),
      linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 55%, rgba(255,255,255,.92) 100%);
  }
  .badges { grid-template-columns: repeat(4, 74px); }
  .badges span { font-size: 18px; }
  .intro-split { grid-template-columns: 1fr; }
  .intro-photo { min-height: 280px; }
  .intro-card  { padding: 30px 24px; }
  .points, .scenes, .grid-two, .contact-box { grid-template-columns: 1fr; }
  .flow-text h3 { min-width: 0; }
  .section   { padding: 54px 0; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .hero-full { min-height: 860px; }
  .hero-content { padding-top: 88px; padding-bottom: 58px; }
  .scroll-cue { bottom: 16px; }
}

@media (min-width: 521px) and (max-width: 900px) {
  .hero-content { padding-top: 150px; padding-bottom: 80px; }
  .hero-full { min-height: 760px; }
  .scroll-cue { bottom: 18px; }
}

@media (min-width: 521px) and (max-width: 600px) {
  .hero-content { padding-top: 185px; }
  .hero-full { min-height: 820px; }
}

@media (max-width: 520px) {
  html { scroll-padding-top: 120px; }
  #point,
  #scene,
  #flow,
  #consultant {
    scroll-margin-top: 120px;
  }
  .wrap, .header-inner, .hero-content { padding-left: 18px; padding-right: 18px; }
  .logo      { font-size: 23px; }
  .logo-mark { width: 40px; height: 40px; font-size: 20px; }
  .logo-image { width: 220px; height: 52px; }
  .nav { font-size: 13px; gap: 8px 10px; }
  .nav .nav-cta { padding: 7px 12px; }
  .page-hero { padding-top: 190px; }
  .hero-content { padding-top: 180px; padding-bottom: 90px; }
  .hero-full { min-height: 900px; }
  .hero-full::before {
    background-image: url("img/team_doctors_2.png");
    background-position: 58% center;
  }
  .hero-copy { max-width: 100%; min-width: 0; }
  .hero-full h1 { width: 100%; max-width: 100%; font-size: 34px; }
  .hero-title-main { white-space: normal; overflow-wrap: anywhere; }
  .hero-full h1 .small { margin-top: 4px; text-align: left; }
  .hero-lead  { font-size: 17px; }
  .hero-lines { grid-template-columns: 1fr; }
  .hero-lines span:nth-child(3) { grid-column: auto; }
  .hero-lines span { font-size: 14px; }
  .badges { grid-template-columns: repeat(2, 78px); }
  .cta-row { width: 100%; }
  .btn    { width: 100%; min-width: 0; padding: 13px 18px; white-space: normal; text-align: center; }
  .scroll-cue { bottom: 12px; }
  .scene-section::before { left: -118px; top: 56px; }
  .answer {
    font-size: 21px;
    line-height: 1.55;
  }
  .answer span {
    padding: 0 6px 2px;
  }
  .section-title { font-size: 25px; }
  .flow-box  { padding: 22px 18px; }
  .consultant-list div { display: block; }
  .consultant-list span { display: block; }
  .panel { padding: 28px 22px; }
  .page-hero h1 { white-space: normal; }
  .content-block h2 { font-size: 19px; }
}
