/* 固定ページ共通  */

*{
  font-family: Noto Serif JP, serif;
}

/* 固定ページのコンテンツを初期非表示（div, table単位） */
.header-under main section > div,
.header-under main section > table,
.header-under main section .club-about > div,
.header-under main section .club-about > table {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* 特定のクラスを持つdivは除外（ナビゲーション等は即時表示） */
.header-under main section nav,
.header-under main section .about-nav {
  opacity: 1;
  transform: none;
  transition: none;
}

/* table要素内の子要素は除外（table自体は塊で表示） */
.header-under main section table tr,
.header-under main section table td,
.header-under main section table th,
.header-under main section table tbody,
.header-under main section table thead {
  opacity: 1;
  transform: none;
  transition: none;
}

/* フェードイン後の状態 */
.header-under main section > div.fade-in-visible,
.header-under main section > table.fade-in-visible,
.header-under main section .club-about > div.fade-in-visible,
.header-under main section .club-about > table.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}


section h2{
  font-family: Noto Sans JP, sans-serif;
  font-size: 1.4rem;
  text-align: center;
  width: 220px;
  margin: auto;
  margin-bottom: 2rem;
  margin-top: 5rem;
  border-bottom: 1px solid #000;
  padding-bottom: 0.3rem;
  color: #45566a;
  text-decoration: none;

}

section p{
  text-align: left;
}

.fixed-hamburger .hamburger-menu span {
  background-color: #000000;
}

a.insta_icon_black::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url('../images/insta_menu_icon.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 8px;
  vertical-align: middle;
}

@media (max-width: 768px) {
  main{
    margin-top: 0px;
  }

  h3{
    font-size: 14px;
  }

  td{
    font-size: 12px;
  }

  #about .about-nav{
    display: none;
  }
}

/* クラブ概要ページ */

#about .about-nav-list{
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

#about .about-nav-list li{
  border-bottom: 1px solid #000;
  padding: 0.5rem 1rem;
}

#about .about-nav-list li a{
  text-decoration: none;
  color: #000;
}

/* section h2:first-of-type{
  width: 400px;
} */

#about h3{
  color: #45566a;
  text-align: center;
  font-family: Noto Sans JP, sans-serif;
  margin: 100px auto 50px;
}

.width450{
  width: 450px;
  margin: auto;
}

.mt-100{
  margin-top: 100px;
}

.mt-200{
  margin-top: 200px;
}

.mb-50{
  margin-bottom: 50px;
}

.mb-100{
  margin-bottom: 100px;
}

.club-about{
  width: 80%;
  margin: auto;
}

#about .txt-area{
  width: 50%;

}

#about .txt-area p {
  font-family: "Noto Serif JP", serif;
  text-align: justify;
}

#about .txt-area p.txt-area-title {
  font-family: "Noto sans JP", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 6%;
  color:#45566a;
}

.club-about .inner-home {
  overflow: visible !important;
}

#about .bg-square {
  position: absolute;
  inset: 0;
  margin-left: 0;
  width: 100%;
  height: 50vh;
  aspect-ratio: 1.8;
  background: #f0f0e8;
  z-index: 1;
}

#about .text-area-under{
  width: 600px;
  margin: 50px auto;
}

#about .flex{
  display: flex;
}

.sanseikai .flex{
  width: 800px;
  margin: auto;
}

.sanseikai ul{
  margin-top: 30px;
}

.sanseikai ul li{
  font-size: 1rem;
  list-style-type: disc;
  margin-top: 10px;
  margin-left: 16px;
}

.sanseikai img{
  width: 400px;
  margin-top: 50px;
}

.shimai-club{
  width: 500px;
  margin: auto;
}

.shimai-club h4{
  font-size: 1.1rem;
  line-height: 2.5;
  margin-top: 2rem;
  font-weight: bold;
}

.shimai-club h4:first-of-type{
  margin-top: 0;
}

section .shimai-club p{
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.sansaikai{
  width: 450px;
  margin: auto;
}

.club .club-table{
  width: 1000px;
  margin: auto;
}

#about .mission h3{
  margin: 15px auto 0;
}

#about .mission h3.mission-title{
  margin: 15px auto 30px;
}

/* question-box-item スタイル（index.phpと同じ） */

.question-box-item {
  background-color: #f0f0e8;
  border-radius: 8px;
  height: 280px;
  width: 400px;
  color: black;
}

.question-box-item h3{
  font-family: Noto serif JP, serif;
  text-align: center;
  margin: 1rem 0 0 0;
}

.question-box-item p{
  text-align: center;
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.question-box-item p.question-box-messe{
  font-family: Noto sans JP, sans-serif;
  font-size: 2.3rem;
  font-weight: bold;
  color: #0060b0;
  text-align: left;
  line-height: 1.1;
  font-feature-settings: "palt";
  margin-top: 1.6rem;
  margin-left: 2.2rem;
}

.question-box-item:last-of-type p{
  font-size: 1rem;
  padding-top: 1rem;
}

.question-box-item:last-of-type p.question-box-messe{
  font-family: Noto serif JP, serif;
  font-size: 2.3rem;
  font-weight: bold;
  color: #0060b0;
  text-align: center;
  margin: 3.5rem 0;
}

.question-box-item a{
  color: #000;
  display: block;
  text-align: center;
  font-size: 1.1rem;
  margin-top: 1rem;
}

span.pc{
  display: inline;
}

#about #history h2{
  width: 360px;
}

#about table{
  width: 1000px;
  margin: auto;
}

#about table.organization-table{
  width: 800px;
}

#about .ri-relation table.organization-table{
  width: 700px;
}


#about table.organization-table:first-of-type{
  margin-bottom: 100px;
}

#about table.organization-table td:first-of-type{
  width: 300px;
}

#about .ri-relation table.organization-table td:first-of-type{
  width: 400px;
}

@media (max-width: 768px) {

  #about h2{
    font-size: 1.2rem;
  }

  .flex-box{
    display: block;
  }

  .club-table{
    width: 90%;
  }

  #about .bg-square {
    aspect-ratio: 0;
    height: auto;
  }

  #about .txt-area {
    width: 100%;
    margin-top: 0;
  }

  #about .txt-area p.txt-area-title {
    font-family: "Noto sans JP", sans-serif;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 6%;
    color: #45566a;
  }

  #about .txt-area p {
    width: 85%;
    margin: auto;
  }

  #about .text-area-under {
    width: 100%;
  }

  #about .flex {
    display: block;
    width: 100%;
  }

  section .sanseikai p{
    font-size: 0.9rem;
  }

  .sanseikai ul li {
    font-size: 0.9rem;
    margin-top: 5px;
  }

  .sanseikai img {
    width: 300px;
  }

  .shimai-club {
    width: 100%;
  }

  .shimai-club h4 {
    font-size: 0.9rem;
  }

  section .shimai-club p {
    font-size: 0.9rem;
  }

  .sansaikai {
    width: 100%;
  }

  .width450{
    width: 100%;
  }

  table th, table td {
    font-size: 0.7rem;
  }

  #about #history h2 {
    width: 300px;
  }

  #about table.organization-table {
    width: 100%;
}

  #about .ri-relation table.organization-table {
    width: 100%;
  }

  #about table.organization-table td:first-of-type {
    width: 35%;
  }

  #about .ri-relation table.organization-table td:first-of-type {
    width: 60%;
  }






  .question-box-item {
    width: 100%;
    margin: auto;
    height: auto;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }

  .question-box-item h3{
    font-size: 1rem;
    padding-top: 1rem;
  }

  .question-box-item p.question-box-messe{
    font-size: 1.2rem;
    margin-bottom: 1.4rem;
    margin-left: 0;
    text-align: center;
  }

  .question-box-item:last-of-type p{
    margin-bottom: 0;
  }

  .question-box-item:last-of-type p.question-box-messe{
    margin: 1.0rem auto 1.5rem;
  }

  .question-box-item a{
    font-size: 0.9rem;
  }
  
  span.pc{
    display: none;
  }

  #about table{
    width: 100%;
  }
}

/* 活動報告ページ */

#activity p{
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 7rem;
} 

#activity ul{
  width: 220px;
  margin: 50px auto 100px;
}

#activity ul li{
  margin: 20px auto;
}

@media (max-width: 768px) {
  .activity-page p{
    font-size: 16px;
  }
}

/* 年間行事レイアウトページ */

#schedule {
  max-width: 900px;
  margin: 0 auto;
}

#schedule .schedule-group {
  margin: 60px 0;
}

.schedule-heading {
  font-family: Noto Sans JP, sans-serif;
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 50px;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.schedule-table td {
  border: 1px solid #ccc;
  padding: 8px 12px;
}

.schedule-table td:first-child {
  background: #f6f6f6;
}

.schedule-col-round {
  width: 80px;
  text-align: center;
}

.schedule-col-date {
  width: 140px;
}

@media (max-width: 768px) {

  .schedule-heading {
    font-size: 18px;
    margin-bottom: 30px;
  }

 .schedule-table{
  width: 90%;
  margin: 0 auto;
 }
 .schedule-col-round {
  width: 60px;
 }
 .schedule-col-date {
  width: 85px;
 }
  
}

/* クラブ概要ページのテーブル（年間行事予定と同じデザイン） */
.club-table,
.history-table,
.organization-table,
.nearby-clubs-table {
  width: 100%;
  border-collapse: collapse;
}

.club-table td,
.club-table th,
.history-table td,
.history-table th,
.organization-table td,
.organization-table th,
.nearby-clubs-table td,
.nearby-clubs-table th {
  border: 1px solid #ccc;
  padding: 8px 12px;
}

.club-table td:first-child,
.history-table td:first-child,
.organization-table td:first-child,
.nearby-clubs-table td:first-child {
  background: #f6f6f6;
}

.club-table th,
.history-table th,
.organization-table th,
.nearby-clubs-table th {
  background: #f5f5f5;
  text-align: center;
  font-weight: 600;
}

/* 会員企業一覧ページ */

.members-page h2{
  margin-bottom: 8rem;
}

.members-table {
  width: 1000px;
  margin: 0 auto 14rem;
  border-collapse: collapse;
}
.members-table th,
.members-table td {
  border: 1px solid #ccc;
  padding: 6px 10px;
}
.members-table th {
  background: #f5f5f5;
  text-align: center;
}
.members-col-name { width: 25%; }
.members-col-company { width: 45%; }
.members-col-industry { width: 30%; }

@media (max-width: 768px) {
  .members-table {
    width: 100%;
    margin: 0 auto 10rem;
  }
  .members-table th {
    font-size: 14px;
  }
  .members-table td {
    font-size: 13px;
  }
  .members-col-name { width: 30%; }
  .members-col-company { width: 40%; }
  .members-col-industry { width: 30%; }
}


/* 入会案内ページ */

.join-section {
  background:#fff;
  font-family:-apple-system, BlinkMacSystemFont, "Helvetica Neue",
    "Yu Gothic", "游ゴシック体", "YuGothic", "メイリオ", sans-serif;
  color:#333;
  font-size:14px;
  line-height:1.8;
  overflow: visible;
}

.join-inner {
  max-width:720px;
  margin:0 auto;
  padding:40px 16px 60px;
  overflow: visible;
}


.join-flow {
  display:flex;
  flex-wrap:wrap;
  margin-top: 50px;
  margin-bottom:30px;
}


.join-step {
  font-family: Noto Sans JP, sans-serif;
  flex:1 1 16%;
  text-align:center;
  font-size:16px;
  line-height:1.5;
  padding:12px 4px;
  border-left:1px solid #000;
  color:#003b8e;
  background:none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.join-step:last-child {
  border-right:none;
}

/* PC版：border-rightの真ん中に右向きの三角を配置（最後以外） */
@media (min-width: 769px) {
  .join-inner {
    overflow: visible;
  }

  .join-flow {
    overflow: visible;
  }

  .join-step:not(:last-child) {
    position: relative;
    overflow: visible;
  }

  /* 右向きの三角形（中央に配置、border-rightの線と重なる） */
  .join-step:not(:first-child)::after {
    content: '';
    position: absolute;
    left: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid #000;
    border-right: 0;
    z-index: 2;
  }

  /* 三角形の中を白にする */
  .join-step:not(:first-child)::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 9px solid #fdfdfd;
    border-right: 0;
    z-index: 3;
  }

  .join-step:first-child {
    border-left: none;
  }

  .join-step:last-child {
    border-right: 1px solid #000;
  }
}


.join-block {
  margin-bottom:16px;
  padding: 20px 0;
}

.join-block-title {
  font-size:20px;
  font-family: Noto Sans JP, sans-serif;
  border-bottom:1px solid #000;
  padding-top:12px;
  padding-bottom: 6px;
  margin:0 0 8px;
  color:#45566a;
}

.join-text {
  margin:0;
  text-align: left;
}

/* 箇条書き */
.join-list {
  margin:0;
  padding-left:1.2em;
}

.join-list li {
  font-size: 1.1rem;
  margin-left: 0;
  margin-bottom:4px;
  list-style-type: disc;
}

/* 枠付きボックス */
.join-box {
  border:1px solid #333;
  padding:12px 16px;
  background:#fff;
}

.join-block-title.no-border {
  border-bottom:none;
}

.join-box p {
  margin:0 0 4px;
}

.join-box p:last-child {
  margin-bottom:0;
}

@media (max-width:768px) {
  .join-flow {
    display: block;
    overflow: visible;
    margin-top: 0px;
  }

  .join-block-title{
    font-size: 16px;
  }

  .join-step {
    font-size: 14px;
    border-left: none;
    border-right: none;
    border-top: 1px solid #000;
    overflow: visible;
    padding: 25px 0;
  }

  /* 最初の要素は下向き三角なしの線だけ */
  .join-step:first-child {
    border-top: none;
  }

  /* 最後の要素にborder-bottomを設定 */
  .join-step:last-child {
    border-bottom: 1px solid #000;
  }

  /* 下向きの三角形（中央に配置、border-topの線と重なる、最初以外） */
  .join-step:not(:first-child)::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #000;
    border-bottom: 0;
    z-index: 2;
  }

  /* 三角形の中を白にする */
  .join-step:not(:first-child)::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid #fdfdfd;
    border-bottom: 0;
    z-index: 3;
  }

  .join-list li {
    font-size: 14px;
  }
}



/* 週報ページ */

.weekly-lead{
  text-align: center;
  margin-bottom: 20px;
}

.weekly-wrapper{
  width: 800px;
  margin: 0 auto;
  background: #f0f0e8;
}

.weekly-wrapper h4{
  width: 550px;
  margin: 0 auto 2rem;
  font-size: 1.4rem;
  font-family: Noto Sans JP, sans-serif;
  text-align: left;
}

.weekly-wrapper p.weekly-card-text{
  margin-bottom: 30px;
}

.weekly-wrapper p{
  width: 550px;
  margin: 0 auto;
}

.weekly-card-btn{
  font-family: Noto Serif JP, serif;
}

@media (max-width: 768px) {
  .weekly-lead{
    font-size: 14px;
  }
  .weekly-wrapper h4{
    width: 90%;
    font-size: 16px;
  }
  .weekly-wrapper{
    width: 90%;
  }
  .weekly-wrapper p{
    width: 90%;
  }
}