:root {
  --bg: #ffffff;
  --ink: #1a1a1a;
  --muted: #666;
  --brand: #3498db;
  --brand: #E60012;
  --brand-2: #FF4D4D;
  --surface: #f6f7f9;
  --border: #e6e8ee;
  --maxw: 1200px;
  --content-width: 800px;
  --radius: 16px;
  --shadow: 0 2px 12px rgba(0, 0, 0, .07);
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans JP", sans-serif;
  line-height: 1.6
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

a {
  color: var(--brand);
  /* text-decoration: none */
}

a:hover {
  opacity: 0.7;
  text-decoration: underline
}

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

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

.center {
  text-align: center;
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 1.5em;
  font-size: 30px;
  font-weight: bold;
}

.center::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--brand);
  border-radius: 3px;
}

.lead {
  font-size: 1rem;
  color: var(--muted)
}

.hero-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow)
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border)
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 27px 0; /* 18px * 1.5 = 27px */
  min-height: 80px; /* 高さを確保するために追加 */
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .02em
}

.brand .logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: var(--shadow)
}

.brand .name {
  font-size: 1.1rem
}

nav.global {
  display: none
}

nav.global ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0
}

nav.global a {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink)
}

nav.global a:hover {
  background-color: var(--brand);
  color: white; /* テキスト色を白に変更して可読性を確保 */
  text-decoration: none;
  transition: background-color 0.3s ease; /* スムーズな色の変化を追加 */
}

/* New
Hamburger (animated) */
.hamburger {
  display: none; /* デフォルトで非表示 */
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer
}

.hamburger:focus-visible {
  outline: 3px solid var(--brand)
}

.hamburger .bar {
  width: 26px;
  height: 2px;
  background: var(--ink);
  display: block;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease
}

.hamburger.is-open .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg)
}

.hamburger.is-open .bar:nth-child(2) {
  opacity: 0
}

.hamburger.is-open .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg)
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(0, 0, 0, .45)
}

.mobile-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 12px 20px 20px;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .15)
}

.mobile-panel ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0
}

.mobile-panel li {
  border-top: 1px solid var(--border)
}

.mobile-panel a {
  display: block;
  padding: 14px 6px;
  color: var(--ink)
}

.drawer-close {
  position: absolute;
  right: 14px;
  top: 10px;
  border: 0;
  background: #f1f3f9;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer
}

/* メインビジュアル */
.hero {
  padding: 0;
  margin: 0;
  background: var(--surface);
  position: relative;
  width: 100%;
  min-height: 500px; /* 最低限の高さを確保 */
  overflow: hidden;
}

.hero .container-top {
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-image {
  width: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fadeIn 2s ease-in-out forwards;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

/* タブレットサイズ (768px〜1100px) */
@media (min-width: 768px) and (max-width: 1100px) {
  .hero {
    min-height: 320px; /* タブレット用の最低高さ */
  }
  
  .hero-image {
    object-position: center center; /* 画像の中央を表示 */
  }
}

/* About Page Styles */
#greeting,
#philosophy,
#fac-title,
#history {
  scroll-margin-top: 100px; /* ヘッダーの高さ分の余白を確保 */
}

.about-section {
  margin: 40px 0;
  line-height: 1.8;
}

.about-section .lead {
  font-size: 1rem;
  color: #333;
  margin-bottom: 30px;
}

.about-image {
  margin: 30px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* 沿革セクション */
.history-section {
  margin: 60px 0;
}

.history-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.history-year {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--ink);
  margin: 20px 0 10px;
  padding-left: 10px;
  border-left: 4px solid var(--brand);
}

.history-events {
  list-style-type: disc;
  margin: 10px 0 30px 30px;
  padding: 0;
}

.history-events li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Greeting Section */
.greeting-section {
  padding: 40px 0;
  border-radius: 8px;
}

.greeting-content {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 50px;
  margin-top: 30px;
  position: relative;
}

.greeting-text {
  flex: 1;
  line-height: 1.8;
  padding-top: 0; /* パディングをリセット */
  display: flex;
  flex-direction: column;
}

.greeting-text p {
  margin-bottom: 20px;
}

/* 理事長名 */
.president-name {
  margin: 0 0 25px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #E60012;
}

.president-name .title {
  display: block;
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 5px;
}

.president-name .name {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #222;
  line-height: 1.2;
}

.greeting-image {
  flex: 0 0 300px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 0;
  position: relative;
  top: 0;
}

.greeting-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .greeting-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .greeting-image {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* Philosophy Section */
.philosophy-section {
  margin: 60px 0;
}

.philosophy-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}

.philosophy-text {
  flex: 1;
}

.philosophy-text h3 {
  color: var(--brand);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.philosophy-text h4 {
  margin: 25px 0 15px;
  font-size: 1.2rem;
  color: #333;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 8px;
}

.philosophy-text ul {
  list-style-type: none;
  padding-left: 0;
}

.philosophy-text li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.philosophy-text li:before {
  content: "•";
  color: var(--brand);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.philosophy-image {
  flex: 0 0 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.philosophy-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Emblem Section */
.emblem-section {
  margin: 60px 0;
  padding: 40px 0;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.emblem-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}

.emblem-image {
  flex: 0 0 200px;
  text-align: center;
}

.emblem-image img {
  max-width: 150px;
  height: auto;
  margin: 0 auto;
}

.emblem-text {
  flex: 1;
  line-height: 1.8;
}

/* History Section */
.history-section {
  margin: 60px 0;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 40px auto 0;
  padding: 0 20px;
}

.timeline:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #e0e0e0;
  margin-left: -1px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.year {
  background: var(--brand);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.timeline-item .content {
  width: calc(50% - 40px);
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
}

.timeline-item:nth-child(odd) .content {
  margin-right: auto;
  margin-left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) .content {
  margin-left: auto;
  margin-right: 0;
  text-align: left;
}

.timeline-item .content h3 {
  color: var(--brand);
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.timeline-item .content p {
  margin: 0;
  color: #666;
  line-height: 1.5;
}

/* Group Section */
.group-section {
  margin: 60px 0;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.group-item {
  background: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.group-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.group-item h3 {
  color: var(--brand);
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
  font-size: 1.2rem;
}

.group-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.group-item li {
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
  color: #555;
}

.group-item li:last-child {
  border-bottom: none;
}

/* Responsive Styles */
@media (max-width: 992px) {
 
  .greeting-content {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  
  .greeting-image,
  .philosophy-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 50%;
    margin: 0 auto 30px;
    order: -1;
    text-align: center;
  }
  
  .greeting-image img,
  .philosophy-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  
  .emblem-image {
    margin-bottom: 20px;
  }
  
  .timeline:before {
    left: 30px;
  }
  
  .timeline-item .content {
    width: calc(100% - 80px);
    margin-left: 80px !important;
    text-align: left !important;
  }
  
  .year {
    align-self: flex-start;
    margin-left: 0;
  }
}

@media (max-width: 1024px) {
  .greeting-content,
  .philosophy-content,
  .emblem-content {
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .group-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .philosophy-text h3 {
    font-size: 1.3rem;
  }
  
  .philosophy-text h4 {
    font-size: 1rem;
  }
}

/* モバイルサイズ (〜767px) */
@media (max-width: 767px) {
  .hero {
    min-height: 300px; /* モバイル用の最低高さ */
  }
  
  .site-header .nav-wrap > a > img {
    content: url('../img/logo2.png') !important; /* スマホサイズでロゴを強制的に変更 */
  }
  
  .carousel {
    border-radius: 0;
    box-shadow: none;
  }
  
  .slides {
    border-radius: 0;
  }
}

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow)
}

.slides {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 56vw;
  max-height: 520px;
  border-radius: var(--radius);
}

.slide {
  min-width: 100%;
  height: 56vw;
  max-height: 520px;
  position: relative;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide.active {
  opacity: 1;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.car-btn {
  position: absolute;
  inset: auto 12px 12px auto;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.car-arrow {
  border: 0;
  background: #ffffffcc;
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.2s ease;
}

.car-arrow:hover {
  background: #ffffff;
}

.car-ind {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  display: flex;
  gap: 8px
}

.car-ind .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid #fff;
  background: #ffffff80
}

.car-ind .dot[aria-current="true"] {
  background: #fff
}

/* 3 image buttons - 横長で縦長め */
.triplet {
  padding: 80px 0;
}

/* 各ボタンの背景画像を設定 */
.triplet .about-btn::before {
  background-image: url('../../assets/img/hero.jpg');
  background-size: cover;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.4);
  background-blend-mode: multiply;
}

.triplet .info-btn::before {
  background-image: url('../../assets/img/32901884_l.jpg');
  background-size: cover;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.4);
  background-blend-mode: multiply;
}

.triplet .recruit-btn::before {
  background-image: url('../../assets/img/31955282_l.jpg');
  background-size: cover;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.4);
  background-blend-mode: multiply;
}

.triplet .row {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
}

.image-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
  display: flex;              /* テキストを中央寄せする */
  align-items: center;
  justify-content: center;
  background: var(--bg) center/cover no-repeat;
  color: #fff;
  font-size: 1.3rem;
  padding: 2rem;
  text-align: center;
  overflow: hidden;
}

.image-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* 通常は暗い */
  transition: background 0.3s ease;
  z-index: 0; /* 背景用なのでテキストより後ろ */
}

.image-btn:hover::before {
  background-color: transparent; /* ホバー時はオーバーレイを無効化 */
  transition: background-color 0.3s ease;
}

.image-btn span,
.image-btn p,
.image-btn strong,
.image-btn em {
  position: relative;
  z-index: 1; /* ← テキストは必ず前面に */
}

.card-lg {
  height: 180px
}

/* 縦長めの横長 */
.image-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* ホバー時に影を追加 */
}

/* News & Facilities & Business */
.business {
  padding: 80px 0 0px;
}

.news {
  background-color: var(--surface);
  padding: 80px 0 100px;
}

.facilities {
  background-color: #fff;
  padding: 80px 0 0px;
}

.business, .group-companies {
  background-color: #f9f9f9;
}

/* Group Companies Section */
.group-companies {
  padding: 40px 0 80px;
}

.group-link-img {
  width: 70%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .group-link-img {
  width: 92%;
}
}

.group-companies .section-title {
  text-align: center;
  font-size: 2.2rem;
  color: #333;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.group-companies .section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #e60012;
}

.group-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.group-card-link {
  text-decoration: none !important;
  color: inherit;
  display: block;
  transition: transform 0.3s ease;
  height: 100%;
}

.group-card-link:hover {
  transform: translateY(-5px);
  text-decoration: none !important;
}

.group-card {
  background: #fff;
  border-radius: 8px;
  padding: 30px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #eee;
  text-align: center;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.group-card h3 {
  color: #e60012;
  font-size: 1.5rem;
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none !important;
  position: relative;
  display: inline-block;
  padding: 0 10px;
}

/* タブレット表示（768px以上） */
@media (min-width: 768px) {
  .group-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0;
  }
  
  .group-card {
    min-height: 120px;
    padding: 20px 15px;
  }
}

/* デスクトップ表示（1024px以上） */
@media (min-width: 1024px) {
  .group-card {
    min-height: 140px;
  }
}

/* Business Section */
.business {
  background-color: #f9f9f9;
  /* padding: 80px 0 50px; */
  margin-top: 40px;
}

.business .section-title {
  text-align: center;
  font-size: 2.2rem;
  color: #333;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.business .section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #e60012;
}

.business-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
}

.business-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease;
}

.business-card-link:hover {
  transform: translateY(-5px);
}

.business-card-link img{
border: 1px solid var(--border);
box-shadow: var(--shadow);
}

.business-card {
  background: #fff;
  border-radius: 8px;
  padding: 30px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #eee;
  text-align: center;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  text-decoration: none !important;
  color: inherit;
}

.business-card h3 {
  color: #e60012;
  font-size: 1.5rem;
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: text-decoration 0.3s ease;
}

/* ホバー時に下線を表示 */
.business-card-link {
  text-decoration: none !important;
}

.business-card h3 {
  position: relative;
  display: inline-block;
  text-decoration: none !important;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.business-card-link:hover h3,
.business-card-link:active h3,
.business-card-link:focus h3 {
  border-bottom-color: #e60012;
  text-decoration: none !important;
}

/* タブレット表示（768px以上） */
@media (min-width: 768px) {
  .business-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0;
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .business-card {
    min-height: 120px;
    padding: 20px 15px;
  }
}

/* デスクトップ表示（1024px以上） */
@media (min-width: 1024px) {
  .business-card {
    min-height: 140px;
  }
}

.news h2 {
  margin: 8px 0 14px
}

.news-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
  margin-top: 40px
}

.news-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.news-card .thumb {
  aspect-ratio: 16/9;
  background: #eee
}

.news-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.news-card .body {
  padding: 14px
}

.news-card .title {
  font-weight: 700;
  margin: 0 0 6px
}

.news-card .meta {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 6px
}

.news-card .body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.news-card .title {
  color: var(--ink);
  margin: 0 0 10px;
  font-size: 1.2rem;
  transition: color 0.2s ease;
}

.news-card:hover .title {
  color: var(--brand);
  text-decoration: underline;
}

.btn-inline {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--brand);
  color: white;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-inline:hover {
  background-color: var(--brand-2);
  text-decoration: none;
  opacity: 0.9;
}

/* Recruitment Page */
.recruit-content {
  margin: 40px 0;
}

.school-facilities {
  padding: 20px;
  background-color: var(--surface);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.recruit-section h2,
.school-facilities h2 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary-light);
}

.recruit-details {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.recruit-info {
  flex: 1;
  min-width: 300px;
}

.recruit-item {
  margin-bottom: 20px;
}

.recruit-item h3 {
  color: var(--primary-dark);
  font-size: 1rem;
  margin-bottom: 8px;
  position: relative;
  padding-left: 15px;
}

.recruit-item h3:before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
}

.recruit-item p,
.recruit-item ul {
  margin: 0;
  padding-left: 15px;
}

.recruit-item ul {
  list-style-type: none;
  padding-left: 20px;
}

.recruit-item li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 5px;
  line-height: 1.6;
}

.recruit-item li:before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.apply-info {
  flex: 0 0 320px;
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #eee;
}

.apply-info h3 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.contact-box {
  background-color: #fff;
  padding: 15px;
  border-radius: 5px;
  margin: 15px 0;
  border: 1px solid #eee;
}

.contact-box p {
  margin: 5px 0;
  line-height: 1.6;
}

.note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 15px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .recruit-section {
    padding: 20px 15px;
  }
  
  .recruit-details {
    flex-direction: column;
  }
  
  .apply-info {
    flex: 1;
    width: 100%;
  }
}

/* Document List */
.info-content {
  margin: 40px 0;
}

.document-list {
  margin-bottom: 40px;
}

.document-item {
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 0;
}

.document-link {
  display: flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}

.document-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.document-link i {
  margin-right: 10px;
  color: #d32f2f;
  font-size: 1.2em;
}

.document-link span {
  font-size: 0.95em;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .document-link span {
    font-size: 0.9em;
  }
  
  .document-link i {
    font-size: 1.1em;
  }
}


/* セクション見出し */
.news h2{
  margin: 0 0 50px 0;
  font-size: 2.2rem;
  text-align: center;
  color: #333;
  position: relative;
  padding-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.news h2:after{
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #e60012;
}

.fac-grid {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 40px;
}

/* デフォルト（スマホ）では1列表示 */
.fac-grid {
  grid-template-columns: 1fr;
  max-width: 500px;
  margin: 0 auto;
}

/* タブレット（768px以上）で2列表示 */
@media (min-width: 768px) {
  .fac-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1000px;
  }
}

/* デスクトップ（1024px以上）でも2列表示を維持 */
@media (min-width: 1024px) {
  .fac-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1000px;
    margin: 0 auto;
  }
}

/* 設置校一覧（about.html）: ロゴ用グリッド（fac-gridとは別） */
.school-logos-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  justify-items: center; /* ← スマホ/タブレットで中央寄せ */
  padding: 0 16px;       /* ← 端に寄りすぎ防止 */
  box-sizing: border-box;
}
.school-logos-grid a{
  display: block;
  width: 100%;
}
.school-logos-grid .thumb{
  display: flex;
  justify-content: center;
}
.school-logos-grid img{
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
@media (min-width: 768px){
  .school-logos-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px){
  .school-logos-grid{
    grid-template-columns: repeat(4, 1fr);
    padding: 0; /* PCは余白なし */
  }
}

}



/* 認定バッジのスタイル */
.certification-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #e60012;
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 2;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transform-origin: left top;
}

/* スマホサイズのバッジ調整 */
@media (max-width: 480px) {
  .certification-badge {
    font-size: 0.6rem;
    padding: 3px 6px;
    line-height: 1.2;
  }
  
  /* 2つ目のバッジの位置調整 */
  .certification-badge + .certification-badge {
    top: 32px;
  }
  
  /* 長いテキストのバッジ用 */
  .certification-badge[style*="top: 40px"] {
    top: 30px !important;
  }
  
  /* 東北保健医療専門学校のバッジ調整 */
  }

/* ====================================
   入学を希望する皆様へページのスタイル
   ==================================== */

/* ページヘッダー */
.page-header {
  background-color: #004098;
  color: white;
  padding: 40px 20px;
  margin-bottom: 40px;
  text-align: center;
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700
}

.btn-solid:hover {
  text-decoration: none;
  opacity: .95
}

.breadcrumb {
  margin: 0 0 30px;
  padding: 10px 0;
  color: #666;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #ff0000;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ニュース詳細 */
.news-detail {
  background: #fff;
  padding: 0;
  margin-bottom: 40px;
}

.news-header {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #666;
  font-size: 0.9rem;
}

.news-date {
  position: relative;
}

.news-category {
  color: #e60012;
  font-weight: 500;
}

.news-detail h1 {
  font-size: 1.8rem;
  margin: 0 0 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
  color: #333;
  line-height: 1.4;
}

/* トップ画像 */
.news-featured-image {
  margin: 0 0 30px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-featured-image.hero-image {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  animation: fadeIn 2s ease-in-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.news-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 500px;
  object-fit: cover;
}

.news-content {
  line-height: 1.8;
  color: #333;
  margin-top: 20px;
}

.news-content p {
  margin: 0 0 1.5em;
}

.news-content ul {
  margin: 1.5em 0;
  padding-left: 1.2em;
  list-style-type: disc;
}

.news-content li {
  margin-bottom: 0.5em;
  padding-left: 0.5em;
}

.note-box {
  background: #f5f5f5;
  border-left: 4px solid #e60012;
  padding: 15px 20px;
  margin: 30px 0;
}

.note-box p {
  margin: 0 !important;
}



.btn-back {
  display: inline-block;
  background: #e60012;
  color: #fff;
  padding: 10px 25px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

.btn-back:hover {
  background: #cc0010;
  text-decoration: none;
}

.related-news {
  margin: 50px 0 30px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.related-news h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #333;
}

.related-news ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-news li {
  margin-bottom: 10px;
  padding-left: 15px;
  position: relative;
}

.related-news li:before {
  content: "▶";
  position: absolute;
  left: 0;
  color: #e60012;
  font-size: 0.7em;
  top: 0.4em;
}

.related-news a {
  color: #0066cc;
  text-decoration: none;
}

.related-news a:hover {
  text-decoration: underline;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .news-detail h1 {
    font-size: 1.5rem;
  }
  
  .news-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
}
  padding: 40px 0;
  background: #f9fafc;
}

.blog-post {
  max-width: var(--content-width);
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 40px;
}

.blog-header {
  margin-bottom: 30px;
  text-align: center;
}

.blog-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.blog-category {
  display: inline-block;
  background: var(--brand);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-left: 10px;
}

.blog-title {
  font-size: 2.2rem;
  margin: 20px 0;
  line-height: 1.3;
  color: #1a1a1a;
}

.blog-author {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 25px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  border: 2px solid var(--border);
}

.author-info {
  text-align: left;
}

.author-name {
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  font-size: 1rem;
}

.blog-featured-image {
  margin: 0 -40px 30px;
}

.featured-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.blog-content {
  line-height: 1.8;
  color: #444;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #333;
}

.blog-content h2 {
  color: #1a1a1a;
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  font-size: 1.6rem;
}

.blog-note {
  background: #f0f7ff;
  border-left: 4px solid var(--brand);
  padding: 20px 25px;
  margin: 40px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  display: flex;
  align-items: flex-start;
}

.blog-note i {
  color: var(--brand);
  font-size: 1.2rem;
  margin-right: 15px;
  margin-top: 3px;
}

.blog-note p {
  margin: 0;
}



.blog-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  background: #f0f2f5;
  color: #4a5568;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.tag:hover {
  background: #e2e8f0;
  text-decoration: none;
}

.signature {
  color: var(--muted);
  font-style: italic;
  text-align: right;
  margin: 0;
}







/* 各校のリンクセクション */
.school-links {
  background-color: #f8f9fa;
  padding: 40px 0;
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
}

.school-links .container-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.school-links-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.school-links-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--brand);
}

.school-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.school-links-group h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
  font-weight: 600;
}

.school-links-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.school-links-group li {
  margin-bottom: 10px;
}

.school-links-group a {
  color: #555;
  text-decoration: none;
  display: block;
  padding: 6px 0;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 15px;
}

.school-links-group a::before {
  content: '▶';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  font-size: 10px;
  transition: all 0.3s ease;
  opacity: 0;
}

.school-links-group a:hover {
  color: var(--brand);
  padding-left: 20px;
  text-decoration: none;
}

.school-links-group a:hover::before {
  opacity: 1;
  left: 5px;
}

/* タブレットサイズ (768px〜1023px) */
@media (max-width: 1023px) {
  .school-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* スマートフォンサイズ (〜767px) */
@media (max-width: 767px) {
  .school-links {
    padding: 30px 0;
  }
  
  .school-links-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .school-links-title {
    font-size: 22px;
    margin-bottom: 25px;
  }
  
  .school-links-group h3 {
    font-size: 17px;
  }
}

















/* ソーシャルリンク - 非表示 */
.social-links {
  display: none !important;
  margin-top: 25px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
}

.social-link:hover {
  background: #E60012;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(230, 0, 18, 0.3);
  border-color: transparent;
}

/* フッターセクション */
.footemain[role="main"] {
  padding: 40px 0 150px;
  min-height: 60vh;
  position: relative;
}

















.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #c0c8d0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-item i {
  color: #E60012;
  margin-top: 4px;
  min-width: 16px;
  text-align: center;
}

.contact-item a {
  color: #c0c8d0;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #fff;
  text-decoration: none;
}



.newsletter-desc {
  color: #a0a8b8;
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 12px 15px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.3);
  color: #fff;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.newsletter-form input:focus {
  outline: none;
  border-color: #E60012;
  box-shadow: 0 0 0 2px rgba(230, 0, 18, 0.2);
}

.btn-subscribe {
  background: linear-gradient(135deg, #E60012 0%, #CC0010 100%);
  color: white;
  border: none;
  padding: 0 25px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.btn-subscribe:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(230, 0, 18, 0.3);
}











.divider {
  color: rgba(255,255,255,0.2);
  font-size: 1rem;
  line-height: 1;
}

/* レスポンシブ */
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: left;
    padding: 0 60px; /* タブレット表示でのパディングを増やす */
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px 0; /* 上下の余白を増やす */
    margin: 0 auto 30px; /* 下の余白を追加 */
    border-bottom: 1px solid #444;
    display: flex;
    flex-direction: column; /* 縦並びに変更 */
    justify-content: center;
    align-items: center;
    gap: 20px; /* ロゴとテキストの間隔を設定 */
  }
  
  .footer-logo-link {
    margin-bottom: 15px; /* ロゴの下の余白を追加 */
  }
  
  .footer-section {
    padding: 0 0 0 30px; /* 左側のパディングを増やして右寄せ */
  }
  
  .footer-section {
    width: 100%;
    min-width: 200px; /* 最小幅を設定 */
    margin: 0; /* マージンを削除 */
    white-space: nowrap; /* テキストの折り返しを防止 */
  }
  
  .footer-brand {
    text-align: left;
    padding-bottom: 0;
  }
  
  .footer-brand::after {
    display: none;
  }
  
  .social-links {
    display: none !important;
  }
  
  /* ニュースレター非表示 */
  .footer-newsletter {
    display: none !important;
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    flex-wrap: nowrap; /* 改行を防ぐ */
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 250px repeat(3, 1fr);
    gap: 40px 60px; /* カラム間の間隔を調整 */
    padding: 0 80px; /* デスクトップ表示でのパディングを増やす */
  }
  
  .footer-brand {
    grid-column: auto;
    text-align: left;
    border-bottom: none;
    border-right: 1px solid #444;
    padding-right: 50px; /* ロゴの右パディングを増やす */
    margin-right: 20px; /* 右側の余白を追加 */
  }
  
  .footer-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
  }
  
  .footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .footer-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .footer-link:hover {
    color: #fff;
    text-decoration: underline;
  }
  
  /* ロゴを中央揃えに調整 */
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  /* ニュースレター非表示 */
  .footer-newsletter {
    display: none !important;
  }
}

/* アニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}













































/* Pages */
.page {
  padding: 28px 0
}

/* ページタイトル */
.page-title {
  font-size: 2.2rem;
  color: #333;
  text-align: center;
  margin: 0 0 40px;
  padding-bottom: 20px;
  position: relative;
  line-height: 1.4;
  font-weight: 700;
  border-bottom: 2px solid #f0f0f0;
  margin: 20px 0 30px;
  padding-bottom: 10px;
}

/* リード文 */
.lead {
  text-align: center;
  font-size: 1rem;
  color: var(--muted);
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.timeline {
  list-style: none;
  padding: 0
}

.timeline li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border)
}

.timeline li span {
  display: inline-block;
  width: 6em;
  color: var(--muted)
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0;
  list-style: none
}

.card-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px
}

.news-list {
  display: grid;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0
}

.news-more {
  text-align: center;
  margin-top: 30px;
}

.news-more .btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--brand);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  margin-top: 20px;
}

.news-more .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-row {
  display: flex;
  flex-direction: row;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: #fff;
  text-decoration: none;
  color: inherit;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}

.news-thumbnail {
  flex: 0 0 300px;
  margin-right: 24px;
}

.news-row > div:last-child {
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.news-row:hover {
  background-color: #f9f9f9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
  text-decoration: none;
}

.news-thumbnail {
  flex: 0 0 300px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  border-radius: 6px;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
  margin-right: 24px;
}

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

@media (max-width: 1024px) {
  .news-row {
    flex-direction: column;
    padding: 15px;
  }
  
  .news-thumbnail {
    flex: 0 0 auto;
    width: 100%;
    margin: 0 0 15px 0;
    aspect-ratio: 16/9;
  }
  
  .news-row > div:last-child {
    width: 100%;
    padding: 0;
  }
}

.news-row:hover img {
  transform: scale(1.02);
}

.news-row h3 {
  margin: 0 0 12px 0;
  color: #333;
  transition: color 0.3s ease;
  font-size: 1.4rem;
  line-height: 1.4;
}

.news-row:hover h3 {
  color: #e60012;
}

.news-row .meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.news-category {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background-color: #f0f0f0;
  color: #333;
  font-size: 0.8rem;
  font-weight: 500;
}

/* カテゴリごとの色分け */
.news-category-oshirase {
  background-color: #f0f0f0;
  color: #333;
}

.news-category-tcc {
  background-color: #e3f2fd;
  color: #1565c0;
}

.news-category-tmc {
  background-color: #fce4ec;
  color: #c2185b;
}

.news-category-eja {
  background-color: #e8f5e9;
  color: #00a65a;
}

.news-category-sjls {
  background-color: #fff3e0;
  color: #e65100;
}

.news-row p {
  margin: 0;
  color: #555;
  line-height: 1.6;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .news-row {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  
  .news-row h3 {
    font-size: 1.2rem;
  }
}

/* お問い合わせページ */
.contact-intro {
  max-width: var(--maxw);
  margin: 0 auto 40px;
  padding: 20px 40px;
  background: #f8f9fa;
  border-radius: 8px;
  text-align: center;
}

.contact-tel {
  margin-top: 20px;
  font-size: 1.5rem;
  font-weight: bold;
}

.contact-tel a {
  color: #e60012;
  text-decoration: none;
}

.contact-tel i {
  margin-right: 10px;
  color: #e60012;
}

.tel-note {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-top: 5px;
  font-weight: normal;
}

.contact-form {
  margin: 0 auto 60px;
  padding: 40px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 25px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.required {
  color: #e60012;
  font-size: 0.8rem;
  margin-left: 5px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #e60012;
  outline: none;
  box-shadow: 0 0 0 2px rgba(230, 0, 18, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.privacy-policy {
  margin: 30px 0;
  padding: 0;
  text-align: center;
}

.privacy-policy input[type="checkbox"] {
  margin-right: 8px;
}

.privacy-policy a {
  color: #0066cc;
  text-decoration: underline;
}

.form-submit {
  text-align: center;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

/* ボタンの基本スタイル */
.btn, .btn-submit, .btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--brand);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ホバー時のスタイル */
.btn:hover, .btn-submit:hover, .btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: white;
}

}

.form-submit .contact-tel {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.form-submit .contact-tel p:first-child {
  margin-bottom: 10px;
  color: #666;
}

.form-submit .contact-tel a {
  font-size: 1.5rem;
  font-weight: bold;
  color: #e60012;
  text-decoration: none;
}

.form-submit .contact-tel i {
  margin-right: 8px;
}

.form-submit .tel-note {
  margin-top: 5px;
  color: #666;
  font-size: 0.9rem;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .contact-intro {
    padding: 25px 20px;
    margin: 0 -10px 30px;
    border-radius: 0;
  }
  
  .contact-form {
    padding: 25px 20px;
    margin: 0 -10px 30px;
    border-radius: 0;
  }
  
  .contact-tel {
    font-size: 1.2rem;
  }

  .form-submit {
    padding: 25px 20px;
    margin: 0 -10px;
  }
}

/* 教職員募集ページ */
.page-title {
  font-size: 2rem;
  color: #333;
  margin: 20px 0 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid #e60012;
  position: relative;
}

.page-title .en {
  display: block;
  font-size: 1rem;
  color: var(--brand);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  font-weight: 500;
  margin-top: 5px;
  font-weight: normal;
  letter-spacing: 0.1em;
}

.recruit-section {
  margin: 0 auto 60px;
  background: #fff;
  padding: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}

.recruit-section h2 {
  font-size: 1.5rem;
  color: #333;
  padding-bottom: 15px;
  margin-bottom: 25px;
  border-bottom: 2px solid #f0f0f0;
  position: relative;
}

.recruit-section h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100px;
  height: 2px;
  background: #e60012;
}

.recruit-details {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.recruit-info {
  flex: 2;
  min-width: 300px;
}

.apply-info {
  flex: 1;
  min-width: 280px;
  background: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  height: fit-content;
}

.apply-info h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e60012;
  display: inline-block;
}

.recruit-info dl {
  margin: 0;
  padding: 0;
}

.recruit-info dt {
  font-weight: bold;
  color: #333;
  margin: 20px 0 8px 0;
  padding-bottom: 5px;
  border-bottom: 1px dashed #ddd;
  font-size: 1rem;
}

.recruit-info dd {
  margin: 0 0 5px 0;
  padding: 0 0 0 1em;
  line-height: 1.7;
}

.recruit-info ul {
  margin: 0.5em 0;
  padding-left: 1.5em;
}

.recruit-info li {
  margin-bottom: 0.5em;
  position: relative;
  line-height: 1.6;
}

.recruit-info li::before {
  content: '・';
  color: #e60012;
  position: absolute;
  left: -1em;
}

.contact-box {
  background: #fff;
  padding: 20px;
  margin: 20px 0;
  border: 1px solid #eee;
  border-radius: 5px;
}

.contact-box p {
  margin: 0 0 10px 0;
  line-height: 1.6;
}

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

.note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 20px;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .recruit-details {
    flex-direction: column;
  }
  
  .recruit-info,
  .apply-info {
    width: 100%;
    min-width: auto;
  }
  
  .recruit-section {
    padding: 20px 15px;
  }
}

.contact-form {
  display: grid;
  gap: 12px;
}

/* ページトップボタン */
#pageTopBtn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  background: var(--brand);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  font-size: 20px;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

#pageTopBtn.visible {
  opacity: 1;
  visibility: visible;
}

#pageTopBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  background: var(--brand-2);
}

/* タブレット・デスクトップでもスクロール時に表示 */
@media (min-width: 768px) {
  #pageTopBtn {
    opacity: 0;
    visibility: hidden;
  }
  
  #pageTopBtn.visible {
    opacity: 1;
    visibility: visible;
  }
}

/* ロゴの表示を適切に制御 */
.site-header .nav-wrap > a > img {
  content: url('../img/logo2.png'); /* デフォルトのロゴ */
}

/* タブレットサイズ（768px〜1100px）でロゴを変更 */
@media (min-width: 768px) and (max-width: 1100px) {
  .site-header .nav-wrap > a {
    margin-left: 20px; /* 左側に20pxの余白を追加 */
  }
  .site-header .nav-wrap > a > img {
    content: url('../img/logo2_tl.png');
  }
}

/* スマホサイズ（〜767px）でロゴを変更 */
@media (max-width: 767px) {
  .site-header .nav-wrap > a > img {
    content: url('../img/logo2.png');
  }
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff
}

/* Responsive */
@media (min-width: 768px) {
  nav.global {
    display: block !important; /* 768px以上でグローバルナビを表示 */
  }
  
  /* タブレットサイズ（768px〜1100px）でグローバルメニューの右側にスペースを追加 */
  @media (max-width: 1100px) {
    nav.global ul {
      padding-right: 20px;
    }
  }

  .hamburger {
    display: none !important; /* 強制的に非表示 */
  }
}

@media (max-width: 767px) {
  nav.global {
    display: none; /* 767px以下でグローバルナビを非表示 */
  }

  .hamburger {
    display: flex; /* 767px以下でハンバーガーメニューを表示 */
  }
}

@media (min-width: 640px) {
  .triplet .row {
    grid-template-columns: repeat(3, 1fr)
  }

  .news-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .fac-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .slide {
    height: 48vw;
    max-height: 560px
  }

  .news-row {
    grid-template-columns: 220px 1fr
  }
}

/* ページネーション */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  gap: 8px;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background-color: #f5f5f5;
  text-decoration: none;
}

.pagination a.active {
  background-color: #E60012;
  color: white;
  border-color: #E60012;
}

.pagination .prev,
.pagination .next {
  width: auto;
  padding: 0 16px;
}

.pagination .prev {
  margin-right: 16px;
}

.pagination .next {
  margin-left: 16px;
}

@media (max-width: 767px) {
  .pagination {
    flex-wrap: wrap;
    gap: 4px;
  }
  
  .pagination a {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  
  .pagination .prev,
  .pagination .next {
    padding: 0 12px;
  }
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 40px 50px;
  }

  .footer-logo {
    text-align: left;
    flex: 0 0 40%;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }

  .footer-logo::after {
    left: 0;
    transform: none;
    background: linear-gradient(90deg, #E60012, transparent);
  }

  .footer-logo-img {
    margin-left: 0;
  }

  .footer-address p {
    justify-content: flex-start;
  }

  .footer-links {
    flex: 0 0 55%;
    align-items: flex-end;
  }

  .footer-nav {
    justify-content: flex-end;
    gap: 8px;
  }
}

@media (min-width: 768px) {
  .fac-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1000px;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slides {
    transition: none
  }
}

/* プライバシーポリシーページ */
.privacy-policy {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
    line-height: 1.8;
}

.privacy-policy h1 {
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.policy-section {
    margin-bottom: 40px;
}

.policy-section h2 {
    color: var(--brand);
    font-size: 1.5rem;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
}

.policy-section p {
    margin-bottom: 1.2em;
    color: #4a5568;
}

.policy-section ul {
    margin: 1em 0;
    padding-left: 1.5em;
}

.policy-section li {
    margin-bottom: 0.5em;
    position: relative;
    padding-left: 1.2em;
}

.policy-section li:before {
    content: "・";
    position: absolute;
    left: 0;
    color: #4a5568;
}

.contact-info {
    background-color: #f8fafc;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.contact-info p {
    margin: 5px 0;
}

.revision {
    text-align: right;
    font-size: 0.9em;
    color: #718096;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px dashed #cbd5e0;
}

/* レスポンシブ対応 */
@media (max-width: 767px){
  .facility {
    flex-direction: column;
    padding: 25px;
  }
  
  .facility-image {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    margin-bottom: 15px;
  }
  
  .facility-text {
    min-height: auto;
    padding-right: 0;
    width: 100%;
  }
  
  .map {
    position: relative;
    width: 100%;
    height: 300px;
    margin: 20px 0;
    right: auto;
    bottom: auto;
  }
  
  .map iframe {
    height: 100%;
    min-height: 250px;
  }
}

@media (max-width: 767px) {
  .privacy-policy {
    padding: 20px 15px;
  }
  
  .policy-section {
    margin-bottom: 30px;
  }
  
  .policy-section h2 {
    font-size: 1.3rem;
  }
  
  /* 施設・設備・アクセスセクションの中央寄せ */
  .facilities-section {
    text-align: center;
  }
  
  .facility {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
  }
  
  .facility-text {
    text-align: left;
    width: 100%;
    padding: 0;
  }
  
  .facility-text h3,
  .facility-text .address {
  font-size: 0.9rem;
    text-align: center;
  }
  
  .facility-text ul {
    text-align: left;
    display: inline-block;
  }
  
  .map {
    position: static;
    width: 100%;
    margin: 20px 0 0;
    max-width: 100%;
  }
  
  /* 設置校一覧の画像を一番上に配置 */
  .school {
    flex-direction: column-reverse;
  }
  
  .school .school-image img {
    max-height: 200px;
    width: auto;
    margin: 0 auto;
    display: block;
  }
  
  .school .school-text {
    text-align: left;
    padding-bottom: 20px;
    width: 100%;
  }
}


@media (max-width: 1024px) {
  .school .school-image {
    order: -1;
    margin-bottom: 15px;
  }
}




/* サイトマップページ */
/* 施設・設備・アクセスセクション */
.facilities-section {
  margin: 40px 0 60px;
}

.facility {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  gap: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.facility-image {
  flex: 0 0 45%;
  border-radius: 8px;
  overflow: hidden;
}

.facility-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facility-text {
  flex: 1;
  position: relative;
  min-height: 280px;
}

.facility-text h3 {
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.facility-text ul {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
}

.facility-text li {
  margin-bottom: 8px;
  padding-left: 1.5em;
  position: relative;
  line-height: 1.6;
}

.facility-text li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  background-color: #000;
  border-radius: 50%;
}

.address {
  font-size: 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 15px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.map {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 250px;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.map iframe {
  width: 100%;
  height: 100%;
  border: none;
}


/* タブレット時のみ：地図の埋め込み干渉を避けるため、別タブで開くボタンを表示 */
.map-link-btn {
  display: none; /* デフォルトは非表示（PC/スマホでは埋め込み地図を使用） */
  margin-top: 12px;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.map-link-btn:hover {
  filter: brightness(0.98);
}

/* タブレット幅（768〜1366px）では埋め込み地図を非表示にしてボタンへ */
@media (min-width: 768px) and (max-width: 1366px) {
  .facility-text .map {
    position: static;
    width: 100%;
    height: auto;
    box-shadow: none;
  }

  .facility-text .map iframe {
    display: none;
  }

  .facility-text .map .map-link-btn {
    display: inline-flex;
  }
}

.school-facilities {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.school-facilities h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--ink);
}

.school-facilities p {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.dormitory {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.dormitory h3 {
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.dormitory h4 {
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.dorm-block {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.dorm-item {
  flex: 1;
  background: var(--surface);
  border-radius: 8px;
  padding: 10px;
}

.dorm-name {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: inline-block;
  width: 100%;
  line-height: 1.6;
}

.dorm-image img {
  width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}

.dorm-link {
  text-align: center;
  margin-top: 20px;
}

.note-links {
  display: inline-block;
  color: var(--brand);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding-right: 20px;
}

.note-links:after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.note-links:hover {
  text-decoration: underline;
}

.note-links:hover:after {
  transform: translate(5px, -50%);
}

/* 学生寮リンクボタン */
.dorm-link-btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--brand);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.dorm-link-btn:hover {
  background-color: #cc0010;
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.facility-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px auto 0;
  justify-content: center;
  max-width: 800px;
}

.facility-button {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1rem;
  background-color: var(--brand);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}


/* 各学校別の施設・寮ボタンカラー */
.facility-buttons a[href*="tcc.ac.jp"] {
  background-color: #004098;
}

.facility-buttons a[href*="tmc.ac.jp"] {
  background-color: #e5006a;
}

.facility-buttons a[href*="ejair.ac.jp"] {
  background-color: #007440;
}

.facility-buttons a[href*="sjls.ac.jp"] {
  background-color: #e65100;
}

.facility-button:hover {
  background-color: #cc0010;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
  .facility{
    display: block;
  }
  .dormitory h4{
    text-align: center;
  }
}


/* レスポンシブ対応 */
@media (max-width: 767px) {
  .facility {
    flex-direction: column;
  }
  
  .facility-image {
    width: 100%;
    margin-bottom: 15px;
  }
  
  .map {
    position: static;
    width: 100%;
    height: 200px;
    margin-top: 15px;
  }
  
  .dorm-block {
    flex-direction: column;
  }
  
  .dorm-item {
    margin-bottom: 15px;
  }
  
  .facility-buttons {
    justify-content: center;
  }
  
  .facility-button {
    padding: 10px 20px;
    font-size: 1rem;
  }
  
  .dorm-item:last-child {
    margin-bottom: 0;
  }
}

/* 学園理念セクション */
.philosophy-section {
  text-align: center;
  margin-bottom: 20px;
}

.philosophy-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.philosophy-section h2.section-title {
font-size: 26px;
    margin: 18px 0 10px;
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 8px;
}

.philosophy-section h3 {
  font-size: 1.8rem;
  color: #222;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* 建学の精神セクション */
.principles-section {
  padding: 80px 0 60px;
}

.principles-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.principles-section .section-title {
  text-align: center;
  margin-bottom: 60px;
  font-size: 2.2rem;
  color: #333;
  position: relative;
  padding-bottom: 15px;
}

.principles-section .section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: #E60012;
  margin: 15px auto 0;
  border-radius: 2px;
}

.principles-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.principles-list li {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #E60012;
}

.principles-list h3 {
  color: #222;
  margin: 0 0 15px 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.principles-list p {
  color: #444;
  margin: 0;
  line-height: 1.8;
  font-size: 1.05rem;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .principles-section {
    padding: 50px 0 40px;
  }
  
  .principles-section .section-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
  }
  
  .principles-list li {
    padding: 25px 20px;
  }
  
  .principles-list h3 {
    font-size: 1.3rem;
  }
}

.sitemap-content {
  width: 100%;
  margin: 0;
  padding: 0;
}

.sitemap-section {
  margin-bottom: 40px;
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  /* box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee; */
}

.sitemap-section h2 {
  color: var(--brand);
  font-size: 1.5rem;
  margin: 0 0 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.sitemap-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}

.sitemap-section li {
  margin: 0;
  padding: 0;
}

.sitemap-section a {
  display: block;
  padding: 8px 10px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.sitemap-section a:hover {
  background-color: #f8f9fa;
  color: var(--brand);
  text-decoration: none;
  transform: translateX(5px);
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
  .sitemap-section {
    padding: 25px 20px;
  }
}

@media (max-width: 1024px) {
  .sitemap-section ul {
    grid-template-columns: 1fr;
  }
  
  .sitemap-section {
    padding: 20px 15px;
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .sitemap-section {
    padding: 15px 12px;
    margin-bottom: 25px;
  }
  
  .sitemap-section h2 {
    font-size: 1.3rem;
  }
}
/*




/* === Standardize About page section titles to match "建学の精神" & "設置校一覧" === */
.philosophy-section h2.section-title,
.history-timeline .section-title,
.chairman-greeting .section-title,
.facilities-access .section-title {
  text-align: center;
  margin-bottom: 60px;
  font-size: 2.2rem;
  color: #333;
  position: relative;
  padding-bottom: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: none; /* override older rule */
}
.philosophy-section h2.section-title::after,
.history-timeline .section-title::after,
.chairman-greeting .section-title::after,
.facilities-access .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #e60012;
}
/* === End standardization === */


/* === Fix: correct wrappers for About page headings === */
.history-section .section-title,
.greeting-section .section-title,
.facilities-section .section-title {
  text-align: center;
  margin-bottom: 60px;
  margin-top: 60px;
  font-size: 2.2rem;
  color: #333;
  position: relative;
  padding-bottom: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: none;
}
.history-section .section-title::after,
.greeting-section .section-title::after,
.facilities-section .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #e60012;
}
/* === End fix === */


/* === Fix underline for 建学の精神 to match others === */
.principles-section .section-title {
  text-align: center !important;
  margin-bottom: 60px !important;
  font-size: 2.2rem !important;
  color: #333 !important;
  position: relative !important;
  padding-bottom: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  border: none !important;
}
.principles-section .section-title::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 80px !important;
  height: 3px !important;
  background-color: #e60012 !important;
}



/* === Auto-added by ChatGPT: center .footer-left on small screens === */
@media (max-width: 1024px){
  .footer-left { 
    text-align: center !important; 
  }
  .footer-left, .footer-left * {
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
  }
  .footer-left {
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .footer-left a, .footer-left p, .footer-left li, .footer-left span, .footer-left h1, .footer-left h2, .footer-left h3, .footer-left h4, .footer-left h5, .footer-left h6 {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
/* === End auto-added === */


/* footer white-space fix */
.site-footer .footer-section a[href="privacy.html"]{
  white-space: normal !important;
  word-break: keep-all;
}

.site-footer .footer-address{white-space: normal !important;}

/* ==== footer tel button (added) ==== */
.footer-left .footer-tel {
  margin-top: 8px;
}
.footer-left .footer-tel a {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  padding: 10px 35px;
  border-radius: 8px;
  color: #FFF;
  text-decoration: none;
  border: 1px solid #ddd;}
.footer-left .footer-tel a:hover {
  opacity: 0.7 !important;
  color: inherit !important;
  background: none !important;
}
@media (max-width: 768px) {
  .footer-left { text-align: center; }
  .footer-left .footer-tel { display: block; margin-top: 8px; }
}
.site-footer .footer-nav li {
  margin-bottom: 16px;
}
.site-footer .footer-nav ul {
  margin-top: 35px !important;
}

/* === TEL HOVER PATCH (2025-11-06) ===
   Enforce: no color swap on tel hover; opacity only.
   Applies to: tel: links and common tel classes.
*/
a[href^="tel"]:hover,
.footer-left .footer-tel a:hover,
.contact-tel a:hover,
.tel a:hover,
a.tel:hover {
  opacity: 0.7 !important;
  color: inherit !important;
  background: none !important;
}
/* === END TEL HOVER PATCH === */


/* E-mail: break only on smartphone */
.sp-break-email { display:inline; }
@media (max-width:767px){
  .sp-break-email { display:block; }
}


.fac-card {
  text-decoration: none;
  color: inherit;
  display: block;
  max-width: 100%;
  transition: transform 0.3s ease;
}

.fac-card:hover {
  transform: translateY(-5px);
  text-decoration: none;
}

.fac-card img {
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}


/* 個人情報保護 基本方針：お問合せ dBox（本家レイアウト寄せ・横並び） */
.dBox {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.dBox-title {
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
}

.dBox-tel,
.dBox-free {
  font-size: 1.4rem;
  line-height: 1.6;
  margin: 0;
}

@media screen and (max-width: 767px) {
  .dBox {
    margin-top: 20px;
    gap: 16px;
  }
  .dBox-title {
    font-size: 1rem;
    flex-basis: 100%;
  }
  .dBox-tel,
  .dBox-free {
    font-size: 1.2rem;
  }
}
.dBox {
  margin-top: 24px;
  padding: 24px 20px;
  border-radius: 8px;
  border: 1px solid #dddddd;
  background-color: #f9f9f9;
}

.dBox-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
}

.dBox-tel,
.dBox-free {
  font-size: 1.05rem;
  line-height: 1.8;
}

@media screen and (max-width: 767px) {
  .dBox {
    padding: 20px 16px;
  }
  .dBox-title {
    font-size: 1rem;
  }
  .dBox-tel,
  .dBox-free {
    font-size: 1rem;
  }
}

.news-detail-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.news-detail-nav .back-to-list a,
.news-detail-nav .prev-next a {
  display: inline-block;
  font-size: 14px;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
  border: 1px solid var(--brand);  /* 学園サイトの青っぽいイメージならここをブランド色に */
  transition: 0.3s;
}

.news-detail-nav .back-to-list a:hover,
.news-detail-nav .prev-next a:hover {
  background-color: var(--brand);
  color: #fff;
  opacity: 1;
  
}

.news-detail-nav .prev-next {
  display: flex;
  gap: 8px;
}

.news-detail-nav .prev-link::before {
  content: "« ";
}

.news-detail-nav .next-link::after {
  content: " »";
}

/* スマホで縦積みにしたい場合 */
@media (max-width: 767px) {
  .news-detail-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .news-detail-nav .back-to-list,
  .news-detail-nav .prev-next {
    width: 100%;
  }

  .news-detail-nav .prev-next {
    justify-content: space-between;
  }

  .news-detail-nav .back-to-list a,
  .news-detail-nav .prev-next a {
    text-align: center;
    width: 100%;
  }
}

.dorm-image img {
  width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}


/* グループ企業（company-card）レイアウト */
.company-card {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-bottom: 40px;
}

.company-card:last-child {
  margin-bottom: 0;
}

.company-text {
  flex: 1 1 280px;
}

.company-image {
  flex: 0 0 260px;
  text-align: right;
}

.company-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* スマホサイズでは縦並びに */
@media (max-width: 767px) {
  .company-card {
    flex-direction: column;
  }

  .company-text {
  flex:none;
  }

  .company-image {
    text-align: left;
    flex:none;
  }
}


/* =========================================
   nyugaku 上部ボタン（ページ内リンク）
   PC: 1段目3つ・2段目2つ（中央寄せ・横幅広め）
   ※色・ホバーは既存リンク設定に依存
========================================= */
#page-nyugaku .section-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1100px;
  margin: 32px auto 48px;
}

#page-nyugaku .section-nav .navbtn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 12px;
  text-align: center;
  box-sizing: border-box;
  /* 画面幅に対して3等分（gapを引いた分を計算） */
  flex: 0 0 calc((100% - 64px) / 3);
  max-width: calc((100% - 64px) / 3);
  white-space: normal; /* 改行許可 */
  min-height: 84px;
}

/* タブレット: 2列レイアウト（2+2+1） */
@media (max-width: 1024px) {
  #page-nyugaku .section-nav {
    max-width: 800px;
  }
  #page-nyugaku .section-nav .navbtn {
    flex: 0 0 calc((100% - 24px) / 2);
    max-width: calc((100% - 24px) / 2);
  }
}

/* スマホ: 1列レイアウト */
@media (max-width: 767px) {
  #page-nyugaku .section-nav {
    max-width: 100%;
    gap: 16px;
    margin: 24px auto 32px;
  }
  #page-nyugaku .section-nav .navbtn {
    flex: 0 0 100%;
    max-width: 100%;
  }
}


/* Contact box layout for teachers & kifukin pages */
#page-teachers .contact,
#page-kifukin .contact {
  width: 100%;
  box-sizing: border-box;
  border: 1.4px solid #999;
  border-radius: 10px;
  background: #fff;
  padding: 18px 20px;
}

#page-teachers .contact-row,
#page-kifukin .contact-row {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

#page-teachers .contact-row .dept,
#page-kifukin .contact-row .dept {
  font-size: 15px;
  color: #555;
  white-space: nowrap; /* 左側ラベルは折り返さない */
  flex: 0 0 auto;
  display: flex;
  align-items: center; /* 1行テキストを縦中央に */
}

#page-teachers .contact-row .school,
#page-kifukin .contact-row .school {
  font-weight: 700;
  font-size: 20px;
}

#page-teachers .contact-row .addr-bottom,
#page-kifukin .contact-row .addr-bottom {
  white-space: nowrap;
}

/* =========================================================
   Page hero (for all pages except top)
   ========================================================= */
.page-hero {
  height: 230px;
  background-image: url("../img/hero2.jpg");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}
@media screen and (max-width: 1200px) {
  .page-hero {
    background-image: url("../img/hero1.jpg");
  }
}
@media screen and (max-width: 767px) {
  .page-hero {
    height: 140px;
    background-image: url("../img/hero.jpg");
  }
}


/* =========================
   学園紹介（トップページ）
========================= */
.gakuen-intro{
  padding: 64px 0;
}
.gakuen-intro h2{
  margin: 0 0 50px 0;
    font-size: 2.2rem;
    text-align: center;
    color: #333;
    position: relative;
    padding-bottom: 20px;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.gakuen-intro h2:after{
content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #e60012;
}
.gakuen-intro-inner{
  display: flex;
  gap: 72px;
  align-items: center;
}
.gakuen-intro-media{
  flex: 1 1 52%;
}
.gakuen-intro-media img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.gakuen-intro-body{
  flex: 1 1 48%;
}
.gakuen-intro-body p{
  margin: 0 0 18px;
  line-height: 1.9;
}
.gakuen-intro-actions{
  margin-top: 35px;
}

@media (max-width: 767px){
  .gakuen-intro-inner{
    flex-direction: column;
    gap: 18px;
  }
  .gakuen-intro-actions .btn{
    width: 100%;
    justify-content: center;
  }
}


.fac{
  padding: 64px 0;
}

.fac h2{
  margin: 0 0 50px 0;
    font-size: 2.2rem;
    text-align: center;
    color: #333;
    position: relative;
    padding-bottom: 20px;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.fac h2:after{
content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #e60012;
}

.link-none {
   pointer-events: none;
   color: #000000;
 text-decoration: none;
}

/* ==============================================
   about.html：理事長挨拶（#greeting）画像のタブレット対応
   - PC：既存（テキスト＋画像の2カラム）
   - Tablet(768-1024)：2カラムを維持しつつ画像幅を調整
   - SP(0-767)：縦並び
   ※ 既存の(max-width:1024 / 992)で縦並びになる指定を上書き
   ============================================== */

@media (min-width: 768px) and (max-width: 1024px) {
  #greeting .greeting-content {
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 30px;
  }

  #greeting .greeting-image {
    flex: 0 0 240px;
    max-width: 240px;
    width: auto;
    margin: 0;
    order: 0;
  }
}


/* school logos strip */
.school-logos {
  background:#fafafa;
}
.school-logos-inner{
  max-width:1200px;
  margin:0 auto;
  padding:14px 20px;
}
.school-logos-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:24px;
  align-items:center;
}
.school-logos-list li{
  text-align:center;
}
.school-logos-list img{
  width:auto;
  opacity:0.9;
}

/* tablet */
@media screen and (max-width:767px){
  .school-logos-list{
    grid-template-columns: repeat(2, 1fr);
  }
  .school-logos-list li:nth-child(odd){
    justify-self: end;   /* 左列：右寄せ */
  }
  .school-logos-list li:nth-child(even){
    justify-self: start; /* 右列：左寄せ */
  }
}

/* mobile */
/* @media screen and (max-width:600px){
  .school-logos-list{
    grid-template-columns: 1fr;
    gap:16px;
  }
} */

/* PC: vertical separators between school logos */
@media screen and (min-width:767px){
  .school-logos-list{
    column-gap: 24px; /* keep explicit so divider can sit at the center of the gap */
  }
  .school-logos-list li{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .school-logos-list li:not(:last-child)::after{
    content: "";
    position: absolute;
    right: calc(-24px / 2); /* place divider at the center of the gap */
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 48px; /* align with logo height */
    background: #ddd;
  }
}


/* school logos strip: mobile switches to school banner */
.school-logos-banner{ display:none; }
.school-logos-banner-link{ display:block; }
.school-logos-banner-img{
  width:100%;
  height:auto;
  display:block;
  border-radius:8px;
}

@media screen and (max-width:600px){
  .school-logos-list{ display:none; }
  .school-logos-banner{ display:block; }
}

/* ===== PCのみ：実表示領域に合わせてメインビジュアルを調整（タスクバー表示/非表示に追従） ===== */
@media (min-width: 1440px) {
  #home .hero {
    height: calc(
      (var(--vh, 1vh) * 100) -
      var(--header-h, 0px) -
      var(--logos-h, 0px)
    );
  }
}

/* --- Tablet horizontal gutter (improve side spacing) --- */
@media (min-width: 768px) and (max-width: 1100px) {
  .container,
  .container-top,
  .school-links .container-top {
    padding-left: 32px;
    padding-right: 32px;
  }
}


/* ==== footer logos (unified from top page) ==== */
.site-footer .footer-logos {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  background-color: #333333;
  margin-bottom: 16px;
}
.site-footer .footer-logos a {
  padding: 0 20px;
  border-right: 1px solid #666;
}
.site-footer .footer-logos a:last-child {
  border-right: none;
}
.site-footer .footer-logos img {
  max-width: 100%;
  object-fit: contain;
}
/* 767px以下: 2列, gap0 height120 */
@media (max-width: 767px) {
  .site-footer .footer-logos {
    flex-wrap: wrap;
    gap: 0;
    height: 120px;
  }
  .site-footer .footer-logos img {
    height: 40px;
  }
  .site-footer .footer-logos a {
    padding: 0 !important;
    border-right: none !important;
  }
}
/* 480px以下: 縦一列 */
@media (max-width: 480px) {
  .site-footer .footer-logos {
    gap: 20px;
    height: auto;
  }
  .site-footer .footer-logos img {
    height: 36px;
  }
}
/* ==== /footer logos ==== */


/* =========================================================
   設置校一覧（トップページ）画像サイズ調整
   - 一覧として「主張しすぎない」サイズ感に調整
   - PC/タブレット/スマホで段階的に縮小
   ========================================================= */
.fac .fac-card .thumb img,
.fac .fac-card img{
  width: 100%;
  height: auto;
  display: block;
}

/* PC（1024px〜）：2列のまま“ひと回り”抑える */
@media (min-width: 1025px){
  .fac .fac-grid{
    max-width: 920px; /* 1000px → 920px */
    gap: 18px;        /* 20px 付近 → 少し詰めて整える */
  }
  .fac .fac-card{
    max-width: 430px; /* 画像の見え方を抑える */
    margin: 0 auto;
  }
}

/* タブレット（768〜1023px）：見えすぎやすいので更に抑える */
@media (min-width: 768px) and (max-width: 1024px){
  .fac .fac-grid{
    max-width: 820px;
    gap: 18px;
  }
  .fac .fac-card{
    max-width: 380px;
    margin: 0 auto;
  }
}

/* スマホ（〜767px）：縦の圧迫を軽減 */
@media (max-width: 767px){
  .fac .fac-grid{
    max-width: 420px; /* 500px → 420px */
  }
}



/* 学生寮（学園寮）：校舎セクションと同レイアウト（コンパクト表示） */
.dormitory .dorm-facility{
  gap: 16px;
}

.dormitory .dorm-facility .facility-image{
  flex: 0 0 35%;
  max-width: 35%;
}

.dormitory .dorm-facility .facility-image img{
  height: auto;
}

.dormitory .dorm-facility .facility-text{
  min-height: auto;
}

.dormitory .dorm-facility .facility-text h3{
  font-size: 1.1rem;
  margin-bottom: 10px;
  padding-bottom: 8px;
}

.dorm-facility {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-radius: var(--radius);
  gap: 20px;
  background: #fff;
  padding: 10px;
}

@media (max-width: 767px){
  .dormitory .dorm-facility .facility-image{
    max-width: 100%;
  }
  .dorm-facility {
    flex-direction: column;
    padding: 25px;
  }
}

.hidden-pc,.hidden-pc2,.hidden-pc3 {
    display: none;
}

@media screen and (max-width: 1024px) {
    .hidden-pc {
        display: block;
    }

    .hidden-pc3 {
        display: block;
    }

    .hidden-sp {
        display: none;
    }
}

@media screen and (max-width: 767px) {
    .hidden-pc2 {
        display: block;
    }
    .hidden-pc {
        display: none;
    }
    .hidden-pc3 {
        display: block;
    }
}

@media (max-width: 767px){
  .school-facilities .facility-image img{
    max-width: 90%;
  }
}


/* 学生寮（学園寮） 画像サイズ調整（dormitory専用） */
.dormitory .facility-image img{
  width: auto ;
  max-width: 60% ;
  height: auto ;
  margin: 0 auto ;
  display: block ;
}
@media (max-width: 1366px){
  .dormitory .facility-image img{
    max-width: 90%;
    border-radius: var(--radius);
  }
}


/* 設置校一覧（about）：トップページと同じホバー挙動 */
.school-logos-grid a{
  display: block;
  transition: transform 0.3s ease;
}
.school-logos-grid a:hover{
  transform: translateY(-5px);
  text-decoration: none;
}
