/* Universal ------------------ */
* {
    margin: 0px;
    padding: 0px;
}

body { 
  background-color: #6BB261;
  font-family: "Noto Sans", sans-serif;
  font-style: normal;
}

a, 
a:hover, 
a::after {
  color :#242e23 !important;
  text-decoration: none !important;
  cursor: pointer;
}

hr {
  border: none;
  height: 2px;
  background-color: #cfd1d09b;
  width: 65%;              
  margin: 1em auto;     
}


/* Header ------------------ */
.nav_container {
    display: flex;
    justify-content: space-between; /* 左右に配置 */
    align-items: top;
    width: 100%;
    padding: 1.2em 2.5em 0 1.5em;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.nav_logo {
  max-width: 180px;
  height: auto;
  display: block;
  margin: 0.6em 0.75em 0 0;
  flex-shrink: 0;              
}

.gi100logo {
  max-width: 120px;
  height: auto;
  display: block;
  margin: 1em 0 0 1em;
  flex-shrink: 0;              
}

/* Main  -------------------- */ 
.plot{
  width: 65%;
  margin: 0 auto 6vh;
  background: #6BB261;
  padding: 1vh 4vw;    
  display: block;
}

.contents {
  display: flex;
  flex-direction: column;
  align-items: flex-start;  /* テキスト左寄せ */
  gap: 16px;
}

.title1,
.title2,
.subtitle,
.h3 {
  text-align: left; 
  margin: 0;
}

.title_1 {
  font-family: 'Noto Sans';
  font-size: 3.2em;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.06em;
  margin-bottom: 1em;
}

.title_2 {
  font-family: 'Noto Sans';
  font-size: 2.7em;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.06em;
}

.subtitle {
  font-family: 'Noto Sans';
  font-size: 1.34em;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.1em;
  margin: 0 0 0.3vh 0;
}

.h3 {
  font-size: 1.1em;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.13em;
}

.event-img {
  margin: 3vh 0 1vh 0;
}

.photo-block{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); 
  gap: 3vw !important;
  margin-top: 1.5em;
}

.photo-block img{
  width: calc(100% - 4px);
  height: auto;
  display: block;
  border: 2px solid #528e4a;
}

/* button -------------------- */
.join-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  padding: 12px 20px 12px 24px;
  margin-top: 0.6em;
  border-radius: 9999px;
  border: none;
  background: #E889A7; 
  font-weight: 400;
  font-size: 1.12em;
  color: #242e23;
  letter-spacing: 0.07em;
  align-self: flex-end;
  border: none;   
  transition: background-color 0.3s, transform 0.2s;
}

.join-btn a {
  background: #E889A7; 
}

.join-btn:hover {
  background-color: #dc5783;  
  transform: translateY(-2px);  /* ちょっと浮かせる */
}

.join-btn:active {
  background-color: #dc5783;   
  transform: translateY(0);   /* 押した感を出す */
}

/* Footer -------------------- */
.footer {
  display: flex;
  align-items: center;
}

.footer_container {
  letter-spacing: 1px;
  color: #E5E4E4;
  width: 100%;
  height: 30vh;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 2em;
}

.footer_logo {
  font-family: 'Noto Sans', sans-serif;
  font-size: 1.3em;
  font-weight: 500;
  color: #E5E4E4;
}

.icons {
  display: flex;
  justify-content: center;
  gap: 0.7em;
  font-size: 1.7em;
}

.fa-brands {
  color: #E5E4E4;
}

.copyright {
  font-size: 0.62em;
  margin-bottom: 4em  !important;
}






/* -------------------------- */
/* -------------------------- */
/* モバイル最適化用 ------------ */

@media (max-width: 800px) {

  body {
    text-align: center;
    font-family: "Noto Sans", sans-serif;
    font-style: normal;
  }

  .nav_container,
  .nav_container * {
    text-align: center;
  }

  a, 
  a:hover, 
  a::after {
  color :#242e23 !important;
  text-decoration: none !important;
  cursor: pointer;
}
  section, .container, .wrap, .main,
  .subtitle, .h3,
  .gi100logo, .nav_logo, .join-btn {
    margin-left: auto;
    margin-right: auto;
  }

  .flex-center,
  .footer_container .icons {
    justify-content: center;
    align-items: center;
  }

  .nav_container {
    padding: 0.4em 1.2em 0.5em 0.4em;
  }
  .nav_logo {
    max-width: 140px;
    margin: 0.4em 0.5em 0 0;
    opacity: 0.7;
  }
  .gi100logo {
    max-width: 58px;
    margin: 0.8em 0 0 0.5em;
    opacity: 0.7;
  }

/* 画像は幅100%でレスポンシブ */
img {
  max-width: 100%;
  height: auto;
}

/* ボタンをタップしやすくフル幅に */
.join-btn {
  display: flex;
  justify-content: center;
  width: 100%;
  text-align: center;      /* 子のinline-blockを中央に */
  margin: 24px auto;
  padding: 0 16px;         /* 左右対称の余白を持たせる */
}

.join-btn a {
  display: inline-block;
  width: auto;                            /* ← ここが大事 */
  min-width: clamp(180px, 60vw, 280px);   /* 横長感を出す */
  max-width: 90vw;                        /* はみ出し防止 */
  padding: 12px 24px;
  border-radius: 999px;
  text-align: center;
  margin: 0 auto;                         /* 念のため */
}

.photo-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 0;
}

.photo-block img {
  object-fit: cover;
}

/* セクションの余白をモバイルに最適化 */
section {
  padding: auto;
}

/* フッターの文字サイズ調整 */
.footer_container {
  padding: 20px 12px;
  text-align: center;
}
.footer_container .icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.footer_container p {
  margin: 8px 0;
}

/* タイトルとサブタイトルのレスポンシブ調整 */
.title_1 {
  font-size: 24px;
  font-weight: bold;
  padding-left: 0;
}
.title_2 {
  font-size: 18px;
  font-weight: bold;
  padding-left: 0;
}
.subtitle {
  font-size: 14px;
  line-height: 1.6;
  padding-left: 0;
}

}

/* --- モバイル最適化用 追記ここまで --- */