@charset "UTF-8";
/* =========================
   Yamabiko CSS
   reset → tokens → base → utilities → layout → components → pages
========================= */
@layer reset, tokens, base, utilities, layout, components, pages;

@layer pages {

  /* トップページの会イメージ画像＆テキスト) */
  /* 画像はスライド表示　テキストは画像内に2行表示　*/
  :root {
    --hero-height: clamp(500px, 68vh, 820px);
  }

  main#toppage {
    padding-top: calc(var(--header-h) - 40px);
    padding-left: 30px;
    padding-right: 30px;
  }

  /* モバイル微調整 */
  @media (max-width: 600px) {

    /* モバイルはやや低め、PCは高め など */
    main#toppage {
      --hero-height: 64vh;
      padding-left: 0;
      padding-right: 0;
    }
  }

  @media (min-width: 1024px) {
    main#toppage {
      --hero-height: 72vh;
    }
  }

  .hero-slider {
    position: relative;
    width: 100vw;
    height: var(--hero-height);
    overflow: hidden;
    /*    margin-top: calc(var(--header-height) + var(--crumb-height));
    /* ヘッダ被り回避 */
    box-sizing: border-box;
    margin: 0;
    margin-left: calc(50% - 50vw);
    /* 左右のパディングを無視して画面端まで */
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
  }

  .hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s ease;
  }

  .hero-slide.is-active {
    opacity: 1;
  }

  .hero-slide img {
    display: block;
    width: 100%;
    height: 100%;
    /* ← ここを auto に */
    object-fit: cover;
    /*    object-position: center 30%; */
    margin: 0;

  }

  /* 左寄せキャプション */
  .hero-caption {
    position: absolute;
    left: 2rem;
    right: 2rem;
    bottom: 18%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* 配置：左 */
    gap: .75rem;
    z-index: 2;
  }

  .hero-caption h2,
  .hero-caption p {
    margin: 0;
    text-align: left;
    /* 行揃え：左 */
    background: rgba(0, 0, 0, .4);
    color: #fff;
    padding: .8rem 1.2rem;
    border-radius: 6px;
  }

  .hero-caption h2 {
    font-size: clamp(1.6rem, 5vw, 2.6rem);
    line-height: 1.3;
  }

  .hero-caption p {
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    line-height: 1.6;
    max-width: 800px;
  }

  .hero-dots {
    position: absolute;
    right: 1rem;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
    display: flex;
    gap: 15px;
    z-index: 3;
  }

  /* ドット本体（既存の見た目ルールはこのままでOK） */
  .hero-dots button {
    min-height: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
  }

  @media (hover:hover) and (pointer:fine) {
    .hero-dots {
      bottom: 16px;
    }
  }

  .hero-dots button {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .55);
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
  }

  .hero-dots button:hover {
    transform: scale(1.12);
  }

  .hero-dots button::before {
    content: "";
    position: absolute;
    inset: -10px;
  }

  .hero-dots button[aria-selected="true"] {
    background: rgba(255, 255, 255, .95);
  }

  /* モバイル微調整 */
  @media (max-width: 600px) {
    .hero-caption {
      bottom: 14%;
      left: 1rem;
      right: 1rem;
    }
  }

  /* 会の活動を各山行のイメージ画像で表現 */
  /* PC 3×2　/ スマホ　2×3              */
  .activities {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
  }

  .activities h2 {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 500;
    margin-bottom: 0.3em;
  }

  .activities p {
    margin-bottom: 1.5em;
  }

  .activity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .activity-grid figure {
    position: relative;
    margin: 0;
    aspect-ratio: 1 / 1;
    /* 正方形を維持 */
    overflow: hidden;
  }

  .activity-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .activity-grid figcaption {
    position: absolute;
    bottom: 16px;
    left: 0;
    width: 100%;
    color: #fff;
    font-weight: 600;
    font-size: 1.4rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  }

  /* スマホ用 */
  @media (max-width: 768px) {
    .activity-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  /* 最近の山行記事（山行報告・ヤマレコ・動画）を6件程度表示 */
  /* PC 3列表示　スマホ　1列横スクロール　*/
  .article-container {
    display: flex;
    flex-wrap: wrap;
    /* ← 改行して並べる */
    gap: 20px;
    justify-content: center;
    overflow-x: visible;
    /* ← 横スクロールしない */
    scroll-snap-type: none;
    -webkit-overflow-scrolling: auto;
    padding-bottom: 0;
    margin-bottom: 10px;
  }

  .article-box,
  .movie-box {
    flex: 0 0 300px;
  }

  /* 投稿日と投稿手段を左右端に配置 */
  .meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*margin: 0 5px; 
    display: flex; 
    align-items: center; */
    gap: .5rem;
    margin-top: .25rem;
  }

  .meta-info .date {
    font-size: 1em;
    margin: 0;
  }

  .source {
    font-size: 12px;
    display: inline-block;
    margin: 2px;
    padding: 2px 8px;
    border-radius: 999px;
    line-height: 1.6;
    white-space: nowrap;
    border: 1px solid;
  }

  .source--yamareco {
    background: #eef9f0;
    border-color: #c8e9d0;
    color: #2f7d46;
  }

  .source--sanko {
    background: #ffffdd;
    border-color: #eeee77;
    color: #8d8548;
  }

  .source--youtube {
    background: #ffeeee;
    border-color: #ffd6d6;
    color: #b3261e;
  }

  .source--blog {
    background: #f0f7ff;
    border-color: #cfe2ff;
    color: #0b5ed7;
  }

  .source--smaho {
    background: #fff0ff;
    border-color: #dd7ed4;
    color: #ed5be7;
  }

  .article-box h4 {
    font-size: 100%;
    margin: 10px 0 5px;
  }

  .article-box h6 {
    font-size: 100%;
    margin: 10px 0 5px;
  }

  .article-box img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    /*  border-radius: 10px; */
    display: block;
  }

  .article-box h3 {
    font-size: 1.2em;
    margin: 10px 0 0px;
    text-align: left;
  }

  .article-box h3 a {
    color: #333;
    text-decoration: none;
  }

  .article-box h3 a:hover {
    text-decoration: underline;
  }

  .article-box h5 {
    font-size: 90%;
    margin: 0px 0 5px;
    font-weight: normal;
    text-align: left;
  }

  .article-box p {
    font-size: 90%;
    color: #555;
    text-align: justify;
    display: none;
  }

  .overflow-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 3;
  }

  .up-sign {
    color: #cc0000;
    font-weight: bold;
    margin-left: 0.5em;
  }

  .movie-box h4 {
    font-size: 100%;
    margin: 10px 0 5px;
  }

  .movie-box h6 {
    font-size: 100%;
    margin: 10px 0 5px;
  }

  .movie-box img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    /*  border-radius: 10px; */
    display: block;
  }

  .movie-box h3 {
    font-size: 1.2em;
    margin: 10px 0 0px;
  }

  .movie-box h3 a {
    color: #333;
    text-decoration: none;
  }

  .movie-box h3 a:hover {
    text-decoration: underline;
  }

  .movie-box h5 {
    font-size: 90%;
    margin: 0px 0 5px;
  }

  /* スマホ画面（幅600px以下）で縦並びに変更 */
  @media screen and (max-width: 600px) {
    .meta-info {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: .5rem;
      margin-top: .25rem;
    }

    .article-container {
      display: flex;
      flex-wrap: nowrap;
      /* 1行で流す */
      overflow-x: auto;
      /* 横スクロール */
      -webkit-overflow-scrolling: touch;
      gap: 12px;
      /* 子の間隔は gap 統一 */
      padding: 0 12px;
      /* 左右バッファ */
      margin: 0;
      /* 左端欠け防止 */
      scroll-snap-type: x mandatory;
      /* スナップ */
      scroll-padding-left: 12px;
      /* 左端でピタッ */
      justify-content: flex-start !important;
    }

    .article-box,
    .movie-box {
      /* 「ほぼ1枚＋次のチラ見せ」幅。好みで 78–88vw を微調整 */
      flex: 0 0 82vw;
      max-width: 82vw;
      box-sizing: border-box;
      scroll-snap-align: start;
      margin: 0;
      /* 余白は gap に統一 */
    }

    .article-box img,
    .movie-box img {
      display: block;
      width: 100%;
      height: auto;
      max-width: 100%;
      object-fit: cover;
      /* サムネ風に整える（不要なら外す） */
      /*  border-radius: 10px; */
    }

    /* タイトルやメタの基本（既存値は維持） */
    .article-box h3,
    .movie-box h3 {
      margin: 10px 0 0;
    }

    .meta-info {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: .5rem;
      margin-top: .25rem;
    }
  }

  /* ========== Desktop Up (≥ 960px)：3列相当で折り返し ========== */
  @media (min-width: 960px) {
    .article-container {
      flex-wrap: wrap;
      /* 折り返す */
      overflow-x: visible;
      /* 横スクロールはやめる */
      gap: 20px;
      justify-content: center;
      /* 中央寄せ（PCだけ） */
      scroll-snap-type: none;
      /* スナップ無効 */
      padding: 0;
      /* PCは内側余白不要なら0 */
    }

    .article-box,
    .movie-box {
      flex: 0 0 300px;
      /* 300pxカードで3列相当 */
      max-width: 300px;
    }
  }
}

.flame-text {
  display: inline-block;
  border: 2px solid #888888;
  font-size: 130%;
  color: #888;
  padding: 4px;
  margin: 0 auto;
  width: 70%;
  margin-top: 48px;
  margin-bottom: 60px;
}

.flame-text a,
.flame-text a:link,
.frame-text a:hover {
  color: #666;
}

.flame-text a:visited {
  text-decoration: none;
}

/* ============ 取組企画 ============ */
/* 札幌150峰、札幌の沢50、山びこ花年表　*/
.projects-intro {
  display: block;
  /*  margin: var(--space-6) auto; */
  margin-bottom: 0;
  text-align: left;
}

@media screen and (max-width: 600px) {
  projects-intro {
    margin-bottom: 0;
  }
}

.projects-intro .pi-item:not(.reverse) .pi-body {
  align-items: flex-end;
  /* 右側の行は右端寄せ */
  text-align: right;
}

.pi-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
  /* 行間 */
}

/* 行（PCは2カラム、スマホは縦積み） */
.pi-item {
  display: grid;
  /*  align-items: center; */
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-areas: "media body";
  gap: 24px;
}

.pi-item.reverse {
  grid-template-columns: 0.8fr 1.2fr;
  grid-template-areas: "body media";
}

/* 画像ボックス：16:9でトリミング */
.pi-media {
  grid-area: media;
  aspect-ratio: 16/7;
  overflow: hidden;
}

.pi-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 1px solid #eee;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
}

.pi-bodyx {
  grid-area: body;
  background: #eee;
  padding: 14px 16px;
  /*  box-shadow: 0 2px 6px rgba(0, 0, 0, .1); */
  /* border-radius: var(--radius); */
}


.pi-item:not(.reverse) .pi-body {
  grid-column: 2;
}

.pi-item:not(.reverse) .pi-media {
  grid-column: 1;
}

.pi-item.reverse .pi-media {
  grid-column: 2;
}

.pi-item.reverse .pi-body {
  grid-column: 1;
}

/* 説明カード */
.pi-body {
  background: #eeeeee;
  padding: 14px 16px 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
  text-align: left;
}

.pi-badge,
.pi-title {
  display: block;
  width: auto;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 999px;
  margin: 4px 8px 4px 4px;
}

.pi-badge {
  background: #fff;
  color: #888;
  font-weight: 700;
  font-size: .9rem;
}

.pi-title {
  background: #fff;
  color: #888;
  font-size: 1.2rem;
  line-height: 1.35;
}

.pi-text {
  display: block;
  margin: 0;
  color: var(--ink-soft);
  font-size: .9rem;
  padding: 6px;
  margin-top: .6em;
}

.pi-item {
  position: relative;
}

.pi-media {
  position: relative;
  z-index: 2;
}

.pi-body {
  text-align: left;
  display: flex;
  /* 子要素を左端に吸着 */
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

/* カードを画像より前面に */
:root {
  --pi-overlap: 60px;
  /* 左右の重なり量（px） 既存があればそのまま */
  --pi-drop: 40px;
  /* 下方向のはみ出し量（px） */
  --pi-body-min-h: 200px;
  /* 説明の最小縦幅（見た目調整） */
}

/* 画像が左・説明が右（通常の行）→ カードを左へ寄せて少し重ねる */
.pi-item:not(.reverse) .pi-body {
  margin-left: calc(var(--pi-overlap) * -1);
}

/* 画像が右・説明が左（reverse行）→ カードを右へ寄せて少し重ねる */
.pi-item.reverse .pi-body {
  margin-right: calc(var(--pi-overlap) * -1);
}

.projects-intro .pi-item {
  position: relative;
  overflow: visible;
  padding-bottom: var(--pi-drop);
}

.projects-intro .pi-media {
  position: relative;
  z-index: 2;
}

.projects-intro .pi-body {
  position: relative;
  z-index: 1;
  min-height: var(--pi-body-min-h);
  transform: translateY(var(--pi-drop));
}

/* 左右の“少し重ね”はそのまま（不要なら 0 に） */
.projects-intro .pi-item:not(.reverse) .pi-body {
  margin-left: calc(var(--pi-overlap) * -1);
}

.projects-intro .pi-item.reverse .pi-body {
  margin-right: calc(var(--pi-overlap) * -1);
}


/* 余白・レイアウトのレスポンシブ */
@media (max-width: 760px) {
  .pi-item {
    display: block;
    grid-template-columns: 1fr;
    grid-template-areas:
      "body"
      "media";
    /* 説明→画像 に統一（HTML順） */
    gap: 6px;
  }

  .pi-item .pi-media,
  .pi-item .pi-body {
    grid-column: auto;
    grid-row: auto;
  }

  .pi-body {
    margin-top: 4px;
  }

  .projects-intro .pi-item {
    display: block;
    padding-bottom: 0;
    margin-bottom: -16px;
  }

  .projects-intro .pi-body {
    transform: none;
    min-height: auto;
    margin-left: 0;
    margin-right: 0;
    align-items: flex-start;
    text-align: left;
  }

  .pi-body::after {
    left: 8px;
    width: calc(100% - 16px);
  }

  .pi-item:not(.reverse) .pi-body,
  .pi-item.reverse .pi-body {
    margin-left: 0;
    margin-right: 0;
  }

}

@media (max-width: 820px) {

  .projects-intro .pi-item:not(.reverse) .pi-body,
  .projects-intro .pi-item.reverse .pi-body {
    margin-left: 0;
    margin-right: 0;
  }

  .projects-intro {
    padding-inline: 12px;
    /* 端の貼り付き防止 */
  }
}


/*===== link(リンク集) =====*/
#link {
  width: auto;
  position: relative;
  padding: 3.0rem 0 0;
  text-align: left;
  margin-left: 10vw;
  line-height: 120%;
}

#link h2 {
  padding: 0.2em 0.5em;
  /*文字の上下 左右の余白*/
  color: #222222;
  /*文字色*/
  border-bottom: solid 4px #cc6600;
  /*下線*/
  font-weight: bold;
  font-size: 120%;
  margin: 0
}

#link ul {
  margin: 0 20px 30px 20px;
  line-height: 150%;
  font-weight: 400;
  text-align: left;
}

#link ul li {
  list-style-type: square;
  font-size: 100%;
}

#link span.memo {
  margin-left: 15px;
  font-size: 86%;
  color: #222288;
}

@media screen and (max-width: 768px) {
  #link ul {
    margin-left: 0px;
  }

  #link {
    margin-left: 6vw;
  }
}

#link li a:link {
  color: #333;
}

#link li a:hover {
  color: #d38003;
}

#link li a:visited {
  color: #603000;
}

/*===== faq（よくある質問） =====*/
#faq {
  align-items: stretch;
  font-size: 100%;
  letter-spacing: 0.03em;
  line-height: 140%;
  padding-top: calc(var(--header-height) + var(--crumb-height));
}

#faq .wrapper {
  margin: 0px auto 50px;
  padding: 0px;
  max-width: min(960px, 100%);
}

@media screen and (max-width: 768px) {
  #faq {
    margin-left: 0px;
    margin-right: 0px;
  }

}

#faq details {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 10px 0;
  background: #fff;
  text-align: left;
}

#faq summary {
  cursor: pointer;
  font-weight: 600;
  outline: none;
}

#faq summary::-webkit-details-marker {
  display: none;
}

#faq summary::after {
  content: "＋";
  float: right;
}

#faq details[open] summary::after {
  content: "ー";
}

#faq .a {
  margin: 10px 0 0;
  line-height: 1.8;
}


/*===== notice(お知らせ） =====*/
#notice {
  margin: 30px 24px 12px 24px;
  padding: 1em 0em 0 1em;
  border: 0px solid #ccc;
  background: #fff;
  /*  opacity: 0.9; */
}

#notice h4 {
  font-size: 110%;
  letter-spacing: 0.2em;
  border-bottom-width: 3px;
  border-bottom-style: solid;
  border-bottom-color: #976600;
  padding-left: 10px;
  padding-top: 0px;
  padding-right: 10px;
  /*	margin-top: 0; */
  margin: 0 16px 0 0px;
}

#notice ul {
  font-size: 100%;
  text-align: left;
  margin: 10px 0 0 0;
  padding-top: 0px;
  padding-right: 0px;
  padding-bottom: 0px;
  padding-left: 0px;
}

#notice ul li {
  margin-bottom: 0;
  list-style-type: none;
  border-bottom-width: 1px;
  border-bottom-style: dashed;
  border-bottom-color: #ccc;
  padding-left: 0;
  text-indent: 0;
  /* ここから新レイアウト */
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.6em 0;
}

/* 日付：PCでは固定幅・数字を揃えて読みやすく */
#notice ul li .date {
  flex: 0 0 auto;
  /* 横幅を確保（お好みで 7.5em?9em） */
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #333;
}

/* 件名：横幅いっぱいに */
#notice ul li .subj {
  flex: 1 0 10em;
  display: block;
  font-weight: 600;
}

/* --- スマホ（狭幅）では縦積み --- */
@media (max-width: 640px) {
  #notice {
    margin: 30px 6px 12px 6px;
  }

  #notice ul li {
    flex-direction: column;
    align-items: stretch;
    /* 縦積み */
    gap: 0.25rem;
  }

  #notice ul li .date {
    flex: none;
    display: block;
    width: 100%;
    padding-left: 0;
    /* 行頭に独立表示 */
  }

  #notice ul li .subj {
    font-weight: 700;
    /* 見出しっぽく少し強調（任意） */
    flex: 1 0 auto;
    display: block;
    width: 100%;
    padding-left: 0;
  }

  /* <br>を除去する 
      #notice ul li br {
        display: none;
      }
      */
}

#notice ul li span {
  /*日付の右スペース */
  padding-left: 0em;
}

#notice a {
  /*--- リンクの指定 ---*/
  color: #039;
  text-decoration: underline;
}

#notice a:link {
  /*--- リンクの指定 ---*/
  color: #039;
  text-decoration: underline;
}

#notice a:hover {
  /*--- リンクの指定 ---*/
  color: #333;
  background-color: #E0D77B;
}

/*NEWマーク*/
.new {
  font-size: 90%;
  color: #f00;
  font-style: italic;
  margin: 0;
}


/*===== nyukai（入会案内） =====*/
main#nyukai {
  padding: 60px 0px 40px;
}

.nyukai-list {
  padding: 10px 10px;
  margin: 0;
  text-align: left;
}

/*===== nyumon（入門訓練） =====*/
main#nyumon {
  padding: 60px 10px 30px 10px;
}

#nyumon .text1,
#nyumon .text2 {
  margin: var(--space-3) 0;
  padding: 0;
}

#nyumon .text1 {
  text-align: left;
  font-weight: 700;
  color: #0a3172;
}

#nyumon .text2 {
  font-size: 110%;
  text-align: left;
  font-weight: 600;
  color: #333;
  padding: 0 12px;
}

.kunren-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin: var(--space-4) 0 var(--space-5);
}

.kunren-box {
  display: flex;
  flex-direction: column;
  /* mobile: stack */
  gap: var(--space-3);
  background: #f9fafb;
  /*  border: 1px solid #e5e7eb;
      border-radius: var(--radius); */
  padding: var(--space-4);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.kunren-box img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  /*  border-radius: calc(var(--radius) - 2px); */
}

.kunren-box .desc {
  margin: 0 12px;
  color: #333;
  font-size: 0.95rem;
  text-align: left;
}

@media (min-width: 640px) {
  #nyumon h2 {
    font-size: 1.25rem;
  }

  .kunren-box {
    flex-direction: row;
    /* desktop/tablet: image left, text right */
    align-items: flex-start;
  }

  .kunren-box img {
    max-width: 280px;
    flex: 0 0 280px;
  }

}

@media (min-width: 960px) {
  main#nyumon {
    margin: 0 auto;
    max-width: 960px;
  }

  .kunren-box img {
    max-width: 320px;
    flex-basis: 320px;
  }

}

/*===== profile（会の紹介） =====*/
#profile {
  width: 100%;
  position: relative;
  padding: 60px 0 var(--space-6);
  color: var(--ink);
}

/* Hero */
.hero-img {
  position: relative;
  overflow: hidden;
  margin: 0 20px;
}

.hero-img img {
  display: block;
  /* 画像下の隙間防止 */
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  /* 画像を中央寄せ */
  z-index: 10;
}

.hero-img p {
  width: min(960px, 100%);
  /* = max-widthの代わりに幅を直接制限 */
  padding: 16px 0;
  position: absolute;
  top: 50%;
  left: 50%;
  /* 中央基準に変更 */
  transform: translate(-50%, -50%);
  /* 縦横の中央揃え */
  text-align: center;
  font-size: 1.2em;
  color: #fff;
  background: #333;
  opacity: .5;
  z-index: 12;
  display: none;
  /* 本テキストは非表示　*/
}

.hero-text {
  position: relative;
  overflow: hidden;
  width: auto;
  margin: 20px 20px;
}

@media (max-width: 600px) {
  .hero-text {
    margin: 0 auto;
    max-width: 960px;
  }

  .hero-text img {
    max-width: 320px;
    flex-basis: 320px;
  }

  .hero-img img {
    width: 100%;
  }

  .hero-img p {
    font-size: 1.0em;
    width: 100%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 0;
  }
}

.hero-text h1 {
  margin: 20px 0 var(--space-2);
  font-size: 1.2rem;
  letter-spacing: .06em;
  text-align: center;
}

.hero-text p {
  margin: 10px auto;
  padding: 0 4%;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: center;
}

#profile .card p {
  margin: 0 0 var(--space-3);
  text-align: left;
}

/* 箇条書き */
#profile .list {
  padding-left: 0;
  margin: 0;
  text-align: left;
}

#profile .list li {
  margin: 0 0 var(--space-2);
  line-height: 1.8;
}

table.kaisanko {
  width: 100%;
  margin: 20px auto;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.90rem;
  /* お好みで */
  line-height: 1.2;
}

table.kaisanko th,
table.kaisanko td {
  padding: 10px;
  text-align: center;
}

table.kaisanko tr:nth-child(odd) {
  background-color: #efefef;
}

/*===== hana（花年表） =====*/
#hana .intro {
  text-align: center;
  margin: 0 1rem 1rem 1rem;
  padding: 1.0rem 1.0rem;
  background: #f9e8f4;
  color: #777;
  border-radius: 12px;
}

#hana .intro h1 {
  font-size: 140%;
  margin-bottom: .5rem;
}

#hana .intro img {
  margin: 0 auto;
}

#hana .intro p {
  margin: .5rem 0;
  text-align: left;
}

#hana h4 {
  text-align: center;
  margin: 1.0rem 0 0.2rem 0;
  font-size: 1.1rem;
}

/* テーブルラッパー（スマホ横スクロール対応） */
.table-wrapper {
  overflow-x: auto;
  margin: 0rem 1rem 1rem 1rem;
}

/* 表のスタイル */
.hana-list {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  min-width: 600px;
}

.hana-list th {
  background-color: #ddd;
  height: 30px;
  border-style: none;
  color: #113311;
  border: 1px solid #ccc;
}

.hana-list tr td {
  background-color: #fafafa;
  height: 30px;
  border-style: none;
  font-weight: bold;
  color: #113311;
  border: 1px solid #ddd;
}

.hana-list tr td a:link {
  color: #777;
}

.hana-list tr td a:visited {
  color: #0603d1;
}

.hana-list tr td a:hover {
  color: #d38003;
}

.hana-list .name {
  background-color: #eee;
  color: #555;
}

.hana-list .white {
  color: #ffffff;
}

/*===== sawa50（札幌の沢50） =====*/
#sawa50 caption {
  text-align: center;
  margin: 1rem;
  font-size: 1.2rem;
  line-height: 150%;
}

#sawa50 h4 {
  text-align: center;
  margin: 1.0rem 0 0.2rem 0;
  font-size: 1.1rem;
}

/* テーブルラッパー（スマホ横スクロール対応） */
.table-wrapper {
  overflow-x: auto;
  margin: 0rem 1rem 1rem 1rem;
}

@media (max-width: 640px) {
  .table-wrapper {
    overflow-x: auto;
    margin: 0rem 0rem 1rem 0rem;
  }
}

/* 表のスタイル */
.mountain-list {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  color: #444;
  min-width: 600px;
}

.mountain-list a:link {
  color: blue;
}

.mountain-list a:visited {
  color: #603000;
}

.mountain-list a:hover {
  color: #d38003;
}

.mountain-list th,
.mountain-list td {
  border: 1px solid #ccc;
  padding: 4px 0px;
  text-align: center;
}

.mountain-list thead {
  background: #ddd;
}

.mountain-list tbody tr:nth-child(odd) {
  background: #fdfdfd;
}

.mountain-list tbody tr:nth-child(even) {
  background: #f5f5f5;
}

/*===== 150pou（札幌150峰） =====*/
#pou150 .intro {
  text-align: center;
  margin: 0 1rem 1rem 1rem;
  padding: 1.0rem 1.5rem;
  background: #f2f3ee;
  color: #555;
  border-radius: 12px;
}

#pou150 .intro h1 {
  font-size: 140%;
  margin-bottom: .5rem;
}

#pou150 .intro p {
  margin: .3rem 0;
  text-align: left;
}

#pou150 h4 {
  text-align: center;
  margin: 1.0rem 0 0.2rem 0;
  font-size: 1.1rem;
}

#pou150 .memo {
  text-align: left;
  padding-left: 4px;
}

#pou150 .last-date {
  text-align: right;
  font-size: 12px;
  color: #666;
}

/* 地図リンク */
.map-link {
  background: #ffcc00;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 400;
  text-decoration: none;
}

.map-link:hover {
  background: #ffaa00;
}

.map-link-indiv {
  text-decoration: none;
}

.map-icon {
  color: #cc8800;
}

/* テーブルラッパー（スマホ横スクロール対応） */
#pou150 .table-wrapper {
  overflow-x: auto;
  margin: 0rem 1rem 1rem 1rem;
}

@media (max-width: 640px) {
  #pou150 .table-wrapper {
    margin: 0rem 0rem 1rem 0rem;
  }
}

/* 表のスタイル */
#pou150 .mountain-list {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

#pou150 .mountain-list th,
#pou150 .mountain-list td {
  border: 1px solid #ddd;
  padding: 4px 6px;
}

#pou150 .mountain-list thead {
  background: #ccc;
}

#pou150 .mountain-list tbody tr:nth-child(odd) {
  background: #fdfdfd;
}

#pou150 .mountain-list tbody tr:nth-child(even) {
  background: #f5f5f5;
}

/*===== weather（気象随筆・雲見の蛙） =====*/
#weather .intro {
  text-align: center;
  margin: 0 0 1rem 1rem;
  padding: 0rem 1.5rem;
  background: #f8f8ff;
  color: #333;
  border-radius: 12px;
}

#weather .intro h1 {
  font-size: 140%;
  margin-bottom: .5rem;
}

#weather .intro p {
  margin: .8rem auto;
  text-align: left;
}

#weather .intro img {
  margin: 0 auto;
  width: 400px;
}

#weather caption {
  text-align: center;
  margin: 1rem;
  font-size: 1.1rem;
  line-height: 150%;
}

/* テーブルラッパー（スマホ横スクロール対応） */
.panel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.0rem 1.0rem;
  color: #444;
  margin: 0 20px;

}

#panel {
  width: 600px;
  text-align: left;
  padding: 5vw;
}

#panel dt {
  border-bottom: solid 0px white;
  color: black;
  cursor: pointer;
  margin: 0;
  padding: 6px;
  font-size: 105%;
  font-weight: bold;
}

#panel dd {
  border: solid 0px Silver;
  margin: 0 0 0 60px;
  padding: 0px;
}

#panel dd a:link {
  color: darkblue;
}

#panel dd a:visited {
  color: #603000;
}

#panel a:hover {
  color: #d38003;
}

/*===== sanko.php（これまで登った山） =====*/
#nenbetsu {
  margin: 0;
  background: #f8fafc;
  color: #0f172a;
  padding-top: 0;
  /* ヘッダの高さ分＋α */
}

/*
main#nenbetsux {
  padding-top: 0 !important;
}
*/
#nenbetsu .wrap {
  width: min(1100px, 94%);
  margin: 0 auto;
  padding: 0;
  overflow-x: auto;
}

#nenbetsu h2 {
  display: none;
}

/* 年の大見出しは非表示 */
#nenbetsu .section {
  overflow-x: auto;
  color: #333;
}

/* 月ごとの塊を横スクロール可に */

#nenbetsu .resptable {
  width: 100%;
  font-size: 14px;
  color: #333;
  border-collapse: collapse;
  background: #f8fafc;
  min-width: 640px;
  /* 560〜720pxで調整可 */
  table-layout: fixed;
}

#nenbetsu .resptable thead {
  display: none;
}

/* カラム見出しを隠す */
#nenbetsu .resptable th,
#nenbetsu .resptable td {
  padding: 0;
  border-bottom: 1px solid #e5e7eb;
}

#nenbetsu .resptable td:nth-child(1) {
  /* 山名 */
  white-space: normal;
  text-align: left;
  /* 長文折返しOK */
}

#nenbetsu .resptable td:nth-child(2),
#nenbetsu .resptable td:nth-child(3) {
  /* 人数・形態 */
  white-space: nowrap;
  text-align: left;
}

:root {
  --nen-col1: 46%;
  /* 山名 */
  --nen-col2: 2rem;
  /* 人数 */
  --nen-col3: 9rem;
  /* 形態 */
}

#nenbetsu .resptable td:nth-child(1) {
  width: var(--nen-col1);
}

#nenbetsu .resptable td:nth-child(2) {
  width: var(--nen-col2);
}

#nenbetsu .resptable td:nth-child(3) {
  width: var(--nen-col3);
}

/* 月見出し（yyyy年m月）は表示＆統一デザイン */
#nenbetsu .section h3 {
  display: block;
  margin: 0;
  padding-left: 0;
  padding-bottom: 6px;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.year-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px auto 25px;
  justify-content: left;
  padding: 48px 8px 0 8px;
  margin-top: 8px;
}

.year-selector .chip {
  display: inline-block;
  padding: 6px 14px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.95em;
  transition: background 0.2s ease, transform .02s ease;
}

.year-selector .chip.active {
  background: #0ea5e9;
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .25) inset;
  pointer-events: none;
  /* 任意：クリック無効 */
}

.year-selector a.active {
  background: #0ea5e9;
  font-weight: 700;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25);
  cursor: default;
  pointer-events: none;
}


/*===== contact(お問い合わせ) =====*/
#contact {
  margin: 0;
  background: #f8fafc;
  color: #0f172a;
  padding-top: 30px;
}

#contact .wrap {
  max-width: 720px;
  margin: 0 auto;
}

#contact .field {
  margin: 14px 0;
}

#contact h1 {
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  margin: 40px 0 16px 0;
  color: #0f172a;
}

#contact .field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

#contact .field-error {
  border-color: #c00 !important;
  outline-color: #c00;
}

#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

#contact textarea {
  min-height: 160px;
  resize: vertical;
}

.priv-msg {
  margin-top: 40px;
  margin-bottom: 20px;
}

.priv-msg h5 {
  text-align: left;
  font-size: 16px;
  color: #333;
}

.priv-msg p {
  text-align: left;
  font-size: 15px;
  color: #333;
}

.error {
  color: #c00;
  margin: .25rem 0 .75rem;
  font-size: .95em;
}

.alert {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.ok {
  background: #f8fafc;
  border: 1px solid #f8fafc;
  padding: 12px;
  border-radius: 8px;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary {
  background: #2e7d32;
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(0.95);
}

/* ハニーポットは視覚的に非表示（スクリーンリーダーにも隠す） */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/*===== 山行報告表示(/bbs39/view.php?no=999)　=====*/

#sanko-disp {
  background: #fff;
  padding-top: 0;
}

#sanko-disp h2 {
  margin: 20px auto;
  width: fit-content;
  color: #777;
  background-image: url("/gif/yamalogo.ico");
  background-repeat: no-repeat;
  background-size: 32px;
  background-position: 16px center;
  background-color: #f5f4f1;
  border-radius: 999px;
  padding: 10px 20px 10px 60px;
}

.sanko-article-wrap {
  margin: 0 20px;
  padding: 8px 12px;
  background: #f5f4f1;
  border-radius: 8px;
}

.sanko-header {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: baseline;
  margin: 0.5rem;
}

.sanko-no {
  font-weight: bold;
  margin-right: .5rem;
}

.sanko-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin: .3rem 0.3rem;
}

.sanko-meta {
  font-size: .85rem;
  color: #555;
}

.sanko-body {
  margin: .5rem;
  line-height: 1.7;
  text-align: left;
}

.sanko-photos {
  max-width: min(1100px, 100%);
  /* 本文幅いっぱい（PC） */
  margin: 0 auto .75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  /* 1枚あたりを少し大きめにして横並び */
  gap: .15rem;
}

.sanko-photo {
  text-align: center;
  position: relative;
  overflow: hidden;
  /* 拡大しても枠からはみ出さないようにする */
}

.sanko-photo img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto .15rem;
  transition: transform .2s ease, box-shadow .2s ease;
}

/* PCなどマウス操作がある環境だけホバー拡大 */
@media (hover: hover) and (pointer: fine) {
  .sanko-photo img:hover {
    transform: scale(1.2);
    /* 少し大きめに拡大 */
    box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
    cursor: zoom-in;
  }
}

.sanko-photo-caption {
  font-size: .8rem;
}

/* スマホ：1カラム＋ほぼ全幅表示 */
@media (max-width: 600px) {
  .sanko-article-wrap {
    margin: 1rem -.5rem;
    padding: 1rem .75rem;
  }

  .sanko-photos {
    grid-template-columns: 1fr;
  }

  .sanko-photo img {
    width: 100%;
  }

  .sanko-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin: .5rem;
  }

  .sanko-meta {
    font-size: .85rem;
    color: #555;
    margin-left: 0.5rem;
  }

  .sanko-body {
    margin: 10px;
    padding: 10px;
    line-height: 1.7;
    text-align: left;
  }
}

/* 終わり */