/* ==================================================
   新川中央眼科
   下層ページ共通 CSS

   page-common.css

   対象：
   ・固定ページ共通MV
   ・パンくず
   ・下層ページ共通レイアウト
   ・共通見出し
   ・共通セクション余白

   各ページ固有のデザインは
   medical.css / cataract.css / access.css などへ記述する
================================================== */

/* パンくずリスト */
.breadcrumbs {
  padding: 20px 0;
  font-size: 14px;
  line-height: 1.8;
}

.breadcrumbs a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}


/* ==================================================
   01. Lower Page Base
================================================== */

.page-main {
  width: 100%;
}

.page-section {
  position: relative;
  width: 100%;
  padding-top: 120px;
  padding-bottom: 120px;
}

.page-section--small {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-section--base {
  background-color: var(--color-base);
}

.page-section--white {
  background-color: var(--color-white);
}


/* ==================================================
   02. Page Visual
   下層ページ共通MV
================================================== */

.page-visual {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-base);
}


/* --------------------------------------------------
   MV Inner
-------------------------------------------------- */

.page-visual__inner {
  position: relative;
  display: flex;
  align-items: center;
  width: calc(100% - (var(--side-space-pc) * 2));
  max-width: var(--inner-width);
  min-height: 360px;
  margin-right: auto;
  margin-left: auto;
}


/* --------------------------------------------------
   MV Title
-------------------------------------------------- */

.page-visual__title {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}


/* 日本語タイトル */

.page-visual__ja {
  margin: 0;
  color: var(--color-heading);
  font-family: var(--font-ja);
  font-size: 42px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.06em;
}


/* 英語・装飾タイトル */

.page-visual__en {
  margin-top: 10px;
  color: var(--color-heading-sub);
  font-family: var(--font-script);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}


/* --------------------------------------------------
   MV Image
-------------------------------------------------- */

.page-visual__image {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.page-visual__image-element {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ==================================================
   03. Breadcrumb
   パンくず
================================================== */

.breadcrumb {
  width: 100%;
  padding-top: 18px;
  padding-bottom: 18px;
  background-color: var(--color-white);
}

.breadcrumb__inner,
.breadcrumb-inner {
  width: calc(100% - (var(--side-space-pc) * 2));
  max-width: var(--inner-width);
  margin-right: auto;
  margin-left: auto;
  color: #546170;
  font-family: var(--font-ja);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.breadcrumb a {
  color: #546170;
  transition: color var(--transition-base);
}

.breadcrumb .current-item {
  color: var(--color-text);
}


/* ==================================================
   04. Page Content
   下層ページ共通コンテンツ幅
================================================== */

.page-content {
  width: 100%;
}

.page-content__inner {
  width: calc(100% - (var(--side-space-pc) * 2));
  max-width: var(--inner-width);
  margin-right: auto;
  margin-left: auto;
}

.page-content__inner--small {
  max-width: 1000px;
}


/* ==================================================
   05. Page Lead
   ページ冒頭のリード
================================================== */

.page-lead {
  padding-top: 100px;
  padding-bottom: 100px;
}

.page-lead__inner {
  width: calc(100% - (var(--side-space-pc) * 2));
  max-width: 1000px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.page-lead__title {
  margin-bottom: 30px;
  color: var(--color-heading);
  font-family: var(--font-ja);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.page-lead__text {
  color: var(--color-text);
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.04em;
}

.page-lead__text + .page-lead__text {
  margin-top: 20px;
}


/* ==================================================
   06. Common Section Heading
   下層ページ共通見出し
================================================== */

.page-heading {
  margin-bottom: 50px;
}


/* --------------------------------------------------
   中央揃え
-------------------------------------------------- */

.page-heading--center {
  text-align: center;
}


/* --------------------------------------------------
   装飾英字
-------------------------------------------------- */

.page-heading__en {
  display: block;
  margin-bottom: 8px;
  color: var(--color-heading-sub);
  font-family: var(--font-script);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}


/* --------------------------------------------------
   日本語見出し
-------------------------------------------------- */

.page-heading__ja {
  margin: 0;
  color: var(--color-heading);
  font-family: var(--font-ja);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.06em;
}


/* ==================================================
   07. H2 Common
   下層ページ基本H2
================================================== */

.page-title02 {
  position: relative;
  margin-bottom: 40px;
  padding-bottom: 18px;
  color: var(--color-heading);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.05em;
}

.page-title02::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--color-accent);
  content: "";
}


/* 中央揃え */

.page-title02--center {
  text-align: center;
}

.page-title02--center::after {
  left: 50%;
  transform: translateX(-50%);
}


/* ==================================================
   08. H3 Common
   下層ページ基本H3
================================================== */

.page-title03 {
  position: relative;
  margin-bottom: 25px;
  padding-left: 18px;
  color: var(--color-heading-sub);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.page-title03::before {
  position: absolute;
  top: 0.2em;
  bottom: 0.2em;
  left: 0;
  width: 4px;
  background-color: var(--color-accent);
  border-radius: 999px;
  content: "";
}


/* ==================================================
   09. H4 Common
================================================== */

.page-title04 {
  margin-bottom: 18px;
  color: var(--color-heading-sub);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.04em;
}


/* ==================================================
   10. Common Text
================================================== */

.page-text {
  color: var(--color-text);
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.04em;
}

.page-text + .page-text {
  margin-top: 20px;
}


/* ==================================================
   11. Common Box
================================================== */

.page-box {
  padding: 40px;
  background-color: var(--color-base);
  border-radius: 20px;
}

.page-box + .page-box {
  margin-top: 30px;
}


/* ==================================================
   12. Common Image
================================================== */

.page-image {
  overflow: hidden;
  border-radius: 20px;
}

.page-image img {
  display: block;
  width: 100%;
  height: auto;
}


/* ==================================================
   13. Two Column
   汎用2カラム
================================================== */

.page-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 60px;
}

.page-columns--reverse .page-columns__image {
  order: 2;
}

.page-columns--reverse .page-columns__content {
  order: 1;
}

.page-columns__image,
.page-columns__content {
  min-width: 0;
}


/* ==================================================
   14. Common List
================================================== */

.page-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-list__item {
  position: relative;
  padding-left: 24px;
  font-size: 18px;
  line-height: 1.9;
}

.page-list__item + .page-list__item {
  margin-top: 12px;
}

.page-list__item::before {
  position: absolute;
  top: 0.8em;
  left: 3px;
  width: 7px;
  height: 7px;
  background-color: var(--color-accent);
  border-radius: 50%;
  content: "";
}


/* ==================================================
   15. Common Note
================================================== */

.page-note {
  margin-top: 20px;
  color: #596b7e;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.03em;
}


/* ==================================================
   16. Common Link Area
================================================== */

.page-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 50px;
}


/* ==================================================
   17. Common Button
================================================== */

.page-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  min-height: 60px;
  padding: 14px 45px;
  color: var(--color-white);
  background-color: var(--color-heading);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  transition:
    background-color var(--transition-base),
    opacity var(--transition-base);
}

.page-button::after {
  position: absolute;
  top: 50%;
  right: 24px;
  width: 8px;
  height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  content: "";
  transform: translateY(-50%) rotate(45deg);
  transition: transform var(--transition-base);
}


/* ==================================================
   18. Common Divider
================================================== */

.page-divider {
  width: 100%;
  height: 1px;
  margin-top: 80px;
  margin-bottom: 80px;
  background-color: rgba(139, 164, 213, 0.3);
  border: 0;
}


/* ==================================================
   19. Anchor Position
   固定ヘッダー対策
================================================== */

.page-anchor {
  scroll-margin-top: 120px;
}


/* ==================================================
   20. Hover
================================================== */

@media (hover: hover) and (pointer: fine) {

  .breadcrumb a:hover {
    color: var(--color-heading-sub);
  }

  .page-button:hover {
    background-color: var(--color-heading-sub);
  }

  .page-button:hover::after {
    transform: translate(3px, -50%) rotate(45deg);
  }
}


/* ==================================================
   21. Tablet
================================================== */

@media screen and (min-width: 768px) and (max-width: 1180px) {

  /* Page Visual */

  .page-visual__inner {
    width: calc(100% - (var(--side-space-tablet) * 2));
    min-height: 320px;
  }

  .page-visual__ja {
    font-size: 38px;
  }


  /* Breadcrumb */

  .breadcrumb__inner,
  .breadcrumb-inner {
    width: calc(100% - (var(--side-space-tablet) * 2));
  }


  /* Content */

  .page-content__inner,
  .page-lead__inner {
    width: calc(100% - (var(--side-space-tablet) * 2));
  }


  /* Section */

  .page-section {
    padding-top: 100px;
    padding-bottom: 100px;
  }


  /* Two Column */

  .page-columns {
    gap: 40px;
  }
}


/* ==================================================
   22. Smartphone
================================================== */

@media screen and (max-width: 767px) {

  /* --------------------------------------------------
     Page Visual
  -------------------------------------------------- */

  .page-visual {
    min-height: 250px;
  }

  .page-visual__inner {
    display: flex;
    align-items: center;
    width: calc(100% - (var(--side-space-sp) * 2));
    min-height: 250px;
  }

  .page-visual__title {
    max-width: 60%;
  }

  .page-visual__ja {
    font-size: 30px;
    line-height: 1.5;
    letter-spacing: 0.05em;
  }

  .page-visual__en {
    margin-top: 5px;
    font-size: 28px;
  }

  .page-visual__image {
    width: 48%;
  }


  /* --------------------------------------------------
     Breadcrumb
  -------------------------------------------------- */

  .breadcrumb {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .breadcrumb__inner,
  .breadcrumb-inner {
    width: calc(100% - (var(--side-space-sp) * 2));
    font-size: 12px;
    line-height: 1.6;
  }


  /* --------------------------------------------------
     Section
  -------------------------------------------------- */

  .page-section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .page-section--small {
    padding-top: 55px;
    padding-bottom: 55px;
  }


  /* --------------------------------------------------
     Content
  -------------------------------------------------- */

  .page-content__inner,
  .page-lead__inner {
    width: calc(100% - (var(--side-space-sp) * 2));
  }


  /* --------------------------------------------------
     Lead
  -------------------------------------------------- */

  .page-lead {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .page-lead__title {
    margin-bottom: 22px;
    font-size: 25px;
    line-height: 1.65;
  }

  .page-lead__text {
    font-size: 16px;
    line-height: 1.9;
    text-align: left;
  }


  /* --------------------------------------------------
     Section Heading
  -------------------------------------------------- */

  .page-heading {
    margin-bottom: 35px;
  }

  .page-heading__en {
    margin-bottom: 6px;
    font-size: 28px;
  }

  .page-heading__ja {
    font-size: 27px;
    line-height: 1.55;
  }


  /* --------------------------------------------------
     H2
  -------------------------------------------------- */

  .page-title02 {
    margin-bottom: 30px;
    padding-bottom: 14px;
    font-size: 25px;
    line-height: 1.6;
  }

  .page-title02::after {
    width: 45px;
  }


  /* --------------------------------------------------
     H3
  -------------------------------------------------- */

  .page-title03 {
    margin-bottom: 20px;
    padding-left: 15px;
    font-size: 21px;
    line-height: 1.65;
  }

  .page-title03::before {
    width: 3px;
  }


  /* --------------------------------------------------
     H4
  -------------------------------------------------- */

  .page-title04 {
    margin-bottom: 15px;
    font-size: 18px;
  }


  /* --------------------------------------------------
     Text
  -------------------------------------------------- */

  .page-text {
    font-size: 16px;
    line-height: 1.9;
  }


  /* --------------------------------------------------
     Box
  -------------------------------------------------- */

  .page-box {
    padding: 25px 20px;
    border-radius: 15px;
  }


  /* --------------------------------------------------
     Image
  -------------------------------------------------- */

  .page-image {
    border-radius: 15px;
  }


  /* --------------------------------------------------
     Two Column
  -------------------------------------------------- */

  .page-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-columns--reverse .page-columns__image,
  .page-columns--reverse .page-columns__content {
    order: initial;
  }


  /* --------------------------------------------------
     List
  -------------------------------------------------- */

  .page-list__item {
    padding-left: 21px;
    font-size: 16px;
    line-height: 1.85;
  }


  /* --------------------------------------------------
     Note
  -------------------------------------------------- */

  .page-note {
    font-size: 13px;
  }


  /* --------------------------------------------------
     Links
  -------------------------------------------------- */

  .page-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 35px;
  }


  /* --------------------------------------------------
     Button
  -------------------------------------------------- */

  .page-button {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    padding: 12px 45px 12px 25px;
    font-size: 15px;
  }


  /* --------------------------------------------------
     Divider
  -------------------------------------------------- */

  .page-divider {
    margin-top: 55px;
    margin-bottom: 55px;
  }


  /* --------------------------------------------------
     Anchor
  -------------------------------------------------- */

  .page-anchor {
    scroll-margin-top: 90px;
  }
}


/* ==================================================
   23. Small Smartphone
================================================== */

@media screen and (max-width: 374px) {

  .page-visual__ja {
    font-size: 27px;
  }

  .page-visual__en {
    font-size: 25px;
  }

  .page-heading__ja {
    font-size: 25px;
  }

  .page-title02 {
    font-size: 23px;
  }
}


/* ==================================================
   Sub Page Common
================================================== */

.sub-main {
  width: 100%;
  background: var(--bg-top);
}


/* ==================================================
   Content Pages
   初めての方へ・当院の特徴・院内紹介 共通
================================================== */

.content-page {
  color: #1f3656;
  font-size: 18px;
}

.content-page p {
  margin: 0;
  font-size: inherit;
}

.content-inner {
  width: 1280px;
  max-width: 90%;
}

.content-narrow {
  width: 980px;
  max-width: 90%;
  margin-right: auto;
  margin-left: auto;
}

.content-intro {
  padding-top: 120px;
  padding-bottom: 120px;
}

.content-intro h2 {
  margin-bottom: 48px;
  color: #4f8fd4;
  font-size: 26px;
  line-height: 1.7;
  text-align: center;
}

.content-intro p {
  line-height: 2;
}

.content-intro p + p {
  margin-top: 22px;
}

.content-section {
  padding-top: 120px !important;
  padding-bottom: 120px;
}

.content-heading {
  position: relative;
  display: inline-block;
  margin: 0;
  padding-bottom: 20px;
  color: #0c3d7d;
  font-size: 36px;
  line-height: 1.5;
}

.content-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 252px;
  height: 2px;
  background: #c6a86a;
}

.content-section__lead {
  margin-top: 38px;
  line-height: 2;
}

.content-kicker {
  color: #c6a86a;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
}


/* ==================================================
   Tablet
================================================== */

@media screen and (min-width: 768px) and (max-width: 1024px) {

  .content-page {
    font-size: 17px;
  }

  .content-intro,
  .content-section {
    padding-top: 80px !important;
    padding-bottom: 80px;
  }

  .content-heading {
    font-size: 31px;
  }

}


/* ==================================================
   Smartphone
================================================== */

@media screen and (max-width: 767px) {

  .content-page {
    font-size: 16px;
  }

  .content-inner,
  .content-narrow {
    max-width: 88%;
  }

  .content-intro,
  .content-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .content-intro h2 {
    margin-bottom: 30px;
    font-size: 21px;
    text-align: left;
  }

  .content-heading {
    padding-bottom: 14px;
    font-size: 27px;
  }

  .content-heading::after {
    width: 150px;
  }

  .content-section__lead {
    margin-top: 28px;
  }

}


/* ==================================================
   Small Smartphone
================================================== */

@media screen and (max-width: 374px) {

  .content-heading {
    font-size: 25px;
  }

}


/* ==================================================
   Sub MV
================================================== */

.sub-mv {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.sub-mv__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sub-mv::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.82) 26%,
    rgba(255, 255, 255, 0) 58%
  );
}

.sub-mv__inner {
  position: relative;
  z-index: 1;
  height: 100%;
}

.sub-mv__content {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.sub-mv__lead {
  margin: 0;
  color: #0C3D7D;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
	padding-left: 5px;
}

.sub-mv__title {
  margin: 8px 0 0;
  color: #0C3D7D;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.4;
}

.sub-mv__line {
  display: block;
  width: 252px;
  height: 2px;
  margin-top: 20px;
  background-color: #C6A86A;
}


/* ==================================================
   Tablet
================================================== */

@media screen and (min-width: 768px) and (max-width: 1024px) {

  .sub-mv {
    height: 420px;
  }

  .sub-mv__lead {
    font-size: 21px;
  }

  .sub-mv__title {
    font-size: 46px;
  }

  .sub-mv__line {
    width: 200px;
  }

}


/* ==================================================
   Smartphone
================================================== */

@media screen and (max-width: 767px) {

  .sub-mv {
    height: 430px;
  }

  .sub-mv__image {
    object-position: right;
  }

  .sub-mv::after {
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.64) 42%,
      rgba(255, 255, 255, 0) 78%
    );
  }

  .sub-mv__content {
    top: auto;
    bottom: 56px;
    transform: none;
  }

  .sub-mv__lead {
    font-size: 16px;
  }

  .sub-mv__title {
    margin-top: 4px;
    font-size: 36px;
  }

  .sub-mv__line {
    width: 140px;
    height: 1px;
    margin-top: 14px;
  }

}
