

/* ========================================
   FV
   写真主役 / 左下コピー / 白短冊 / 下中央scroll
======================================== */
.p-fv {
  position: relative;
  padding: 12px 0 0;
  background: var(--color-white);
}

.p-fv__viewport {
  position: relative;
}

.p-fv__track {
  position: relative;
  width: 100%;
  aspect-ratio: 1360 / 620;
}

.p-fv__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1s ease, visibility 1s ease;
}

.p-fv__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.p-fv__media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: #dfeaf1;
}

.p-fv__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(7, 96, 167, 0.04) 0%,
      rgba(7, 96, 167, 0.02) 28%,
      rgba(7, 96, 167, 0.08) 100%
    );
  pointer-events: none;
}

.p-fv__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

/* ----------------------------------------
   copy panel
---------------------------------------- */
.p-fv__panel {
  position: absolute;
  left: 48px;
  bottom: 54px;
  z-index: 3;
  max-width: min(720px, calc(100% - 120px));
}

.p-fv__sub {
  display: inline-block;
  margin: 0 0 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-main);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.p-fv__title {
  margin: 0;
  color: var(--color-main);
  font-size: clamp(2rem, 1.45rem + 1.6vw, 3.35rem);
  line-height: 1.34;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.p-fv__title span {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 12px 8px;
  background: rgba(255, 255, 255, 0.96);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.p-fv__title span:first-child {
  margin-top: 0;
}

.p-fv__text {
  margin: 14px 0 0;
  color: var(--color-main-dark);
  font-size: 1.1rem;
  line-height: 1.85;
  font-weight: 700;
}

.p-fv__text span {
  display: inline-block;
  margin-top: 6px;
  padding: 5px 10px 6px;
  background: rgba(255, 255, 255, 0.92);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.p-fv__text span:first-child {
  margin-top: 0;
}

/* ----------------------------------------
   scroll
---------------------------------------- */
.p-fv__scroll {
  position: absolute;
  left: 50%;
  bottom: -1px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 60px;
  border-radius: 56px 56px 0 0;
  background: var(--color-white);
  transform: translateX(-50%);
  box-shadow: 0 -1px 0 var(--color-border);
}

.p-fv__scroll-label {
  color: var(--color-text-light);
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.12em;
}

.p-fv__scroll-arrow {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
  margin-top: 6px;
}

.p-fv__scroll-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-main);
  border-bottom: 2px solid var(--color-main);
  transform: rotate(45deg);
}

/* ----------------------------------------
   dots
---------------------------------------- */
.p-fv__dots {
  position: absolute;
  right: 28px;
  bottom: 26px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.p-fv__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.p-fv__dot.is-active {
  width: 26px;
  background: rgba(255, 255, 255, 0.98);
}

/* ----------------------------------------
   optional floating badge
---------------------------------------- */
.p-fv__float-badge {
  position: absolute;
  right: 34px;
  bottom: 78px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 150px;
  aspect-ratio: 1;
  padding: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-text);
  text-align: center;
  box-shadow: 0 8px 22px rgba(7, 96, 167, 0.10);
}

.p-fv__float-badge-label {
  display: block;
  color: var(--color-text-light);
  font-size: 0.92rem;
  line-height: 1.4;
}

.p-fv__float-badge-title {
  display: block;
  margin-top: 6px;
  color: var(--color-main);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ----------------------------------------
   tablet
---------------------------------------- */
@media (max-width: 1100px) {
  .p-fv__track {
    aspect-ratio: 1200 / 620;
  }

  .p-fv__panel {
    left: 32px;
    bottom: 42px;
    max-width: calc(100% - 64px);
  }

  .p-fv__sub {
    font-size: 0.94rem;
  }

  .p-fv__text {
    font-size: 1.05rem;
  }

  .p-fv__dots {
    right: 22px;
    bottom: 22px;
  }
}

/* ----------------------------------------
   mobile
---------------------------------------- */
@media (max-width: 767px) {
  .p-fv {
    padding-top: 0;
  }

  .p-fv__viewport.l-container {
    width: 100%;
  }

  .p-fv__track {
    aspect-ratio: 4 / 5;
  }

  .p-fv__media {
    border-radius: 0;
  }

  .p-fv__img {
    object-position: 65% 100%;
  }

  .p-fv__panel {
    left: 20px;
    right: 20px;
    bottom: 36px;
    max-width: none;
  }

  .p-fv__sub {
    margin-bottom: 10px;
    padding: 6px 10px;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
  }

  .p-fv__title {
    font-size: clamp(1.55rem, 1.18rem + 1.4vw, 2.15rem);
    line-height: 1.46;
    letter-spacing: 0.03em;
  }

  .p-fv__title span {
    margin-top: 5px;
    padding: 5px 9px 6px;
  }

  .p-fv__text {
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .p-fv__text span {
    margin-top: 5px;
    padding: 4px 8px 5px;
  }

  .p-fv__dots {
    left: 50%;
    right: auto;
    bottom: 16px;
    transform: translateX(-50%);
  }

  .p-fv__dot {
    width: 8px;
    height: 8px;
  }

  .p-fv__dot.is-active {
    width: 22px;
  }

  .p-fv__scroll {
    width: 96px;
    height: 52px;
  }

  .p-fv__scroll-label {
    font-size: 0.66rem;
  }

  .p-fv__float-badge {
    display: none;
  }
}
.p-fv__panel {
  position: absolute;
  left: 48px;
  bottom: 54px;
  z-index: 3;
  max-width: min(720px, calc(100% - 120px));
}

.p-fv__sub,
.p-fv__title,
.p-fv__text {
  margin: 0;
}

.p-fv__sub {
  margin-bottom: 12px;
  color: var(--color-main);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.p-fv__title {
  color: var(--color-main);
  font-size: clamp(2rem, 1.45rem + 1.6vw, 3.35rem);
  line-height: 1.34;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.p-fv__text {
  margin-top: 14px;
  color: var(--color-main-dark);
  font-size: 1rem;
  line-height: 1.85;
  font-weight: 500;
}

/* 各行を白背景にする */
.p-fv__sub span,
.p-fv__title span,
.p-fv__text span {
  display: inline-block;
  padding: 4px 10px 6px;
  background: rgba(255, 255, 255, 0.94);
}

/* 行間 */
.p-fv__title span + span,
.p-fv__text span + span {
  margin-top: 6px;
}

/* タイトルは必ず改行 */
.p-fv__title span {
  display: table;
}

/* 本文も行ごとに改行 */
.p-fv__text span {
  display: table;
}

/* サブコピーは1行 */
.p-fv__sub span {
  display: inline-block;
}

@media (max-width: 767px) {
  .p-fv__panel {
    left: 20px;
    right: 20px;
    bottom: 56px;
    max-width: none;
  }

  .p-fv__sub {
    font-size: 0.75rem;
  }

  .p-fv__title {
    font-size: clamp(1.55rem, 1.18rem + 1.4vw, 2.15rem);
    line-height: 1.46;
  }

  .p-fv__text {
    font-size: 1rem;
    font-weight:600;
    line-height: 1.8;
  }

  .p-fv__sub span,
  .p-fv__title span,
  .p-fv__text span {
    padding: 4px 8px 5px;
  }

  .p-fv__title span + span,
  .p-fv__text span + span {
    margin-top: 5px;
  }
}

/* ----------------------------------------
   reduced motion
---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .p-fv__slide,
  .p-fv__dot {
    transition: none;
  }
}

.p-top-medical {
  padding: 56px 0;
  background: #f7fafc;
}

.p-top-medical__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}


.p-top-medical-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 18px 22px;
  border-radius: 22px;
  background: #fff;
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  box-shadow: 0 10px 28px rgba(25, 50, 80, 0.06);
  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.p-top-medical-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(25, 50, 80, 0.1);
}

.p-top-medical-card__circle {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: #f4f7fb;
  display: grid;
  place-items: center;
}

.p-top-medical-card__icon {
  width: 52px;
  height: 52px;
  color: var(--color-main);
}

.p-top-medical-card__label {
  margin-top: 18px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
}

.p-top-medical-card__text {
  margin-top: 8px;
  color: var(--color-text-light);
  font-size: 0.92rem;
  line-height: 1.8;
}

@media (max-width: 767px) {

  .p-top-medical {
    padding: 48px 0;
  }

  .p-top-medical__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 22px;
  }

  .p-top-medical-card {
    padding: 22px 14px 18px;
    border-radius: 18px;
  }

  .p-top-medical-card__circle {
    width: 84px;
    height: 84px;
  }

  .p-top-medical-card__icon {
    width: 40px;
    height: 40px;
  }

  .p-top-medical-card__label {
    margin-top: 14px;
    font-size: 1rem;
  }

  .p-top-medical-card__text {
    margin-top: 6px;
    font-size: 0.92rem;
    line-height: 1.7;
  }
}
.p-top-about {
  padding: 84px 0;
  background: #fff;
}

.p-top-about__layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  align-items: center;
  gap: 72px;
}

.p-top-about__media {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 18px 40px rgba(20, 50, 80, 0.12);
}

.p-top-about__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-top-about__content {
  min-width: 0;
}

.p-top-about__head {
  margin-bottom: 24px;
}

.p-top-about__icon {
  width: 64px;
  margin-bottom: 14px;
}

.p-top-about__logo {
  display: block;
  width: 64px;
  height: auto;
}

.p-top-about__eyebrow {
  margin: 0 0 8px;
  color: var(--color-main);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.p-top-about__title {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 700;
  line-height: 1.45;
}

.p-top-about__body {
  color: var(--color-text);
  font-size: 1.02rem;
  line-height: 2;
  font-weight:700;
}

.p-top-about__body p {
  margin: 0;
}

.p-top-about__body p + p {
  margin-top: 14px;
}

.p-top-about__features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.p-top-about__features li {
  position: relative;
  padding: 11px 16px 11px 36px;
  border-radius: 999px;
  background: #f4fbfd;
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.p-top-about__features li::before {
  content: "✓";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-main);
  font-weight: 800;
}

.p-top-about__actions {
  margin-top: 30px;
}

@media (max-width: 900px) {

  .p-top-about {
    padding: 64px 0;
  }

  .p-top-about__layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .p-top-about__media {
    width: min(82vw, 340px);
    margin: 0 auto;
  }

  .p-top-about__content {
    text-align: center;
  }

  .p-top-about__icon {
    margin-inline: auto;
  }

  .p-top-about__body {
    text-align: left;
    line-height: 1.95;
  }

  .p-top-about__features {
    justify-content: center;
  }

  .p-top-about__actions {
    display: flex;
    justify-content: center;
  }
}
@media (max-width: 900px) {
  .p-top-about__layout {
    display: flex;
    flex-direction: column;
  }

  .p-top-about__content {
    display: contents;
  }

  .p-top-about__head {
    order: 1;
    text-align: center;
  }

  .p-top-about__media {
    order: 2;
  }

  .p-top-about__body {
    order: 3;
  }

  .p-top-about__features {
    order: 4;
  }

  .p-top-about__actions {
    order: 5;
  }
}

/* ========================================
   Front news
======================================== */
.p-news-section {
  padding: 72px 0 80px;
  background: #fafafa;
}

/* filter */
.p-news-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 20px;
}

.p-news-filter__item {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.5em 1.35em;
  border: 1px solid var(--color-main, #2b6f8a);
  border-radius: 6px;
  background: #fff;
  color: var(--color-main, #2b6f8a);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}

.p-news-filter__item.is-active,
.p-news-filter__item:hover {
  background: var(--color-main, #2b6f8a);
  color: #fff;
}

/* list */
.p-news-list {
  padding: 24px 36px;
  border-radius: 0 12px 12px 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31, 51, 66, 0.035);
}

.p-news-item {
  position: relative;
}

.p-news-item + .p-news-item {
  border-top: 1px solid #dfe7ed;
}

.p-news-item--important::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 999px;
  background: #d93025;
}

.p-news-item__link {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr) 36px;
  gap: 18px;
  align-items: center;
  min-height: 88px;
  padding: 20px 0;
  color: inherit;
  text-decoration: none;
}

.p-news-item__meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
}

.p-news-item__date {
  color: var(--color-main, #2b6f8a);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

.p-news-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 0.25em 0.9em;
  border: 1px solid var(--color-main, #2b6f8a);
  border-radius: 6px;
  background: #fff;
  color: var(--color-main, #2b6f8a);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.p-news-label--important {
  border-color: #f6caca;
  background: #fdecec;
  color: #d93025;
}

.p-news-item__title {
  margin: 0;
  color: #1f2933;
  font-size: clamp(1rem, 1.8vw, 1.05rem);
  font-weight: 700;
  line-height: 1.75;
}

.p-news-item__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--color-main, #2b6f8a);
  transition: transform 0.2s ease;
}

.p-news-item__arrow-svg {
  width: 18px;
  height: 18px;
}

.p-news-item__link:hover .p-news-item__title {
  color: var(--color-main, #2b6f8a);
}

.p-news-item__link:hover .p-news-item__arrow {
  transform: translateX(3px);
}

/* empty */
.p-news-empty {
  margin: 20px 0 0;
  padding: 18px 20px;
  border-radius: 12px;
  background: #fff;
  color: var(--color-text-light, #555);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* more */
.p-news-more {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.p-news-more__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: min(100%, 360px);
  min-height: 56px;
  padding: 0.75em 1.2em 0.75em 1.8em;
  border: 1px solid var(--color-main, #2b6f8a);
  border-radius: 999px;
  background: #fff;
  color: var(--color-main, #2b6f8a);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.p-news-more__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--color-main, #2b6f8a);
  color: #fff;
}

.p-news-more__icon-svg {
  width: 16px;
  height: 16px;
}

/* mobile */
@media (max-width: 767px) {
  .p-news-section {
    padding: 56px 0 72px;
  }

  .p-news-filter {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 24px;
  }

  .p-news-filter__item {
    min-height: 42px;
    border-radius: 6px;
    font-size: 0.9rem;
  }

  .p-news-list {
    margin-top: 14px;
    padding: 8px 24px;
    border-radius: 12px;
  }

  .p-news-item--important::before {
    left: -24px;
    top: 16px;
    bottom: 16px;
    width: 4px;
  }

  .p-news-item__link {
    grid-template-columns: 1fr 34px;
    gap: 8px 14px;
    min-height: auto;
    padding: 22px 0;
  }

  .p-news-item__meta {
    grid-column: 1 / -1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
  }

  .p-news-item__date {
    font-size: 0.9rem;
  }

  .p-news-label {
    min-height: 26px;
    padding: 0.2em 0.75em;
    font-size: 0.78rem;
  }

  .p-news-item__title {
    grid-column: 1 / 2;
    grid-row: 2;
  }

  .p-news-item__arrow {
    grid-column: 2 / 3;
    grid-row: 2;
    align-self: center;
  }

  .p-news-more {
    margin-top: 28px;
  }

  .p-news-more__link {
    min-height: 54px;
    font-size: 0.96rem;
  }
}

/* ========================================
   診療所だより
======================================== */
.p-front-dayori-section {
  margin-top: 56px;
}

.p-dayori-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.p-dayori-card {
  min-width: 0;
}

.p-dayori-card__link {
  display: block;
  height: 100%;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.p-dayori-card__link:hover,
.p-dayori-card__link:focus-visible {
  background: #fcfdff;
  border-color: #c7d3de;
  box-shadow: 0 8px 20px rgba(7, 96, 167, 0.05);
  transform: translateY(-1px);
  outline: none;
}

.p-dayori-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef3f7;
}

.p-dayori-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-dayori-card__body {
  padding: 14px 14px 16px;
}

.p-dayori-card__date {
  display: block;
  margin-bottom: 8px;
  color: #667085;
  font-size: 0.98rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.p-dayori-card__title {
  margin: 0;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.65;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.p-dayori__footer {
  margin-top: 18px;
  text-align: right;
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 900px) {
  .p-front-news-board__link {
    grid-template-columns: 100px auto minmax(0, 1fr);
    gap: 12px;
  }

  .p-dayori-grid {
    gap: 14px;
  }

  .p-dayori-card__body {
    padding: 12px 12px 14px;
  }

  .p-dayori-card__title {
    font-size: 0.95rem;
  }
}

@media (max-width: 767px) {
  .c-section--front-news .c-section__head {
    margin-bottom: 18px;
  }

  .p-front-news-board__link {
    grid-template-columns: 96px 1fr;
    grid-template-areas:
      "date tag"
      "title title";
    align-items: center;
    gap: 8px 10px;
    padding: 16px 0;
  }

  .p-front-news-board__date {
    grid-area: date;
    font-size: 0.9rem;
  }

  .p-front-news-board__tag {
    grid-area: tag;
    justify-self: start;
    min-height: 30px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .p-front-news-board__title {
    grid-area: title;
    margin-top: 2px;
    font-size: 0.96rem;
    line-height: 1.7;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .p-front-news-board__footer,
  .p-dayori__footer {
    margin-top: 16px;
    text-align: left;
  }

  .p-front-dayori-section {
    margin-top: 40px;
  }

  .p-dayori-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .p-dayori-card__link {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: stretch;
  }

  .p-dayori-card__image {
    aspect-ratio: auto;
    height: 100%;
  }

  .p-dayori-card__body {
    padding: 12px 12px 12px 14px;
  }

  .p-dayori-card__date {
    font-size: 0.94rem;
  }

  .p-dayori-card__title {
    font-size: 0.94rem;
    line-height: 1.6;
  }
}

/* ========================================
   Quick Menu
======================================== */
#quick-menu {
  position: relative;
}

.p-quickmenu__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-quickmenu__item {
  min-width: 0;
}

.p-quickmenu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 112px;
  padding: 20px 22px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--color-text);
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.p-quickmenu__link:hover,
.p-quickmenu__link:focus-visible {
  border-color: #c7d3de;
  background: #fcfdff;
  box-shadow: 0 8px 22px rgba(7, 96, 167, 0.05);
  transform: translateY(-1px);
  outline: none;
}

.p-quickmenu__main {
  display: flex;
  align-items: center;
  gap: 36px;
  min-width: 0;
}

.p-quickmenu__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  color: var(--color-main);
}

.p-quickmenu__icon-svg,
.p-quickmenu__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.p-quickmenu__icon svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.p-quickmenu__text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.p-quickmenu__title {
  display: block;
  color: var(--color-text);
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.55;
}

.p-quickmenu__note {
  display: block;
  color: var(--color-text-light);
  font-size: 0.98rem;
  line-height: 1.65;
}

.p-quickmenu__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 999px;
  background: var(--color-main);
  color: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.p-quickmenu__arrow-svg,
.p-quickmenu__arrow svg {
  display: block;
  width: 16px;
  height: 16px;
}

.p-quickmenu__arrow svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.p-quickmenu__link:hover .p-quickmenu__arrow,
.p-quickmenu__link:focus-visible .p-quickmenu__arrow {
  transform: translateX(2px);
  opacity: 0.9;
}

/* ========================================
   Quick Menu responsive
======================================== */
@media (max-width: 1024px) {
  .p-quickmenu__list {
    gap: 14px;
  }

  .p-quickmenu__link {
    min-height: 104px;
    padding: 18px;
  }

  .p-quickmenu__main {
    gap: 14px;
  }

  .p-quickmenu__icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .p-quickmenu__title {
    font-size: 1rem;
  }

  .p-quickmenu__note {
    font-size: 0.94rem;
  }
}

@media (max-width: 767px) {
  .p-quickmenu__list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .p-quickmenu__link {
    min-height: 88px;
    padding: 16px;
    gap: 14px;
  }

  .p-quickmenu__main {
    gap: 12px;
  }

  .p-quickmenu__icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .p-quickmenu__title {
    font-size: 0.98rem;
  }

  .p-quickmenu__note {
    font-size: 0.92rem;
  }

  .p-quickmenu__arrow {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .p-quickmenu__arrow-svg,
  .p-quickmenu__arrow svg {
    width: 14px;
    height: 14px;
  }
}

/* ========================================
   Front page - Medical services
======================================== */
.p-medical-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.p-medical-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
}

.p-medical-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #eef3f7;
  overflow: hidden;
}

.p-medical-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-medical-card__body {
  padding: 18px 18px 0;
}

.p-medical-card__eyebrow {
  margin: 0 0 8px;
  color: var(--color-sub);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.p-medical-card__title {
  margin: 0;
  color: var(--color-text);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.45;
}

.p-medical-card__text {
  margin: 12px 0 0;
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.8;
}

.p-medical-card__link {
  align-self: flex-start;
  margin: 18px 18px 18px;
}

@media (max-width: 1024px) {
  .p-medical-grid {
    gap: 14px;
  }
}

@media (max-width: 767px) {
  .p-medical-grid {
    grid-template-columns: 1fr;
  }

  .p-medical-card__body {
    padding: 16px 16px 0;
  }

  .p-medical-card__eyebrow {
    font-size: 0.74rem;
  }

  .p-medical-card__title {
    font-size: 1.18rem;
  }

  .p-medical-card__text {
    font-size: 0.92rem;
    line-height: 1.75;
  }

  .p-medical-card__link {
    width: calc(100% - 32px);
    margin: 16px;
  }
}

/* ========================================
   Front page - Today simple
======================================== */
.today-simple {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
}

.today-simple__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: #f7f8fa;
  border-bottom: 1px solid var(--color-border);
}

.today-simple__date {
  margin: 0;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 700;
}

.today-simple__badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 700;
}

.today-simple__badge.is-open {
  background: #eef2f5;
  color: var(--color-main);
}

.today-simple__badge.is-closed,
.today-simple__badge.is-ended {
  background: #f3f4f6;
  color: #677281;
}

.today-simple__list {
  margin: 0;
}

.today-simple__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-border);
}

.today-simple__row:last-child {
  border-bottom: 0;
}

.today-simple__row dt {
  color: var(--color-text);
  font-weight: 700;
}

.today-simple__row dd {
  margin: 0;
  color: var(--color-text);
  line-height: 1.8;
}

.today-simple__footer {
  padding: 16px 18px;
  border-top: 1px solid var(--color-border);
  text-align: right;
}

@media (max-width: 767px) {
  .today-simple__status {
    flex-direction: column;
    align-items: flex-start;
  }

  .today-simple__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .today-simple__footer {
    text-align: left;
  }
}



/* ========================================
   Front page - Access
======================================== */
#access .c-section__head {
  margin-bottom: 20px;
}

.p-access-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
  grid-template-areas:
    "map list"
    "actions list";
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
}

/* map */
.p-access-card__map {
  grid-area: map;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: #f7f8fa;
}

.p-access-card__map iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
}

/* actions */
.p-access-card__actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 18px;
  border-right: 1px solid var(--color-border);
  background: #fff;
}

/* list */
.p-access-card__list {
  grid-area: list;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
}

.p-access-card__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
}

.p-access-card__item + .p-access-card__item {
  border-top: 1px solid var(--color-border);
}

.p-access-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 999px;
  background: #eef2f5;
  color: var(--color-main);
}

.p-access-card__icon-svg,
.p-access-card__icon svg {
  display: block;
  width: 26px;
  height: 26px;
}

.p-access-card__icon svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.p-access-card__body {
  min-width: 0;
}

.p-access-card__label {
  margin: 0 0 4px;
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.6;
}

.p-access-card__text {
  margin: 0;
  color: var(--color-text);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.75;
}

/* ========================================
   Front page - Access responsive
======================================== */
@media (max-width: 1024px) {
  .p-access-card {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr);
  }

  .p-access-card__map iframe {
    min-height: 320px;
  }

  .p-access-card__item {
    padding: 16px;
  }

  .p-access-card__text {
    font-size: 0.94rem;
  }
}

@media (max-width: 767px) {
  .p-access-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "map"
      "actions"
      "list";
  }

  .p-access-card__map,
  .p-access-card__actions {
    border-right: 0;
  }

  .p-access-card__actions {
    min-height: 52px;
    padding: 0 16px;
    border-bottom: 1px solid var(--color-border);
  }

  .p-access-card__map iframe {
    min-height: 280px;
  }

  .p-access-card__item {
    gap: 12px;
    padding: 14px 16px;
  }

  .p-access-card__icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .p-access-card__icon-svg,
  .p-access-card__icon svg {
    width: 23px;
    height: 23px;
  }

  .p-access-card__label {
    font-size: 0.96rem;
  }

  .p-access-card__text {
    font-size: 0.92rem;
    line-height: 1.7;
  }
}

/* ========================================
   Reduced motion
======================================== */
@media (prefers-reduced-motion: reduce) {
  .p-fv__slide,
  .p-fv__dot,
  .p-quickmenu__link,
  .p-schedule-links__btn,
  .p-access-card__map-link,
  .c-link--button {
    transition: none;
  }
}
.p-schedule-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 767px) {
  .p-schedule-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
/* ========================================
   Front page - Blog
======================================== */
.p-front-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.p-front-blog-card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
}

.p-front-blog-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.p-front-blog-card__image {
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #f7fafc;
}

.p-front-blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0 0;
}

.p-front-blog-card__body {
  padding: 14px 16px 16px;
}

.p-front-blog-card__date {
  display: block;
  margin-bottom: 6px;
  color: var(--color-text-light);
  font-size: 0.94rem;
  line-height: 1.5;
}

.p-front-blog-card__title {
  margin: 0;
  color: var(--color-text);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.7;
}

.p-front-blog-card__link:hover .p-front-blog-card__title {
  color: var(--color-main);
}

@media (max-width: 767px) {
  .p-front-blog__grid {
    grid-template-columns: 1fr;
  }

  .p-front-blog-card:nth-child(n + 2) {
    display: none;
  }
}
/* ========================================
   Visit info
   受診される方へ
======================================== */
.p-visit-info {
  margin-top: 40px;
  border: 1px solid #d5e0e7;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.p-visit-info__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.p-visit-info__block {
  background: #fff;
}

.p-visit-info__block + .p-visit-info__block {
  border-left: 1px solid #d5e0e7;
}

.p-visit-info__heading {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid #d5e0e7;
  background: #eef4f7;
  color: #222;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
}

.p-visit-info__list {
  margin: 0;
  padding: 30px 32px;
  list-style: none;
}

.p-visit-info__list li {
  position: relative;
  padding-left: 1.25em;
  color: #333;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.9;
}

.p-visit-info__list li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: var(--color-main, #2b6f8a);
}

.p-visit-info__list li + li {
  margin-top: 12px;
}

.p-visit-info strong {
  color: #1f2933;
  font-weight: 800;
  background: linear-gradient(transparent 62%, #fff1a8 62%);
}

.p-visit-info a {
  color: var(--color-main, #2b6f8a);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* FAQ */
.p-visit-info__faq {
  margin: 0;
  padding: 30px 32px;
}

.p-visit-info__faq-item {
  margin: 0;
}

.p-visit-info__faq-item + .p-visit-info__faq-item {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #d5e0e7;
}

.p-visit-info__faq dt {
  position: relative;
  margin: 0 0 8px;
  padding-left: 2.1em;
  color: #1f4f63;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.7;
}

.p-visit-info__faq dt::before {
  content: "Q";
  position: absolute;
  top: 0.1em;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55em;
  height: 1.55em;
  border-radius: 50%;
  background: var(--color-main, #2b6f8a);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.p-visit-info__faq dd {
  position: relative;
  margin: 0;
  padding-left: 2.1em;
  color: #333;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.9;
}

.p-visit-info__faq dd::before {
  content: "A";
  position: absolute;
  top: 0.2em;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55em;
  height: 1.55em;
  border-radius: 50%;
  border: 1px solid var(--color-main, #2b6f8a);
  background: #fff;
  color: var(--color-main, #2b6f8a);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

/* mobile */
@media (max-width: 767px) {
  .p-visit-info {
    margin-top: 34px;
  }

  .p-visit-info__body {
    grid-template-columns: 1fr;
  }

  .p-visit-info__block + .p-visit-info__block {
    border-left: 0;
    border-top: 1px solid #d5e0e7;
  }

  .p-visit-info__heading {
    padding: 18px 20px;
    font-size: 1.12rem;
  }

  .p-visit-info__list,
  .p-visit-info__faq {
    padding: 26px 22px;
  }

  .p-visit-info__list li,
  .p-visit-info__faq dt,
  .p-visit-info__faq dd {
    font-size: 1rem;
  }
}
/* ========================================
   Visit info spacing override
======================================== */
.p-visit-info {
  margin-top: 48px;
  border-radius: 16px;
}

.p-visit-info__heading {
  padding: 22px 26px;
}

.p-visit-info__list,
.p-visit-info__faq {
  padding: 38px 42px;
}

.p-visit-info__list li {
  padding-left: 1.5em;
  line-height: 2;
}

.p-visit-info__list li + li {
  margin-top: 18px;
}

.p-visit-info__faq-item + .p-visit-info__faq-item {
  margin-top: 28px;
  padding-top: 28px;
}

/* Q/Aの丸と本文の距離を広げる */
.p-visit-info__faq dt,
.p-visit-info__faq dd {
  padding-left: 3em;
  line-height: 2;
}

.p-visit-info__faq dt {
  margin-bottom: 12px;
}

.p-visit-info__faq dt::before,
.p-visit-info__faq dd::before {
  width: 1.8em;
  height: 1.8em;
  font-size: 0.9rem;
}

.p-visit-info__faq dt::before {
  top: 0.18em;
}

.p-visit-info__faq dd::before {
  top: 0.22em;
}

@media (max-width: 767px) {
  .p-visit-info {
    margin-top: 40px;
    border-radius: 14px;
  }

  .p-visit-info__heading {
    padding: 20px 22px;
  }

  .p-visit-info__list,
  .p-visit-info__faq {
    padding: 30px 24px;
  }

  .p-visit-info__faq dt,
  .p-visit-info__faq dd {
    padding-left: 2.8em;
  }

  .p-visit-info__faq-item + .p-visit-info__faq-item {
    margin-top: 24px;
    padding-top: 24px;
  }
}
/* Q/A丸アイコンを大きく */
.p-visit-info__faq dt::before,
.p-visit-info__faq dd::before {
  width: 2.1em;
  height: 2.1em;
  font-size: 1rem;
}

/* 本文との距離も調整 */
.p-visit-info__faq dt,
.p-visit-info__faq dd {
  padding-left: 3.4em;
}
