html {
  scroll-behavior: smooth;
}

.content h3{
    font-size: 26px;
    letter-spacing: 6; 
    line-height: 26px;
    text-align: center;
    font-weight: 550;
}

.content {
  padding: 100px 40px;
}

.center {
  text-align: center;
}

/* 共通スタイル */
.button {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 7vw;
  padding: .9em 2em;

  background-color: #fffcfc;
  color: #1C1B1B;
  text-decoration: none; /* ←これ重要 */

  border: 3px solid;
  font-size: 20px;
  letter-spacing: 6%;
  line-height: 33px;

  transition: all 0.3s ease;
}


/* 色バリエーション */
.button.red {
  border-color: #A93B3E;
}

.button.green {
  border-color: #a3ce6b;
}

.button.purple {
  border-color: #be86b9;
}

/* hover共通 */
.button:hover {
  color: #fffcfc;
  font-weight: 500;
}

/* hover色 */
.button.red:hover {
  background-color: #A93B3E;
}

.button.green:hover {
  background-color: #a3ce6b;
}

.button.purple:hover {
  background-color: #be86b9;
}

/* グリッド本体 */
.buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* ← ここを4に */
  gap: 30px;
  justify-items: center;
  max-width: 70vw; /* 少し広げるといい */
  margin: 60px auto;
  position: relative;
  z-index: 10;
}



/* カード */
/* ベースの共通スタイル */
.event-detail {
  position: relative;
  max-width: 60vw;
  margin: 100px auto;
  padding: 60px 50px 80px;
  background: #fffcfc;

  /* デフォルト色（赤） */
  --border-color: #A93B3E;
  scroll-margin-top: 40px;
}

.event-detail::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--border-color);
  clip-path: polygon(
    60px 0,                    /* 左上 */
    calc(100% - 120px) 0,       /* 右上 */
    100% 80px,
    100% calc(100% - 60px),    /* 右下 */
    calc(100% - 60px) 100%,
    150px 100%,                 /* 左下 */
    0 calc(100% - 100px),
    0 60px
  );
  pointer-events: none;
}

.event-detail::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;

  background:
    linear-gradient(
      135deg,
      transparent 40px,
      var(--border-color) 40px,
      var(--border-color) 43px,
      transparent 43px
    ) no-repeat,

    linear-gradient(
      135deg,
      transparent calc(100% - 43px),
      var(--border-color) calc(100% - 43px),
      var(--border-color) calc(100% - 40px),
      transparent calc(100% - 40px)
    ) no-repeat;

  background-size: 100% 100%;
}

/* 赤・緑・紫 用のクラス */
.event-detail.red    { --border-color: #A93B3E; } /* 赤 */
.event-detail.green  { --border-color: #a3ce6b; } /* 緑 */
.event-detail.purple { --border-color: #be86b9; } /* 紫 */


/* 右上菱形 */
.top-right {
  top: -2%;
  right: -8.5%;
}

.bottom-left {
  bottom: -6%;
  left: -7.5%;
}


.red-underline {
  display: block;
  width: fit-content;
  margin: 0 auto 5vh auto;
  border-bottom: 3px solid #A93B3E;
  font-weight: 550;
}
.purple-underline {
  display: block;
  width: fit-content;
  margin: 0 auto 5vh auto;
  border-bottom: 3px solid #be86b9;
  font-weight: 550;
}
.green-underline {
  display: block;
  width: fit-content;
  margin: 0 auto 5vh auto;
  border-bottom: 3px solid #a3ce6b;
  font-weight: 550;
}

.event-detail h1{
    text-align: center;
}

/* 上段 */
.event-top {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}


.event-top p{
  font-size: 20px;
  letter-spacing: 6%;
  line-height: 33px;
  width: 100%;
  overflow-wrap: break-word;
}

.name{
    font-size: 20px;
  letter-spacing: 6%;
  line-height: 33px;
  text-align: right;
  margin-top: -10px;
}


.event-top img {
  width: 45%;
  height: auto;
  object-fit: cover; /* 念のため */
}

.event-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center; 
}

.mini{
    font-size: 24px;
    letter-spacing: 6%;
    line-height: 33px;
    white-space: nowrap;

}


/* セクションタイトル */
.section-title {
   display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-top: 2vh;
  margin-bottom: 0vh;
}

.section-title svg {
  display: block;
}

.left {
  margin-left: -0.8vw;
}




a {
  text-decoration: none;
}


.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 10px;
}


.team-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  letter-spacing: 6%;
  line-height: 33px;
  white-space: nowrap;
}

.team-item svg {
  flex-shrink: 0;
  width: 30px;   /* PC用 */
    height: auto;
}

.team-item-green {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 20px;
  letter-spacing: 6%;
  line-height: 33px;
}

.team-title {
  margin-bottom: -3vh; /* 好きに調整OK */
  justify-content: flex-start;
}

.team-title .red-underline {
  margin: 0 0 5vh 0;
}

.team-title .green-underline {
  margin: 0 0 5vh 0;
}
.team-title .purple-underline {
  margin: 0 0 5vh 0;
}

.team{
    font-size: 28px;
    letter-spacing: 6%;
  line-height: 33px;
}

.event-left {
  width: 45%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.event-left img {
  width: 100%;
  height: auto;
}

.event-text {
  flex: 1;
}

@media screen and (max-width: 1024px) and (orientation: portrait) {
    .content h2 {
        font-size: 24px;
    }
    .content h3 {
        font-size: 20px;
        letter-spacing: 2; 
        line-height: 50px;
        text-align: center;
        font-weight: 500;
    }    


    .button {
        width: 25vw;
        height: auto;
        font-size: 14px;
        padding: 0.5em 0.8em;
        white-space: nowrap;
    }

    /* ボタンのグリッド列を2列に */
    .buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: 90%;
        margin: 20px auto;
    }

    /* タイトルのフォントサイズ */
    .sp-section-title {
        font-size: 20px;
    }


        /* カード全体 */
    .event-detail {
        max-width: 90%;          /* 幅を狭くして余白を確保 */
        margin: 15vh auto;       /* 上下の余白も少なく */
        padding: 40px 20px 40px; /* 内側のパディングを小さく */
    }

    /* 上段 flex を縦並びに */
    .event-top {
        flex-direction: column;
        gap: 20px;
    }

    /* 左の画像 */
    .event-left {
        width: 100%;
    }
    .event-left img {
        width: 100%;
        height: auto;
    }

    /* チームグリッドを1列に */
    .team-grid {
        display: block; 
    }


    .team-item {
        font-size: 20px;
        letter-spacing: 2;
        gap: 8px;
        line-height: 26px;
        white-space: normal;       /* 折り返し許可 */
        word-wrap: break-word;     /* 単語途中でも折り返す */
        overflow-wrap: break-word;
        align-items: flex-start; 
    }

    .team-item svg{
        width: 28px;
        height: auto;
        margin-top: 7px;
    }


    .mini {
        font-size: 24px;
        letter-spacing: 6;
        line-height: 33x;

    }

    .team {
        font-size: 22px;
    }

    /* 本文テキスト */
    .event-top p{
        font-size: 20px;
        line-height: 26px;
        letter-spacing: 2;  /* スマホは左寄せが読みやすい */
    }

    .name {
        font-size: 14px;
        line-height: 26px;
        letter-spacing: 2;
        text-align: right;
    }

    /* h1タイトル */
    .event-detail h1 {
        font-size: 24px;
        line-height: 50px;
        letter-spacing: 2;
        margin-bottom: 3vh;
    }

    .event-detail::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--border-color);
  clip-path: polygon(
    60px 0,                    /* 左上 */
    calc(100% - 130px) 0,       /* 右上 */
    100% 30px,
    100% calc(100% - 60px),    /* 右下 */
    calc(100% - 60px) 100%,
    120px 100%,                 /* 左下 */
    0 calc(100% - 60px),
    0 60px
  );
  pointer-events: none;
}

    /* 右上・左下ダイヤモンドのサイズ・位置調整 */
    .diamond.top-right {
        width: 130px;
        height: auto;
        top: -0.5;
        left: 2;
    }
    .diamond.bottom-left {
        width: 150px;
        height: auto;
        bottom: -1%;
        left: 0;
    }

    /* セクションタイトル */
    .section-title {
        flex-direction: column;
        gap: 5px;
    }

    /* 赤アンダーライン */
    .red-underline {
        margin-bottom: 3vh;
        border-bottom-width: 2px;
    }

    .green-underline {
        margin-bottom: 3vh;
        border-bottom-width: 2px;
    }
    .purple-underline {
        margin-bottom: 3vh;
        border-bottom-width: 2px;
    }

    .team-item-green svg {
    width: 40px;
    height: auto; 
    }
    .team-item-green {
        display: flex;
        align-items: center;
        gap: 0;
        font-size: 20px;
        letter-spacing: 2;
        line-height: 25px; 
    }

    .content {
        margin-top: 5vh;
        padding: 0 5%;
        width: 90%;
    }
}



@media (max-width: 500px) {
    .content h2 {
        font-size: 24px;
    }
    .content h3 {
        font-size: 20px;
        letter-spacing: 2; 
        line-height: 50px;
        text-align: center;
        font-weight: 500;
    }    


    .button {
        width: 25vw;
        height: auto;
        font-size: 14px;
        padding: 0.5em 0.8em;
        white-space: nowrap;
    }

    /* ボタンのグリッド列を2列に */
    .buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: 90%;
        margin: 20px auto;
    }

    /* タイトルのフォントサイズ */
    .sp-section-title {
        font-size: 20px;
    }


        /* カード全体 */
    .event-detail {
        max-width: 90%;          /* 幅を狭くして余白を確保 */
        margin: 15vh auto;       /* 上下の余白も少なく */
        padding: 40px 20px 40px; /* 内側のパディングを小さく */
    }

    /* 上段 flex を縦並びに */
    .event-top {
        flex-direction: column;
        gap: 20px;
    }

    /* 左の画像 */
    .event-left {
        width: 100%;
    }
    .event-left img {
        width: 100%;
        height: auto;
    }

    /* チームグリッドを1列に */
    .team-grid {
        display: block; 
    }


    .team-item {
        font-size: 14px;
        letter-spacing: 2;
        gap: 8px;
        line-height: 26px;
        white-space: normal;       /* 折り返し許可 */
        word-wrap: break-word;     /* 単語途中でも折り返す */
        overflow-wrap: break-word;
        align-items: flex-start; 
    }

    .team-item svg{
        width: 20px;
        height: auto;
        margin-top: 7px;
    }


    .mini {
        font-size: 16px;
        letter-spacing: 6;
        line-height: 33x;

    }

    .team {
        font-size: 22px;
    }

    /* 本文テキスト */
    .event-top p{
        font-size: 14px;
        line-height: 26px;
        letter-spacing: 2;  /* スマホは左寄せが読みやすい */
    }

    .name {
        font-size: 14px;
        line-height: 26px;
        letter-spacing: 2;
        text-align: right;
    }

    /* h1タイトル */
    .event-detail h1 {
        font-size: 24px;
        line-height: 50px;
        letter-spacing: 2;
        margin-bottom: 3vh;
    }

    .event-detail::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--border-color);
  clip-path: polygon(
    60px 0,                    /* 左上 */
    calc(100% - 130px) 0,       /* 右上 */
    100% 30px,
    100% calc(100% - 60px),    /* 右下 */
    calc(100% - 60px) 100%,
    120px 100%,                 /* 左下 */
    0 calc(100% - 60px),
    0 60px
  );
  pointer-events: none;
}

    /* 右上・左下ダイヤモンドのサイズ・位置調整 */
    .diamond.top-right {
        width: 130px;
        height: auto;
        top: -0.5;
        left: 2;
    }
    .diamond.bottom-left {
        width: 150px;
        height: auto;
        bottom: -1%;
        left: 0;
    }

    /* セクションタイトル */
    .section-title {
        flex-direction: column;
        gap: 5px;
    }

    /* 赤アンダーライン */
    .red-underline {
        margin-bottom: 3vh;
        border-bottom-width: 2px;
    }

    .green-underline {
        margin-bottom: 3vh;
        border-bottom-width: 2px;
    }
    .purple-underline {
        margin-bottom: 3vh;
        border-bottom-width: 2px;
    }

    .team-item-green svg {
    width: 30px;
    height: auto; 
    }
    .team-item-green {
        display: flex;
        align-items: center;
        gap: 0;
        font-size: 14px;
        letter-spacing: 2;
        line-height: 26px; 
    }

    .content {
        margin-top: 5vh;
        padding: 0 5%;
        width: 90%;
    }
}




