@charset "utf-8";

/* フォント（共通） */
body {
  font-family: 'Noto Sans JP', sans-serif;
}

h1 {
  font-weight: 700; /* 太字 */
  font-size: 2rem;
}

p {
  font-weight: 400; /* 通常 */
  font-size: 1rem;
}

.bold {
  font-weight: 700;
}

.black {
  font-weight: 900;
}

/* カラー（共通） */
:root {
  --cat-sakata: #7abcff;
  --cat-sakata-dark: #3d9eff;

  --cat-tsuruoka: #ff7a7a;
  --cat-tsuruoka-dark: #ff3d3d;

  --cat-mikawa: #7aff7a;
  --cat-mikawa-dark: #3dff3d;

  --cat-syounai: #ffbc7e;
  --cat-syounai-dark: #ff9e3d;

  --cat-yusa: #ff7abc;
  --cat-yusa-dark: #ff3d9e;

  --line-h: 24px;
}

/*ヘッダー*/
header {
  position: relative;
  overflow: visible;
  margin-bottom: var(--line-h);
}

header.toppage {
  width: 100%;
  aspect-ratio: 1000 / 480;
  min-height: 112px;
  max-height: 480px;
  background: url(../img/header_bg.gif) repeat-x;
  background-size: auto 100%;
}

header.toppage .inner {
  background-image: url('../img/top_image.jpg');
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: contain;
}

header.normal {
  width: 100%;
  height: 112px;
  background: #ff3;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .inner {
  max-width: 1080px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* トップメニュー */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  position: relative;
}

.top-logo {
  flex: 0 1 auto;
}

.logo-img {
  display: block;
  height: auto;
  max-height: 48px;
  max-width: 100%;
}

.nav-toggle {
  display: none;
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  padding: 8px;
  gap: 6px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: #333;
  transition: transform .2s ease, opacity .2s ease;
}

.global-menu {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.global-menu ul {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.global-menu a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  color: #333;
  text-decoration: none;
  transition: color .2s ease;
}

.global-menu li:not(:first-child)::before {
  content: "｜";
  color: #666;
  margin: 0 16px;
}

.global-menu a::before {
  content: "★";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-size: 16px;
  color: #f66;
  opacity: 0;
  transition: all .3s ease;
}

.global-menu a:hover::before,
.global-menu a:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.global-menu a:hover,
.global-menu a:focus-visible {
  color: #f66;
}

/* カテゴリーメニュー */
/* ::: （リセット） ::: */
.category-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-menu a {
  text-decoration: none;
  color: #fff;
}

/* ::: （共通） ::: */
.category-menu {
  position: relative;
  padding: 0 16px;
}

.category-menu ul {
  display: flex;
  gap: 2px;
  align-items: center;
}

.category-menu li {
  flex: 0 0 136px;
  max-width: 136px;
}

.category-menu a {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 0;
  border-radius: 5px 5px 0 0;
  font-weight: 700;
  letter-spacing: .02em;
  transition: filter .2s ease, transform .2s ease;
}

/* ::: （色分け） ::: */
/* --- デフォルト（薄い色） --- */
.category-menu a.sakata   { background: var(--cat-sakata); }
.category-menu a.tsuruoka { background: var(--cat-tsuruoka); }
.category-menu a.mikawa   { background: var(--cat-mikawa); }
.category-menu a.syounai  { background: var(--cat-syounai); }
.category-menu a.yusa     { background: var(--cat-yusa); }

/* --- bodyクラスがついた場合（濃い色で強調） --- */
body.category-sakata   .category-menu a.sakata   { background: var(--cat-sakata-dark); }
body.category-tsuruoka .category-menu a.tsuruoka { background: var(--cat-tsuruoka-dark); }
body.category-mikawa   .category-menu a.mikawa   { background: var(--cat-mikawa-dark); }
body.category-syounai  .category-menu a.syounai  { background: var(--cat-syounai-dark); }
body.category-yusa     .category-menu a.yusa     { background: var(--cat-yusa-dark); }

/* ::: （ホバー時） ::: */
.category-menu a.sakata:hover,
.category-menu a.sakata:focus-visible {
  background: var(--cat-sakata-dark);
}

.category-menu a.tsuruoka:hover,
.category-menu a.tsuruoka:focus-visible {
  background: var(--cat-tsuruoka-dark);
}

.category-menu a.mikawa:hover,
.category-menu a.mikawa:focus-visible {
  background: var(--cat-mikawa-dark);
}

.category-menu a.syounai:hover,
.category-menu a.syounai:focus-visible {
  background: var(--cat-syounai-dark);
}

.category-menu a.yusa:hover,
.category-menu a.yusa:focus-visible {
  background: var(--cat-yusa-dark);
}

/* ぺこっ */
.category-menu a:hover,
.category-menu a:focus-visible {
  transform: translateY(2px);
  outline: 0;
}

/* 下ライン */
/* ::: （bodyクラスで切替） ::: */
body.category-sakata {
  --line-color: var(--cat-sakata);
  --line-color-dark: var(--cat-sakata-dark);
}

body.category-tsuruoka {
  --line-color: var(--cat-tsuruoka);
  --line-color-dark: var(--cat-tsuruoka-dark);
}

body.category-mikawa {
  --line-color: var(--cat-mikawa);
  --line-color-dark: var(--cat-mikawa-dark);
}

body.category-syounai {
  --line-color: var(--cat-syounai);
  --line-color-dark: var(--cat-syounai-dark);
}

body.category-yusa {
  --line-color: var(--cat-yusa);
  --line-color-dark: var(--cat-yusa-dark);
}

header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(-1 * var(--line-h));
  height: var(--line-h);
  background: var(--line-color-dark, var(--cat-sakata));
  transition: background-color .25s ease;
  pointer-events: none;
}

header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(-1 * var(--line-h) - var(--shadow-h, 8px));
  height: var(--shadow-h, 8px);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, .16),
    rgba(0, 0, 0, 0)
  );
  pointer-events: none;
}

/* ::: （カテゴリホバー時） ::: */
header:has(.category-menu a.sakata:hover)::after,
header:has(.category-menu a.sakata:focus-visible)::after {
  background: var(--cat-sakata-dark);
}

header:has(.category-menu a.tsuruoka:hover)::after,
header:has(.category-menu a.tsuruoka:focus-visible)::after {
  background: var(--cat-tsuruoka-dark);
}

header:has(.category-menu a.mikawa:hover)::after,
header:has(.category-menu a.mikawa:focus-visible)::after {
  background: var(--cat-mikawa-dark);
}

header:has(.category-menu a.syounai:hover)::after,
header:has(.category-menu a.syounai:focus-visible)::after {
  background: var(--cat-syounai-dark);
}

header:has(.category-menu a.yusa:hover)::after,
header:has(.category-menu a.yusa:focus-visible)::after {
  background: var(--cat-yusa-dark);
}

/* 検索 */
.search {
  position: absolute;
  right: 20px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search select {
  padding: 8px;
  font-size: 14px;
}

.search button {
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
}

/* ヘッダー・スマホ対応 */
@media (max-width: 768px) {

  /* ロゴ */
  .logo-img {
    max-height: 32px;
    height: auto;
    width: auto;
  }

  /* ハンバーガーボタン */
  .menu-btn {
    display: flex;
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    z-index: 1200;
  }

  /* ドロワーパネル */
  .global-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(80vw, 320px);
    background: #3cf;
    z-index: 1100;

    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .28s ease, opacity .28s ease;
    will-change: transform, opacity;  /* もたつき軽減 */

    box-shadow: -12px 0 24px rgba(0, 0, 0, .15);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
  }

  /* チェックONで開く */
  .nav-toggle:checked~.global-menu {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* リスト*/
  .global-menu ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 48px 0 32px;
    list-style: none;
  }

  .global-menu li {
    margin: 0;
  }

  .global-menu li:not(:first-child)::before {
    content: none;
  }

  /* リンク */
  .global-menu a {
    display: block;
    padding: 8px 0 8px 24px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: .01em;
    position: relative;
    transition: color .2s ease;
  }

  .global-menu a::before {
    content: "★";
    position: absolute;
    left: 0;  /* 左端に寄せる */
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    opacity: .8;
    transition: transform .2s ease;
  }

  .global-menu a:hover,
  .global-menu a:focus-visible {
    color: #000;
    outline: 0;
  }

  .global-menu a:hover::before,
  .global-menu a:focus-visible::before {
    transform: translateY(-50%) scale(1.2);
}

  /* ボタンアニメーション */
  .nav-toggle:checked+.menu-btn span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle:checked+.menu-btn span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked+.menu-btn span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* カテゴリーメニュー */
  .category-menu ul {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .category-menu li {
    flex: 1 1 0;
  }

  .category-menu a {
    white-space: nowrap;
    line-height: 1.1;
    font-size: clamp(12px, 3.6vw, 14px);
  }
}

/* メイン部分 */
.main-container {
  position: relative;
  margin: 0 auto;
  max-width: 1040px;
  min-height: 800px;
}

.main-container span {
  font-weight: 700;
  word-wrap: break-word;
}

/* トップページ */
.main-wrapper {
  max-width: 1000px;
  background-image: url('../img/img_top.webp');
  background-size: 100% auto;
  background-position: center calc(100% - 48px);
  background-repeat: no-repeat;
}

.main-text-container {
  width: 100%;
  margin-top: 80px;
  padding: 0 20px;
}

.main-text-large {
  color: #000;
  font-size: 64px;
}

.main-text-medium {
  color: #000;
  font-size: 36px;
}

.main-divider {
  width: 100%;
  border: 1px solid #333;
  margin: 4px auto 48px;
}

.main-text {
  color: #000;
  font-size: 16px;
  text-shadow: #Fff 2px 0 10px;
}

.main-text p {
  font-size: 18px;
  margin: 10px 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-under-text {
  text-align: right;
  margin: 120px auto;
  text-shadow: #Fff 2px 0 10px;
}

.main-under-text span {
  font-weight: 700;
  word-wrap: break-word;
}

.main-under-text .large {
  font-size: 64px;
}

.main-under-text .medium {
  font-size: 40px;
}

/* モバイル */
@media (max-width: 768px) {
  .main-text-large {
    font-size: 8vw;
    /* 画面幅の8%にする */
  }

  .main-text-medium {
    font-size: 5vw;
  }

  .main-text p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .main-text-large {
    font-size: 10vw;
    /* より小さい画面では大きくしすぎない */
  }

  .main-text-medium {
    font-size: 6vw;
  }

  .main-text p {
    font-size: 12px;
  }
}

.clear {
  clear: both;
  display: block;
  height: 1px;
}

/** おどる文字 **/
@keyframes bound-anim {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }

  100% {
    transform: translateY(12px);
  }
}

.bound span {
  display: inline-block;
  animation: .5s bound-anim ease-in infinite alternate;
}

.bound span:nth-child(5n+1) {
  animation-delay: 0s;
}

.bound span:nth-child(5n+2) {
  animation-delay: 0.2s;
}

.bound span:nth-child(5n+3) {
  animation-delay: 0.4s;
}

.bound span:nth-child(5n+4) {
  animation-delay: 0.6s;
}

.bound span:nth-child(5n+5) {
  animation-delay: 0.8s;
}

/* 装飾用 */
.bound-wrapper p {
  font-size: 24px;
  font-weight: bold;
}

@media screen and (max-width: 600px) {
  .bound-wrapper p {
    font-size: 16px;
    /* スマホが小さい場合はさらに縮小 */
  }
}

@media screen and (max-width: 400px) {
  .bound-wrapper p {
    font-size: 14px;
    /* 超小さいスマホ用 */
  }
}

/** カードコンテナ **/
.main-card-container {
  display: flex;
  flex-wrap: wrap;
  /* 横に並びきらない場合は折り返し */
  justify-content: space-between;
  /* 均等配置 */
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

/* 各カード */
.main-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 172px;
  /* カードの幅 */
}

.card-image-container {
  position: relative;
  max-width: 172px;
  margin-top: 80px;
}

.card-image-container img {
  width: 100%;
  height: auto;
  max-width: 172px;
}

.circle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.circle.sakata {
  background-color: #7abcff;
}

.circle.tsuruoka {
  background-color: #ff7a7a;
}

.circle.mikawa {
  background-color: #7aff7a;
}

.circle.syounai {
  background-color: #ffbc7e;
}

.circle.yusa {
  background-color: #ff7abc;
}

.card-text-container {
  font-size: 10px;
  max-width: 172px;
}

/* モバイル */
@media (max-width: 768px) {
  .main-card-container {
    flex-direction: column;
    /* 縦に並べる */
    align-items: center;
    /* 中央寄せ */
  }

  .main-card {
    display: flex;
    flex-direction: row;
    /* 画像とテキストを横並び */
    align-items: center;
    width: 100%;
    /* 親要素いっぱいに広げる */
    max-width: 500px;
    /* 最大幅を指定 */
    margin-bottom: 20px;
    /* カード間の余白 */
  }

  .card-image-container {
    flex: 0 0 32%;
    /* 画像部分の幅を40%に */
    max-width: 32%;
    /* 最大幅を40%に */
    margin: 0;
    /* マージンをリセット */
  }

  .card-image-container img {
    width: 100%;
    /* 画像をコンテナいっぱいに */
    height: auto;
    display: block;
  }

  .card-text-container {
    flex: 1;
    /* 残りの幅を使用 */
    width: auto;
    /* 幅を自動調整 */
    max-width: none;
    /* 172px の制限を解除 */
    padding: 8px;
    /* 余白 */
    font-size: 14px;
    /* モバイル向けに少し小さく */
  }
}

/* お知らせ表示 */
.news-section {
  max-width: 80%;
  margin: 160px auto 40px;
  padding: 20px;
  background: #fff;
}

.news-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 24pX auto 16px;
}

.news-item {
  margin-bottom: 16px;
  padding: auto 20px 4px;
  border-bottom: 2px dotted #666;
  display: flex;
  align-items: center;
  /* 表示チェックする */
}

.news-date {
  font-size: 14px;
  color: #333;
  margin-right: 24px;
  white-space: nowrap;
}

.news-link {
  font-size: 16px;
  color: #0073aa;
  text-decoration: none;
  flex-grow: 1;
}

.news-link:hover {
  text-decoration: underline;
}

/* 「もっと見る」のボタン */
.news-more {
  display: block;
  text-decoration: none;
  color: #999;
  /* 青色 */
  font-size: 14px;
  font-weight: bold;
  text-align: right;
  /* 右寄せ */
  margin-top: 10px;
  transition: color 0.3s ease;
}

.news-more:hover {
  color: #333;
  /* ホバー時に色を変更 */
  text-decoration: underline;
}

.news-divider {
  border: none;
  height: 1.5px;
  background-color: #666;
  width: 100%;
}

/** サイトマップ **/
.sitemap {
  margin-top: 160px;
}

.sitemap h2:first-letter {
  font-size: 150%;
  color: #3d9eff;
}

.sitemap h3 {
  padding: 2px;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}

.sitemap-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 20px;
  text-align: left;
}

.sitemap-column {
  flex: 1;
  min-width: calc(100% / 3 - 20px);
}

.sitemap-column ul {
  list-style: none;
  padding: 0;
}

.sitemap-column ul li {
  margin: 4px 0;
}

.sitemap-column ul li a {
  text-decoration: none;
  color: #666;
}

.sitemap-column ul li a:hover {
  color: #3d9eff;
}

/* モバイル対応（768px以下） */
@media (max-width: 768px) {
  .sitemap {
    flex-direction: column;
  }

  .sitemap-column {
    min-width: 96%;
  }
}

/* ロゴスライダー */
.logo-wrapper {
  display: flex;
  flex-direction: column;
  margin-top: 80px;
  gap: 32px;
  overflow: hidden;
  width: 100%;
  background-color: #fff;
}

.logo_ceiling,
.logo_floor {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
}

.logo-track {
  display: flex;
  gap: 32px;
  position: relative;
}

.logo-track img {
  height: 40px;
  max-height: 48px;
  display: inline-block;
}

/* フッター */
.footer {
  background: #333;
  color: #fff;
  padding: 48px 20px 24px;
  font-size: 14px;
  margin: 64px auto 0;
}

.footer-container,
.footer-copyright {
  max-width: 1080px;
  margin: 0 auto;
}

.footer-top {
  text-align: right;
  margin-bottom: 24px;
}

.footer-logo {
  max-height: 40px;
  height: auto;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 24px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: color .2s ease;
}

.footer-nav a:hover {
  color: #f66;
}

.footer-social {
  display: flex;
  gap: 24px;
}

.footer-social img {
  width: 32px;
  height: auto;
  transition: transform .3s ease, filter .3s ease;
}

.footer-social a:hover img,
.footer-social a:focus-visible img {
  transform: scale(1.2);
  filter: brightness(1.3);
}

.footer-copyright {
  text-align: center;
  margin-top: 48px;
  font-size: 8px;
  color: #ccc;
}

.footer-copyright a {
  color: #fff;
  text-decoration: none;
  transition: color .3s ease, transform .3s ease;
}

.footer-copyright a:hover,
.footer-copyright a:focus-visible {
  color: #f60;
  transform: scale(1.05);
}


/* 記事一覧ページのカードデザイン */
.category-page .main-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.category-page .post-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 300px;
  max-height: 340px;
  margin: 24px auto;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .category-page .post-card {
    width: calc(50% - 20px);
    /* 2列表示 */
  }
}

@media (max-width: 480px) {
  .category-page .post-card {
    width: 100%;
    /* 1列表示 */
  }
}

.category-title {
  display: block;
  font-weight: bold;
  margin-bottom: 24px;
  width: 100%;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.post-card a {
  text-decoration: none;
  color: inherit;
}

.post-card .thumbnail {
  width: 100%;
  background-color: #999;
  overflow: hidden;
}

.post-card .thumbnail img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.post-card .content {
  padding: 8px;
}

.post-card .tagline {
  font-size: 14px;
  color: #555;
  margin: 8px 0 0;
}

.post-card .title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 24px;
}

.post-card .tags {
  font-size: 12px;
  color: #666;
}

.pagination {
  text-align: center;
  margin-top: 40px;
  /* 記事一覧との間隔 */
}

.pagination a {
  display: inline-block;
  padding: 10px 15px;
  margin: 5px;
  border-radius: 5px;
  background-color: #f5f5f5;
  color: #333;
  text-decoration: none;
  transition: background 0.3s ease;
}

.pagination a:hover {
  background-color: #ddd;
}