/* ========================================
   Detail Pages
   共通の詳細ページ用CSS
======================================== */

.page-main {
  background: #fffdf3;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 298px;
    transform: translateX(-50%);
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}
.about-inner {
  width: min(1100px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   Page Hero
======================================== */

.page-hero {
  position: relative;
  width: 100%;
  height: 400px;
  margin-top: 60px;
  overflow: hidden;
}
.page-hero > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ページタイトル */

.page-hero-title {
  position: absolute;
  left: 50%;
  bottom: 70px;
  transform: translateX(-50%);

  z-index: 2;

  padding: 10px 30px;

  background: transparent;
  border-radius: 0;
}

.page-hero-title h1 {
  margin: 0;

  font-family: "Zen Maru Gothic", sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.4;

  color: #fff;

  /* 文字の影 */
  text-shadow:
    0 2px 5px rgba(0, 0, 0, .35);

  white-space: nowrap;
}
/* ========================================
   Page Cloud
======================================== */

.page-cloud-overlay {
  position: relative;
  z-index: 20;

  width: 100vw;
  height: 298px;

  margin-left: 50%;
  transform: translateX(-50%);

  overflow: hidden;
  pointer-events: none;
}
/* 上側の雲を画像に重ねる */
.page-cloud-overlay.cloud-top {
  position: relative;
  z-index: 5;
  margin-top: -150px;
}

/* 共通 */
.page-cloud-center,
.page-cloud-side {
  position: absolute;
  top: 0;

  width: 1197px;
  height: 298px;

  background-image: url("../images/about/kumo_page.png");
  background-repeat: no-repeat;
  background-size: 1198px 298px;
  background-position: left top;
}


/* 中央 */
.page-cloud-center {
  left: 50%;
  transform: translateX(-50%);
}


/* 左側
   中央の左端と左画像の右端を接続 */
.page-cloud-left {
  right: calc(50% + 598px);

  transform: scaleX(-1);
  transform-origin: center top;
}


/* 右側
   中央の右端と右画像の左端を接続 */
.page-cloud-right {
  left: calc(50% + 598px);

  transform: scaleX(-1);
  transform-origin: center top;
}

  
/* ========================================
   Page Anchor Navigation
======================================== */

.about-anchor-nav {
  position: relative;
  z-index: 10;
  margin: -70px 0 70px;
}

.about-anchor-nav .about-inner {
  display: flex;
  justify-content: center;
  gap: 70px;
}

.about-anchor-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 8px 16px;
  border-radius: 30px;
  background: #159fd1;
  color: #fff;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 19px;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0,0,0,.10);
  transition: transform .2s ease, opacity .2s ease;
}

.about-anchor-nav a:hover {
  transform: translateY(-2px);
  opacity: .9;
}

/* ========================================
   Common Section
======================================== */

.about-section {
  padding: 0 0 58px;
}

.about-heading {
  margin-bottom: 22px;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.4;
}

.about-heading h2 {
  display: inline-block;
  position: relative;
  margin: 0;
  padding: 0 3px 5px;
  color: #3f4a4d;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.4;
}
.about-heading h2::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  border-radius: 5px;
  background: #8bd2ec;
}

.about-copy {
  font-size: 12px;
  line-height: 1.8;
}

.about-copy p {
  margin: 0 0 9px;
  font-size: 16px;
}

.about-copy h3 {
  margin: 20px 0 5px;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
}

/* ========================================
   Greeting
======================================== */

.greeting-section {
  padding-bottom: 38px;
}

.greeting-content {
  display: grid;
  grid-template-columns: 775px 300px;
  align-items: start;
  gap: 25px;
}

.greeting-text {
  font-size: 11px;
  line-height: 1.9;
}

.greeting-text p {
  margin: 0 0 8px;
  font-size: 16px;
}

.greeting-image {
  width: 300px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
}

/* ========================================
   Wide Image
======================================== */

.about-wide-image {
  display: block;
  width: 100%;
  aspect-ratio: 1.7 / 1;
  border-radius: 13px;
  object-fit: cover;
  margin-bottom: 18px;
  font-weight: 500px;
}

/* ========================================
   Number Lists
======================================== */

.about-number-list {
  margin: 8px 0 0;
  padding-left: 23px;
  font-size: 16px;
  line-height: 1.8;
}

.about-number-list li {
  margin-bottom: 6px;
  padding-left: 2px;
}

.about-number-list strong,
.about-number-list span {
  display: block;
}

.about-number-list strong {
  font-weight: 500;
}

/* ========================================
   Education
======================================== */

.education-section {
  padding-bottom: 55px;
}

/* ========================================
   Cloud Divider
======================================== */

.about-cloud-divider {
  position: relative;
  width: 100vw;
  height: 75px;
  margin: 0 0 25px;
  transform: translateX(-50%);
  left: 50%;
  overflow: hidden;
  background: #fffdf3;
}

.about-cloud-divider::before {
  content: "";
  position: absolute;
  left: -2%;
  bottom: -24px;
  width: 104%;
  height: 70px;
  background:
    radial-gradient(circle at 3% 100%, #fff 0 23px, transparent 24px),
    radial-gradient(circle at 10% 100%, #fff 0 30px, transparent 31px),
    radial-gradient(circle at 18% 100%, #fff 0 22px, transparent 23px),
    radial-gradient(circle at 26% 100%, #fff 0 31px, transparent 32px),
    radial-gradient(circle at 35% 100%, #fff 0 24px, transparent 25px),
    radial-gradient(circle at 44% 100%, #fff 0 31px, transparent 32px),
    radial-gradient(circle at 54% 100%, #fff 0 23px, transparent 24px),
    radial-gradient(circle at 63% 100%, #fff 0 31px, transparent 32px),
    radial-gradient(circle at 72% 100%, #fff 0 23px, transparent 24px),
    radial-gradient(circle at 81% 100%, #fff 0 31px, transparent 32px),
    radial-gradient(circle at 90% 100%, #fff 0 23px, transparent 24px),
    linear-gradient(#fff, #fff);
  filter: drop-shadow(0 -2px 2px rgba(0,0,0,.07));
}

/* ========================================
   Profile
======================================== */

.profile-section {
  padding-bottom: 60px;
}

.profile-table-wrap {
  width: 100%;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 16px;
}

.profile-table th,
.profile-table td {
  padding: 8px 12px;
  border-bottom: 1px dotted #cfcfcf;
  text-align: left;
  line-height: 1.5;
}

.profile-table th {
  width: 22%;
  color: #3f4a4d;
  font-weight: 500;
  white-space: nowrap;

  /* thとtdの間の縦点線 */
  border-right: 1px dotted #cfcfcf;
}
/* ========================================
   History
======================================== */

.history-section {
  padding-bottom: 80px;
}

.history-list {
  position: relative;
  margin: 0;
  padding: 0 0 0 15px;
  list-style: none;
}

/* 縦の長めの点線 */
.history-list::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 6px;
  width: 2px;

  background: repeating-linear-gradient(
    to bottom,
    #8bd2ec 0,
    #8bd2ec 10px,
    transparent 10px,
    transparent 17px
  );
}

/* 年表 */
.history-list li {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding: 7px 0 7px 22px;
  font-size: 16px;
  line-height: 1.6;
}

/* 各項目の● */
.history-list li::before {
  content: "";
  position: absolute;

  top: 50%;
  left: 0;

  width: 16px;
  height: 16px;

  border-radius: 50%;
  background: #159fd1;

  transform: translateY(-50%);
  z-index: 2;
}
.history-list span {
  color: #159fd1;
}

.history-list p {
  margin: 0;
}


/* ========================================
   Map
======================================== */

.about-main + .site-footer {
  margin-top: 0;
}

.map-section {
  position: relative;
  height: 450px;
}

.map-section .map,
.map-section iframe {
  display: block;
  width: 100%;
  height: 450px;
}

/* ========================================
   events
======================================== */

.events-section {
  padding-bottom: 60px;
}

.events-table-wrap {
  width: 100%;
}

.events-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 16px;
}

.events-table th,
.events-table td {
  padding: 8px 12px;
  border-bottom: 1px dotted #cfcfcf;
  line-height: 1.5;
}

.events-table th {
  width: 15%;
  color: #3f4a4d;
  font-weight: 500;
  white-space: nowrap;

  /* thとtdの間の縦点線 */
  border-right: 1px dotted #cfcfcf;
}

/* ========================================
   daily-life
======================================== */

.daily-life-section {
  padding-bottom: 80px;
}

.daily-life-list {
  position: relative;
  margin: 0;
  padding: 0 0 0 15px;
  list-style: none;
}

/* 縦の長めの点線 */
.daily-life-list::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 6px;
  width: 2px;

  background: repeating-linear-gradient(
    to bottom,
    #8bd2ec 0,
    #8bd2ec 10px,
    transparent 10px,
    transparent 17px
  );
}

/* 年表 */
.daily-life-list li {
  position: relative;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 10px;
  padding: 7px 0 15px 35px;
  font-size: 16px;
  line-height: 1.6;
}

/* 各項目の● */
.daily-life-list li::before {
  content: "";
  position: absolute;

  top: 50%;
  left: -2px;

  width: 30px;
  height: 30px;

  background-image: url("../images/life/time.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  transform: translateY(-50%);
  z-index: 2;
}
.daily-life-list span {
  color: #159fd1;
}

.daily-life-list p {
  margin: 0;
}

/* ========================================
   Responsive
   768px以下
======================================== */

@media (max-width: 768px) {

  /* ----------------------------------------
     Page Hero
  ---------------------------------------- */

  .page-hero {
    height: 250px;
    margin-top: 60px;
  }

  .page-hero-title {
    bottom: 50px;
    padding: 5px 13px;
  }

  .page-hero-title h1 {
    font-size: 25px;
  }

  /* ----------------------------------------
     About / Detail common
  ---------------------------------------- */

  .about-inner {
    width: calc(91% - 30px);
  }

  .about-hero {
    max-width: 100%;
    margin-top: 0;
  }

  .about-hero > img {
    min-height: 245px;
    max-height: 350px;
    object-fit: cover;
    object-position: center center;
  }

  .about-anchor-nav {
    margin: -100px 0 50px;
  }

  .about-anchor-nav .about-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
  }

  .about-anchor-nav a {
    min-width: 0;
    min-height: 31px;
    flex: 1 1 0;
    padding: 5px 2px;
    border-radius: 18px;
    font-size: 13px;
    white-space: nowrap;
  }

  .about-section {
    padding-bottom: 50px;
  }

  .about-heading {
    margin-bottom: 16px;
  }

  .about-heading h2 {
    font-size: 23px;
    padding-bottom: 4px;
  }

  .about-heading h2::after {
    height: 4px;
  }

  .about-copy p {
    font-size: 16px;
    line-height: 1.75;
  }

  .about-copy h3 {
    margin-top: 20px;
    font-size: 18px;
  }

  .about-number-list {
    font-size: 16px;
    line-height: 1.7;
    padding-left: 20px;
  }

  /* ----------------------------------------
     Page Cloud
  ---------------------------------------- */

  .page-cloud-overlay {
    position: relative;
    z-index: 10;
    width: 100vw;
    height: 298px;
    margin-left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    pointer-events: none;
  }

  .page-cloud-overlay.cloud-top {
    margin-top: -150px;
  }

  .page-cloud-overlay:not(.cloud-top) {
    margin-top: -100px;
  }

  .about-cloud-divider {
    height: 55px;
    margin-bottom: 15px;
  }

  /* ----------------------------------------
     Greeting
  ---------------------------------------- */

  .greeting-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .greeting-text {
    font-size: 12px;
    line-height: 1.75;
  }

  .greeting-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 9px;
  }

  .about-wide-image {
    aspect-ratio: 1.55 / 1;
    margin-bottom: 14px;
    border-radius: 11px;
  }

  /* ----------------------------------------
     Profile
  ---------------------------------------- */

  .profile-table,
  .profile-table tbody,
  .profile-table tr,
  .profile-table th,
  .profile-table td {
    display: block;
    width: 100%;
  }

  .profile-table {
    font-size: 16px;
  }

  .profile-table tr {
    padding: 8px 0;
    border-bottom: 1px dotted #cfcfcf;
  }

  .profile-table th,
  .profile-table td {
    border: none;
    padding: 6px 7px;
  }

  .profile-table th {
    width: 27%;
    font-weight: 500;
    color: #159fd1;
  }

  .profile-table td {
    padding-top: 2px;
  }

  /* ----------------------------------------
     History
  ---------------------------------------- */

  .history-list li {
    display: block;
    padding: 8px 0 8px 22px;
    font-size: 16px;
    line-height: 1.6;
  }

  .history-list li span {
    display: block;
    margin-bottom: 2px;
  }

  .history-list li p {
    display: block;
    margin: 0;
  }

  /* ----------------------------------------
     Events Table
  ---------------------------------------- */

  .events-table,
  .events-table tbody,
  .events-table tr,
  .events-table th,
  .events-table td {
    display: block;
    width: 100%;
  }

  .events-table {
    font-size: 16px;
  }

  .events-table tr {
    padding: 8px 0;
    border-bottom: 1px dotted #cfcfcf;
  }

  .events-table th,
  .events-table td {
    border: none;
    padding: 6px 7px;
  }

  .events-table th {
    width: 27%;
    font-weight: 500;
    color: #159fd1;
  }

  .events-table td {
    padding-top: 2px;
  }

  /* ----------------------------------------
     Map
  ---------------------------------------- */

  .map-section {
    height: 280px;
  }

  .map-section .map,
  .map-section iframe {
    height: 280px;
  }

  /* ----------------------------------------
     Daily Life
  ---------------------------------------- */

  .daily-life-list li {
    display: block;
    padding: 8px 0 8px 22px;
    font-size: 16px;
  }

  .daily-life-list li span {
    display: block;
    margin-bottom: 2px;
  }

  .daily-life-list li p {
    display: block;
    margin: 0;
  }

  /* ----------------------------------------
     Other detail page layout
  ---------------------------------------- */

  .page-container {
    padding-top: 45px;
  }

  .page-nav {
    margin-bottom: 40px;
  }

  .page-two-column {
    grid-template-columns: 1fr;
  }

  .page-section h2 {
    font-size: 24px;
  }

  .page-section p {
    font-size: 13px;
  }

  .page-table th,
  .page-table td {
    display: block;
    width: 100%;
    font-size: 12px;
  }

  .page-table th {
    padding-bottom: 5px;
    border-bottom: 0;
  }

  .page-table td {
    padding-top: 5px;
  }
}
