/**
 * Layout & Grid Styles
 * レイアウト・グリッド・テーマカラー調整
 * Extracted from index.html for better maintainability
 */

body {
  background-color: #FFFFFF;
  color: #333333;
}

h2, h3, h4, .heading_h2, .heading_h4 {
  color: #000000;
  font-weight: 600;
}

.asu_header {
  flex-flow: column;
  justify-content: flex-start;
  text-align: center;
  align-items: center;
  display: flex;
}

h1.heading_h1 {
  font-weight: 800; /* 太さを追加 */
}

.text-green {
  color: #45a5a5;
}

.button {
  background-color: #ff8e48;
  color: #FFFFFF;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
.button:hover {
  background-color: #e67e3e;
}

.tab_menu-link.w--current {
  color: #ff8e48;
  border-bottom: 3px solid #ff8e48;
}

.eyebrow {
  color: #ff8e48;
  font-weight: bold;
}

.tag {
  background-color: transparent;
  color: #ff8e48;
  border: 1px solid #ff8e48;
  border-radius: 4px;
  padding: 5px 12px;
}


.section.three-steps {
  background-color: #fff6e5;
  padding-top: 100px;
  padding-bottom: 50px;
}

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

.section.is-inverse {
  background-color: #FFFFFF; /* オレンジから白へ変更 */
}

.section.is-inverse h2 {
  color: #ff8e48; /* 白からプライマリーオレンジへ変更 */
}
.section.is-inverse h3,
.section.is-inverse p {
  color: #333333; /* 白からダークグレーへ変更 */
}

.button.on-inverse {
  background-color: #ff8e48; /* 白からプライマリーオレンジへ変更 */
  color: #FFFFFF; /* オレンジから白へ変更 */
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.button.on-inverse:hover {
  background-color: #e67e3e; /* ホバー色もプライマリCTAと統一 */
}

.footer.is-inverse {
  background-color: #ffab7a;
}

.footer_link.on-inverse .paragraph_xxlarge {
  color: #FFFFFF;
  transition: opacity 0.2s ease;
}
.footer_link.on-inverse:hover .paragraph_xxlarge {
  opacity: 0.8;
}


.section.is-secondary {
  background-color: #f4f4f4;
}

.footer_bottom .text-color_secondary {
  color: rgba(255, 255, 255, 0.7);
}

.divider {
  background-color: rgba(255, 255, 255, 0.5);
}

.grid_4-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-column-gap: 1rem;
  grid-row-gap: 2rem;
}

@media screen and (max-width: 991px) {
  .grid_4-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 767px) {
  .grid_4-col.mobile-l-1-col {
    grid-template-columns: 1fr;
  }

  .optional-accordion {
    width: 80% !important;
  }
}

/* ステップカード全体のレイアウト */
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.step-card {
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.step-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 55px;
  height: 55px;
  background-color: #45a5a5;
  color: #ffffff;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  padding-left: 13px;
  padding-top: 10px;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1;
  z-index: 1;
  text-align: left;
}

.step-header {
  padding: 30px 10px 15px;
  text-align: center;
}

.step-card-title {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 700;
  color: #45a5a5;
}

.step-content {
  padding: 0 15px 25px;
}

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

.step-list li {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  text-align: left;
}

.step-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid #45a5a5;
  border-radius: 50%;
  color: #45a5a5;
  font-size: 10px;
  margin-right: 10px;
  margin-top: 2px;
  flex-shrink: 0;
}

.step-link {
  color: #0066cc;
  text-decoration: underline;
}

@media screen and (max-width: 1024px) {
  .step-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 40px auto;
  }
  .step-list li {
    font-size: 0.9rem;
  }
}

/* アイコンのエリア */
.accordion-label .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  color: #ff8e48;
  font-size: 18px;
  font-weight: bold;
  flex-shrink: 0;
}

.accordion-label .icon::before {
  content: "＋";
  line-height: 1;
}

.accordion-checkbox:checked ~ .accordion-label .icon::before {
  content: "－";
}

.optional-accordion {
  display: inline-block;
  text-align: left;
  vertical-align: top;
  width: 40%;
}

.accordion-checkbox {
  display: none;
}

.accordion-label {
  cursor: pointer;
  color: #333;
  font-weight: bold;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  user-select: none;
}

.accordion-label:hover {
  color: #ff8e48;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease;
  opacity: 0;
  margin-left: 11px;
}

.accordion-checkbox:checked ~ .accordion-content {
  max-height: 500px;
  opacity: 1;
  margin-top: 10px;
}

.accordion-inner {
  padding: 5px 15px 15px;
}
