/* ==========================================================================
   Request Page Styles
   ========================================================================== */

/* Scroll offset adjustment for fixed header */
#request-phone-list {
  scroll-margin-top: 80px; /* デスクトップ用のヘッダー高さ */
}

@media screen and (max-width: 999px) {
  #request-phone-list {
    scroll-margin-top: 60px; /* モバイル用のヘッダー高さ */
  }
}

/* Page Title */
.title {
  width: 100%;
  height: 140px;
  background-color: #14a17a;
  background-image: radial-gradient(#31b791 1px, rgba(0, 0, 0, 0) 1px);
  background-size: 20px 20px;
}

@media screen and (max-width: 559px) {
  .title {
    height: 100px;
  }
}

.title-inner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 42.5px 0 42.5px;
}

@media screen and (max-width: 559px) {
  .title-inner {
    padding: 32.5px 0 32.5px;
  }
}

.title-inner img {
  max-width: 100%;
  height: auto;
}

@media screen and (max-width: 559px) {
  .title-inner img {
    height: 35px;
    width: auto;
  }
}

/* Content Wrapper */
.wrap.content {
  background-color: transparent;
  font-size: 18px;
  line-height: 1.6;
  font-family: "Helvetica Neue", Arial, sans-serif;
  padding: 8px;
  margin: 16px auto;
  max-width: 800px;
  border-radius: 8px;
}

.content-inner {
  margin: 0 auto;
}

.content-inner p {
  margin-bottom: 1em;
  letter-spacing: 0.5px;
}

/* Request Wrapper */
/* .request-wrapper {
  background: transparent;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
} */

/* Request Service Container */
.request-service-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 40px 20px;
}

html body .wrap .request-service-container .request-services-row a {
  text-decoration: none;
}

.request-heading-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 1.6rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 40px;
}

.request-heading-main .request-heading-sub {
  font-size: 1.6rem;
  font-weight: normal;
}

.request-heading-main .request-heading-sub a {
  text-decoration: underline;
}

.request-services-row {
  display: flex;
  flex-direction: row;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.request-service {
  flex: 1;
  max-width: 400px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}

.request-heading {
  margin-bottom: 8px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.request-heading img {
  width: 64px;
  height: 64px;
  margin-bottom: 15px;
  object-fit: contain;
}

.request-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #14a17a;
  margin: 15px 0 10px 0;
}

.request-description {
  font-size: 1.6rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 280px;
}

.request-row02 {
  /* padding-top: 8px; */
  margin-bottom: 0px;
  margin-top: auto;
}

.request-btn a {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1.4rem;
  font-weight: bold;
  /* text-decoration: none; */
  transition: all 0.3s ease;
  background-color: #fff;
  color: #14a17a;
  border: 2px solid #14a17a;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.request-btn a:hover {
  background-color: #14a17a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.request-btn-phone a {
  background-color: #14a17a;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.request-btn-phone a:hover {
  background-color: #0f8a65;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.request-btn a i {
  margin-left: 8px;
  background: white;
  color: #14a17a;
  padding: 8px;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

/* Classroom List Section */
.classroom-list-section {
  background: #fff;
  margin: 40px 20px;
  padding: 40px 20px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.classroom-list-header {
  text-align: center;
  margin-bottom: 40px;
}

.classroom-list-title {
  display: inline-block;
  background: #14a17a;
  color: #fff;
  padding: 8px 36px;
  border-radius: 2px;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0;
}

.classroom-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.classroom-card {
  flex: 0 1 40%;
  border: double 5px #31b791;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.classroom-card:last-child {
  flex: 0 1 40%;
  margin-top: 2rem;
  margin-left: 0;
}

.classroom-logo img {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 10px;
}

.classroom-name {
  font-size: 1.6rem;
  font-weight: bold;
  color: #333;
  margin: 10px 0 15px 0;
  line-height: 21px;
}

.classroom-contact {
  margin-top: 15px;
}

.classroom-tel {
  margin: 15px 0;
}

.classroom-tel a {
  font-size: 2.8rem;
  font-weight: bold;
  color: #ec5643;
  text-decoration: underline;
}

.classroom-tel a:hover {
  text-decoration: underline;
}

.classroom-info-link {
  display: inline-block;
  font-size: 1.6rem;
  color: #0000ff;
  text-decoration: underline;
  margin-top: 10px;
  line-height: 21px;
}

.classroom-info-link:hover {
  color: #0f8a65;
}

/* Privacy Link */
.privacy {
  text-align: left;
  font-size: 12px;
  margin-left: 30px;
  padding-top: 30px;
}

.privacy a {
  color: #14a17a;
  text-decoration: underline;
}

/* Line Decorations */
.line-top {
  width: 100%;
  height: 30px;
  background-image: url(../../../images/color-line_top.png);
  background-size: contain;
  background-repeat: repeat-x;
}

.line-bottom {
  width: 100%;
  height: 30px;
  background-image: url(../../../images/color-line_bottom.png);
  background-position: left bottom;
  background-size: contain;
  background-repeat: repeat-x;
}

.bg-area {
  background-color: #fff7e0;
  background-size: 80px 80px;
  background-image: linear-gradient(
      rgba(246, 232, 190, 0.7) 1%,
      rgba(246, 232, 190, 0.7) 1%,
      rgba(0, 0, 0, 0) 1%,
      rgba(0, 0, 0, 0) 99%,
      rgba(246, 232, 190, 0.7) 99%,
      rgba(246, 232, 190, 0.7) 100%
    ),
    linear-gradient(
      90deg,
      rgba(246, 232, 190, 0.7) 1%,
      rgba(246, 232, 190, 0.7) 1%,
      rgba(0, 0, 0, 0) 1%,
      rgba(0, 0, 0, 0) 99%,
      rgba(246, 232, 190, 0.7) 99%,
      rgba(246, 232, 190, 0.7) 100%
    ),
    linear-gradient(
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 0) 25%,
      rgba(246, 232, 190, 0.4) 25%,
      rgba(246, 232, 190, 0.4) 26%,
      rgba(0, 0, 0, 0) 26%,
      rgba(0, 0, 0, 0) 50%,
      rgba(246, 232, 190, 0.4) 50%,
      rgba(246, 232, 190, 0.4) 51%,
      rgba(0, 0, 0, 0) 51%,
      rgba(0, 0, 0, 0) 75%,
      rgba(246, 232, 190, 0.4) 75%,
      rgba(246, 232, 190, 0.4) 76%,
      rgba(0, 0, 0, 0) 76%,
      rgba(0, 0, 0, 0) 100%
    ),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 0) 25%,
      rgba(246, 232, 190, 0.4) 25%,
      rgba(246, 232, 190, 0.4) 26%,
      rgba(0, 0, 0, 0) 26%,
      rgba(0, 0, 0, 0) 50%,
      rgba(246, 232, 190, 0.4) 50%,
      rgba(246, 232, 190, 0.4) 51%,
      rgba(0, 0, 0, 0) 51%,
      rgba(0, 0, 0, 0) 75%,
      rgba(246, 232, 190, 0.4) 75%,
      rgba(246, 232, 190, 0.4) 76%,
      rgba(0, 0, 0, 0) 76%,
      rgba(0, 0, 0, 0) 100%
    );
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@supports (gap: initial) {
  .classroom-grid {
    gap: 2rem;
  }

  .classroom-card:last-child {
    margin-top: 0;
  }
}

@media screen and (max-width: 767px) {
  .request-services-row {
    flex-direction: column;
    gap: 30px;
  }

  .request-heading-main {
    margin-bottom: 20px;
  }

  .classroom-card {
    flex: 1 1 100%;
  }

  .classroom-card:last-child {
    flex: 1 1 100%;
  }

  .request-heading {
    margin-bottom: 0px;
  }
}

@media (max-width: 600px) {
  .request-services-row {
    gap: 24px;
  }

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

@media screen and (max-width: 559px) {
  .request-service-container {
    padding: 20px 10px;
  }

  .request-heading-main {
    display: block;
    margin-bottom: 10px;
  }

  .request-service {
    padding: 20px 15px;
    min-height: 200px;
  }

  .request-title {
    font-size: 1.8rem;
  }

  .request-description {
    font-size: 1.6rem;
  }

  .classroom-list-section {
    margin: 20px 10px;
    padding: 30px 15px;
  }

  .content-intro-request {
    margin: 0px 10px;
    padding: 20px;
  }

  .content-intro-request p {
    font-size: 1.6rem;
  }

  .classroom-tel a {
    font-size: 2.4rem;
  }
}

/* ==========================================================================
   Legacy Styles (to be cleaned up later)
   ========================================================================== */
