/*
Theme Name: とうやまクリニック
Text Domain: touyama-clinic
Domain Path: /languages
*/

/* =========================================================
固定ページ共通CSS
========================================================= */
:root {
  --color-main: #006699;
  --color-accent: #005d8c;
  --color-pink: #ff38d4;
  --color-text: #222222;
  --color-text-sub: #222222;
  --color-gray-light: #f2f2f2;
  --color-blue-light: #e7f2f2;
  --color-white: #ffffff;
  --font-serif: "Noto Serif JP", serif;
  --font-sans: "Noto Sans JP", sans-serif;
  --content-width: 1080px;
  --page-width: 1280px;
  color: var(--color-text-sub);
  font-family: var(--font-sans);
}

.l-content__body.l-container {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

body.l-content__body {
    display: block;
    width: 100%;
    max-width: 1140px;
    margin-inline: auto;
}
body.l-main {
    width: 100%;
    max-width: none;
}
#top_title_area {
    width: calc(100% - 64px);
    margin: 70px 30px 0;
    min-height: 250px;
    border-radius: 0 0 36px 36px;
    background: linear-gradient(#0005, #0005), url('../img/about-placeholder.svg') center 45%/cover;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
#top_title_area h1 {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(24px, 3vw, 36px);
    letter-spacing: .12em;
    color: #fff;
    text-align: center;
}
.p-box {
    padding: 64px 0 90px;
    color: #222;
    font-family: 'Noto Sans JP', sans-serif;
}
.p-box__content {
    max-width: 930px;
    margin-inline: auto;
    font-size: 16px;
    line-height: 2;
    overflow-wrap: anywhere;
}
.p-box__content h2 {
    position: relative;
    margin: 60px 0 30px;
    padding: 0 0 12px;
    border: 0;
    border-bottom: 2px solid #ddd;
    background: none;
    color: #111;
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(21px, 2.1vw, 28px);
    font-weight: 500;
    line-height: 1.65;
    letter-spacing: .08em;
}
.p-box__content h2:first-child {
    margin-top: 0;
}
.p-box__content h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 160px;
    max-width: 30%;
    height: 2px;
    background: #00658c;
}
.p-box__content h3 {
    margin: 36px 0 12px;
    padding: 0;
    border: 0;
    background: none;
    color: #00658c;
    font-family: 'Noto Serif JP', serif;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.6;
}
.p-box__content p {
	font-size: 15px;
    margin: 0;
}
.p-box__content ul {
    list-style: disc;
    padding-left: 1.5em;
    margin: 0;
}
.p-box__content li {
    margin: 0 0 14px;
}
.p-box__content li:last-child {
    margin-bottom: 0;
}
.p-box__title {
    text-align: center;
    font-family: 'Noto Serif JP', serif;
    margin-bottom: 50px;
}
@media(max-width:767px) {
    #top_title_area {
        width: calc(100% - 32px);
        margin: 0 16px;
        min-height: 180px;
        border-radius: 0 0 24px 24px;
    }
    .p-box {
        padding: 30px 20px;
    }
    .p-box__content {
        font-size: 15px;
        line-height: 1.95;
    }
    .p-box__content h2 {
        margin-top: 40px;
        margin-bottom: 24px;
        letter-spacing: .03em;
    }
    .p-box__content h3 {
        font-size: 20px;
        margin-top: 28px;
    }
    .p-box__content br {
        display: none;
    }
}
.p-box__content .box-heading {
    text-align: center;
    margin: 70px 0 36px;
}
.p-box__content .box-heading:first-child {
    margin-top: 0;
}
.p-box__content .box-heading p {
    font-family: Georgia, serif;
    font-size: 34px;
    line-height: 1.4;
    color: #a58f70;
}
.p-box__content .box-heading h2 {
    border: 0;
    padding: 0;
    margin: 10px 0 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
}
.p-box__content .box-heading h2::after {
    display: none;
}
/* 共通-グレー背景のCSS */
.p-box__content .box-card {
    background: #f3f3f3;
    border-radius: 10px;
    padding: 28px 32px;
    margin: 22px 0;
}
.p-box__content .box-card h4 {
    color: #00658c;
    font-family: 'Noto Serif JP', serif;
    font-size: 23px;
    font-weight: 500;
    margin: 0 0 18px;
}
@media(max-width:767px) {
    .p-box__content .box-card {
        padding: 22px;
    }
}

/* 初診の方へ-調整必要 */
.p-first img {
  display: block;
  max-width: 100%;
  height: auto;
}

.p-first a {
  text-decoration: none;
  color: inherit;
}

.p-first ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.p-first p {
  margin: 0;
}

.p-first .container {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
}

/* ================= HERO ================= */
.p-first .hero {
  position: relative;
  width: min(var(--page-width), 100%);
  margin: 30px auto 0;
}

.p-first .hero__image {
  width: min(1200px, calc(100% - 40px));
  height: 250px;
  margin: 0 auto;
  border-radius: 40px;
  overflow: hidden;
  background: var(--color-gray-light);
}

.p-first .hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.p-first .hero__title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 35px;
  letter-spacing: 3.5px;
  color: #fff;
  text-align: center;
  text-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
}


.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
}

/* ================= SECTION COMMON ================= */
.section { padding: 60px 0 0; }

.section-title {
  position: relative;
  margin: 0 0 40px;
  padding-bottom: 24px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: 4.2px;
  color: #111;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #ccc;
}

.section-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}
.section-flex__text { 
  width: calc(55% - 40px); 
}
.section-flex__image {
  position: relative;
  width: 45%;
  height: auto;
}
.section-flex__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
@media (max-width: 767px) {
  .section-flex__text { 
    width: 100%; 
  }
  .section-flex__image {
    width: 100%;
  }
}

ul.dot-list {
  list-style: none;
  padding-left: 0;
}
.dot-list li {
  position: relative;
  padding-left: 18px;
  line-height: 1.8;
}
.dot-list li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 15%;
  color: var(--color-main);
  font-size: 12px;
}

.note {
  margin-top: 20px !important;
  font-size: 14px;
  line-height: 1.8;
}

.bold-line {
  font-weight: 700;
  font-size: 16px;
  line-height: 2;
  margin-top: 20px;
}

/* ================= STEP FLOW ================= */
#flow { padding-bottom: 0; }

.step { position: relative; margin-top: 40px; }
.step:first-of-type { margin-top: 0; }

.step__head {
  background: var(--color-main);
  color: #fff;
  padding: 8px 0;
  display: flex;
  align-items: baseline;
  gap: 5px;
  width: 100%;
  margin: 0 auto;
  padding-left: 10px;
}

.step__num {
  font-family: "Roboto", var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  padding-left: 5px;
}

.step__label {
  font-weight: 700;
  font-size: 20px;
}

.step__body {
  background: var(--color-blue-light);
  padding: 20px 25px 25px;
  font-size: 16px;
  line-height: 2;
  color: var(--color-text);
}
.step__body--with-photo {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}
.step__body-text { 
  width: calc(65% - 30px);
}
.step__body-photo {
  position: relative;
  width: 35%;
  max-width: 320px;
  height: auto;
  overflow: hidden;
}
/* 流れの中のリンクボタン */
.step__body .c-btn-blue {
  width: 100%;
  max-width: 320px;
}

@media (max-width: 767px) {
  .step__body-text { 
    width: 100%; 
  }
  .step__body-photo {
    width: 100%;    
  }
}

.step__body-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
	border-radius: 8px;
}

.step__arrow {
  display: flex;
  justify-content: center;
  margin-top: -10px;
}
.step__arrow img { 
	width: 38px; 
	height: 26px; 
}

.pay-icons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 15px 0 25px;
}
.pay-icons.last {
	margin-bottom: 0px !important;
}
.pay-icons img {
	width:8%;
	max-width: 75px;
	min-width: 60px;
}
@media (max-width: 767px) {
	.pay-icons {
  		justify-content: flex-start;
	}
}

/* ================= CTA BANNER ================= */
.cta-banner {
  background: url("../img/footer-bg.png") center/cover no-repeat;
  position: relative;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(51, 51, 51, 0.4);
  mix-blend-mode: multiply;
}
.cta-banner__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 45px 0;
}
.cta-banner__lead {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 28px;
  color: #fff;
  line-height: 2;
  text-align: center;
  text-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
}
.cta-banner__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 14px 26px;
}
.cta-banner__btn img { width: 26px; height: 26px; }
.cta-banner__btn span {
  font-weight: 700;
  font-size: 16px;
  color: var(--color-accent);
  line-height: 1.6;
}
.cta-banner__btn small { font-weight: 400; font-size: 12px; }

/* ================= ACCESS ================= */
.access { padding: 60px 0; background: #fff; }
.access__inner {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}
.access__info { flex: 1; }
.access__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 28px;
  margin: 0 0 8px;
}
.access__dept { font-size: 15px; margin-bottom: 24px; }
.access__addr, .access__route {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.access__tel {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.access__tel img { width: 30px; height: 30px; }
.access__tel p { font-weight: 700; font-size: 30px; }
.access__tel small { display: block; font-weight: 400; font-size: 14px; }
.access__btns { display: flex; gap: 20px; }
.access__btn {
  background: var(--color-accent);
  color: #fff;
  padding: 12px 28px;
  font-size: 15px;
  letter-spacing: -0.45px;
}
.access__photo {
  flex: 0 0 615px;
  width: 615px;
  height: 380px;
  border: 1px solid #a18f76;
  border-radius: 0 20px 20px 0;
  overflow: hidden;
}
.access__photo img { width: 100%; height: 100%; object-fit: cover; }