@import "./variables.css";

/* コンポーネントをここに記載してください */


/* 各コンポーネントは、以下コメントにて区切る */


/* ==============================================================
  ナビゲーションボタン
   ============================================================== */

.c-nav-button {
  align-items: center;
  border-radius: var(--border-radius-default);
  border: 1px solid currentColor;
  background: #fff;
  font-size: var(--font-size-md);
  font-weight: 700;
  display: inline-flex;
  color: var(--genki-brown);
  gap: 8px;
  padding-inline: 16px;
  min-height: 109px;
  min-width: 350px;
  transition: all 0.3s ease;
}
.c-nav-button:hover {
  transform: translateY(-5px);
}


.c-nav-button::after {
  margin-right: 0;
  margin-left: auto;
  content: '';
  width: 24px;
  height: 24px;
  background-color: currentColor; /* 親要素の色を継承 */
  mask: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 17.994L12.6 16.544L16.15 12.994H4V10.994H16.15L12.6 7.44396L14 5.99396L20 11.994L14 17.994Z' fill='black'/%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 17.994L12.6 16.544L16.15 12.994H4V10.994H16.15L12.6 7.44396L14 5.99396L20 11.994L14 17.994Z' fill='black'/%3E%3C/svg%3E") no-repeat center;
  -webkit-mask-size: contain;
}

.c-nav-button img{
  width: 97px;
}

.c-nav-button--nursery {
  color: var(--color-nursery);
}
.c-nav-button--development {
  color: var(--color-development);
}
.c-nav-button--child {
  color: var(--color-child);
}

@media (max-width: 767px) {
  .c-nav-button {
    font-size: var(--font-size-sm);
    min-width: initial;
    width: 100%;
    gap: 24px;
    min-height: 80px;
  }
  .c-nav-button img{
    width: 64px;

  }
}



/* ==============================================================
  ボタン
   ============================================================== */

.c-button {
  align-items: center;
  border-radius: var(--border-radius-default);
  border: 1px solid currentColor;
  color: var(--genki-brown);
  display: inline-flex;
  font-size: var(--font-size-body);
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 72px;
  padding-inline: 48px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.c-button:hover {
  background-color: var(--genki-brown);
  color: #fff;
}

.c-button::after {
  background-color: currentColor; /* 親要素の色を継承 */
  content: '';
  height: 24px;
  margin-right: 0;
  margin-left: auto;
  mask: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 17.994L12.6 16.544L16.15 12.994H4V10.994H16.15L12.6 7.44396L14 5.99396L20 11.994L14 17.994Z' fill='black'/%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 17.994L12.6 16.544L16.15 12.994H4V10.994H16.15L12.6 7.44396L14 5.99396L20 11.994L14 17.994Z' fill='black'/%3E%3C/svg%3E") no-repeat center;
  -webkit-mask-size: contain;
  width: 24px;
}

.c-button--primary {
  background: var(--genki-primary);
  color: #fff;
}
.c-button--nursery {
  color: var(--color-nursery);
}
.c-button--nursery:hover {
  background-color: var(--color-nursery);
  color: #fff;
}
.c-button--development {
  background: #fff;
  color: var(--color-development);
}
.c-button--development:hover {
  background-color: var(--color-development);
  color: #fff;
}
.c-button--child,
.c-button--consultation {
  color: var(--color-child);
}
.c-button--child:hover,
.c-button--consultation:hover {
  background-color: var(--color-child);
  color: #fff;
}
.c-button--border {
  color: #fff;
  border: 1px solid currentColor;
}
.c-button--border:hover {
  background-color: #fff;
  color: var(--genki-brown);
}
.c-button--skeleton {
  color: var(--genki-brown);
  background: #fff;
  border: 1px solid var(--genki-brown);
}


.c-button--slim {
  min-height: 56px;
}

.c-button--no-arrow:after {
  display: none;
}

@media (max-width: 767px) {
  .c-button {
    padding-inline: 24px;
  }
}



/* ==============================================================
  ハンバーガーメニュー
   ============================================================== */
.c-burger-menu {
  background: var(--genki-brown);
  border: 0;
  border-radius: 50%;
  appearance: none;
  outline: none;
  width: 80px;
  height: 80px;
  position: relative;
  cursor: pointer
}
@media (min-width: 768px) {
  .c-burger-menu:hover {
    background: var(--genki-primary);
  }
}

.c-burger-menu__btn {
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  appearance: none;
  width: 36px;
  height: 24px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto
}

.c-burger-menu__btn span {
  background: #fff;
  display: block;
  width: 100%;
  height: 2px;
  margin: auto;
  position: absolute;
  transition: .3s
}

.c-burger-menu__btn span:nth-child(1) {
  top: 0px
}

.c-burger-menu__btn span:nth-child(2) {
  top: 0;
  bottom: 0;
  right: 0
}

.c-burger-menu__btn span:nth-child(3) {
  bottom: 0px
}

/* 
.is-menu-open .c-burger-menu__btn span:nth-child(1) {
  transform: translateY(13px) rotate(-45deg)
}

.is-menu-open .c-burger-menu__btn span:nth-child(2) {
  opacity: 0
}

.is-menu-open .c-burger-menu__btn span:nth-child(3) {
  transform: translateY(-15px) rotate(45deg)
} */

@media (max-width: 767px) {
  .c-burger-menu {
    width: 50px;
    height: 50px;
  }
  .c-burger-menu__btn {
    width: 24px;
    height: 16px;
  }
}



/* ==============================================================
  見出し
   ============================================================== */

.c-section-heading {
  align-items: center;
  color: var(--genki-brown);
  display: flex;
  flex-direction: column;
  gap: 40px;
  justify-content: center;
}
.c-section-heading--no-gap {
  gap: 0;
  display: inline-flex;
  margin-inline: auto;
  border-bottom: 2px solid currentColor;
}

.c-section-heading__center {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.c-section-heading__lines {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.c-section-heading__text-wrapper {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 0;
}
.c-section-heading__text {
  font-size: var(--font-size-h2);
  font-weight: 700;
  display: inline-flex;
  border-bottom: 2px solid currentColor;
}
.c-section-heading__text--no-border {
  border-bottom: 0;
}
.c-section-heading__text--note {
}

@media (max-width: 767px) {
  .c-section-heading {
    gap: 16px;
  }
  .c-section-heading--no-gap {
    gap: 0;
    padding-bottom: 16px;
  }
  .c-section-heading__text {
    .c-section-heading--no-gap {}
    font-size: var(--font-size-sm);
  }
}


/* ==============================================================
  ページタイトル シンプル
   ============================================================== */

.c-page-title-simple {
  display: flex;
}

.c-page-title-simple__text {
  color: var(--genki-brown);
  font-size: var(--font-size-h1);
  font-weight: 700;
  display: inline-flex;
  border-bottom: 2px solid currentColor;
}

@media (max-width: 767px) {
  .c-page-title-simple {
    justify-content: center;
  }
  .c-page-title-simple__text {
    font-size: var(--font-size-md);
    text-align: center;
  }
  .c-page-title-simple__text {
    border-bottom: 0;
  }
}


/* ==============================================================
  ページタイトル 
   ============================================================== */

.c-page-title {
  align-items: center;
  color: var(--genki-brown);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.c-page-title__text {
  font-size: var(--font-size-h1);
  font-weight: 700;
  display: inline-flex;
  text-align: center;
}

.c-page-title--brand {
  color: var(--genki-logo);
}

.c-page-title--nursery {
  color: var(--color-nursery);
}
.c-page-title--development {
  color: var(--color-development);
}
.c-page-title--child {
  color: var(--color-child);
}
.c-page-title__icon {
  width: 107px;
  height: 80px;
}
.c-page-title__icon img {
  width: 100%;
}

@media (max-width: 767px) {

  .c-page-title__text {
    font-size: var(--font-size-md);
  }
  .c-page-title__icon {
    width: 80px;
    height: auto;
  }
}


/* ==============================================================
  タグ
   ============================================================== */

.c-tag {
  color: #fff;
  background: #EEA837;
  border-radius: 4px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: var(--font-size-xs);
  font-weight: 700;
  padding: 4px 8px;
}

.c-tag--nursery {
  background: var(--color-nursery);
}
.c-tag--development {
  background: var(--color-development);
}
.c-tag--child {
  background: var(--color-child);
}
.c-tag--pickup {
  background: var(--color-pickup);
}
.c-tag--kids {
  background: var(--color-kids);
}
.c-tag--baby {
  background: var(--color-baby);
}

@media (max-width: 767px) {
  .c-tag {
    font-size: var(--font-size-small);
  }
}


/* ----- Term style ------ */

.c-tag--term {
  background: var(--genki-primary);
  font-weight: 500;
  gap: 2px;
  border-radius: 9999px;
  padding-inline: 27px;
}
.c-tag--term:before {
  content: "#";
}

@media (max-width: 767px) {
  .c-tag--term {
    font-size: var(--font-size-small);
    padding-inline: 16px;
  }
}


/* ----- Required style ------ */
.c-tag--required {
  background: var(--genki-brown);
  font-size: var(--font-size-body);
  font-weight: 500;
  gap: 2px;
  border-radius: 9999px;
  padding-inline: 14px;
  padding-block: 0;
}


/* ----- Size modifier ------ */

.c-tag--small {
  font-size: var(--font-size-h3);
  padding-inline: 16px;
}
.c-tag--medium {
  font-size: var(--font-size-sm);
  padding-inline: 24px;
}

.c-tag--large {
  font-size: var(--font-size-md);
  padding-inline: 24px;
}

@media (max-width: 767px) {
  .c-tag--large {
    font-size: var(--font-size-sm);
  }
}

/* ----- Min width Modifier ------ */

.c-tag--min-width {
  min-width: 160px;
}

/* ----- Border radius modifier ------ */

.c-tag--radius-full {
  border-radius: 9999px;
}

.c-tag--radius-default {
  border-radius: var(--border-radius-default);
}


/* ==============================================================
  Check Icon
   ============================================================== */

.c-check-icon {
  background: var(--genki-gold);
  border-radius: 50%;
  display: grid;
  place-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.c-check-icon:before {
  background: #fff;
  content: "";
  display: block;
  height: 14px;
  width: 20px;
  mask: url("data:image/svg+xml,%3Csvg width='20' height='14' viewBox='0 0 20 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.293 0.284535C18.6834 -0.105938 19.3165 -0.105887 19.707 0.284535C20.0975 0.675005 20.0975 1.30805 19.707 1.6986L7.71093 13.6986C7.51405 13.8955 7.24406 14.0012 6.96582 13.9906C6.68764 13.98 6.42643 13.8541 6.24511 13.6429L0.241208 6.64293C-0.118258 6.22383 -0.070286 5.59238 0.34863 5.23278C0.767734 4.87331 1.39918 4.92128 1.75879 5.3402L7.05957 11.5209L18.293 0.284535Z' fill='black'/%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg width='20' height='14' viewBox='0 0 20 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.293 0.284535C18.6834 -0.105938 19.3165 -0.105887 19.707 0.284535C20.0975 0.675005 20.0975 1.30805 19.707 1.6986L7.71093 13.6986C7.51405 13.8955 7.24406 14.0012 6.96582 13.9906C6.68764 13.98 6.42643 13.8541 6.24511 13.6429L0.241208 6.64293C-0.118258 6.22383 -0.070286 5.59238 0.34863 5.23278C0.767734 4.87331 1.39918 4.92128 1.75879 5.3402L7.05957 11.5209L18.293 0.284535Z' fill='black'/%3E%3C/svg%3E") no-repeat center;
  -webkit-mask-size: contain;
}


/* ==============================================================
  Simple box
   ============================================================== */

.c-simple-box {
  background: #fff;
  border-radius: var(--border-radius-default);
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.c-simple-box__text {
  color: var(--genki-brown);
  font-size: var(--font-size-h3);
  font-weight: 700;
}


@media (max-width: 767px) {
  .c-simple-box {
    width: 100%;
  }
  .c-simple-box__text {
    font-size: var(--font-size-body);
  }
}

/* ==============================================================
  Square card
   ============================================================== */

.c-square-card-group {
  display: flex;
}
.c-square-card {
  aspect-ratio: 1 / 1;
  display: block;
  position: relative;
  width: 100%;
}
.c-square-card--rectangle {
  aspect-ratio: 720 / 480;
}

.c-square-card--nursery {
  background: var(--color-nursery);
}
.c-square-card--development {
  background: var(--color-development);
}
.c-square-card--child {
  background: var(--color-child);
}

.c-square-card__image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}
.c-square-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.c-square-card__image:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.5);
}

.c-square-card__image--no-overlay:before {
  display: none;
}


.c-square-card__inner {
  border: 3px solid #fff;
  border-radius: var(--border-radius-default);
  display: grid;
  place-content: center;
  --offset: 30px;
  position: absolute;
  top: var(--offset);
  bottom: var(--offset);
  right: var(--offset);
  left: var(--offset);
  z-index: 1;
}
.c-square-card__content {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.c-square-card__icon {
  height: 175px;
  width: 240px;
}
.c-square-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}
.c-square-card__body {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.c-square-card__title {
  color: #fff;
  font-size: var(--font-size-h1);
  font-weight: 700;
  text-align: center;
}
.c-square-card__title--small {
  font-size: var(--font-size-h2);
}
.c-square-card__text {
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: 700;
}

@media (max-width: 767px) {
  .c-square-card-group {
    flex-direction: column;
  }
  .c-square-card__title {
    font-size: var(--font-size-md);
  }
  .c-square-card__text {
    font-size: var(--font-size-small);
  }
}


/* ==============================================================
  More
   ============================================================== */
.c-more--group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.c-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;  
  gap: 8px;
  font-size: 21.33px;
  font-weight: 700;
}

.c-more::after {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNyIgaGVpZ2h0PSIxMSIgdmlld0JveD0iMCAwIDcgMTEiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik00LjA4NzI1IDUuMDQwOTZMMC4zNTI5NTMgMS4yMTIwOEwxLjQ4NjcgMC4wNDQwNTdMNi4zNTc1MiA1LjAzODI1TDEuNDk4NjIgMTAuMDQ0TDAuMzYyMDkyIDguODc4NzRMNC4wODcyNSA1LjA0MDk2WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==");
  background-repeat: no-repeat;
  background-size: 4.8px auto;
  background-position: center center;
  background-color: #eea837;
  content: "";
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.c-more--small::after {
  background-size: 3.6px auto;
  width: 24px;
  height: 24px;
}

.c-more--large::after {
  background-size: 7px 11px;
  width: 40px;
  height: 40px;
}

.c-more--primary::after {
  background-color: #de765b;
}

.c-more--lists {
  background-image: radial-gradient(circle, #5d5759 1px, transparent 1px);
  background-position: left bottom;
  background-repeat: repeat-x;
  background-size: 10px 2px;
  padding-bottom: 16px;
}


/* ==============================================================
  Card
   ============================================================== */

.c-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px 16px;
}

.c-card {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 358px;
  padding: 24px;
}

.c-card::before {
  background: #fefbf4;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 112.5px auto;
  content: "";
  width: 120px;
  height: 120px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.c-card--calendar::before {
  background-image: url("../img/icon_calendar.png");
}

.c-card--anniversary::before {
  background-image: url("../img/icon_anniversary.png");
}

.c-card h3 {
  color: #de765b;
  font-size: 25.6px;
  font-weight: 700;
}

.c-card--anniversary h3 {
  color: #eea837;
}

.c-card p {
  font-size: 16px;
  line-height: 1.8;
}



/* ==============================================================
    約束
   ============================================================== */
.c-promise {
  position: relative;
  width: 224px;
  height: 224px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: center;
  padding: 24px 40px;
  flex-direction: column;
  align-items: center;         /* 水平方向中央 */
  justify-content: flex-start; /* 垂直方向上寄せ */
  
}

/* イラストだけ絶対配置（背景扱い） */
.c-promise__icon {
  position: absolute;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.c-promise__icon img {
  width: 120px;
  height: 80px;
  object-fit: contain;
}

/* 数字バッジ：普通のブロック要素として中央に */
.c-promise__num {
  position: static; /* ← これ！絶対値ではなく通常フローに */
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px; /* 下に余白を足す */
  border-radius: 50%;
  background: #EEA837;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
}

/* テキスト */
.c-promise__text {
 position: relative;
  z-index: 2;
  width: 144px;        /* Figmaでの塗り幅 */
  height: 120px;        /* Figmaでの内包高さ */
  display: flex;       /* 中央寄せのためのflex指定 */
  align-items: center; /* 縦方向中央寄せ */
  justify-content: center; /* 横方向中央寄せ */
  margin: 0 auto;      /* 中央配置 */
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.6;
  color: #5D5759;
  text-align: center;
  
}

/* ==============================================================
    フォーム項目form-item
   ============================================================== */
.c-form-label {
  display: grid;
  grid-template-columns: 192px auto; /* ← 左テキスト固定・右バッジ */
  align-items: center;
  column-gap: 8px;
  width: 240px;                      /* ← 全体の横幅固定 */
  height: 30px;                      /* ← Figma準拠 */
}

/* ラベルテキスト */
.c-form-label__text {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.6;
  color: #5D5759;
  white-space: nowrap;              
}

/* 必須バッジ */
.c-form-label__required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #EEA837; 
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 4px;
  height: 24px;
  white-space:nowrap;       
  writing-mode:horizontal-tb;/* 念のため横書きを明示 */
}

/* 任意バッジ（modifier） */
.c-form-label__required--optional {
  background-color: #D9D9D9;
  color: #5D5759;
}

/* レスポンシブ対応（スマホ時は自然に縮む） */
@media (max-width: 600px) {
  .c-form-label {
    grid-template-columns: auto auto;
    width: 100%;
  }
}

/* ==============================================================
    募集要項項目info-item
   ============================================================== */
.c-info-item {
  display: flex;
  align-items: center;         
  max-width: 960px;
  gap: 80px;                  
  padding: 24px 0;            
  border-bottom: 1px solid #DADADA; 
}

/* 左のオレンジボックス（項目名） */
.c-info-item__label {
  width: 136px;                 
  height: 108px;                
  background-color: #EEA837;    
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Noto Sans JP", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;            
  line-height: 1;
}

/* 右の本文 */
.c-info-item__text {
  color: #5D5759;              
  font-family: "Noto Sans JP", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;            
  font-size: 16px;
  line-height: 1.8;
}

/* 行の最終要素で罫線を消したい場合 */
.c-info-item:last-child {
  border-bottom: none;
}

/* --- 追加：スマホで余白と間隔を縮める --- */
@media (max-width: 600px) {
  .c-info-item {
    gap: 24px;
    padding: 16px 0;
  }
  .c-info-item__label {
    width: 112px;
    height: 96px;
    font-size: 16px;
  }
  .c-info-item__text {
    font-size: 15px;
    line-height: 1.7;
  }
}
