/* =========================================
    cri-custom.css
    GodotCon Tokyo 2026 用に CRI が追加したスタイル
    元サイトの main.css は変更せず、ここで上書き・追加しています

    Additional styles for GodotCon Tokyo 2026, added by CRI.
    main.css is unchanged; all customizations are in this file.

    ※ 指定はすべて body.cri-body { } の中に書いています。
       main.css より優先させるためと、SP／PC の優先度を揃えるためです。
       PC 用の上書きも、下の @media 内の body.cri-body { } に書いてください。
========================================= */


/* =========================================
   スマホ（基本）
========================================= */

html{
  padding: 0;
  margin: 0;
}

body.cri-body{
  background: #fff;
  font-size: 18px;
  color: #1F2937;

  /* ----- 汎用 ----- */
  .bold{
    font-weight: bold;
  }

  .inline-block{
    display: inline-block;
    margin-right: 5px;
  }

  .nowrap{
    white-space: nowrap;
  }

  .margin-btm{
    margin-bottom: 20px;
  }

  .sp-padding{
    padding: 10px;
  }

  [id]{
    scroll-margin-top: -40px;
  }

  /* ----- ナビ ----- */
  nav{
    border-top-style: none;
  }

  nav.nav{
    label{
      display: flex;
    }
    input:not(:checked) ~ .menu-list{
      display: none;
    }
    ul{
      text-align: left;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    ul li a{
      display: block;
      padding: 10px 16px;
      border: none;
      border-bottom: 1px solid #0077E6;
    }
    ul li a:hover{
      background: #6C9FCE;
      color: #fff;
    }
  }

  /* ----- 見出し ----- */
  h2{
    margin: 20px 0;
  }

  h3{
    font-size: 1.5rem;
    color: #0077E6;
    text-align: center;
    font-weight: bold;
  }

  /* 台形の見出し（共通） */
  h2.skyblue,
  h2.blue,
  h2.white{
    --slant: 40px;
    --line-top: 6px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: 62px;
    margin-bottom: 0;
    padding: 0 94px;
    background: var(--h-bg);
    color: var(--h-color);
    font-weight: bold;
    clip-path: polygon(
      var(--slant) 0, calc(100% - var(--slant)) 0,
      100% 100%, 100% calc(100% + 2px),
      0 calc(100% + 2px), 0 100%
    );

    /* 左：横線＋斜線のL字（skewで斜辺と平行にする） */
    &::before{
      content: "";
      position: absolute;
      top: var(--line-top);
      left: 45px;
      width: 49px;
      height: 31px;
      border-top: 1.5px solid var(--h-line);
      border-left: 1.5px solid var(--h-line);
      transform: skewX(-32deg);
      transform-origin: top left;
    }
    &::after{
      content: "";
      position: absolute;
      top: 32px;
      bottom: 0;
      right: 31px;
      border-left: 1.5px solid var(--h-line);
      transform: skewX(30deg);
      transform-origin: top left;
    }
  }

  h2.skyblue{ --h-bg: #EBF4FF; --h-color: #001d98; --h-line: #1D429D; --line-top: 12px; }
  h2.blue   { --h-bg: #5291FD; --h-color: #fff;    --h-line: #A8C8FE; }
  h2.white  { --h-bg: #fff;    --h-color: #001d98; --h-line: #1D429D; }

  /* ----- 背景色 ----- */
  .bg-skyblue{
    background: #EBF4FF;
    width: 100%;
  }

  .bg-blue{
    background: #5291FD;
    h3{
      color: #fff;
      padding: 20px 0;
    }
  }

  /* ----- ヘッダー ----- */
  .header-bg{
    min-height: 450px;
    background: #F0F7FF url("/images/JP/2026/design/header-bg.png") bottom right no-repeat;
    background-size: auto 80%;
    padding: 20px 0 10px;

    .header-container{
      position: relative;
      max-width: 100%;
      margin: 0 auto;
      padding: 10px;
    }

    .welcome{
      display: block;
      width: 60%;
      margin-left: auto;
    }

    .event-enjoy{
      width: 100%;
      display: flex;
      gap: 8px;
      margin-bottom: 20px;
      span{
        flex: 1;
        min-width: 0;
        text-align: center;
        font-size: 0.9rem;
        background: #fff;
        border: 1px solid #001d98;
        color: #001d98;
        border-radius: 5px;
        padding: 5px 8px;
        white-space: nowrap;
      }
    }

    h1{
      margin-bottom: 20px;
    }

    /* SP：カウントダウンを .cta の上に表示（タブレット以上は下の @media で横並び） */
    .cta-area{
      display: flex;
      flex-direction: column;
    }

    /* カウントダウン＋参加ボタン（カウントダウンはボタンの上） */
    .cta-action{
      position: relative;
      z-index: 1;
    }

    .cta{
      color: #001d98;
      font-size: 1rem;
    }

    .godot-robo{
      width: 30%;
      position: absolute;
      top: 220px;
      right: 0;
    }
  }

  .cri-ttl{
    font-weight: 900;
    color: #001d98;
    -webkit-text-stroke: 10px #fff;
    paint-order: stroke fill;
  }

  .cri-info{
    padding: 0.6em 0.9em;
    background: rgb(0 29 152 / 0.8);
    max-width: 90%;
    font-size: 0.9rem;
    line-height: 1.2;
    border: 2px solid #fff;
    span{
      display: block;
    }
  }

  /* ----- レイアウト ----- */
  .container{
    margin: 0;
    p{
      margin-bottom: 20px;
    }
  }

  .half-container{
    width: 100%;
    margin: 0;
  }

  .half-container-img{
    width: 100%;
    margin: 0;
    margin-bottom: 40px;
    position: relative;
    aspect-ratio: 4 / 3;
  }

  /* ----- おすすめ ----- */
  .recommend{
    width: 70%;
    border: 1px solid #001d98;
    color: #001d98;
    background: #E2F1FF;
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    margin: 0 auto 20px;
    img{
      width: 60px;
      margin: 0 auto;
    }
  }
      .h3-recommend{
      margin-bottom: 20px;
    }
  /* ----- はじめて ----- */
  .beginner{
    width: 500px;
    max-width: 100%;
    margin: 20px auto;
    text-align: center;
    background: #4173FF;
    color: #fff;
    padding: 5px 0;
    font-size: 1.5rem;
  }

  .beginner-text{
    text-align: center;
  }

  .beginner-list{
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
    padding: 0 20px;
    li{
      border-left: 5px solid #001d98;
      background: #E2F1FF;
      padding: 10px 20px 20px;
      h4{
        color: #001d98;
        font-weight: bold;
        font-size: 1.3rem;
      }
    }
  }

  .beginner-amazing{
    margin: 40px 0;
    background: url("/images/JP/2026/design/arrow.png") bottom center no-repeat;
    width: auto;
    height: 120px;
    p{
      text-shadow: 0 0 5px #fff,0 0 5px #fff,0 0 5px #fff;
      text-align: center;
      font-weight: bold;
      font-size: 1.6rem;
    }
  }

  .amazing-list{
    ul{
      width: auto;
      gap: 20px;
      display: flex;
      justify-content: center;
      margin: 0 auto;
      li{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        flex-shrink: 0;
        text-align: center;
        background: #4173FF;
        border-radius: 50%;
        width: 110px;
        height: 110px;
        color: #fff;
        font-weight: bold;
        line-height: 1;
        font-size: 1.5rem;
        transform: rotate(-8deg);
      }
      li:nth-child(2){
        font-size: 1.2rem;
      }
      li:last-child{
        font-size: 1rem;
      }
    }
  }

  /* ----- イベント詳細 ----- */
  dl.event-detail{
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 20px;
    > dt{
      background: #00288F;
      text-align: center;
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 10px 20px;
    }
    > dd{
      align-self: center;  /* 左の dt の高さに対して上下中央に置く */
      a{
        color: #001d98;
      }
    }
  }

  /* SP：dt と dd を縦に積む（タブレット以上は下の @media で横並びにする） */
  dl.schedule-time{
    display: block;
    margin: 20px 0;
    > dt,
    > dd{
      display: block;
    }
    > dt{
      background: #E2F1FF;
      border-bottom: 1px solid #84c5ff;
      padding: 10px 30px;
      text-align: left;  /* SPは左寄せ。均等割り付けはタブレット以上で指定 */
    }
    > dd{
      background-color: #fff;
      padding: 10px 30px;
      align-self: center;
      border-bottom: 1px solid #84c5ff;
    }
  }

  img.map-ico{
    display: inline;
  }

  /* ----- 参加費・参加ボタン ----- */
  .yen{
    color: #E03272;
    font-weight: bold;
    font-size: 2.5rem;
  }

  .main-yen{
    color: #E03272;
    font-weight: bold;
    font-size: 1.8rem;
  }

  .cta-btn{
    margin-top: 10px;
    display: inline-block;
    width: 100%;
    background: #E03272;
    color: #fff;
    font-size: 1.8rem;
    text-align: center;
    padding: 5px 0;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.3s ease, transform 0.3s ease;
  }

  .cta-btn:hover{
    background: #FF734B;
    transform: translateY(-2px);
  }

  /* ----- 開催までのカウントダウン（countdown.js で中身を表示） ----- */
  .cri-countdown{
    margin: 10px 0 0;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: #E03272;
    line-height: 1.2;
    .text{
      color: #1F2937;
    }
  }

  .cri-countdown[hidden]{
    display: none;
  }

  .cri-countdown-num{
    font-size: 2.5rem;
    margin: 0 0.15em;
  }

  .cri-countdown[data-state="today"]{
    font-size: 1.8rem;
  }

  .cri-countdown[data-state="ended"]{
    color: #555;
  }

  a.btn:hover:not(.cri-sponsores li a.btn),
  input[type="submit"]:hover{
    background: #06bbcc;
    color: #fff;
  }

  /* ----- FAQ ----- */
  .faq{
    padding: 10px;
    interpolate-size: allow-keywords;

    details{
      border: 1px solid #001d98;
      border-radius: 5px;
      margin-bottom: 10px;
      background: #fff;
    }
    details::details-content{
      height: 0;
      overflow: hidden;
      transition: height 0.3s ease, content-visibility 0.3s allow-discrete;
    }
    details[open]::details-content{
      height: auto;
    }
    summary{
      list-style: none;
      cursor: pointer;
      padding: 15px 40px 15px 15px;
      font-weight: bold;
      color: #001d98;
      position: relative;
    }
    summary::-webkit-details-marker{
      display: none;
    }
    summary::after{
      content: "+";
      position: absolute;
      right: 15px;
      top: 50%;
      transform: translateY(-50%);
    }
    details[open] summary::after{
      content: "−";
    }
    p{
      padding: 0 15px 15px;
      margin: 0;
    }
  }

  /* ----- スピーカー ----- */
  .cri-speakers{
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cri-speaker{
    background: #fff;
    border: 2px solid #001d98;
    border-radius: 0.5rem;
    padding: 14px;
    filter: drop-shadow(0.3em 0.3em 0 #001d98);
    display: block;

    .name{
      flex-shrink: 0;
    }
    div:not(.name){
      padding: 20px 20px 0;
      line-height: 2;
    }
    div img{
      display: block;
      margin: 20px auto 12px;
      width: 120px;
      height: 120px;
      object-fit: cover;
      border-radius: 50%;
      border: 2px solid #001d98;
    }
    div h4{
      font-size: 1.5rem;
      font-weight: bold;
      margin: 10px 0 20px;
      text-align: center;
      .sama{
        font-size: 1rem;
      }
    }
    div h5{
      font-size: 1rem;
      font-weight: bold;
    }
    p{
      margin-bottom: 20px;
    }
    div.prf h5::before{
      content: "●";
      color: #448bff;
    }
    div.session h5::before{
      content: "●";
      color: #06bbcc;
    }
  }

  /* ----- ショーケース ----- */
  .cri-showcases{
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 24px;
    padding: 10px;
    li{
      filter: drop-shadow(0.3em 0.3em 0 #001d98);
    }
  }

  .cri-showcase{
    background: #fff;
    border: 2px solid #000;
    border-radius: 0.5rem;
    overflow: hidden;
    filter: drop-shadow(0.3em 0.3em 0 #000);
    display: block;
    .img{
      width: auto;
    }
    .contents{
      width: auto;
      padding: 14px;
      h4{
        font-weight: bold;
        margin-bottom: 10px;
      }
      h4::before{
        content: "●";
        color: #448bff;
      }
    }
  }

  /* ----- 共産出展 ----- */
  .cri-sponsored_booth{
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 24px;
    padding: 10px;
    li{
      filter: drop-shadow(0.3em 0.3em 0 #001d98);
    }
  }

  .cri-sponsor_booth{
    background: #fff;
    border: 2px solid #000;
    border-radius: 0.5rem;
    overflow: hidden;
    filter: drop-shadow(0.3em 0.3em 0 #000);
    padding: 20px;
    .img{
      max-width: 100%;
      display: block;
      margin-bottom: 20px;
    }
    .contents{
      p:last-child{
        margin-bottom: 0;
      }
      h4{
        font-weight: bold;
        margin-bottom: 10px;
      }
      h4::before{
        content: "●";
        color: #448bff;
      }
    }
  }

  /* ----- スポンサー ----- */
  .sponsor-container{
    padding: 20px 0;
  }

  .cri-sponsores{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    .btn{
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100px;
    }
    .btn img{
      width: auto;
      max-width: 100%;
      height: auto;
      max-height: 80px;
    }
  }
}

/* PC用・スマホ用の出し分け */
.cri-pc-only { display: none; }
.cri-sp-only { padding: 0 16px 16px; }




/* =========================================
   タブレット以上（768px / 48rem 以上）
   PC と同じカラム表示にする箇所。PC（1024px〜）にもそのまま適用される
========================================= */
@media (min-width: 48rem) {

  body.cri-body{

    /* ----- ヘッダー（学べる／遊べる／交流する） ----- */
    .header-bg .event-enjoy{
      gap: 20px;
      span{
        padding: 5px 30px;
      }
    }

    /* ----- 2カラム（GodotConとは・参加ボタン周り） ----- */
    .container-block{
      display: flex;
    }

    .half-container{
      width: 50%;
      margin: 0;
    }

    .half-container-img{
      width: 40%;
      margin: 100px 0;
    }

    .v-center{
      align-self: center;
    }

    /* ----- GodotConとは ----- */
    .what-is-godotcon{
      margin-top: 40%;
    }

    /* ----- おすすめ ----- */
    h3.h3-recommend{
      margin: 40px 0;
    }

    .recommend-container{
      display: flex;
      gap: 20px;
      .recommend{
        flex: 1;
      }
    }
  

    /* ----- イベント詳細 ----- */
    /* 下の参加ボタン周りのイラストが上に40pxはみ出すので、その分の余白を取る */
    dl.event-detail{
      margin: 40px 0;
    }

    /* スケジュール：タブレット以上は「項目名｜時刻」の横並びにする */
    dl.schedule-time{
      display: grid;
      grid-template-columns: auto 1fr;
      > dt{
        text-align: justify;
        text-align-last: justify;
        text-justify: inter-ideograph;
      }
    }

    /* ----- 参加ボタン周り ----- */
    .cta-sub-catch{
      position: relative;
      top: -40px;
      z-index: 1;
    }

    /* ----- スピーカー ----- */
    /* 左に写真・名前、右にプロフィールとセッション内容を縦に並べる */
    .cri-speaker{
      display: grid;
      grid-template-columns: 200px 1fr;
      .name{
        grid-row: span 2;
      }
    }

    /* ----- ショーケース ----- */
    .cri-showcases{
      grid-template-columns: repeat(1, minmax(0, 1fr));
      .cri-showcase{
        display: flex;
        .img{
          max-width: 200px;
          display: flex;
          align-items: center;
        }
                .contents p:last-child{
          margin-bottom: 0;
        }
      }

    }

        /* ----- 共産出展 ----- */
    .cri-sponsored_booth{
      grid-template-columns: repeat(1, minmax(0, 1fr));
      .cri-sponsor_booth{
        display: flex;
                .img{
          max-width: 200px;
          margin: 0 20px 0 0;
          display: flex;
          align-items: center;
        }
        .contents p:last-child{
          margin-bottom: 0;
        }
      }
    }

    /* ----- ナビ ----- */
    nav.nav{
      label{
        display: none;
      }
      input:not(:checked) ~ .menu-list{
        display: flex;
      }
      ul{
        text-align: center;
        flex-direction: row;
        justify-content: center;
        li{
          flex: 1;
        }
      }
      ul li a{
        border-bottom: none;
      }
    }

    /* ----- ヘッダー ----- */
    .header-bg{
      height:680px;
      .event-enjoy{
        width: 480px;
      }
      .welcome{
        width: 293px;
        margin-left: auto;
        position: relative;
        top: -60px;
      }
      h1{
        margin-top: -60px;
      }
      .cta{
        width: 25%;
        margin-left: 20px;
      }
      /* .cta の右横にカウントダウンを並べる */
      .cta-area{
        flex-direction: row;
        align-items: center;
        gap: 20px;
      }
      .cta-action{
        flex: 0 0 auto;
      }
      .godot-robo{
        top: 250px;
      }
      .cta-btn{
        margin-top: 10px;
        padding: 10px 30px;
      }
    }



    /* ----- スポンサー ----- */
    .sponsor-container{
      padding: 40px 0;
    }

    .cri-sponsores{
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* ----- はじめて ----- */
    .beginner-list{
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .beginner-amazing{
      margin: 40px 0;
      background: url("/images/JP/2026/design/arrow.png") bottom center no-repeat;
      width: auto;
      height: 120px;
      p{
        text-align: center;
        font-weight: bold;
        font-size: 1.6rem;
      }
    }

    .amazing-list{
      ul{
        li{
          width: 200px;
          height: 200px;
          font-size: 3rem;
        }
        li:nth-child(2){
          font-size: 2rem;
        }
        li:last-child{
          font-size: 1.8rem;
        }
      }
    }
  }
}




/* =========================================
   PC（1024px / 64rem 以上）
========================================= */
@media (min-width: 64rem) {

  body.cri-body{

    /* ※ ナビ・ヘッダー・スポンサー・はじめて は
         タブレット（768px〜）の指定をそのまま使う */

    /* ----- レイアウト ----- */
    .container,
    .header-container{
      width: 960px;
      margin: 0 auto;
      h1 img{
        max-width: 866px;
      }
    }

    /* ----- スピーカー ----- */
    /* タブレットの2列（写真｜プロフィール・セッション）から、PCでは3列の横並びにする */
    .cri-speaker{
      display: flex;
            .prf{
        min-width: 360px;
      }
      .session{
        min-width: 360px;
      }
      .name{
        min-width: 200px;
      }
    }
  }
}
