/* モバイルファースト */
:root {
  --base: #ffff;
  --main: #C4CA46;
  --card: #ffff;
  --accent:#2A3D66;
  --text: #222;
  --muted: #666;
  --container: 1100px;
  font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Segoe UI", Roboto, "Helvetica Neue", Arial;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* レイアウトコンテナ */
.container {
  width: calc(100% - 32px);
  margin: 0 auto;
}

/* ヘッダー */
.site-header {
  height: 69px;
  background: var(--base);
  border-bottom: 5px solid var(--main);
  box-shadow: 0 1px 0 #ffff;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

/*ヘッダー全体設定*/
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 0;
  margin: 0 auto;
  height: 64px;
  background: #ffff;
}

/*ロゴとタイトルの配置*/
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 0;
}

.logo-img {
  height: 64px;
}

.site-name {
  font-size: 23px;
}
.site-name a{
  text-decoration: none;
  color: var(--text);
}


/* PC上でのハンバーガーメニューを非表示 */
@media (min-width: 1200px) {
  .main-nav {
    display: flex;
    gap: 20px;
  }

  .main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .main-nav li {
    margin-left: 20px;
  }

  .nav-toggle {
    display: none;
  }

  .dropdown-nav {
    display: none !important;
  }
}

/* PC用ヘッダーリンク */
.main-nav a,
.dropdown-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: bold;
}

/* ホバー時（マウスを乗せたとき） */
.main-nav a:hover,
.dropdown-nav a:hover {
  color: var(--main);
  text-decoration: none;
}

.main-nav a.active,
.dropdown-nav a.active {
  border-bottom: 3px solid var(--main);
  padding-bottom: 4px;
}


/* スマホでは通常ナビを非表示 */
@media (max-width: 1200px) {
  .main-nav {
    display: none;
  }
}

/* ハンバーガーボタン */
.nav-toggle {
  border: 0;
  background: transparent;
  padding: 8px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.hamburger {
  width: 26px;
  height: 2px;
  background: var(--text);
  position: relative;
  display: inline-block;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 26px;
  height: 2px;
  background: var(--text);
}

.hamburger::before {
  top: -8px
}

.hamburger::after {
  top: 8px
}

/*ドロップダウンメニュー*/
.dropdown-nav {
  position: absolute;
  top: 5px;
  right: 0%;
  width: 250px;
  height: auto;
  background: var(--base);

  border-radius: 0%;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15);
  padding: 40px 20px 20px;
  display: none;
  z-index: 999;
}

.dropdown-nav.open {
  display: block;
}

/*メニューリスト*/
.dropdown-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-nav li {
  margin-bottom: 15px;
}

.dropdown-nav a {
  text-decoration: none;
  color: #222;
  font-size: 16px;
  font-weight: bold;
}

/* 閉じるボタン（✕） */
.nav-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  border: none;
  background: transparent;
  cursor: pointer;
}


/* メイン */
/*ページタイトル*/
.title-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  margin: 10px 16px 10px 16px;
  padding-left: 16px;
}

.title-box {
  display: inline-block;
  width: 20px;
  height: 25px;
  background: var(--main);
  border-radius: 0;
  margin-left: 0;
}

.page-title h1 {
  font-size: 25px;
  font-weight: bold;
  margin: 0;
  color: var(--text);
}


/*ページトップ*/
.top-container {
  width: 100%;
  margin: 0;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: row;
  gap: 5px;
  box-sizing: border-box;
  align-items: stretch;
}

.top-photo,
.top-text {
  flex: 1;
  height: 450px;
}

.top-photo img {
  width: 100%;
  height: 100%;
  border-radius: 0%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.top-text {
  background: var(--main);
  padding: 16px;
  color: var(--base);
  font-size: 15px;
  border-radius: 0;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.top-text h1 {
  margin: 0;
}

@media (max-width: 1200px) {
  .top-container {
    flex-direction: column;
    text-align: center;
  }

  .top-photo,
  .top-text {
    height: 230px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15);
  }

  .top-photo img {
    height: 230px;
  }

  .top-text h1 {
    height: 230px;
    font-size: 20px;
    display: flex;
    align-items: center;
  }
}

.members-page .layout {
  display: flex;
  gap: 20px;
  width: 100%;
  padding: 10px 16px;
  box-sizing: border-box;
}

/*左側ナビ*/
.nav-name {
  font-size: 15px;
  color: var(--base);
  border-bottom: 3px solid var(--base);
  padding-left: 10px;
}

.member-nav {
  width: 20%;
  flex-shrink: 0;
  height: auto;
  position: sticky;
  top: 80px;
  align-self: flex-start;
  background: var(--main);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.member-nav ul {
  list-style: none;
  padding: 30px;
  font-size: 20px;
  margin: 0;
}

.member-nav li {
  margin-bottom: 12px;
}

.member-nav a {
  text-decoration: none;
  color: var(--base);
  font-weight: bold;
}

.member-nav a:hover {
  color: var(--accent);
}

.member-shortcuts {
  display: none;
}

/* スマホ用ショートカット */
@media (max-width: 1200px) {
  .member-shortcuts {
    display: flex;
    width: 100%;
    height: auto;
    background: var(--main);
    gap: 8px;
    margin: 16px 0;
    overflow-x: auto;
    white-space: nowrap;
    padding-left: 16px;
    position: sticky;
    top: 70px;
    align-self: flex-start;
  }

  .member-nav {
    display: none;
  }
}

.member-shortcuts a {
  display: inline-block;
  padding: 6px 12px;
  color: var(--base);
  font-weight: bold;
  border-radius: 0;
  text-decoration: none;
}

.member-shortcuts a:hover {
  color: var(--accent);
}




/*右側コンテンツ*/
.members-content {
  width: 100%;
  padding-right: 16px;
}

.cohort {
  margin-bottom: 60px;
}

.cohort h3 {
  font-size: 24px;
  color: var(--accent);
  margin-top: 10px;
  border-bottom: 2px solid var(--main);
  padding-bottom: 8px;
  scroll-margin-top: 80px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.member-card {
  width: 100%;
  background: var(--base);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  gap: 12px;
  padding: 12px;
  margin: 15px;
}

.member-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.member-body h4 {
  margin: 0;
  font-size: 20px;
  color: var(--text);
}

.member-body dl {
  margin: 0;
}

.member-body dt {
  font-weight: bold;
  font-size: 14px;
}

.senko{
  color: var(--text);
  margin: 4px 0 5px;
  padding: 0 0 8px;
  border-bottom: 2px solid var(--main);
}

.member-body a{
  color: #0055ff;
}

.member-body dd {
  margin: 0 0 8px 0;
  font-size: 14px;
}

/* スマホ対応 */
@media (max-width: 1200px) {
  .member-nav {
    width: 25%;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .member-card img {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
  }

  .cohort h3 {
    scroll-margin-top: 110px;
  }
}


/* フッター */
.site-footer {
  padding: 20px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 36px;
}

/* デスクトップ向け*/
@media (min-width:1200px) {
  .nav-toggle {
    display: none
  }

  .main-nav {
    display: block
  }

  .main-nav ul {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 0
  }

  .main-nav a {
    padding: 18px 0;
    border-bottom: none
  }

  .hero {
    padding: 40px 0
  }

  .hero h2 {
    font-size: 1.5rem
  }

  /* カードをグリッド化（デスクトップ） */
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .member-card {
    padding: 16px
  }

  .member-card img {
    width: 120px;
    height: 120px
  }
}


html {
  scroll-behavior: smooth;
}

body {
  padding-top: 74px;
}