:root {
  --primary-color: #00897b;
  --secondary-color: #ff9800;
  --link-color: #0277bd;
  --text-color: #565656;
  --text-light: #666;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --border-radius: 12px;
  --transition: all 0.3s ease;
  --container-width: 1100px;
}

.sp-br {
  display: none;
}

.seminars {
  position: relative;
  z-index: 1;
  background-color: #3d81c2;
  width: 75%;
  margin: 40px auto 0;
  border-radius: 60px;
  padding-top: 100px;
  padding-bottom: 100px;
}
/* 幅75%だと上下のセクションより狭くなるため、周りに揃える */
/* 601〜992px: 下の新着情報（90%）と同じ幅 */
@media (min-width: 601px) and (max-width: 992px) {
  .seminars {
    width: 90%;
  }
}
/* 993px以上: 概要セクションと同じ左右40pxの余白。1600px前後から先は元の75%のまま */
@media (min-width: 993px) {
  .seminars {
    width: min(calc(100% - 80px), max(75%, 1180px));
  }
}

.seminars .section-title {
  color: var(--white) !important;
}

.seminars .section-title::after {
  display: none;
}

.seminars .section-title,
.seminars .seminar-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.seminars.revealed .section-title,
.seminars.revealed .seminar-card {
  opacity: 1;
  transform: translateY(0);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-white {
  color: var(--white);
}

.section-padding {
  padding: 100px 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background-color: #3d81c2 !important;
  color: #ffffff !important;
}

.btn-primary:hover {
  background-color: #3774af !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(61, 129, 194, 0.3);
}

.line-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 20px !important;
  border-radius: 50px !important;
}

.contact-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 20px !important;
  border: 2px solid transparent !important;
  border-radius: 50px !important;
}

.btn-icon-svg {
  stroke: #ffffff;
}

.btn-icon {
  height: 20px;
  width: auto;
}

.line-btn:hover .btn-icon {
  content: url("../img/icon0054.webp");
}

.btn-outline {
  border: 2px solid #00bb00 !important;
  color: #00bb00 !important;
}

.btn-outline:hover {
  background-color: #00bb00 !important;
  color: #ffffff !important;
}

.header {
  background: transparent;
  backdrop-filter: none;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
  height: 80px;
  display: flex;
  align-items: center;
  box-shadow: none;
  transition: all 0.4s ease;
}

body.subpage .header {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header.menu-open {
  background: #ffffff !important;
  backdrop-filter: none !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: none !important;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  width: 100%;
}

.logo,
.logo a,
.logo-link {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: inherit;
}

.logo-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-img {
  height: 44px;
  width: auto;
}

.logo-text {
  font-size: 1.17rem;
  font-weight: 700;
  color: #000;
  white-space: nowrap;
  line-height: 1.2;
}

.nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
}

/* 4つのテキストメニュー項目: 完全に等間隔（32px） */
.nav ul li:nth-child(1),
.nav ul li:nth-child(2),
.nav ul li:nth-child(3) {
  margin-right: 32px;
}

.nav ul li:nth-child(4) {
  margin-right: 36px; /* お問い合わせボタンとの間隔 */
}

.nav ul li:nth-child(5) {
  margin-right: 12px; /* LINEボタンとの間隔 */
}

.nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav a:not(.btn) {
  padding-left: 24px;
  transition: color 0.3s ease;
}

.nav a:not(.btn)::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background-color: #3d81c2;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
}

.nav a:not(.btn):hover::before {
  width: 16px;
  height: 16px;
  opacity: 1;
}

.nav a:not(.btn):hover,
.nav a.active {
  color: #3d81c2;
}

.nav a.active {
  cursor: pointer;
}

.nav a.active::before {
  width: 16px;
  height: 16px;
  opacity: 1;
}

.seminar-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ヒーローの横幅（main の幅 − 左右の余白）を基準にするため main をコンテナにする */
main {
  container-type: inline-size;
}

.hero {
  background: #fff;
  /* 画面の高さいっぱい。ただし動画（16:9）より縦長にはせず、動画の左右が切れないようにする */
  height: min(calc(100vh - 80px - 40px), calc((100cqw - 80px) * 9 / 16));
  display: flex;
  align-items: flex-start;
  /* 枠が低くなったときは、キャッチコピーが動画内の文字にかからないよう余白を縮める */
  padding-top: min(
    calc(42vh - 250px),
    calc((100cqw - 80px) * 9 / 16 * 0.4 - 160px)
  );
  margin: 0 40px 40px;
  border-radius: 60px;
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.hero-bottom-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 137px;
  background-image: url("../img/mv_back.webp");
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: auto 100%;
  z-index: 1;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-video.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.hero-container {
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  max-width: 900px;
  text-align: center;
}

.hero-title {
  font-size: 2.625rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--white);
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.hero-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.hero-title span.reveal {
  opacity: 1;
  transform: translateY(0);
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.8s ease;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.hero-description.reveal {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: 2rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-title-small {
  font-size: 1.25rem;
  color: #3d81c2;
  font-weight: 700;
  margin-bottom: 15px;
}

/* Seminar Cards */
.seminar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 24px;
  align-items: stretch;
  justify-items: center;
}

.seminar-card {
  background: transparent;
  padding: 0;
  width: 100%;
  max-width: 320px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: none;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.card-image {
  margin-bottom: 20px;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 20px;
  flex-shrink: 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.seminar-card:has(.btn-link:hover) .card-image img {
  transform: scale(1.1);
}

.seminar-card h4 {
  margin-bottom: 15px;
  font-size: 1.25rem;
  line-height: 1.4;
  color: #fff;
  font-weight: 500;
  white-space: normal;
  height: 3.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

.seminar-card p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
  flex-grow: 1;
  padding: 0 10px;
}

.seminar-card .btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #1f2026;
  color: #fff;
  padding: 16px 40px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  margin-top: auto;
}

.seminar-card .btn-link:hover {
  background-color: #fff;
  color: #3d81c2;
  transform: translateY(-2px);
}

.btn-link {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

/* News */
.news {
  background-color: #fff;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.news-image-placeholder {
  position: absolute;
  left: 40px;
  top: 40px;
  bottom: 40px;
  width: 60%;
  height: auto;
  background-color: #eee;
  background-image: url("../img/news-photo.webp");
  background-size: cover;
  background-position: center;
  border-radius: 40px;
  z-index: 1;
}
/* 写真が上に1枚で並ぶ幅（601〜992px）では、高さ250px固定だと横長になりすぎて顔が切れるため、
   幅に合わせて高くし、顔のある上寄りを見せる */
@media (min-width: 601px) and (max-width: 992px) {
  .news .news-image-placeholder {
    height: clamp(250px, 40vw, 400px);
    background-position: center 15%;
  }
}

.news-panel {
  background-color: #fff;
  border-radius: 40px;
  /* 右へはみ出すデザインだが、右端は画面の内側（40px）で止める
     （100% = コンテナの内幅、(100cqw - 100%) / 2 = コンテナ外の左右の余白） */
  width: min(90%, calc(60% + (100cqw - 100%) / 2 - 40px));
  margin-left: 40%;
  position: relative;
  z-index: 2;
  padding: 60px clamp(40px, 5vw, 80px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

@media (min-width: 993px) and (max-width: 1199px) {
  /* パネルが狭く、中央のボタンが右下のイラストと重なる幅では、見出しと同じ左揃えにする */
  .news-panel .news-more-container {
    text-align: left;
  }
}

.news-panel .section-title {
  text-align: left;
  margin-bottom: 40px;
  padding-bottom: 15px;
  font-size: 1.8rem;
  color: #3d81c2;
}

.news-panel .section-title::after {
  display: none;
}

.news-list {
  list-style: none;
}
.news-item {
  display: flex;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid #ddd;
  transition: transform 0.3s ease;
}
.news-item:hover {
  transform: translateX(20px);
}
.news-item:hover .news-link {
  color: #3d81c2;
}
.news-date {
  width: 120px;
  color: var(--text-light);
  font-weight: 500;
}
/* 日付・カテゴリは縮めず、タイトル側だけを折り返す */
.news-item .news-date,
.news-item .badge-cat {
  flex-shrink: 0;
  white-space: nowrap;
}
.news-item .badge-cat {
  margin-right: 15px;
}
/* 2列表示（993px以上）では、バッジの幅を一番長い「福祉用具講習会」（7文字）に揃えてタイトルの開始位置を合わせる */
@media (min-width: 993px) {
  .news-panel .badge-cat {
    min-width: 9.4em; /* 余白込みの幅（box-sizing: border-box） */
    text-align: center;
  }
}
.news-link {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s ease;
}
.news-link:hover {
  color: #3d81c2;
}
.news-item:last-child {
  border-bottom: none;
}

.keyword-list {
  list-style: none;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.keyword-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: #3d81c2;
}

.about-sub-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.sub-image-item {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background-color: #eee;
  border-radius: 10px;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}

.reverse.grid-2 {
  grid-template-columns: 1.2fr 0.8fr;
}
.reverse .about-text {
  order: 2;
}
.reverse .about-image {
  order: 1;
}
.about-text h4,
.greeting-text h4 {
  font-size: 1.75rem;
  margin-bottom: 20px;
}
.about-image img,
.map-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 「地域リハビリテーションとは」の説明図は文字入りなので、切り抜かず元の比率で表示する */
#rehab-section .about-image {
  align-self: center;
}
#rehab-section .about-image img {
  height: auto;
}

.greeting-text p {
  margin-bottom: 1.5rem;
}
.greeting-text p.signature {
  margin-bottom: 0;
}
.signature {
  margin-top: 30px;
  font-weight: 700;
  line-height: 1.8;
}
.signature-name {
  font-size: 1.25rem;
  display: inline-block;
  margin-top: 10px;
}

/* Access */
.access {
  background-color: #3d81c2;
  margin: 0 40px 40px;
  border-radius: 60px;
  padding: 80px 80px !important;
}
.access .container {
  max-width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 4fr 6fr;
  align-items: center;
}
.access .section-title {
  color: #fff;
  margin-bottom: 30px;
  text-align: left;
}
.access .section-title::after {
  display: none;
}
.access-info {
  padding-left: 0;
}
.access .section-title-small {
  color: #fff;
}
.map-container {
  height: 540px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.info-table {
  width: 100%;
  border-collapse: collapse;
}
.info-table th {
  text-align: left;
  width: 120px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}
.info-table td {
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 2列（表と地図）が窮屈になる幅では、表を上・地図を下の1列にする */
@media (min-width: 601px) and (max-width: 1069px) {
  .access {
    padding: 60px 50px !important;
  }
  .access .container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .map-container {
    height: 400px;
  }
  /* 装飾イラストは1列用（スマホと同じ）の位置・大きさにして、表に重ねない */
  .access .accent {
    --_x: var(--x-sp);
    --_y: var(--y-sp);
    --_w: var(--w-sp);
  }
}

/* Related Sites */
.related-sites .section-title {
  color: #3d81c2;
}
.related-sites .section-title::after {
  display: none;
}

.image-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.image-link-item {
  background-color: #fff;
  padding: 24px 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.image-link-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.image-link-item p {
  color: #565656;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* ==========================================================================
   装飾イラスト / Accents
   親要素（セクションなど）に .has-accent を付け、その中の .accent-layer に
   <img class="accent"> を置く。位置と幅は、イラストごとのクラス（.accent-seminar-05 など）に変数で指定する。
     --x / --y / --w          … 993px以上
     --x-sp / --y-sp / --w-sp … 992px以下
   --x / --y は background-position の % と同じ考え方（0% で左上、100% で右下にぴったり）。
   ========================================================================== */
.has-accent {
  position: relative;
  isolation: isolate; /* 背面の層（z-index: -1）を親の背景色より前に出すため */
}
/* 中身を装飾の層より前に出す */
.has-accent > .container,
.news > .container {
  position: relative;
  z-index: 2;
}

/* 装飾の層。親いっぱいに広げ、はみ出した部分は切り取る */
.accent-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
/* 文字や写真の後ろに置く層（親の角丸に合わせて切り取る） */
.accent-layer.is-back {
  z-index: -1;
  border-radius: inherit;
}
/* 文字や写真の前に置く層 */
.accent-layer.is-front {
  z-index: 10;
}

.accent {
  --_x: var(--x);
  --_y: var(--y);
  --_w: var(--w);
  position: absolute;
  display: block;
  width: var(--_w);
  max-width: none;
  height: auto;
  left: var(--_x);
  top: var(--_y);
  /* 画像自身の幅・高さの分だけ戻し、% を background-position と同じ意味にする */
  translate: calc(var(--_x) * -1) calc(var(--_y) * -1);
}
/* 左右反転 */
.accent.is-flip {
  scale: -1 1;
}

/* イラストごとの位置と幅（クラス名は「セクション名-画像番号」または役割） */
.accent-seminar-05 {
  --x: 50%;
  --y: 6%;
  --w: 142px;
  --x-sp: 50%;
  --y-sp: -1%;
  --w-sp: 138px;
}
.accent-seminar-bird-left {
  --x: 33%;
  --y: 18%;
  --w: 50px;
  --x-sp: 0%;
  --y-sp: 4%;
  --w-sp: 40px;
}
.accent-seminar-bird-right {
  --x: 68%;
  --y: 9%;
  --w: 68px;
  --x-sp: 98%;
  --y-sp: 4%;
  --w-sp: 50px;
}
.accent-news-08 {
  --x: 97%;
  --y: 100%;
  --w: 202px;
  --x-sp: 92%;
  --y-sp: 99%;
  --w-sp: 116px;
}
.accent-news-01 {
  --x: 6%;
  --y: 2%;
  --w: 200px;
  --x-sp: 48%;
  --y-sp: 1%;
  --w-sp: 166px;
}
.accent-role-02 {
  --x: 19%;
  --y: 5%;
  --w: 208px;
  --x-sp: -9%;
  --y-sp: 3%;
  --w-sp: 188px;
}
.accent-role-figure {
  --x: 83%;
  --y: 86%;
  --w: 225px;
  --x-sp: 94%;
  --y-sp: 98%;
  --w-sp: 169px;
}
.accent-rehab-03 {
  --x: 59%;
  --y: 15%;
  --w: 242px;
  --x-sp: -12%;
  --y-sp: 7%;
  --w-sp: 242px;
}
.accent-greeting-04 {
  --x: 79%;
  --y: 8%;
  --w: 242px;
  --x-sp: 113%;
  --y-sp: 4%;
  --w-sp: 242px;
}
.accent-greeting-figure {
  --x: 19%;
  --y: 83%;
  --w: 242px;
  --x-sp: 8%;
  --y-sp: 98%;
  --w-sp: 144px;
}
.accent-overview-05 {
  --x: 3%;
  --y: 15%;
  --w: 194px;
  --x-sp: 50%;
  --y-sp: -12%;
  --w-sp: 191px;
}
.accent-overview-bird {
  --x: 24%;
  --y: 18%;
  --w: 53px;
  --x-sp: 89%;
  --y-sp: 12%;
  --w-sp: 40px;
}
.accent-related-11 {
  --x: 10%;
  --y: 6%;
  --w: 209px;
  --x-sp: 2%;
  --y-sp: 1%;
  --w-sp: 97px;
}
.accent-related-figure {
  --x: 92%;
  --y: 97%;
  --w: 215px;
  --x-sp: 99%;
  --y-sp: 99%;
  --w-sp: 97px;
}
.accent-related-13 {
  --x: 50%;
  --y: 11%;
  --w: 189px;
  --x-sp: 49%;
  --y-sp: 6%;
  --w-sp: 138px;
}
@media (max-width: 992px) {
  .accent {
    --_x: var(--x-sp);
    --_y: var(--y-sp);
    --_w: var(--w-sp);
  }
}

/* ご案内の鳥（accent06・accent07）は左右の上に置くが、見出し（幅512px）から離れすぎないよう、
   見出しの端から60pxの位置で止める（中央から 256px＋60px＋鳥の幅の半分）。
   幅が狭く角の方が近い場合は角に置く。高さは全幅で SP 用の値 */
@media (min-width: 601px) {
  .accent-seminar-bird-left,
  .accent-seminar-bird-right {
    --_y: var(--y-sp);
    translate: 0 calc(var(--_y) * -1);
  }
  .accent-seminar-bird-left {
    left: max(0px, calc((100% - var(--_w)) / 2 - 316px - var(--_w) / 2));
  }
  /* 0.98 は --x-sp（98%）と同じ */
  .accent-seminar-bird-right {
    left: min(
      calc((100% - var(--_w)) * 0.98),
      calc((100% - var(--_w)) / 2 + 316px + var(--_w) / 2)
    );
  }
}

/* 役割の写真右下の人物（accent09）。2列表示では、写真の右下の角を基準に置く（%指定だと狭い幅で人物に重なるため）
   右端は「写真の右端＋136px」で、1920pxでの元の位置と同じ。余白が足りない幅は画面端から10px */
@media (min-width: 993px) {
  .accent-role-figure {
    left: auto;
    top: auto;
    right: max(
      10px,
      calc((100cqw - var(--container-width)) / 2 + 20px - 136px)
    );
    bottom: 55px;
    translate: none;
  }
}
/* 写真の右側に136px分の余白がない幅（1351px以下）では、少し小さくして下に寄せ、写真の右下の角にかかる程度（はみ出し90px）にする */
@media (min-width: 993px) and (max-width: 1351px) {
  .accent-role-figure {
    --_w: 180px;
    right: max(10px, calc((100cqw - var(--container-width)) / 2 + 20px - 90px));
    bottom: 15px;
  }
}

/* ご挨拶の人物（accent10）。768px以上は大きいイラスト（242px）にする。
   縦は本文の下の余白（下から40px）に置き、横は署名の左側に収まる位置（左端から最大19%）にする */
@media (min-width: 768px) {
  .accent-greeting-figure {
    --_w: var(--w);
    left: max(0px, min(calc((100% - var(--_w)) * 0.19), calc(100cqw - 760px)));
    top: auto;
    bottom: 40px;
    translate: none;
  }
}

/* 関連情報の人物（accent12）。ボタンの右下と横に重なる幅（1759px以下）では、少し小さくしてセクションの下端に置き、
   ボタンの文字にかからないようにする（ボタンの下の余白は100px） */
@media (min-width: 993px) and (max-width: 1759px) {
  .accent-related-figure {
    --_w: 190px;
    top: auto;
    bottom: 0;
    translate: calc(var(--_x) * -1) 0;
  }
}

/* 概要の鳥（accent07）。2列表示では見出しに重ならないよう、見出しの右端（約356px）より右に置く
   （0.24 は --x（24%）と同じ） */
@media (min-width: 1070px) {
  .accent-overview-bird {
    left: max(calc((100% - var(--_w)) * 0.24), 370px);
    translate: 0 calc(var(--_y) * -1);
  }
}

/* Footer */
.footer {
  padding: 80px 0 0;
  background-color: #f1f1f1;
}
.footer-logo-container {
  margin-bottom: 25px;
}
.footer-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}
.footer-company-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #565656;
}
@media (max-width: 480px) {
  /* 「センター」の「ー」だけが次の行に落ちないように */
  .footer-company-name {
    font-size: 1.1rem;
  }
}
.footer-tel-icon {
  vertical-align: middle;
  margin-right: 4px;
}
.social-icons {
  margin: 40px 0;
}
.social-link img {
  width: 40px;
}
.footer-wave {
  background-image: url("../img/footer.webp");
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: auto 100%;
  height: 78px;
  width: 100%;
}
.footer-bottom {
  background-color: #3d81c2;
  padding: 15px 0;
  margin-top: 0;
}
.copyright {
  font-size: 0.75rem;
  color: #fff !important;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}
.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #3d81c2;
  transition: var(--transition);
}
.mobile-menu-toggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.mobile-menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
}
.menu-overlay.active {
  display: block;
}

@media (max-width: 992px) {
  .seminar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }
  .image-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .grid-2,
  .reverse.grid-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-title {
    font-size: 1.875rem;
  }
  .reverse .about-text {
    order: 1;
  }
  .reverse .about-image {
    order: 2;
  }
  .hero-bottom-wave {
    opacity: 0.3;
  }
}

/* 768px未満はハンバーガーメニューにする */
@media (max-width: 767px) {
  .mobile-menu-toggle {
    display: flex;
  }
  .nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 40px 20px;
    gap: 40px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
  }
  .nav ul.active {
    display: flex;
  }
  .nav ul li {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .nav ul li:nth-child(1),
  .nav ul li:nth-child(2),
  .nav ul li:nth-child(3),
  .nav ul li:nth-child(4),
  .nav ul li:nth-child(5) {
    margin-right: 0;
  }
  .nav a:not(.btn) {
    padding-right: 24px; /* padding-left: 24px と相殺してテキストを中央に */
  }
  .nav ul li .contact-btn,
  .nav ul li .line-btn {
    width: 60vw !important;
    max-width: 360px;
    height: 50px; /* 高さを揃える */
    justify-content: center;
    align-items: center;
  }
}

/* 768px以上は通常メニュー。PCと同じサイズで横一列に収まらない幅（1299px以下）では、ロゴとメニューを縮小する */
@media (min-width: 768px) and (max-width: 1299px) {
  .header-container {
    padding: 0 20px;
  }
  .logo,
  .logo a,
  .logo-link {
    gap: 10px;
  }
  .logo-img {
    height: 38px;
  }
  .logo-text {
    font-size: 15px;
  }
  .nav a {
    font-size: 14px;
  }
  .nav ul li:nth-child(1),
  .nav ul li:nth-child(2),
  .nav ul li:nth-child(3),
  .nav ul li:nth-child(4) {
    margin-right: 12px;
  }
  .nav ul li:nth-child(5) {
    margin-right: 8px;
  }
  .contact-btn,
  .line-btn {
    gap: 6px;
    padding: 6px 12px !important;
  }
  .contact-btn,
  .line-btn,
  .nav a.btn {
    font-size: 13px;
  }
  .btn-icon {
    height: 18px;
  }
  .btn-icon-svg {
    width: 18px;
    height: 18px;
  }
}

/* ロゴは991px以下で小さいサイズにそろえる（600px以下は同じ値を別の箇所で指定） */
@media (min-width: 601px) and (max-width: 991px) {
  .logo,
  .logo a,
  .logo-link {
    gap: 10px;
  }
  .logo-img {
    height: 31px;
  }
  .logo-text {
    font-size: 12.6px;
  }
}

/* さらに狭い幅（991px以下）では、ボタンの文字を隠してアイコンだけにする（文字は読み上げ用に残す） */
@media (min-width: 768px) and (max-width: 991px) {
  .nav a {
    font-size: 13px;
  }
  /* 文字メニューは詰め、アイコンどうしは押し間違えないよう離す */
  .nav ul li:nth-child(1),
  .nav ul li:nth-child(2),
  .nav ul li:nth-child(3) {
    margin-right: 6px;
  }
  .nav ul li:nth-child(4) {
    margin-right: 20px;
  }
  .nav ul li:nth-child(5) {
    margin-right: 14px;
  }
  .contact-btn,
  .line-btn {
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0 !important;
  }
  .btn-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 1079px) {
  /* 動画内の文字が左右で切れないよう、動画は横幅いっぱいの比率で表示し、
     キャッチコピーは動画の下に置く */
  .hero {
    margin: 0 5% 60px !important;
    width: 90vw;
    height: auto;
    padding-top: 0;
    border-radius: 20px;
    background: transparent;
    overflow: visible;
    display: flex;
    flex-direction: column;
  }
  .hero-video-bg {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* 動画（1280×720）と同じ比率 */
    border-radius: 20px;
    overflow: hidden;
  }
  .hero-container {
    position: static;
  }
  .hero-content {
    position: relative;
    margin: 25px 0 0;
    padding: 0;
    color: #3d81c2;
    text-align: left;
  }
  .hero-title {
    color: #3d81c2;
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-shadow: none;
    white-space: normal; /* Ensure natural wrap */
  }
  .hero-description {
    color: #565656;
    font-size: 1.1rem;
    text-shadow: none;
  }
}

/* タブレット幅: 街のイラストは文字の背面ではなく動画の下端に重ねる */
@media (min-width: 601px) and (max-width: 1079px) {
  .hero-bottom-wave {
    /* 動画の高さ（横幅 90vw × 9/16）の下 20% に置く */
    top: calc(90vw * 9 / 16 * 0.8);
    bottom: auto;
    height: calc(90vw * 9 / 16 * 0.2);
    border-radius: 0 0 20px 20px;
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .image-links-grid {
    grid-template-columns: 1fr;
  }
  .image-link-item {
    border-radius: 10px !important;
  }

  /* Header Layout adjust - Logo Left, Burger Right */
  .header-container {
    flex-direction: row;
    padding: 0 5%;
    justify-content: space-between;
  }
  .logo {
    flex-direction: row;
    text-align: left;
    gap: 10px;
  }
  .logo-img {
    height: 31px;
  }
  .logo-text {
    font-size: 12.6px;
    line-height: 1.3;
  }

  /* Hero: 動画の比率・文字サイズ（スマホ） */
  .hero-video-bg {
    aspect-ratio: 4 / 2.5;
  }
  .hero-title {
    font-size: 1.2rem;
  }
  .hero-description {
    font-size: 1rem;
  }

  /* General Image & Layout for Mobile */
  .about-image img {
    border-radius: 20px !important;
  }
  .sub-image-item,
  .about-sub-images img {
    border-radius: 10px !important;
  }
  .grid-2 {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
  }
  .reverse.grid-2 {
    flex-direction: column !important;
  }
  .about-text,
  .greeting-text {
    text-align: left;
  }

  /* Access (Overview) - 90% width and vertical stack */
  .access {
    width: 90% !important;
    margin: 0 auto 40px !important;
    padding: 40px 20px !important;
    border-radius: 20px !important;
  }
  .access .container {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
  .map-container,
  .map-container iframe {
    height: 300px !important;
    order: 2;
    border-radius: 10px !important;
  }
  .access-info {
    order: 1;
  }
  .info-table th {
    width: 80px !important;
  }

  /* Seminars Section - 90% width box */
  .seminars {
    width: 90%;
    margin: 0 auto;
    background-color: #3d81c2;
    border-radius: 20px !important;
    padding: 40px 20px !important;
  }
  .sp-br {
    display: inline;
  }
  .seminars .section-title {
    color: #fff;
    font-size: clamp(1.2rem, 5.2vw, 1.6rem) !important;
    white-space: normal !important;
    line-height: 1.4 !important;
  }
  .seminars .section-title::after {
    background-color: #fff;
  }
  .seminar-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .seminar-card {
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto;
    border-radius: 10px !important;
  }
  .card-image {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }
  .seminar-card img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/10 !important;
    object-fit: cover !important;
    margin: 0 !important;
    border-radius: 10px !important;
  }
  .seminar-card h4 {
    height: auto !important;
    padding: 0 !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
  }
  .seminar-card p {
    padding: 0 !important;
    width: 100% !important;
    text-align: center !important;
  }

  /* Footer Copyright ensure visibility */
  .footer-bottom {
    display: block !important;
    background-color: #3d81c2 !important;
    margin-top: 0 !important;
    padding: 15px 0 !important;
    width: 100% !important;
  }
  .footer-bottom .copyright {
    color: #fff !important;
    display: block !important;
  }
}

@media (max-width: 992px) {
  .news {
    padding: 60px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .news .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .news-image-placeholder {
    display: block !important;
    position: relative !important;
    width: 90% !important;
    max-width: 90% !important;
    height: 250px;
    margin: 0 auto 30px auto !important;
    left: 0 !important;
    top: 0 !important;
    z-index: 1;
    border-radius: 20px !important;
    box-sizing: border-box !important;
  }
  .news-panel {
    display: block !important;
    position: relative !important;
    width: 90% !important;
    max-width: 90% !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
    left: 0 !important;
    border-radius: 20px;
    box-sizing: border-box !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
  }

  .news-panel .section-title {
    margin-bottom: 20px !important;
    text-align: center;
  }
  .news-item {
    display: block !important;
    padding: 20px 0;
    text-align: left;
  }
  .news-date {
    display: inline !important;
    font-size: 0.95rem;
    margin-right: 15px;
    width: auto !important;
  }
  .news-link {
    display: block !important;
    width: 100%;
    margin-top: 12px !important;
  }
  .news-item:hover {
    transform: none !important;
  }
}

/* 480px以下ではイラスト（accent08）がボタンにかかるため、ボタンの下の余白を広げて
   イラストをボタンより下に収める（イラストはセクションの下端基準なので一緒に下がる） */
@media (max-width: 480px) {
  .news-panel {
    padding-bottom: 70px !important;
  }
}

/* ==========================================================================
   下層ページ共通スタイル / Subpage Common Styles (コンパクトな高さ設計)
   ========================================================================== */
.subpage-header {
  position: relative;
  padding: 36px 0 32px;
  background: linear-gradient(135deg, #eaf4fb 0%, #f7fafc 100%);
  border-bottom: 1px solid #e2e8f0;
  /* 境界をまたぐイラストは縦に見せつつ、右上の装飾円による横スクロールを防ぐ */
  overflow-x: clip;
  overflow-y: visible;
}

.subpage-header::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(61, 129, 194, 0.08) 0%,
    rgba(61, 129, 194, 0) 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

/* 境界をまたぐアクセントイラスト (accent01, accent09, accent07) */
.subpage-accents {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.subpage-accent {
  position: absolute;
  pointer-events: none;
  user-select: none;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

/* accent01: ピンク水彩テクスチャ */
.subpage-accent-01 {
  width: var(--sub-acc01-w, 220px);
  top: var(--sub-acc01-top, 20px);
  bottom: var(--sub-acc01-bottom, auto);
  left: var(--sub-acc01-left, 7%);
  right: var(--sub-acc01-right, auto);
  opacity: var(--sub-acc01-op, 0.75);
  transform: rotate(var(--sub-acc01-rot, -4deg));
  z-index: 1;
}

/* accent09: リハビリテーションイラスト (右下境界またぎ) */
.subpage-accent-09 {
  width: var(--sub-acc09-w, 175px);
  top: var(--sub-acc09-top, auto);
  bottom: var(--sub-acc09-bottom, -32px);
  left: var(--sub-acc09-left, auto);
  right: var(--sub-acc09-right, 12%);
  opacity: var(--sub-acc09-op, 0.95);
  transform: rotate(var(--sub-acc09-rot, 0deg));
  z-index: 2;
}

/* accent07: 青い鳥イラスト */
.subpage-accent-07 {
  width: var(--sub-acc07-w, 50px);
  top: var(--sub-acc07-top, 46px);
  bottom: var(--sub-acc07-bottom, auto);
  left: var(--sub-acc07-left, auto);
  right: var(--sub-acc07-right, 82%);
  opacity: var(--sub-acc07-op, 0.95);
  transform: rotate(var(--sub-acc07-rot, 4deg));
  z-index: 2;
}

.subpage-header-container {
  position: relative;
  z-index: 3;
}

.subpage-title-group {
  text-align: center;
  margin-bottom: 10px;
}

.subpage-title-en {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #3d81c2;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.subpage-title-ja {
  font-size: 1.65rem;
  font-weight: 700;
  color: #2c3e50;
  letter-spacing: 0.05em;
  margin: 0;
}

/* パンくずリスト */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.82rem;
  color: #718096;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: ">";
  margin-right: 6px;
  color: #a0aec0;
  font-size: 0.75rem;
}

.breadcrumb a {
  color: #4a5568;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #3d81c2;
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: #3d81c2;
  font-weight: 500;
}

/* ==========================================================================
   2カラムレイアウト (メインコンテンツ + サイドバー)
   ========================================================================== */
.content-wrapper {
  padding: 75px 0 80px;
  background-color: #fafbfc;
}

.layout-2col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.main-content {
  min-width: 0;
}

/* ==========================================================================
   カテゴリタブ / フィルター (一覧ページ)
   ========================================================================== */
.category-filter-nav {
  margin-bottom: 35px;
  background: #ffffff;
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border: 1px solid #e2e8f0;
}

.cat-tab-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: 50px;
  text-decoration: none;
  color: #4a5568;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.cat-tab-link:hover {
  color: #3d81c2;
  background: #f0f7fc;
}

.cat-tab-link.active {
  background: #3d81c2;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(61, 129, 194, 0.25);
}

/* ==========================================================================
   新着情報カードリスト (一覧ページ)
   ========================================================================== */
.archive-news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 50px;
}

.news-card {
  display: flex;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  border: 1px solid #eef2f6;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  height: 195px;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(61, 129, 194, 0.15);
  border-color: #cbd5e0;
}

.news-card-thumb {
  width: 220px;
  min-width: 220px;
  height: 100%;
  position: relative;
  overflow: hidden;
  background-color: #e2e8f0;
  flex-shrink: 0;
}

.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

/* 縦長のチラシはタイトルのある上部を見せる */
.news-card-thumb img[src*="minamitama_seminar_"] {
  object-position: center top;
}

.news-card:hover .news-card-thumb img {
  transform: scale(1.05);
}

.news-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
  color: #718096;
}

.news-card-body {
  padding: 20px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.news-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.news-card-date {
  font-size: 0.9rem;
  color: #718096;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* カテゴリバッジ */
.badge-cat {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  background-color: #3d81c2;
  letter-spacing: 0.02em;
}

.badge-cat.cat-forum {
  background-color: #3d81c2;
} /* フォーラム */
.badge-cat.cat-workshop {
  background-color: #00897b;
} /* 研修会 */
.badge-cat.cat-equipment {
  background-color: #e67e22;
} /* 福祉用具講習会 */
.badge-cat.cat-liaison {
  background-color: #7b2cbf;
} /* 連絡会 */

.news-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  color: #2d3748;
  margin-bottom: 8px;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   年度別タブナビゲーション / Fiscal Year Filter Tabs
   ========================================================================== */
.year-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e2e8f0;
}

.year-tab-item {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: #e2e8f0;
  color: #4a5568;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.year-tab-item:hover {
  background: #cbd5e0;
  color: #1a202c;
}

.year-tab-item.active {
  background: #2b6cb0;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(43, 108, 176, 0.3);
}

/* ==========================================================================
   SNSシェアボタン (Xポスト機能 / LINE / リンクコピー等)
   ========================================================================== */
.sns-share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 30px;
  padding: 14px 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #edf2f7;
}

.sns-share-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  margin-right: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sns-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

/* X (旧Twitter) ポストボタン */
.sns-share-btn.btn-x {
  background: #000000;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.sns-share-btn.btn-x:hover {
  background: #2a2a2a;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* リンクコピーボタン */
.sns-share-btn.btn-copy {
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e0;
}

.sns-share-btn.btn-copy:hover {
  background: #f1f5f9;
  color: #1e293b;
  border-color: #94a3b8;
}

/* ==========================================================================
   イベント・研修会詳細 テキストレイアウト (見やすい縦並びレイアウト)
   ========================================================================== */
.event-theme-box {
  margin: 15px 0 25px;
  padding: 14px 20px;
  background: #f0f7fc;
  border-left: 4px solid #3d81c2;
  border-radius: 0 8px 8px 0;
}

.event-theme-heading {
  font-size: 1.18rem;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0;
  padding: 0;
  border: none;
}

.event-theme-heading::after {
  display: none;
}

.event-overview-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
  margin: 35px 0 24px 0;
  padding: 10px 16px;
  background: linear-gradient(90deg, #f0f7fc 0%, #ffffff 100%);
  border-left: 5px solid #3d81c2;
  border-radius: 4px;
}

.event-overview-heading::after {
  display: none;
}

.event-text-column {
  width: 100%;
}

.event-info-block {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 1rem;
  line-height: 1.8;
  color: #334155;
}

.event-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-sub-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
}

.event-sub-heading::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  background: #3d81c2;
  border-radius: 2px;
  flex-shrink: 0;
}

.event-sub-heading::after {
  display: none;
}

.event-val {
  padding-left: 12px;
  color: #334155;
}

.event-val p {
  margin: 0 0 6px 0;
}

.event-val p:last-child {
  margin-bottom: 0;
}

.event-notice .event-sub-heading {
  color: #dc2626;
}

.event-notice .event-sub-heading::before {
  background: #dc2626;
}

.event-notice .event-val {
  color: #dc2626;
  font-weight: 500;
}

/* チラシ・画像エリア (縦並びで中央配置、十分な視認性を確保) */
.event-flyer-column {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  max-width: 540px;
  margin: 10px auto 0;
  width: 100%;
}

.event-flyer-thumb {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid #cbd5e0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.event-flyer-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.event-flyer-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.event-flyer-caption {
  font-size: 0.92rem;
  font-weight: 600;
  color: #2b6cb0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.event-flyer-caption:hover {
  color: #1a4971;
  text-decoration: underline;
}

.event-pdf-download-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding: 12px 24px;
  background: #f0f7fc;
  border: 1px solid #cce3f5;
  border-radius: 30px;
  color: #2b6cb0;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.event-pdf-download {
  margin-top: 30px;
  text-align: center;
}

.event-pdf-badge {
  display: inline-block;
  background: #dc2626;
  color: #fff;
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 700;
}

.event-pdf-download-link:hover {
  background: #2b6cb0;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(43, 108, 176, 0.25);
}

@media (max-width: 640px) {
  .event-item {
    flex-direction: column;
    gap: 3px;
  }
  .event-flyer-column {
    padding: 16px;
  }
}

.news-card:hover .news-card-title {
  color: #3d81c2;
}

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

.news-card-excerpt {
  font-size: 0.9rem;
  color: #718096;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* ==========================================================================
   ページネーション / Pagination
   ========================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 8px 14px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  border: 1px solid #edf2f7;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: #4a5568;
  transition: all 0.2s ease;
}

.page-numbers:hover:not(.current):not(.dots) {
  background-color: #f0f7fc;
  color: #3d81c2;
}

.page-numbers.current {
  background-color: #3d81c2;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(61, 129, 194, 0.3);
}

.page-numbers.dots {
  color: #a0aec0;
  cursor: default;
}

.page-numbers.prev,
.page-numbers.next {
  border-radius: 30px;
  padding: 0 16px;
  font-size: 0.88rem;
}

/* ==========================================================================
   新着情報詳細ページ / Single Post Styles
   ========================================================================== */
.single-article {
  background: #ffffff;
  border-radius: 20px;
  padding: 50px 60px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.04);
  border: 1px solid #edf2f7;
}

.article-header {
  border-bottom: 2px solid #edf2f7;
  padding-bottom: 20px;
  margin-bottom: 25px;
}

.article-meta-top a {
  text-decoration: none;
}

.article-meta-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 18px;
}

.article-date-group {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #718096;
  font-size: 0.92rem;
  font-weight: 500;
}

.article-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2d3748;
  line-height: 1.45;
  margin-bottom: 20px;
}

/* ==========================================================================
   記事本文スタイル / Entry Content
   ========================================================================== */
.entry-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #334155;
}

.entry-content p {
  margin-bottom: 1.8em;
}

.entry-content p:last-child {
  margin-bottom: 0;
}

.entry-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  padding: 12px 18px;
  background: linear-gradient(90deg, #f0f7fc 0%, #ffffff 100%);
  border-left: 5px solid #3d81c2;
  border-radius: 4px;
  margin-top: 2.5em;
  margin-bottom: 1.2em;
}

.entry-content h3 {
  font-size: 1.28rem;
  font-weight: 700;
  color: #2d3748;
  position: relative;
  padding-bottom: 8px;
  margin-top: 2em;
  margin-bottom: 1em;
  border-bottom: 2px solid #e2e8f0;
}

.entry-content h3::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: #3d81c2;
}

.entry-content h4 {
  font-size: 1.12rem;
  font-weight: 700;
  color: #334155;
  margin-top: 1.8em;
  margin-bottom: 0.8em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.entry-content h4::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #3d81c2;
  border-radius: 50%;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.8em;
  padding-left: 24px;
}

.entry-content li {
  margin-bottom: 0.6em;
}

.entry-content blockquote,
.wp-block-quote {
  margin: 2em 0;
  padding: 20px 30px;
  background-color: #f8fafc;
  border-left: 4px solid #94a3b8;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #475569;
}

.entry-content table,
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.entry-content th,
.wp-block-table th {
  background-color: #f1f5f9;
  color: #1e293b;
  font-weight: 600;
  padding: 14px 18px;
  border: 1px solid #e2e8f0;
  text-align: left;
  font-size: 0.95rem;
  width: 30%;
}

.entry-content td,
.wp-block-table td {
  padding: 14px 18px;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.95rem;
}

/* ==========================================================================
   前後の記事ナビゲーション / Post Navigation
   ========================================================================== */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 15px;
  align-items: center;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid #e2e8f0;
}

.nav-previous,
.nav-next {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #4a5568;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.nav-previous:hover,
.nav-next:hover {
  color: #3d81c2;
}

.nav-previous {
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
}

.nav-next {
  justify-content: flex-end;
  gap: 10px;
  text-align: right;
}

.nav-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #f1f5f9;
  border-radius: 50%;
  color: #3d81c2;
  transition: background 0.2s;
  flex-shrink: 0;
}

.nav-previous:hover .nav-arrow,
.nav-next:hover .nav-arrow {
  background: #3d81c2;
  color: #fff;
}

.nav-post-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 500;
}

.nav-back-list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: #f1f5f9;
  color: #4a5568;
  text-decoration: none;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-back-list:hover {
  background: #3d81c2;
  color: #fff;
}

/* ==========================================================================
   サイドバー ウィジェット / Sidebar Widgets
   ========================================================================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  border: 1px solid #edf2f7;
}

.widget-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #2d3748;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 2px solid #f0f4f8;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #3d81c2;
}

/* カテゴリウィジェット */
.widget-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.widget-cat-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: #4a5568;
  font-size: 0.92rem;
  font-weight: 500;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.widget-cat-item a:hover {
  background: #f0f7fc;
  color: #3d81c2;
  padding-left: 18px;
}

.widget-cat-item a.active {
  background: #3d81c2;
  color: #ffffff;
  font-weight: 700;
}

/* 該当なしメッセージ。記事がないときに .is-visible を付けて表示する（このファイルの末尾） */
.no-news-found {
  display: none;
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.no-news-found p {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #4a5568;
}
.no-news-found .cat-tab-link {
  background: #3d81c2;
  color: #fff;
  padding: 6px 16px;
  font-size: 0.85rem;
}

/* 最近の記事ウィジェット */
.widget-recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.widget-recent-item a {
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.widget-recent-thumb {
  width: 70px;
  min-width: 70px;
  height: 55px;
  border-radius: 6px;
  overflow: hidden;
  background: #e2e8f0;
}

.widget-recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.widget-recent-body {
  flex: 1;
  min-width: 0;
}

.widget-recent-date {
  font-size: 0.78rem;
  color: #718096;
  margin-bottom: 3px;
}

.widget-recent-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  color: #2d3748;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.widget-recent-item a:hover .widget-recent-title {
  color: #3d81c2;
}

/* アーカイブ年月ウィジェット */
.widget-archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.widget-archive-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  text-decoration: none;
  color: #4a5568;
  font-size: 0.9rem;
  border-bottom: 1px dashed #edf2f7;
  transition: color 0.2s ease;
}

.widget-archive-item a:hover {
  color: #3d81c2;
}

/* サイドバーバナー */
.widget-banner-link {
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.widget-banner-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.widget-banner-content {
  background: linear-gradient(135deg, #3d81c2 0%, #1e5a96 100%);
  color: #fff;
  padding: 22px 20px;
  text-align: center;
}

.widget-banner-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.widget-banner-desc {
  font-size: 0.82rem;
  opacity: 0.9;
  margin-bottom: 12px;
}

.widget-banner-btn {
  display: inline-block;
  background: #fff;
  color: #3d81c2;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 20px;
}

/* トップページ新着情報セクションの「一覧へ」ボタン */
.news-more-container {
  text-align: center;
  margin-top: 30px;
}

.news-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #3d81c2;
  color: #fff;
  padding: 10px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(61, 129, 194, 0.25);
  transition: all 0.3s ease;
}

.news-more-btn:hover {
  background: #2b6a9e;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(61, 129, 194, 0.35);
}

/* ==========================================================================
   レスポンシブ対応 / Responsive for News Subpages
   ========================================================================== */
@media (max-width: 992px) {
  .subpage-header {
    padding: 28px 0 24px;
  }

  .content-wrapper {
    padding: 55px 0 60px;
  }

  .layout-2col {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .single-article {
    padding: 30px 20px;
  }

  .subpage-title-ja {
    font-size: 1.45rem;
  }

  .subpage-accent-01 {
    width: var(--sub-acc01-w-sp, 85px);
    top: var(--sub-acc01-top-sp, 28px);
    bottom: var(--sub-acc01-bottom-sp, auto);
    left: var(--sub-acc01-left-sp, 13px);
    right: var(--sub-acc01-right-sp, auto);
    opacity: var(--sub-acc01-op-sp, 0.65);
    transform: rotate(var(--sub-acc01-rot-sp, -4deg));
  }

  .subpage-accent-09 {
    width: var(--sub-acc09-w-sp, 94px);
    top: var(--sub-acc09-top-sp, 20px);
    bottom: var(--sub-acc09-bottom-sp, auto);
    left: var(--sub-acc09-left-sp, auto);
    right: var(--sub-acc09-right-sp, 0%);
    opacity: var(--sub-acc09-op-sp, 0.9);
    transform: rotate(var(--sub-acc09-rot-sp, 0deg));
  }

  .subpage-accent-07 {
    width: var(--sub-acc07-w-sp, 37px);
    top: var(--sub-acc07-top-sp, 4px);
    bottom: var(--sub-acc07-bottom-sp, auto);
    left: var(--sub-acc07-left-sp, auto);
    right: var(--sub-acc07-right-sp, 76%);
    opacity: var(--sub-acc07-op-sp, 0.95);
    transform: rotate(var(--sub-acc07-rot-sp, 4deg));
  }
}

@media (max-width: 768px) {
  .news-card {
    flex-direction: column;
    height: auto;
  }

  .news-card-thumb {
    width: 100%;
    min-width: 100%;
    height: 180px;
  }

  .news-card-body {
    padding: 20px;
  }

  .post-navigation {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .nav-previous,
  .nav-next {
    justify-content: flex-start;
    text-align: left;
  }

  .nav-back-list {
    order: -1;
    width: 100%;
  }
}

/* ==========================================================================
   見出し・ラベルの改行位置 / Line Breaks
   HTML の <wbr> の位置（文節の区切り）でだけ改行し、語の途中で改行しない。
   幅に収まらない場合のみ任意の位置で折り返す。
   ========================================================================== */
.article-title,
.news-card-title,
.section-title-small,
.seminars .section-title,
.event-theme-heading,
.news-link,
.event-pdf-download-link,
.event-flyer-caption,
.signature,
.footer-company-name,
.widget-recent-title,
.seminar-card h4,
.seminar-card p,
.about-text h4,
.greeting-text h4,
.image-link-item p,
.event-val p,
.widget-cat-item a,
.info-table td {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* 表のセルは anywhere だと列幅が1文字まで縮められるため、区切り位置でだけ折り返す */
.info-table td {
  overflow-wrap: break-word;
}

/* ダウンロードボタンの「PDF」バッジは分割しない */
.event-pdf-download-link span {
  white-space: nowrap;
}

/* ==========================================================================
   WordPress 用の追加スタイル
   管理画面から入力した内容の表示や、年度の切り替えなど WordPress 版で加えたもの。
   ========================================================================== */

/* 該当する記事がないときのメッセージ（静的版は JS で表示を切り替えていた） */
.no-news-found.is-visible {
  display: block;
}

/* 詳細ページのない記事は、サイドバーでリンクなしで表示する */
.widget-recent-item > div {
  display: flex;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   年度の切り替え（「全年度」のタブ＋年度を選ぶトグル）
   -------------------------------------------------------------------------- */
.year-select {
  position: relative;
}

.year-select-toggle {
  gap: 6px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.year-select-toggle::-webkit-details-marker {
  display: none;
}

.year-select-icon {
  transition: transform 0.2s ease;
}

.year-select[open] .year-select-icon {
  transform: rotate(180deg);
}

.year-select-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  min-width: 100%;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(26, 32, 44, 0.12);
}

.year-select-item {
  display: block;
  padding: 7px 14px;
  border-radius: 6px;
  color: #4a5568;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.year-select-item:hover {
  background: #edf2f7;
  color: #1a202c;
}

.year-select-item.active {
  background: #2b6cb0;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   管理画面から入力する文字の改行位置
   静的版は <wbr> で区切り位置を指定して語の途中で改行しないようにしていたが、
   入力された文字には <wbr> がないため、通常の改行に戻す。
   -------------------------------------------------------------------------- */
.article-title,
.news-card-title,
.news-link,
.widget-recent-title,
.event-theme-heading,
.event-val p,
.event-val li,
.event-flyer-caption,
.breadcrumb {
  word-break: normal;
  overflow-wrap: anywhere;
}

/* 見出しの最後の行が1〜2文字だけにならないようにする（対応ブラウザのみ） */
.article-title,
.news-card-title,
.news-link,
.widget-recent-title,
.event-theme-heading {
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   開催概要の内容欄（ビジュアルエディターで入力）
   -------------------------------------------------------------------------- */
.event-val a {
  color: #2b6cb0;
  text-decoration: underline;
  transition: color 0.2s;
}

.event-val a:hover {
  color: #1a4971;
}

/* URL をそのまま書いたリンクは途中で折り返す */
.event-val a[href^="http"] {
  word-break: break-all;
}

.event-val ul,
.event-val ol {
  margin: 0 0 6px 1.4em;
}

/* --------------------------------------------------------------------------
   本文（ブロックエディターで入力）
   -------------------------------------------------------------------------- */
.entry-body {
  margin-top: 30px;
  line-height: 1.9;
  color: #334155;
}

.entry-body > * + * {
  margin-top: 1em;
}

.entry-body h2,
.entry-body h3,
.entry-body h4 {
  margin-top: 1.8em;
  color: #2d3748;
  line-height: 1.5;
}

.entry-body ul,
.entry-body ol {
  padding-left: 1.4em;
}

.entry-body a {
  color: #2b6cb0;
  text-decoration: underline;
}

.entry-body img {
  max-width: 100%;
  height: auto;
}

.entry-body .wp-block-table {
  overflow-x: auto;
}

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

.entry-body th,
.entry-body td {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}

.entry-body th {
  width: 30%;
  background-color: #f7fafc;
  font-weight: 500;
}

@media (max-width: 576px) {
  .entry-body th,
  .entry-body td {
    display: block;
    width: 100%;
  }

  .entry-body tr + tr th,
  .entry-body td {
    border-top: none;
  }
}

/* スマホでは本文と見出しを少し小さくする（パソコンは元のサイズのまま） */
@media (max-width: 768px) {
  .entry-content {
    font-size: 0.95rem;
  }

  .entry-content h2 {
    font-size: 1.2rem;
  }

  .entry-content th,
  .entry-content td {
    font-size: 0.95rem;
  }
}

/* フッターのプライバシーポリシーへのリンク */
.footer-policy {
  margin-bottom: 4px;
  font-size: 0.75rem;
}

.footer-policy a {
  color: #fff;
  text-decoration: underline;
}
