@charset 'UTF-8';

/* 変数 */
:root {
    --light-green: #d5edeb;
    --green: #63dbd0;
    --brown: #403632;
    --light-grey: #eee;
    --white: #fff;
    --orange: #ff9d2e;
    --Montserrat-font: 'Montserrat';
}
/* はみ出し防止 */
html, body {
    overflow-x: hidden;
  }

/* 全体のスタイル */
* {
    margin: 0;
}

body {
    color: var(--brown);
    background: url('images/background.jpg') no-repeat right bottom / cover fixed;
    text-align: center;
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic',
    'Helvetica Neue', 'Arial', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img {
    max-width: 100%;
}
a {
    text-decoration: none;
    color: inherit;
}  
.title-content {
    font-size: min(10vw, 4rem);
    margin-top: 10vh;
    margin-bottom: 2rem;
    opacity: 0.8;
}
.subtitle{
    font-size: min(10vw, 4rem);
    margin-bottom: 2rem;
    opacity: 0.8;
}
.btn {
    color: var(--white);
    background: var(--brown);
    border: 1px solid var(--brown);
    text-decoration: none;
    padding: 1rem;
    display: inline-block;
    margin: 2rem 0;
    transition: .4s;
    width: 100px;
}
.btn:hover {
    color: var(--brown);
    background: var(--light-green);
}

/* レイアウト */
.wrapper {
    max-width: 38rem;
    margin: auto;
    padding: 0 1rem;
}

/* ==== ヘッダー ==== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8f8f8;
    padding: 0;
    height: 80px;
    border-bottom: 1px solid #ccc;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
  }
  .icon {
    max-height: 80px;
  }
  .header-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-right: 1rem;
  }
  
  .header-content a {
    flex: 1;
    flex-direction: column;
    align-items: center;
    color: inherit;
    text-decoration: none;
  }
  
  .header-content img {
    height: 30px;
    margin-bottom: 0.25rem;
    transition: transform 0.2s ease;
  }
  
  .header-content p {
    font-size: 0.9rem;
    white-space: nowrap;
  }
  
  .header-content:hover img {
    transform: scale(1.1);
  }
  
  /* ==== タイトルセクション ==== */
  .title {
    display: flex;
    position: relative;
    height: 90vh;
    margin-top: 80px; /* ヘッダー分 */
    overflow: hidden;
    background: url('images/member3.jpg') no-repeat center/cover;
  }

  /* 左半分：画像
  .title-left {
    flex: 1;
    background: url('images/member3.jpg') no-repeat center/cover;
  }

   右半分：位置調整
  .title-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--orange);
    text-align: center;
    padding: 1rem;
  }
  */
  
  
  .title-content {
    /* 中央揃え */
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* フォント調整 */
    color: var(--orange);
    font-size: min(12vw, 4rem);
    line-height: 1.5;
    /* テキスト背景色 */
    text-shadow: 2px 2px 5px var(--brown);
    /* background-color: rgba(255, 255, 255, 0.5);
    padding: 10px;
    border-radius: 5%; */
  }
  
  /* ==== コンセプトセクション ==== */
  .concept {
    background: url('images/Xmas.jpg') no-repeat center/cover;
    padding: 8rem 1rem;
    text-align: center;
  }
  
  .slogan {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
  }
  
  .p1, .p2, .p3 {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.7);
  }
  
  /* ==== レスポンシブ対応 ==== */
  @media screen and (max-width: 768px) {
    /* ナビゲーションメニュー */
    .nav-menu {
        display: none;
    }
    /* ヘッダー */
    .header {
      height: auto;
      padding: 1rem;
      height: 8vh;
    }
    .icon {
        height: 100%;
        width: auto;
        object-fit: contain;
        max-height: 50px;
      }
  
    .header-nav {
      flex-wrap: wrap;
      justify-content: center;
      margin-top: 0.5rem;
      gap: 1rem;
    }
    
    /* タイトル */
    .title-content {
      font-size: 2rem;
    }
    
    /* 理念 */
    .p1, .p2, .p3 {
      font-size: 1.5rem;
    }
  }
  

/* ==== aboutセクション ==== */
.detail {
    margin-top: 5rem;
    text-align: center;
  }
  
  .detail .Rinen {
    display: block;
    width: 80%;
    max-width: 700px;
    margin: 2rem auto;
  }
  
  .detail .Link {
    display: inline-block;
    font-size: 1rem;
    font-weight: bold;
    color: var(--brown);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
  }
  
  .detail .Link:hover {
    background-color: rgba(0, 0, 0, 0.15);
  }
  
/* ==== レスポンシブ対応 ==== */
  @media screen and (max-width: 768px) {
    .detail .Rinen {
      width: 90%;
    }
  
    .detail .Link {
      font-size: 0.9rem;
      padding: 0.5rem;
    }
  }

/* ==== 動画セクション ==== */
.videos {
    margin-top: 7vh;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}
.videos video {
    width: 80vw;
}
  @media screen and (max-width: 768px) {
    .videos video {
      width: 80vw;
    }
  }


/* ==== ギャラリーセクション ==== */
.gallery {
    display: flex;
    flex-direction: column-reverse;
    margin-top: 20vh;
}
.gallery h2{
    margin-top: 0;
}
#News{
    font-size: 20px;
    height: 300px;
    font-family: "Oswald", "メイリオ";
    color: black;
}
.gallery-image {
    width: min(100%, calc(38rem - 2rem));
    margin: auto;
    position: relative;
}
.gallery-image::after {
    display: block;
    content: '';
    width: calc(100% - 2rem);
    height: calc(100% - 2.5rem);
    z-index: 0;
    border: 3px solid var(--white);
    top: 1rem;
    left: 1rem;
    position: absolute;
}
.gallery-image img {
    aspect-ratio: 3/4;
    object-fit: cover;
    width: 100%;
    margin-left: 0.25vw;
}
.gallery-thumbnails {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(5, 1fr);
    list-style: none;
    margin: 1rem 0;
}
.gallery-thumbnails img {
    aspect-ratio: 3/4;
    object-fit: cover;
    cursor: pointer;
}
.gallery {
    flex-direction: row;
}
.gallery-image {
    width: 50vw;
    margin: 0;
}
.gallery-image img {
    height: 100vh;
}
.gallery-content {
    width: 30vw;
}
.gallery-thumbnails {
    gap: 2vw;
    grid-template-columns: repeat(3, 1fr);
}
.gallery-thumbnails img:hover {
    box-shadow: 0 0 1rem rgba(0,0,0,.4);
    transition: .4s;
}

/* ==== レスポンシブ対応 ==== */
@media screen and (max-width: 768px) {
  .gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    text-align: center;
  }
  .gallery-content {
    width: 80vw;
  }

  /* h2を最上部に */
  .gallery .subtitle {
    margin-bottom: 1rem;
    text-align: center;
  }

  /* メイン画像を幅100%に */
  .gallery-image {
    width: 100%;
    margin-bottom: 1rem;
  }

  .gallery-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  /* サムネイルを3つ並べて表示 */
  .gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    padding: 0;
    margin: 1rem 0;
    box-sizing: border-box;
  }

  .gallery-thumbnails li {
    list-style: none;
    width: calc((100% - 1rem) / 3); /* 3つでちょうど100%に */
  }

  .gallery-thumbnails img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
  }

  #News {
    font-size: 1rem;
    margin-top: 1rem;
  }
  
}



/* メンバーの声 */
.feedback {
    margin-top: 7vh;
}
.voices-wrapper {
    width: 80%;
    display: inline-block;
}
/* 吹き出し本体の背景色用 */
.balloon {
    position: relative;
    display: inline-block;
    background: #fff;
    border-radius: 30px;
    padding: 16px;
    font-weight: bold;
    color: #000;
    border: 4px solid #d5d5d5;
    box-sizing: border-box;
    margin: 10px;
  }
  
  /* 吹き出しのしっぽ：本体の背景色用 */
  .balloon:before {
    content: "";
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    border: 12px solid transparent;
    border-top: 12px solid #fff;
    z-index: 2;
  }
  
  /* 吹き出しのしっぽ：枠線の色用 */
  .balloon:after {
    content: "";
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    border: 14px solid transparent;
    border-top: 14px solid #d5d5d5;
    z-index: 1;
  }


/* ==== マップセクション ==== */
.map {
    margin-top: 8vh;
}
.gmap{
    background-color: lightgrey;
    padding-inline: 30px;
    width: 100%;
    max-width: 800px;
    height: auto;
    aspect-ratio: 2 / 1; /* 高さ比率維持（例: 800x400） */
    border: 0;
    display: block;
    margin: 0 auto;
}

.train{
    font-size: 20px;
    text-align: left;
    margin-top: 30px;
    margin-left: 120px;
    margin-bottom: 2rem;
}

/* ==== レスポンシブ対応 ==== */
@media screen and (max-width: 768px) {
  .gmap {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3; /* 縦長になりすぎない調整*/
    padding-inline: 0;   /* 左右の余白0に */
  }

  .train {
    text-align: left;
    padding: 1rem;
    margin: 0 auto;
  }
}

/* ==== クイズセクション ==== */
.quiz {
    min-height: 100vh;
    width: 80vw;
    padding: 20px 0;
    margin: 0 auto;
}

.quiz-content {
    background-color: rgba(255, 255, 255, 0.4);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    border-radius: 10px;
}
.quiz-content p {
    color: white;
}

.quiz-question-number {
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    border-bottom: 1px solid #222;
    padding: 20px;
}

.quiz-question {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.8;
    margin-bottom: 40px;
    position: relative;
    text-align: center;
    padding: 30px 200px 0px;
    min-height: 120px;
}

.quiz-answer {
    display: grid;
    position: relative;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    column-gap: 10vw;
    margin-left: -7vw;
    padding: 0 200px 100px;
    position: relative;
}

.quiz-answer li {
    list-style: none;
}

/* ==== レスポンシブ対応 ==== */
@media screen and (max-width: 768px) {
    .quiz-answer {
      grid-template-columns: 1fr; /* 1列にする */
      padding: 0 1rem 2rem;
      margin-left: 0;
      column-gap: 0;
      row-gap: 1rem;
    }
  
    .quiz-question {
      padding: 1rem;
      font-size: 24px;
    }
  
    .quiz-answer li label {
      font-size: 16px;
      height: auto;
      padding: 1rem 1rem 1rem 3rem;
    }
  
    .quiz-answer li::after {
      left: 10px;
    }
    .quiz-answer {
      grid-template-columns: 1fr;
      padding: 0 1rem;
    }
  
    .quiz-button {
      width: 100%;
      box-sizing: border-box;
      padding: 1rem 1.5rem;
      font-size: 16px;
    }
  
    .quiz-container {
      padding: 1rem;
    }
    .quiz-bottom {
      margin-bottom: 10px;
    }
  }

.is-correct .checked {
    background: #ffb3b3;
}

.is-correct::before {
    content: "〇";
    font-size: 400px;
    color: #ffb3b3;
    opacity: 0.5;
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.is-incorrect .checked {
    background: #b3c7ff;
}

.is-incorrect::before {
    content: "×";
    font-size: 400px;
    color: #b3c7ff;
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.quiz-answer li {
    position: relative;
}

.quiz-answer li label {
    color: #222;
    display: block;
    margin: 0 auto;
    height: 60px;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 4px 20px 4px 80px;
    font-weight: bold;
    font-size: 18px;
    line-height: 1.16;
    position: relative;
    transition: 0.3s ease-in-out;
    border: 1px solid #000;
    white-space: pre-wrap;
}

.quiz-answer li label:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.quiz-answer li label.is-checked {
    pointer-events: none;
}

.quiz-answer li::after {
    position: absolute;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    content: "";
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    z-index: 1;
    pointer-events: none;
    border-right: 1px solid #000;
}

.quiz-answer li:nth-child(1)::after {
    content: "A";
}

.quiz-answer li:nth-child(2)::after {
    content: "B";
}

.quiz-answer li:nth-child(3)::after {
    content: "C";
}

.quiz-answer li:nth-child(4)::after {
    content: "D";
}

.quiz-explain {
    color: #f8f8f8;
    text-align: left;
    z-index: 100;
    margin-top: 2%;
    width: 80%;
}

.finish {
    display: none;
    text-align: center;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 3;
}

.finish.is-show {
    display: flex;
}

.finish .score-wrap {
    text-align: center;
    color: #fff;
}

.finish .score-wrap .score {
    font-size: 80px;
    font-weight: bold;
}

.finish .score-wrap .ja {
    font-size: 34px;
}

.finish .score-wrap .full {
    font-size: 24px;
}

.finish .goback-button {
    font-size: 14px;
    color: #fff;
    margin-top: 30px;
    display: inline-block;
}

/* ==== contactセクション ==== */
.shop {
  margin-top: 20rem;
  height: 50rem;
}
.shop {
  background: url('images/international.jpg') no-repeat center top / cover;
  margin-top: 16rem;
  position: relative;
  height: 40rem;
}
.shop-content {
  background: var(--white);
  padding: 3rem;
  position: absolute;
  top: -8rem;
  width: 90vw;
  left: 0;
  right: 0;
}
.shop h3 {
  margin: 1rem 0;
  padding-top: 2rem;
  font-weight: normal;
  border-top: 1px solid var(--light-grey);
}

/* ==== レスポンシブ対応 ==== */
@media screen and (max-width: 768px) {
  .shop-content {
    position: relative;
    width: 80%;
  }
}

  

/* スライドメニュー */
.btn-menu:hover {
    background-color: var(--light-green);
}
#menu-close:hover svg {
    fill: var(--brown);
}
.menu-list a:hover {
    transition: .4s;
    color: var(--green);
}
/* 開閉ボタン */
.btn-menu {
    position: fixed;
    right: 1rem;
    top: 1rem;
    z-index: 4;
    padding: .5rem 1rem;
    border: 1px solid var(--brown);
    border-radius: 50%;
    height: 4rem;
    width: 4rem;
    transition: .4s;
}
.btn-menu svg {
    fill: var(--brown);
    margin-top: .25rem;
    height: 2rem;
    width: 2rem;
}

/* 閉じるボタン */
#menu-close {
    border: 1px solid var(--light-green);
}
#menu-close svg {
    fill: var(--light-green);
}
/* スライドメニューパネル */
#menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 4;
    padding: 8rem 2rem 2rem;
    width: 100vw;
    height: 100vh;
    background-color: var(--brown);
    box-shadow: 0 0 2rem var(--brown);
    translate: 100vw;
}
/* PCではサイドに表示 */
@media screen and (min-width: 1024px) {
    #menu-panel {
      width: 300px;
      right: 0;
      top: 0;
      height: 100%;
    }
  }
#sima{
    font-size: 35px;
    color: white;
    padding: 25px;
    font-weight: bold;
    text-decoration: none;
}

/*  ローディング画面　*/
#loading{
    background-color: var(--light-grey);
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
}
#loading-screen{
    background-color: var(--light-green);
    position: fixed;
    inset: 0;
    z-index: 9998;
    translate: 0 100vh;
}
#loading p{
    font-size: 2rem;
}