@charset "UTF-8";

/* ABOUT */
.p-about__txt p:first-child {
  text-align: center;
  font-weight: 700;

  @media screen and (max-width: 768px) {
    text-align: left;
  }
}

/* ACTIVITY */
/* ベーススタイル（PC・共通） */
/* 当日の内容一覧。地色は下のカードに譲り、チェックリストとして2列で並べる */
.ac_list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  font-size: 1.5rem;
  list-style: none;

  @media screen and (max-width: 768px) {
    grid-template-columns: 1fr;
    gap: 0;
    width: fit-content;
    font-size: 1.4rem;
  }
}

.ac_list li,
.ac_bring_list li {
  position: relative;
  padding: 1rem 0 1rem 2rem;
  line-height: 1.6;
  color: #333;
}

/* 正方形を45度回した小さめのダイヤ。1行目の中央に合わせて配置 */
.ac_list li::before {
  content: "";
  position: absolute;
  left: .2rem;
  top: 1.8rem;
  width: .8rem;
  height: .8rem;
  background: #1e7fc3;
  transform: rotate(45deg);
}
/* PC = 上3・下1、SP = 1カラム */
.ac_container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.2rem 2.4rem;
  margin: 3rem auto 0;

  @media screen and (max-width: 768px) {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    max-width: 37rem;
    margin: 2.4rem auto 0;
  }
}

.ac_box {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 1.6rem;
  padding: 1.6rem;
  border-radius: 1.6rem;
  box-shadow: 0px .4rem 1.4rem 0px rgb(223, 230, 233);

  @media screen and (max-width: 768px) {
    gap: 1.6rem;
    padding: 1.2rem 1.2rem 1.6rem;
  }
}

/* 最下段（廃食用油）はカードにせず、余白だけで別情報として見せる。
   画像・画像・テキストの横並びで、画像は小さめ・テキストは広めに取る */
.ac_wide {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  margin: 5rem auto 0;

  /* 画像は枚数が変わっても幅を保ち、テキストが残りを埋める */
  & .ac_img {
    flex: 0 0 24rem;
  }

  & .ac_txt {
    flex: 1 1 0;
  }

  /* SP は画像を横並び、テキストはその下に全幅で回す */
  @media screen and (max-width: 768px) {
    flex-wrap: wrap;
    gap: 1.2rem;
    max-width: 37rem;
    margin: 3.6rem auto 0;

    & .ac_img {
      flex: 1 1 0;
    }

    & .ac_txt {
      flex: 1 1 100%;
    }
  }
}

/* 画角は ac_1.jpg（800 × 480）に統一。
   実画像は長辺基準で全体を収め、余った部分は同じ画像のブラーで埋める */
.ac_img {
  position: relative;
  flex: 1 1 20rem;
  aspect-ratio: 800 / 480;
  overflow: hidden;
  border-radius: 1rem;
}

/* 画像の縁を締める内側の線 */
.ac_img::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 .1rem rgba(26, 44, 120, .08);
}

.ac_img img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0 !important;
}

/* 下地：短辺基準で埋めてブラー。scale はブラーのフチ切れ防止 */
.ac_img_bg {
  object-fit: cover;
  filter: blur(1.2rem);
  transform: scale(1.2);
}

/* 主役：長辺基準で全体を表示 */
.ac_img_main {
  object-fit: contain;
}

.ac_txt {
  flex: 1 1 100%;
  margin: 0;
  color: #333;
  font-size: 1.4rem;
  line-height: 1.8;
  text-align: left;

  @media screen and (max-width: 768px) {
    font-size: 1.3rem;
    line-height: 1.7;
  }
}

/* 当日の持ち物。上の内容とは性格が違うので地色を敷いて分ける */
.ac_bring {
  margin: 5rem auto 0;
  padding: 2.4rem 3.2rem;
  background: #eff9ff;
  border-radius: 1.6rem;

  @media screen and (max-width: 768px) {
    margin: 3.6rem auto 0;
    padding: 1.6rem;
  }
}

.ac_bring .ac_bring_ttl {
  margin: 0;
  color: #1a2c78;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.5;

  @media screen and (max-width: 768px) {
    font-size: 1.5rem;
  }
}

/* 持ち物は原稿どおり太字のアスタリスク。1行目の行送りに合わせて配置 */
.ac_bring_list li::before {
  content: "＊";
  position: absolute;
  left: 0;
  top: 1rem;
  color: #1e7fc3;
  font-weight: 700;
  line-height: 1.6;
}

.ac_bring_list {
  margin: .8rem 0 0;
  padding: 0;
  font-size: 1.5rem;
  list-style: none;

  @media screen and (max-width: 768px) {
    font-size: 1.4rem;
  }
}

/* EVENY */
/* PC向けベーススタイル（769px以上） */
.event-table {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 1.5rem;
  line-height: 1.6;
  color: #333;
}

.event-table tr {
  border-bottom: 1px solid #e2e8f0;
}

.event-table tr:first-child {
  border-top: 1px solid #e2e8f0;
}

.event-table th {
  width: 22%;
  padding: 1.6rem 2rem;
  background-color: #f8fafc;
  font-weight: 600;
  text-align: left;
  vertical-align: top;
  color: #475569;
}

.event-table td {
  padding: 1.6rem 2rem;
  vertical-align: top;
}

/* 注記（※）用スタイル */
.event-table .note {
  display: block;
  font-size: 0.875em;
  color: #64748b;
  margin-top: .4rem;
}

/* SP向けレスポンシブ対応（768px以下） */
@media screen and (max-width: 768px) {

  .event-table,
  .event-table tbody,
  .event-table tr,
  .event-table th,
  .event-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .event-table tr {
    padding: 1.4rem .4rem;
  }

  .event-table tr:first-child {
    padding: 0 .4rem 1.4rem;
    border-top: none;
  }

  .event-table th {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    margin-bottom: 0.5rem;
    padding: .15rem .7rem;
    color: #64748b;
    font-size: 1.3rem;
    border-radius: .8rem;
  }

  .event-table td {
    padding: 0;
    font-size: 1.5rem;
  }
}

.event-btn {
    display: block;
    width: 100%;
    max-width: 35rem;
    margin: 2rem auto 0;
    font-size: 2.6rem;
    font-weight: bold;
    color: #FFF !important;
    text-align: center;
    padding: 1rem 0.5rem;
    background-color: #0004eb;
    border-radius: 10rem;
}
@media (max-width: 768px) {
  .event-btn {
    max-width: 28rem;
    font-size: 1.8rem;
    margin: 1.9rem auto 0;
    padding: 1.8rem 0.5rem;
  }
}