@charset "utf-8";

/*
 * ファイルのURLパス: /wp-content/themes/tokushiikusya/assets/css/school/events/event_ronri_202607_logimath.css
 * ファイル名: event_ronri_202607_logimath.css
 * コードの内容の説明: 2026年夏期講習LP（LOGIMATH）用のスタイルシート。画像のレイアウトに基づき、各セクションのスタイルを定義します。
 */

:root {
  --logi-main-blue: #0a3c8b;
  --logi-light-blue: #f4f8fc;
  --logi-accent-orange: #ff7b00;
  --logi-green: #2b8c22;
  --logi-pink: #ff6680;
}

/* --- Common Base --- */
.bg-light-blue {
  background-color: var(--logi-light-blue);
  padding: 4rem 0;
}

.dashed-border-top {
  border-top: 2px dashed #b0c4de;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.section-title-star {
  color: #9acd32;
  font-size: 1.5rem;
}

.section-title-leaf {
  display: inline-block;
  width: 30px;
  height: 30px;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="%2388C5CC" xmlns="http://www.w3.org/2000/svg"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14.5v-9c0-.28.22-.5.5-.5s.5.22.5.5v9c0 .28-.22.5-.5.5s-.5-.22-.5-.5z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
}
.section-title-leaf.right {
  transform: scaleX(-1);
}

.section-title-oval {
  display: inline-block;
  background-color: var(--logi-main-blue);
  color: #fff;
  border-radius: 40px;
  padding: 0.8rem 3rem;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(10, 60, 139, 0.2);
}

.section-title-oval-light {
  display: inline-block;
  background-color: #00ac5f;
  color: #fff;
  border-radius: 40px;
  padding: 0.8rem 3rem;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(136, 197, 204, 0.2);
}

/* --- Title Area --- */
#events-titlearea.logimath-title {
  position: relative;
  overflow: hidden;
  min-height: 42vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0;
}

/* picture タグ・画像: section全体を覆う */
.logimath-hero-picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}
.logimath-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% top;
  display: block;
}

/* 半透明オーバーレイ：テキストの読みやすさを確保 */
.logimath-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.35);
  z-index: 1;
}

.logimath-title .textarea {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  max-width: 100%;
  padding: 5rem 0 1rem;
  margin: auto 0 0 0;
  position: relative;
  z-index: 2;
}

#events-titlearea.logimath-title .menu-container {
  width: 100%;
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.logimath-title-card {
  width: 33vw;
  max-width: 620px;
  flex-shrink: 0;
  margin-left: 33.333%;
  transform: translateX(-50%);
}

/* SVGタイトル画像 */
.logimath-title-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.18));
}

/* ヒーロー内CTAボタン */
.hero-cta-wrap {
  margin-top: 2rem;
  text-align: center;
}
.hero-cta-wrap .hero-cta-btn {
  font-size: 1.25rem;
  padding: 1rem 2.5rem;
}
@media (max-width: 991px) {
  .logimath-title-card {
    width: 50vw;
  }
}
@media (max-width: 768px) {
  .logimath-title-card {
    width: 80vw;
    margin-left: 0;
    transform: none;
  }
  .logimath-title .textarea {
    padding: 3rem 6% 1rem;
  }
  .hero-cta-wrap {
    margin-top: 1.5rem;
  }
  .hero-cta-wrap .hero-cta-btn {
    font-size: 1.05rem;
    padding: 0.8rem 1.5rem;
  }
}

/* --- Troubles & Features Grid --- */
.troubles-grid,
.features-grid,
.future-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
  margin: 0 auto;
}

.trouble-card,
.feature-card,
.future-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}
.trouble-card:hover,
.feature-card:hover,
.future-card:hover {
  transform: translateY(-5px);
}

.trouble-header,
.feature-header,
.future-header {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  width: 100%;
  margin-bottom: 1.5rem;
  justify-content: center;
}
.trouble-num,
.feature-num,
.future-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.trouble-num {
  background: var(--logi-green);
}
.feature-num {
  background: #00ac5f;
}
.future-num {
  background: var(--logi-accent-orange);
}

.trouble-title,
.feature-title,
.future-title {
  font-weight: bold;
  font-size: 1.15rem;
  color: #333;
  text-align: left;
  line-height: 1.4;
}

.trouble-img {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.feature-img,
.future-img {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.trouble-img img,
.feature-img img,
.future-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.trouble-text,
.feature-text,
.future-text {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
  width: 100%;
  text-align: center;
  margin-top: auto;
}
.trouble-text {
  background: var(--logi-light-blue);
  padding: 1.2rem;
  border-radius: 12px;
}

/* --- What is --- */
#logimath-whatis {
  padding: 4rem 0;
}
.whatis-formula {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
  margin: 0 auto;
  width: 100%;
  padding: 2rem;
  border: 2px dashed #b0c4de;
  border-radius: 20px;
  background: #fff;
}
.formula-box {
  background: #fff;
  border: 3px solid;
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.formula-box.blue-box {
  border-color: #4a90e2;
}
.formula-box.green-box {
  border-color: var(--logi-green);
}
.formula-box.orange-box {
  border-color: var(--logi-accent-orange);
  flex: 1;
}

.formula-sign {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: bold;
  color: #0a3c8b;
}

.box-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}
.blue-box .box-title {
  color: #4a90e2;
}
.green-box .box-title {
  color: var(--logi-green);
}

.box-img {
  height: 180px;
  margin-bottom: 1rem;
}
.box-img img {
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.box-desc {
  font-size: 0.9rem;
  font-weight: bold;
  background: #f5f5f5;
  padding: 0.8rem;
  border-radius: 8px;
  width: 100%;
}

.box-img-large {
  height: 240px;
  margin-bottom: 0.5rem;
}
.box-img-large img {
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.box-title-large {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--logi-accent-orange);
  margin-bottom: 0.8rem;
}
.box-desc-large {
  font-size: 0.95rem;
  font-weight: bold;
  color: #333;
  line-height: 1.4;
}

/* --- Before / After --- */
#logimath-beforeafter {
  padding: 4rem 0;
}
.beforeafter-container {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
  margin: 0 auto;
}
.before-box,
.after-box {
  border-radius: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.8rem 0.8rem 0.8rem;
}
.before-box {
  flex: 1;
  background: linear-gradient(to bottom right, #f2f8fd, #e2f0fb);
  border: 1px solid #d0e4f5;
}
.after-box {
  flex: 1.8;
  background: linear-gradient(to bottom right, #fff0f5, #ffe6eb);
  border: 1px solid #ffccd8;
}

.ba-header {
  color: #fff;
  text-align: center;
  font-size: 1.3rem;
  font-weight: bold;
  padding: 0.4rem 2rem;
  position: absolute;
  top: -1.2rem;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 10;
  white-space: nowrap;
}
.ba-header.blue {
  background: #6ba4d9;
}
.ba-header.pink {
  background: var(--logi-pink);
}

.ba-footer {
  text-align: center;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}
.ba-footer span {
  display: inline-block;
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 0.6rem 2rem;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}
.ba-footer.blue span {
  background: linear-gradient(to right, #5fa2dd, #4b8ac6);
}
.ba-footer.pink span {
  background: linear-gradient(to right, #ff6188, #fa4270);
}

.ba-inner {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 1.2rem 1rem;
  position: relative;
  z-index: 1;
  flex: 1;
  margin-bottom: 1.5rem;
}

.before-box .question {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.before-box .equation {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}
.ba-boy-wrap {
  text-align: right;
  margin-top: 2rem;
  padding-right: 1rem;
}
.ba-boy-wrap .bubble {
  display: inline-flex;
  align-items: baseline;
  font-weight: bold;
}
.question-mark {
  font-size: 2.5rem;
  color: #00ac5f;
  font-family: "Comic Sans MS", cursive, sans-serif;
  margin-right: 1rem;
  line-height: 1;
  font-weight: bold;
}
.answer-label {
  margin-right: 1rem;
  font-size: 1rem;
}
.answer-line {
  border-bottom: 2px solid #333;
  padding: 0 0.5rem 0.2rem;
  font-size: 1.3rem;
  display: inline-block;
  min-width: 60px;
  text-align: center;
}
.ba-boy-img {
  position: absolute;
  left: -20px;
  bottom: 0px;
  width: 140px;
  z-index: 5;
}
.ba-boy-img img {
  width: 100%;
}

.ba-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.arrow-shape {
  width: 40px;
  height: 25px;
  background: linear-gradient(to right, #4dc69a, #00ac5f);
  position: relative;
}
.arrow-shape::after {
  content: "";
  position: absolute;
  right: -25px;
  top: -12.5px;
  border-top: 25px solid transparent;
  border-bottom: 25px solid transparent;
  border-left: 25px solid #00ac5f;
}

.after-box .question-split {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.after-box .q-left {
  flex: 1;
  font-weight: bold;
  line-height: 1.6;
}
.after-box .q-right {
  flex: 1;
  background: #fff;
  border: 2px solid #e1f0e8;
  border-radius: 12px;
  padding: 1.2rem 0.5rem 0.5rem;
  position: relative;
}
.condition-badge {
  position: absolute;
  top: -12px;
  left: 1.5rem;
  background: #eaf5ef;
  color: #333;
  padding: 0.2rem 1rem;
  font-size: 0.85rem;
  border-radius: 6px;
  border: 1px solid #b4e5d2;
  font-weight: bold;
}
.after-box .q-right ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: bold;
}

.block-diagram {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 0.8rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid #ffe1e8;
}
.diagram-label {
  background: #ffe1e8;
  color: #333;
  padding: 0.5rem;
  text-align: center;
  border-radius: 8px;
  font-weight: bold;
  margin-right: 0.8rem;
  border: 1px solid #ffb3c6;
  flex-shrink: 0;
}
.diagram-label span {
  font-size: 0.75rem;
  font-weight: normal;
  display: block;
  margin-top: 0.3rem;
}

.diagram-img {
  flex: 1;
  background: #fff;
  border: 1px dashed #ffd1dc;
  border-radius: 8px;
  padding: 0.5rem;
}

.diagram-img.grid-layout {
  display: grid;
  grid-template-columns: auto auto auto auto auto;
  align-items: center;
  justify-items: center;
  gap: 0.5rem 0.2rem;
  width: 100%;
}
.b-title {
  font-size: 0.75rem;
  padding: 0.3rem;
  border-radius: 30px;
  font-weight: bold;
  display: inline-block;
  min-width: 80px;
  text-align: center;
  align-self: start;
}
.b-title.pink {
  background: #ffd1dc;
  color: #333;
}
.b-title.blue {
  background: #d1e8ff;
  color: #333;
}
.b-title.green {
  background: #d1ffd1;
  color: #333;
}
.b-apples,
.b-cubes {
  font-size: 1.2rem;
  letter-spacing: -2px;
  line-height: 1;
  text-align: center;
}
.b-apples.empty,
.b-arrow.empty {
  visibility: hidden;
}
.cross-item {
  position: relative;
  display: inline-block;
}
.cross-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: -2px;
  right: -2px;
  height: 100%;
  background:
    linear-gradient(
      to bottom right,
      transparent 40%,
      #222 45%,
      #222 55%,
      transparent 60%
    ),
    linear-gradient(
      to top right,
      transparent 40%,
      #222 45%,
      #222 55%,
      transparent 60%
    );
}
.b-arrow {
  font-weight: bold;
  color: #999;
  font-size: 1.2rem;
  padding-bottom: 0.1rem;
}
.blocks-arrow-down {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.5rem 0;
  grid-column: 1 / 2;
}
.arrow-down-space {
  height: 10px;
  border-left: 1px dashed #999;
}
.arrow-down-icon {
  font-weight: bold;
  font-size: 1rem;
  color: #999;
  line-height: 1;
}

.explanation-box {
  background: #f9f9f9;
  border: 1px solid #eee;
  padding: 0.8rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.exp-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.exp-label {
  color: #333;
  padding: 0.3rem 1rem;
  border-radius: 30px;
  font-weight: bold;
  font-size: 0.9rem;
  width: 70px;
  text-align: center;
  flex-shrink: 0;
}
.exp-label.orange {
  background: #ffebd1;
  border: 1px solid #ffd8a8;
}
.exp-label.blue-gradient {
  background: #d1e8ff;
  border: 1px solid #a8d1ff;
}
.exp-text {
  font-weight: bold;
  line-height: 1.6;
  font-size: 1rem;
}

.red-text {
  color: #e60033;
  font-size: 1.2em;
}
.blue-text {
  color: #0066cc;
  font-size: 1.2em;
}
.green-text {
  color: #00ac5f;
  font-size: 1.2em;
}

.ba-girl-img {
  position: absolute;
  bottom: 0px;
  right: -20px;
  width: 170px;
  z-index: 5;
}
.ba-girl-img img {
  width: 100%;
}

/* --- Responsive Mobile & Tablet --- */
@media (max-width: 991px) {
  .troubles-grid,
  .features-grid,
  .future-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .bg-light-blue,
  #logimath-whatis,
  #logimath-beforeafter {
    padding: 3rem 1rem;
  }
  #events-titlearea.logimath-title {
    min-height: 160vw;
    padding: 0;
    align-items: center;
    justify-content: space-between;
  }
  .logimath-hero-img {
    object-position: center bottom;
  }
  .logimath-title .textarea {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 6rem 1rem 0;
    margin: 0;
  }
  .logimath-title-card {
    width: 85%;
    max-width: 400px;
    margin-bottom: 0;
    margin-left: 0;
    transform: none;
  }
  .troubles-grid,
  .features-grid,
  .future-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .whatis-formula {
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    max-width: 400px;
  }
  .formula-box {
    width: 100%;
  }
  .formula-sign {
    transform: rotate(90deg);
    margin: 0.5rem 0;
  }
  .beforeafter-container {
    flex-direction: column;
    align-items: center;
    max-width: 400px;
  }
  .ba-arrow {
    margin: 1rem 0;
  }
  .ba-arrow .arrow-shape {
    border-top: 25px solid #00ac5f;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 0;
    width: 25px;
    height: 35px;
    background: linear-gradient(to bottom, #4dc69a, #00ac5f);
  }
  .ba-arrow .arrow-shape::after {
    border-top: 25px solid #00ac5f;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 0;
    right: auto;
    left: -12.5px;
    bottom: -25px;
    top: auto;
  }
  .after-box .question-split {
    flex-direction: column;
  }
  .block-diagram {
    flex-direction: column;
    text-align: center;
  }
  .diagram-label {
    margin-right: 0;
    margin-bottom: 1rem;
    width: 100%;
  }
  .diagram-img.grid-layout {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  /* Mobile Order */
  .item-t1 {
    order: 1;
  }
  .item-a1 {
    order: 2;
  }
  .item-down1 {
    order: 3;
  }
  .item-c1 {
    order: 4;
  }

  .item-arr1 {
    order: 5;
    margin-top: 1rem;
  }
  .item-arr1-empty,
  .item-arr1-c,
  .item-down-empty1,
  .item-down-empty2 {
    display: none;
  }

  .item-t2 {
    order: 6;
  }
  .item-a2 {
    order: 7;
  }
  .item-c2 {
    order: 8;
    margin-bottom: 1rem;
  }

  .item-arr2 {
    order: 9;
  }
  .item-arr2-empty,
  .item-arr2-c,
  .item-down-empty3,
  .item-down-empty4 {
    display: none;
  }

  .item-t3 {
    order: 10;
  }
  .item-a3 {
    order: 11;
  }
  .item-c3 {
    order: 12;
  }

  .b-arrow {
    transform: rotate(90deg);
    margin: 0.5rem 0;
  }
  .ba-boy-img {
    position: relative;
    left: auto;
    bottom: auto;
    margin: 1rem auto 0;
  }
  .ba-girl-img {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 1rem auto 0;
    display: block;
  }
}

/* --- 出口式ってなに？ --- */
.about-wrap {
  border: 2px solid var(--logi-main-blue);
  border-radius: 20px;
  padding: 4rem 2rem 2rem;
  position: relative;
  background: #fff;
  margin-top: 2rem;
}
.about-title-wrap {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}
.title-pill {
  background: var(--logi-main-blue);
  color: #fff;
  padding: 0.8rem 3rem;
  border-radius: 40px;
  font-size: 1.5rem;
  font-weight: bold;
}
.about-desc {
  text-align: center;
  font-weight: bold;
  line-height: 1.8;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}
.about-cards {
  display: flex;
  gap: 1.5rem;
}
.about-card {
  flex: 1;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-align: center;
  position: relative;
}
.about-card.card-blue {
  border-color: #e0eaf5;
  background: #f4f8fc;
}
.about-card.card-green {
  border-color: #e5f5e4;
  background: #f4fbf3;
}
.about-card.card-orange {
  border-color: #fcece0;
  background: #fff8f3;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px dotted #ccc;
  padding-bottom: 0.8rem;
}
.card-num {
  width: 30px;
  height: 30px;
  background: var(--logi-main-blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.card-green .card-num {
  background: var(--logi-green);
}
.card-orange .card-num {
  background: var(--logi-accent-orange);
}

.card-title {
  font-weight: bold;
  font-size: 1.1rem;
}
.card-blue .card-title {
  color: var(--logi-main-blue);
}
.card-green .card-title {
  color: var(--logi-green);
}
.card-orange .card-title {
  color: var(--logi-accent-orange);
}

.card-img {
  height: 220px;
  margin-bottom: 1rem;
}
.card-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.card-text {
  font-size: 0.95rem;
  font-weight: bold;
  line-height: 1.6;
}

/* --- LOGIMATHで育つ5つの力 --- */
.deco-lines {
  display: inline-block;
  width: 30px;
  height: 15px;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 2px,
    #00ac5f 2px,
    #00ac5f 4px
  );
}
.skills-title {
  font-size: 1.6rem;
  font-weight: bold;
  letter-spacing: 2px;
}
.red-text {
  color: var(--logi-pink);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.skill-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem 0.5rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.skill-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.bg-blue {
  background: #4a90e2;
}
.bg-green {
  background: var(--logi-green);
}
.bg-orange {
  background: var(--logi-accent-orange);
}
.bg-purple {
  background: #9b59b6;
}
.bg-pink {
  background: var(--logi-pink);
}

.color-blue {
  color: #4a90e2;
}
.color-green {
  color: var(--logi-green);
}
.color-orange {
  color: var(--logi-accent-orange);
}
.color-purple {
  color: #9b59b6;
}
.color-pink {
  color: var(--logi-pink);
}

.skill-title {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  min-height: 40px;
}
.skill-img {
  height: 180px;
  margin-bottom: 1rem;
}
.skill-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.skill-text {
  font-size: 0.9rem;
  font-weight: bold;
  line-height: 1.5;
  margin-top: auto;
}

.skills-summary-wrap {
  text-align: center;
}
.skills-summary {
  background: #fff;
  border-radius: 40px;
  padding: 1rem 2rem;
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin: 0 auto;
}
.summary-icons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.icon-chat,
.icon-math {
  background: #4a90e2;
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-math {
  background: var(--logi-pink);
}

/* --- 授業の流れ --- */
.flow-title {
  font-size: 1.6rem;
  font-weight: bold;
}
.flow-steps {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}
.flow-step {
  flex: 1;
  background: #f4f8fc;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.step-header {
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.step-num {
  background: #fff;
  color: #333;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.step-img {
  height: 180px;
  padding: 1rem 0;
  background: #fff;
}
.step-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.step-text {
  padding: 1rem 0.5rem;
  font-size: 0.9rem;
  font-weight: bold;
  line-height: 1.5;
  background: #f4f8fc;
  flex: 1;
}
.step-arrow {
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 15px solid #00ac5f;
  align-self: center;
}

.outline-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
  justify-content: center;
}
.outline-card {
  width: calc(33.333% - 1.35rem);
  background: #fff;
  border-radius: 20px;
  padding: 2rem 1rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  border: 2px solid transparent;
}
.outline-card.card-blue {
  border-color: #dbeafe;
}
.outline-card.card-green {
  border-color: #dcfce7;
}
.outline-card.card-pink {
  border-color: #fce7f3;
}
.outline-card.card-purple {
  border-color: #f3e8ff;
}
.outline-card.card-orange {
  border-color: #ffedd5;
}

.outline-title {
  font-weight: bold;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 0.2rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
}
.outline-title::before,
.outline-title::after {
  content: "✨";
  font-size: 1.3rem;
  color: #f1c40f;
}
.outline-img {
  height: 220px;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
}
.outline-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.outline-text {
  font-weight: bold;
  font-size: 1.0rem;
  line-height: 1.5;
}

/* --- 保護者にうれしいポイント --- */
.parents-wrap {
  border: 2px dashed #00ac5f;
  border-radius: 20px;
  padding: 3rem 2rem 2rem;
  position: relative;
  background: #fff;
  margin-top: 2rem;
  width: 100%;
  box-sizing: border-box;
}
.title-pill-cyan {
  background: #00ac5f;
  color: #fff;
  padding: 0.6rem 2.5rem;
  border-radius: 30px;
  font-size: 1.3rem;
  font-weight: bold;
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
}
.parents-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
}
.parents-card {
  flex: 1;
  max-width: 400px;
  text-align: center;
}
.parents-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--logi-main-blue);
  margin-bottom: 1rem;
}
.parents-img {
  height: 220px;
  margin-bottom: 1rem;
}
.parents-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.parents-text {
  font-weight: bold;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* --- CTA セクション --- */
.cta-section {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 5rem 1rem;
  text-align: center;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}
.cta-title {
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 2rem;
}
.cta-large {
  font-size: 2.5rem;
  color: #0a3c8b;
}
.cta-small {
  font-size: 1.4rem;
  color: #333;
  display: block;
  margin-top: 1rem;
}
.cta-schedule {
  background: rgba(255, 255, 255, 0.9);
  border: 3px solid var(--logi-pink);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 400px;
  margin: 0 auto 2rem;
  text-align: center;
}
.schedule-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--logi-pink);
  margin-bottom: 0.5rem;
  border-bottom: 2px dashed var(--logi-pink);
  padding-bottom: 0.3rem;
  text-align: center;
}
.cta-schedule ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1.6;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, #ff7b00, #ff5e00);
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  padding: 1.2rem 3rem;
  border-radius: 40px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(255, 123, 0, 0.3);
  transition: transform 0.3s;
}
.cta-btn:hover {
  transform: translateY(-5px);
  color: #fff;
}
.cta-btn .arrow {
  margin-left: 1rem;
}

/* --- Responsive Mobile & Tablet --- */
@media (max-width: 768px) {
  .about-cards {
    flex-direction: column;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .skills-grid .skill-card:last-child {
    grid-column: span 2;
  }
  .flow-steps {
    flex-direction: column;
    align-items: center;
  }
  .step-arrow {
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #00ac5f;
    border-bottom: 0;
    margin: 0.5rem 0;
  }
  .outline-card {
    width: calc(50% - 0.75rem);
  }
  .parents-cards {
    flex-direction: column;
    align-items: center;
  }
  .cta-large {
    font-size: 1.8rem;
  }
  .cta-small {
    font-size: 1.1rem;
  }
  .cta-btn {
    font-size: 1.2rem;
    padding: 1rem 2rem;
  }
}

/* --- タブレット対応 (768px 〜 991.98px) --- */
@media (min-width: 768px) and (max-width: 991.98px) {
  .troubles-grid,
  .features-grid,
  .future-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
  .parents-cards {
    flex-direction: column;
    align-items: center;
  }
  .parent-card {
    width: 100%;
    max-width: 600px;
  }
  .outline-card {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 1.5rem;
  }
  .outline-cards {
    flex-direction: column;
    align-items: center;
  }
  .whatis-formula {
    flex-direction: column;
    padding: 2rem;
  }
  .formula-plus {
    margin: 1rem 0;
    transform: rotate(90deg);
  }
  .formula-part {
    width: 100%;
  }
}

/* メニューの成り行き幅・中央揃え（PC） */
@media (min-width: 992px) {
  #events-titlearea.logimath-title .menu-container {
    width: fit-content !important;
    margin: auto auto 0 !important;
  }
  #events-titlearea.logimath-title .menu-container .submenu-btn-w a {
    width: auto !important;
    padding-left: 2vw !important;
    padding-right: 2vw !important;
  }
}

/* メニューの成り行き幅・左揃え（タブレット） */
@media (max-width: 991px) and (min-width: 768px) {
  #events-titlearea.logimath-title .menu-container {
    width: fit-content !important;
    margin: auto auto 0 6% !important;
  }
  #events-titlearea.logimath-title .menu-container .submenu-btn-w a {
    width: auto !important;
    padding-left: 2vw !important;
    padding-right: 2vw !important;
  }
}

/* メニューの中央揃え（スマホ） */
@media (max-width: 767px) {
  #events-titlearea.logimath-title .menu-container {
    width: fit-content !important;
    margin: auto auto 0 !important;
  }
  #events-titlearea.logimath-title .submenu-btn-w {
    justify-content: center !important;
  }
}

/* base.css が main .container-just > div に flex-direction:column を強制するため、
追加セクション内のレイアウトコンテナを個別に上書きする */

/* 出口式ってなに？ カード横並び */
#logimath-about .about-cards {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 1.5rem;
  justify-content: center;
}

/* 5つの力 グリッド */
#logimath-5skills .skills-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 1rem;
}

/* 授業の流れ 横並び */
#logimath-flow .flow-steps {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 0.5rem;
  align-items: stretch;
  justify-content: center;
}

/* 講座概要 カード横並び */
#logimath-outline .outline-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 2rem;
  justify-content: center;
}

#logimath-outline .outline-card {
  width: calc(33.333% - 1.35rem) !important;
  position: relative;
}

/* 保護者にうれしいポイント 横並び */
#logimath-parents .parents-cards {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 2rem;
  justify-content: center;
}

/* タブレット以下 */
@media (max-width: 991px) {
  #logimath-5skills .skills-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  #logimath-5skills .skills-grid .skill-card:last-child {
    grid-column: span 2 !important;
  }

  #logimath-outline .outline-card {
    width: calc(50% - 1rem) !important;
  }

  #logimath-flow .flow-steps {
    flex-wrap: wrap !important;
  }
}

/* スマホ */
@media (max-width: 768px) {
  #logimath-about .about-cards {
    flex-direction: column !important;
  }

  #logimath-flow .flow-steps {
    flex-direction: column !important;
    align-items: center !important;
  }

  #logimath-parents .parents-cards {
    flex-direction: column !important;
    align-items: center !important;
  }
}

/* CTAエリア */
#logimath-cta {
  background-image: url("../../../img/school/events/event202607/img_logimath_hero_2nd.jpg") !important;
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 0 !important;
}

#logimath-cta .cta-inner {
  padding: 4rem 1rem 4rem 3rem !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

@media (max-width: 768px) {
  #logimath-cta {
    background-image: url("../../../img/school/events/event202607/img_logimath_hero_mobile.jpg") !important;
  }

  #logimath-cta .cta-inner {
    padding: 4rem 1rem !important;
  }
}

#logimath-cta .cta-3cols {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1.5fr !important;
  gap: 2rem !important;
  align-items: center;
  margin-bottom: 0 !important;
}

#logimath-cta .cta-col {
  padding: 0 !important;
}

/* 折り返しを防止 */
#logimath-cta .cta-title span {
  white-space: nowrap !important;
}

#logimath-cta .cta-schedule ul li {
  white-space: nowrap !important;
}

#logimath-cta .cta-schedule {
  max-width: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#logimath-cta .cta-btn-wrap {
  text-align: center;
  margin-top: 2rem;
}

#logimath-cta .cta-btn {
  width: 100% !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

@media (max-width: 991px) {
  #logimath-cta .cta-3cols {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  #logimath-cta .cta-title span,
  #logimath-cta .cta-schedule ul li,
  #logimath-cta .cta-btn {
    white-space: normal !important;
  }
}

/* Inline styles moved from HTML */
.skills-summary-wrap {
  text-align: center;
}
#logimath-outline .about-title-wrap {
  position: relative;
  top: 0;
  margin-bottom: 2rem;
}
#logimath-outline .title-pill {
  margin: 0 1rem;
}
#logimath-cta .cta-overlay {
  background: rgba(255, 255, 255, 0.7);
  position: absolute;
  inset: 0;
}
#logimath-cta .cta-inner {
  position: relative;
  z-index: 2;
}
#logimath-cta .cta-title {
  margin: 0;
  text-align: left;
}
#logimath-cta .cta-title img {
  width: 100%;
  max-width: 100%;
  height: auto;
}
