@charset "UTF-8";

body {
  --font-legacy: #008ad8;
}

p.center {
  text-align: center;
}

h2.large {
  color: var(--font-legacy);
  font-size: 24px;
  line-height: 1.6em;
  padding-bottom: 16px;
  font-weight: normal;
}

h3.large {
  color: var(--font-legacy);
  position: relative;
  line-height: 1.6em;
  font-weight: normal;
  margin: 30px 0 15px;
  padding: 0 20px;
  display: inline-block;
}

h3.large::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  display: inline-block;
  width: 15px;
  height: 1px;
  background: var(--font-legacy);
  margin-top: -1px;
}

.paragraph {
  max-width: 900px;
  margin: 0 auto 80px;
}

.paragraph p + p {
  margin-top: 1.3rem;
}

.paragraph a {
  color: var(--font-legacy);
}
.paragraphtopmargin {
  margin: 0 auto 80px;
}

.child-wrapper {
  max-width: 1200px;
  margin: 0 auto 140px;
  padding: 0 20px;
}

.l-section {
  position: relative;
}

.l-container {
  text-align: center;
}

.l-section-inner {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.l-section-main {
  margin-bottom: 80px;
}

.generic-head-title {
  font-family: "Source Sans Pro";
  font-weight: lighter;
  font-style: normal;
  color: var(--font-legacy);
  margin-bottom: 26px;
  text-align: center;
  line-height: 1.6;
}

.generic-head-sub {
  font-family: "Source Sans Pro";
  font-weight: lighter;
  color: var(--font-legacy);
}

.generic-html-content p {
  letter-spacing: 0;
  margin-bottom: 28px;
  position: relative;
  font-size: 16px;
  line-height: 1.5em;
}

/* テーブルレイアウト */
/* ノーマル */
table.matrix {
  border-collapse: collapse;
  width: 100%;
  border: 1px solid #e5e5e5;
}

table.matrix th,
table.matrix td {
  padding: 15px;
  border: 1px solid #e5e5e5;
}

table.matrix th {
  font-weight: bold;
  background-color: #f5f5f5;
}

.scroll,
.scroll-plan {
  width: 100%;
  font-size: 14.4px;
}
.scroll table,
.scroll-plan table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}
.scroll th,
.scroll td {
  padding: 15px;
  border: 1px solid #e5e5e5;
  word-break: break-word;
}
.scroll th {
  background-color: #f5f5f5;
  font-weight: bold;
  width: 30%;
  white-space: nowrap;
}

.scroll td:nth-child(1),
.scroll td:nth-child(2) {
  width: 30%;
  white-space: nowrap;
}

.scroll td:last-child {
  width: auto;
}

.scroll-plan th,
.scroll-plan td {
  padding: 15px;
  border: 1px solid #e5e5e5;
}

.scroll-plan th {
  background-color: #f5f5f5;
  font-weight: bold;
}

/* SP表示で縦並びレイアウトに */
@media screen and (max-width: 750px) {
  table.matrix,
  table.matrix tbody,
  table.matrix tr {
    display: block;
    width: 100%;
    
  }

  table.matrix th,
  table.matrix td {
    display: block;
    box-sizing: border-box;
    border: 1px solid #e5e5e5;
  }

  table.matrix th {
    border-top: 1px solid #e5e5e5;
    border-bottom: none;
    background-color: #f5f5f5;
    text-align: left;
  }

  /* 複雑なテーブル */
  .scroll,
  .scroll-plan {
    overflow-x: auto;
  }
  .scroll table,
  .scroll-plan table {
    min-width: 100%;
    width: max-content;
    table-layout: fixed;
  }
  .scroll th,
  .scroll td {
    word-break: break-word;
    white-space: nowrap;
  }
}


.generic-html-content:not(:first-child) .l-container {
  padding: 40px;
  margin-bottom: 40px;
  background: linear-gradient(
    to bottom,
    transparent 15%,
    #e8f6ff 15%,
    #d1ebfb 95%,
    transparent 95%
  );
}
.child-wrapper .generic-html-content-with-img-caption {
  display: flex;
  align-items: center;
  gap: 60px;
}
.child-wrapper .generic-html-content-img {
  flex: 0 0 35%;
  max-width: 430px;
}
.child-wrapper .generic-html-content-img img {
  width: 100vw;
  height: auto;
  object-fit: cover;
  border-radius: 0 0 90px 0;
  display: block;
}
.generic-html-content:not(:first-child) .l-container .style-reset {
  padding: 0;
  margin-bottom: 0;
  background-color: none;
}
.style-reset img {
  border-radius: 0 !important;
}

.generic-html-content-with-img-catch {
  margin-bottom: 40px;
}

.child-wrapper .generic-html-content-caption {
  flex: 1;
  font-size: 16px;
  line-height: 1.8;
  padding: 20px 10px 0;
}

.child-wrapper .generic-html-content-caption .generic-head-title {
  font-size: 24px;
  color:  var(--font-legacy);
  margin-bottom: 16px;
  text-align: left;
}

.child-wrapper .generic-html-content-caption p {
  text-align: left;
}

.child-wrapper .textbutton {
  margin-top: 24px;
  text-align: center;
}

.child-wrapper .textbutton a {
  display: inline-block;
  padding: 12px 32px;
  background:  var(--font-legacy);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 700;
}

.child-wrapper .textbutton a:hover {
  background-color:  #000;
}

@media (max-width: 900px) {
  .child-wrapper > .generic-html-content:first-child .l-container {
    padding: 0 0 40px;
  }

  .child-wrapper > .generic-html-content:not(:first-child) .l-container {
    padding: 24px 20px 32px;
  }

  .child-wrapper .generic-html-content-with-img-caption {
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }

  .child-wrapper .generic-html-content-img {
    max-width: 100%;
    flex-basis: auto;
  }
}

/* ==============================
  CARD 共通
  ============================== */

  .card {
  padding: 37px 31px 37px 35px;
  border-radius: 100px 0 100px 0;
}

.card-title,
.card-small-title,
.card-inverted-content-title,
.card-xsmall-title,
.card-desc,
.card-link {
  font-family: "Source Sans Pro", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-style: normal;
  color: #fff;
}

.card-title,
.card-small-title,
.card-inverted-content-title,
.card-xsmall-title {
  font-size: 40px;
  font-weight: normal;
  letter-spacing: 0.05em;
  text-align: center;
}

.card-title br,
.card-small-title br,
.card-inverted-content-title br,
.card-xsmall-title br {
  display: none;
}

.card-desc {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.03em;
  margin-top: 24px;
  line-height: 2;
}

.card-link {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: center;
  display: block;
  margin-top: 21px;
  position: relative;
}

.card-link span {
  display: inline-block;
  vertical-align: middle;
}

/* CARD レイアウト */

.l-card-list {
  list-style: none;
}

.card-with-image {
  display: block;
  position: relative;
  z-index: 2;
  padding: 0 0 20px;
  margin: 0 13px;
  text-decoration: none !important;
}

.card-with-image-title {
  font-size: 18px;
  color: #033b6d;
  font-weight: 700;
  text-align: left;
  margin-top: 11px;
  display: inline-block;
}

.card-with-image-title::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  background: #033b6d;
  transition: width 0.25s ease-in-out;
}

.card-with-image-small:hover .card-with-image-title::after,
.card-with-image-title:hover::after {
  width: 100%;
}

.card-with-image-title:hover {
  opacity: 0.8;
}

.card-with-image-desc {
  font-size: 14px;
  color: #033b6d;
  margin-top: 7px;
  letter-spacing: 0.01em;
  line-height: 1.8;
}

.card-with-image-bg {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 74px 0 74px 0;
  overflow: hidden;
  background-color: #eee;
}

.card-with-image-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ==============================
    GRID：4 → 3 → 2 → 1 列
    ============================== */

.l-grid {
  text-align: left;
}

.l-grid .l-grid-inner {
  display: flex;
  flex-wrap: wrap;
  margin: -12px;
  font-size: 0;
  letter-spacing: 0;
}

.l-grid .l-grid-item {
  box-sizing: border-box;
  padding: 12px;
  vertical-align: top;
  font-size: 16px;
}

/* 列数 */
.l-grid.l-grid-col2 .l-grid-item { width: 50%; }
.l-grid.l-grid-col3 .l-grid-item { width: 33.3333%; }
.l-grid.l-grid-col4 .l-grid-item { width: 25%; }
.l-grid.l-grid-col5 .l-grid-item { width: 20%; }
.l-grid.l-grid-col6 .l-grid-item { width: 16.6666%; }

/* ==============================
    BREAKPOINTS
    1200 / 900 / 600
    ============================== */

/* ～1200px：4列 → 3列に */
@media (max-width: 1200px) {
  .l-grid.l-grid-col4 .l-grid-item {
    width: 33.3333%;
  }
}

/* ～900px：4列 / 3列 → 2列に */
@media (max-width: 900px) {
  .l-grid.l-grid-col3 .l-grid-item,
  .l-grid.l-grid-col4 .l-grid-item {
    width: 50%;
  }

  .l-card-main ul {
    flex-direction: column;
    gap: 20px;
  }

  .l-card-main .card-main {
    width: 100%;
    padding: 34px 20px 20px;
    margin-bottom: 20px;
  }
}

/* ～600px：すべて 1列＋モバイル用調整 */
@media (max-width: 600px) {
  /* GRID を一律 1 列に */
  .l-grid .l-grid-item {
    width: 100% !important;
  }

  /* card 基本 */
  .card {
    border-top-left-radius: 113px;
    border-bottom-right-radius: 113px;
    padding: 38px 14px 23px 20px;
  }

  .card-title,
  .card-small-title,
  .card-inverted-content-title,
  .card-xsmall-title {
    font-size: 28px;
    line-height: 1.3;
  }

  .card-title br,
  .card-small-title br,
  .card-inverted-content-title br,
  .card-xsmall-title br {
    display: block;
  }

  .card-desc {
    margin-top: 8px;
    letter-spacing: 0.06em;
    line-height: 1.8;
  }

  .card-link {
    margin-top: 16px;
    letter-spacing: 0;
    font-size: 14px;
  }

  .card-small,
  .card-inverted,
  .card-xsmall {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    border-top-left-radius: 82px;
    border-bottom-right-radius: 82px;
    margin-bottom: 24px;
  }

  .card-article {
    padding: 0;
    margin: 0;
  }

  .card-article-title {
    margin-top: 18px;
  }

  .card-article-desc {
    margin-top: 11px;
    letter-spacing: 0.056em;
  }

  .card-with-image {
    padding: 0;
    margin: 0 -6px;
    display: block;
  }

  .card-with-image-bg {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-top-left-radius: 85px;
    border-bottom-right-radius: 85px;
  }
}

.paragraph .dot {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
}

.paragraph .dot li {
  display: inline-block;
}

.paragraph .dot li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 999px; 
  border: 1px solid var(--font-legacy);
  color: var(--font-legacy);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: 
    background-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.paragraph .dot li a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.paragraph .dot li a:hover {
  background-color: var(--font-legacy);
  color: #fff;
}

.paragraph .dot li.right {
	display: block;
	text-align: right;
}

.footer-upper-curve {
  position: absolute;
  right: 23px;
  top: -157px;
  width: 134px;
  height: 134px;
}

@media (max-width: 750px) {
  .child-wrapper {
    margin: 0 auto 80px;
  }
  .paragraph .dot li a {
    font-size: 13px;
    padding: 8px 18px;
  }
  .footer-upper-curve {
      top: -78px;
      width: 79.5px;
      height: 79.5px;
      right: 0;
  }
  .footer-upper-curve svg {
    width: 79.5px;
    height: 79.5px;
  }
}

.paragraph .disc {
  list-style-type: disc;
  padding: 0 2rem;
  margin: 24px 0 32px;
  font-size: 15px;
}

.paragraph .disc li + li {
  margin-top: 8px;
}
.paragraph .number li + li {
  margin-top: 12px;
}

.paragraph.photo-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 20px;
  box-sizing: border-box;
}

.photo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.photo-item figure {
  margin: 0;
  overflow: hidden;
}

.photo-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.photo-item figcaption {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
}

/* ブレイクポイント：2列 → 1列 */
@media (max-width: 1024px) {
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .paragraph.photo-section {
    padding: 0 16px;
    margin-bottom: 60px;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .photo-item figcaption {
    font-size: 13px;
  }
}

/* 施設紹介画像横並び */
.format_first{
  display: flex;
  flex-wrap: wrap;
  gap: 80px;
  justify-content: center;
  margin: 0 0 30px;
}
.format_first .inner{
  flex: 0 0 340px;
}
.format_first .inner h3{
  margin: 12px 14px 8px;
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
  color: #333;
  font-weight: normal;
  border-radius: 0 0 60px 0;
}
.format_first .inner p{
  margin: 0;
}
.format_first .inner img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px){
  .format_first{ gap: 50px; width: 100%; }
  .format_first .inner{ flex-basis: 100%; }
  p { line-height: 2em;}
}

.text_pdf {
  margin: 5px 0 15px;
}
.text_pdf::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 30px;
  background-image: url(https://www.ymcajapan.org/wp-content/themes/ymcajapan/assets/tozanso/images/icon_pdf.png);
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
  background-size: auto 100%;
  margin-right: 10px;
}

.googlecalendar iframe {
  width: 100%;
  aspect-ratio: 4/ 3;
}

/* FAQ */
.faq {
  border-top: 1px solid #033b6d;
  border-bottom: 1px solid #033b6d;
}

.faq-item {
  list-style: none;
}

.faq-item:not(:last-child) {
  border-bottom: 1px solid #033b6d;
}

.faq-button {
  width: 100%;
  display: block;
  padding: 40px 60px 40px 20px;
  background: none;
  border: none;
  text-align: left;
  position: relative;
  cursor: pointer;
  box-sizing: border-box;
}

.faq-button::before,
.faq-button::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 18px;
  height: 2px;
  background-color: #033b6d;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.faq-button::after {
  transform: translateY(-50%) rotate(90deg);
}

.faq-button::before {
  transform: translateY(-50%) rotate(0);
}

.faq-button.is-active::after {
  transform: translateY(-50%) rotate(0);
}

.faq-button a {
  text-decoration: none;
}

.faq-title {
  font-size: 16px;
  font-weight: 700;
  color: #033b6d;
}

.faq-sub-list {
  display: none;
  padding: 0 20px 40px;
  list-style: none;
}

.faq-text {
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}
