/* 大分高齢者紹介センター - 黒目川診療所風レイアウト */
:root {
  --color-main: #16a34a;
  --color-main-light: #4ade80;
  --color-accent: #15803d;
  --color-orange: #d97a38;
  --color-orange-dark: #c96b2c;
  --color-text: #333;
  --color-text-light: #666;
  --color-bg: #fff;
  --color-bg-alt: #faf5f5;
  --font-sans: 'Noto Sans JP', sans-serif;
  --header-height: 64px;
  --container-width: 960px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--color-main);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--color-bg);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-main);
}

.nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--color-main);
}

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle::before,
.nav-toggle::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--color-text);
  transition: transform .2s;
}

.nav-toggle::before { top: 10px; }
.nav-toggle::after { bottom: 10px; }

.nav-toggle.is-open::before {
  top: 15px;
  transform: translateX(-50%) rotate(45deg);
}

.nav-toggle.is-open::after {
  bottom: 15px;
  transform: translateX(-50%) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    padding: 20px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform .2s, opacity .2s, visibility .2s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
  }

  .nav li {
    border-bottom: 1px solid #eee;
  }

  .nav a {
    display: block;
    padding: 12px 0;
  }

  .nav-toggle {
    display: block;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 80vh;
  color: #fff;
  padding: 48px 20px 56px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 淡いオーバーレイ */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06) 0%, transparent 50%);
  pointer-events: none;
}

/* ふわふわ泡パーティクル */
.hero-bubbles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-bubble {
  position: absolute;
  bottom: -10%;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  box-shadow: 0 0 8px rgba(255, 255, 255, .35);
  animation: bubbleFloat 14s ease-in-out infinite;
}

.hero-bubble:nth-child(1)  { left: 8%;  width: 12px;  height: 12px;  animation-duration: 16s; animation-delay: 0s; }
.hero-bubble:nth-child(2)  { left: 18%; width: 10px;  height: 10px;  animation-duration: 18s; animation-delay: 2s; }
.hero-bubble:nth-child(3)  { left: 28%; width: 14px; height: 14px; animation-duration: 14s; animation-delay: 4s; }
.hero-bubble:nth-child(4)  { left: 42%; width: 8px;  height: 8px;  animation-duration: 20s; animation-delay: 1s; }
.hero-bubble:nth-child(5)  { left: 55%; width: 11px; height: 11px; animation-duration: 15s; animation-delay: 5s; }
.hero-bubble:nth-child(6)  { left: 65%; width: 13px; height: 13px; animation-duration: 17s; animation-delay: 3s; }
.hero-bubble:nth-child(7)  { left: 75%; width: 10px; height: 10px; animation-duration: 19s; animation-delay: 6s; }
.hero-bubble:nth-child(8)  { left: 88%; width: 12px; height: 12px; animation-duration: 13s; animation-delay: 2.5s; }
.hero-bubble:nth-child(9)  { left: 12%; width: 8px;  height: 8px;  animation-duration: 21s; animation-delay: 7s; }
.hero-bubble:nth-child(10) { left: 35%; width: 11px; height: 11px; animation-duration: 16s; animation-delay: 0.5s; }
.hero-bubble:nth-child(11) { left: 52%; width: 10px; height: 10px; animation-duration: 18s; animation-delay: 3.5s; }
.hero-bubble:nth-child(12) { left: 72%; width: 12px; height: 12px; animation-duration: 14s; animation-delay: 5.5s; }
.hero-bubble:nth-child(13) { left: 5%;  width: 10px; height: 10px; animation-duration: 19s; animation-delay: 1.5s; }
.hero-bubble:nth-child(14) { left: 48%; width: 13px; height: 13px; animation-duration: 15s; animation-delay: 4.5s; }
.hero-bubble:nth-child(15) { left: 92%; width: 8px;  height: 8px;  animation-duration: 17s; animation-delay: 6.5s; }

@keyframes bubbleFloat {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  8% {
    opacity: .55;
  }
  50% {
    transform: translate(15px, -50vh) scale(1.1);
    opacity: .5;
  }
  92% {
    opacity: .35;
  }
  100% {
    transform: translate(-10px, -105vh) scale(0.95);
    opacity: 0;
  }
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide-1 {
  animation: heroFade1 8s ease-in-out infinite;
}

.hero-slide-2 {
  animation: heroFade2 8s ease-in-out infinite;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes heroFade1 {
  0%, 45% { opacity: 1; }
  50%, 95% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes heroFade2 {
  0%, 45% { opacity: 0; }
  50%, 95% { opacity: 1; }
  100% { opacity: 0; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container-width);
  margin: 0 auto;
}

.hero-heading {
  display: inline-block;
  margin: 0 0 8px;
  padding: 8px 24px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: #fff;
  background: var(--color-main);
  border-radius: 9999px;
}

.hero-lead {
  margin: 0 0 24px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-main);
  letter-spacing: .02em;
  text-shadow:
    -3px -3px 4px #fff,
    3px -3px 4px #fff,
    -3px 3px 4px #fff,
    3px 3px 4px #fff,
    0 -3px 4px #fff,
    0 3px 4px #fff,
    -3px 0 4px #fff,
    3px 0 4px #fff,
    -2px -2px 3px #fff,
    2px -2px 3px #fff,
    -2px 2px 3px #fff,
    2px 2px 3px #fff,
    0 -2px 3px #fff,
    0 2px 3px #fff,
    -2px 0 3px #fff,
    2px 0 3px #fff,
    -1px -1px 2px #fff,
    1px -1px 2px #fff,
    -1px 1px 2px #fff,
    1px 1px 2px #fff,
    0 -1px 2px #fff,
    0 1px 2px #fff,
    -1px 0 2px #fff,
    1px 0 2px #fff,
    0 1px 3px rgba(0, 0, 0, .65),
    0 2px 6px rgba(0, 0, 0, .55),
    0 0 14px rgba(255, 255, 255, .98),
    0 0 28px rgba(255, 255, 255, .85),
    0 0 40px rgba(255, 255, 255, .55);
}

.hero-catch {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--color-main);
  letter-spacing: .02em;
  text-shadow:
    -4px -4px 5px #fff,
    4px -4px 5px #fff,
    -4px 4px 5px #fff,
    4px 4px 5px #fff,
    0 -4px 5px #fff,
    0 4px 5px #fff,
    -4px 0 5px #fff,
    4px 0 5px #fff,
    -3px -3px 4px #fff,
    3px -3px 4px #fff,
    -3px 3px 4px #fff,
    3px 3px 4px #fff,
    0 -3px 4px #fff,
    0 3px 4px #fff,
    -3px 0 4px #fff,
    3px 0 4px #fff,
    -2px -2px 3px #fff,
    2px -2px 3px #fff,
    -2px 2px 3px #fff,
    2px 2px 3px #fff,
    0 -2px 3px #fff,
    0 2px 3px #fff,
    -2px 0 3px #fff,
    2px 0 3px #fff,
    -1px -1px 2px #fff,
    1px -1px 2px #fff,
    -1px 1px 2px #fff,
    1px 1px 2px #fff,
    0 -1px 2px #fff,
    0 1px 2px #fff,
    -1px 0 2px #fff,
    1px 0 2px #fff,
    0 1px 4px rgba(0, 0, 0, .7),
    0 2px 8px rgba(0, 0, 0, .6),
    0 0 18px rgba(255, 255, 255, .98),
    0 0 36px rgba(255, 255, 255, .85),
    0 0 52px rgba(255, 255, 255, .55);
}

.hero-highlight {
  color: var(--color-orange);
}

.hero-tel {
  margin: 0;
}

.hero-tel-label {
  font-size: 0.875rem;
  opacity: .9;
  margin-bottom: 4px;
}

.hero-tel-number {
  margin: 0 0 16px;
  font-size: 1.75rem;
  font-weight: 700;
}

.hero-tel-number a {
  color: #fff;
  text-decoration: none;
}

.hero-tel-number a:hover {
  text-decoration: underline;
}

.hero-line {
  font-size: 0.9375rem;
  opacity: .95;
}

@media (max-width: 599px) {
  .hero {
    align-items: center;
    padding-top: 72px;
    padding-bottom: 56px;
  }

  .hero-catch {
    font-size: 1.3rem;
  }
}

@media (min-width: 600px) {
  .hero-catch {
    font-size: 1.75rem;
  }
}

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 20px;
}

.section-ttl {
  margin: 0 0 24px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-main);
  text-align: center;
}

/* About */
.about {
  background: linear-gradient(135deg, #ecfdf3 0%, #d1fae5 45%, #a7f3d0 100%);
  color: var(--color-text);
}

.about-lead {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 500;
  text-align: center;
}

.about-txt {
  margin: 0 auto 32px;
  text-align: center;
  color: var(--color-text);
  max-width: 560px;
}

.about .about-contact-label {
  color: var(--color-main);
}

.about-contact {
  max-width: 320px;
  margin: 0 auto;
  padding: 24px;
  background: #fff;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .1);
}

.about-contact-label {
  margin: 0 0 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

.about-contact-tel {
  margin: 0 0 12px;
}

.tel-btn {
  display: inline-block;
  padding: 14px 28px;
  background: #fff;
  color: var(--color-main);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  transition: box-shadow .2s, transform .2s;
}

.tel-btn:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
  transform: translateY(-1px);
}

.about-contact .tel-btn {
  background: var(--color-orange);
  color: #fff;
  border: none;
}

.about-contact .tel-btn:hover {
  background: var(--color-orange-dark);
}

.about-contact .contact-label {
  color: var(--color-orange);
}

.about-contact .about-contact-line {
  color: #06C755;
}

.about-contact-line {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-light);
}

.line-icon {
  display: block;
  width: 140px;
  height: 140px;
  margin: 0 auto 8px;
  object-fit: contain;
}

/* Vision */
.vision {
  background: var(--color-bg-alt);
}

.vision-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.vision-content {
  flex: 1;
  min-width: 280px;
}

.vision .section-ttl {
  text-align: left;
}

.vision-lead {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.vision-txt {
  margin: 0;
  color: var(--color-text-light);
  max-width: 520px;
}

.vision-figure {
  margin: 0;
  flex: 0 0 320px;
  max-width: 100%;
}

.vision-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

@media (max-width: 720px) {
  .vision-inner {
    flex-direction: column;
    gap: 24px;
  }

  .vision-content {
    order: 1;
  }

  .vision-figure {
    flex: 0 0 auto;
    order: 0;
  }

  .vision .section-ttl,
  .vision-txt {
    text-align: center;
  }

  .vision-txt {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Service */
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 0 0 24px;
}

.service-card {
  background: var(--color-bg);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  padding: 0 0 24px;
}

.service-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  transform: translateY(-2px);
}

.service-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  display: block;
  vertical-align: middle;
}

.service-card-ttl {
  margin: 0;
  padding: 16px 24px 8px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
}

.service-card > p:not(.service-card-ttl) {
  margin: 0;
  padding: 0 24px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-light);
}

@media (max-width: 560px) {
  .service-cards {
    grid-template-columns: 1fr;
  }
}

.service-note {
  margin: 0;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--color-text-light);
}

/* Flow */
.flow {
  background: var(--color-bg-alt);
}

.flow-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 560px;
  margin: 0 auto;
}

.flow-card {
  position: relative;
  width: 100%;
  padding: 24px 24px 24px 72px;
  background: var(--color-bg);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.flow-arrow {
  display: block;
  width: 0;
  height: 0;
  margin: 8px auto;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 12px solid var(--color-main);
}

.flow-card .flow-num {
  position: absolute;
  left: 20px;
  top: 24px;
  width: 40px;
  height: 40px;
  background: var(--color-main);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
}

.flow-card-ttl {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-main);
}

.flow-card-txt {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-light);
}

/* FAQ */
.faq-list {
  margin: 0;
  padding: 0;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.faq-list dt {
  margin: 0;
  padding: 16px 20px;
  background: var(--color-bg-alt);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-text);
  border-radius: 8px 8px 0 0;
  border-left: 4px solid var(--color-main);
}

.faq-list dd {
  margin: 0 0 24px;
  padding: 16px 20px 20px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-top: none;
  border-radius: 0 0 8px 8px;
  color: var(--color-text-light);
  font-size: 0.9375rem;
  line-height: 1.75;
}

/* Contact */
.contact {
  background: var(--color-bg-alt);
}

.contact-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.contact-block {
  min-width: 240px;
  padding: 24px 32px;
  background: var(--color-bg);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact-label {
  margin: 0 0 8px;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.contact-block:has(.line-icon) .contact-label {
  color: #06C755;
}

.contact-block .tel-btn {
  background: var(--color-orange);
  color: #fff;
  border: none;
}

.contact-block .tel-btn:hover {
  background: var(--color-orange-dark);
}

.contact-tel {
  margin: 0 0 16px 0;
  height: 70%;
  display: flex;
  align-items: center;
}

.contact-line {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text);
}

/* Footer */
.footer {
  background: var(--color-main);
  color: #fff;
  padding: 32px 20px;
  text-align: center;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
}

.footer-logo {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
}

.footer-copy {
  margin: 0 0 16px;
  font-size: 0.875rem;
  opacity: .9;
}

.copyright {
  margin: 0;
  font-size: 0.75rem;
  opacity: .8;
}

.footer a {
  color: #fff;
}
