:root {
  /* Dynamic Color Palette */
  --primary-color: #00838F;
  /* Vibrant Cyan */
  --primary-dark: #006064;
  --secondary-color: #4DD0E1;
  /* Light Cyan */
  --accent-color: #26A69A;
  /* Soft Teal */
  --background-color: #FAFAFA;
  --surface-color: #FFFFFF;
  --text-primary: #263238;
  --text-secondary: #546E7A;
  --white: #ffffff;
  --nav-height: 80px;
  /* etc color */
  --background-orange: #ffbf7f;
  --background-green: #84ff84;
  --background-pink: #ffa8d3;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  background-color: var(--background-color);
  color: var(--text-primary);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.2;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  /* Hidden by default for JS to trigger */
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header & Nav */
header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: all 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.02em;
}

.logo span {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Dropdown Menu */
.nav-item-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: white;
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 12px 24px;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: background 0.2s;
}

.dropdown-menu a:hover {
  background: #f0fdfa;
  color: var(--primary-color);
}

.dropdown-menu a::after {
  display: none;
}

@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    background: #f9f9f9;
    padding-left: 20px;
    display: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-item-dropdown.active .dropdown-menu {
    display: block;
  }
}

.mobile-menu-btn {
  display: none;
  font-size: 1.6rem;
  color: var(--primary-dark);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(0, 96, 100, 0.9), rgba(38, 166, 154, 0.8)), url('../images/hero_bg3.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: left bottom;
  height: 60vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding-top: var(--nav-height);
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  margin-bottom: 60px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 48px;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  color: var(--primary-color);
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
  background-color: var(--white);
  color: var(--accent-color);
}

/* Sections */
.section {
  padding: 30px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 60px;
  position: relative;
  letter-spacing: -0.02em;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  margin: 20px auto 0;
  border-radius: 2px;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.card {
  background: var(--surface-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.card-text {
  margin-bottom: 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex-grow: 1;
}

.card-link {
  color: var(--primary-color);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.card-link:hover {
  gap: 12px;
  color: var(--accent-color);
}

/* News Section Styles */
.news-container {
  background: var(--surface-color);
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  max-width: 960px;
  margin: 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.news-item {
  display: flex;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  gap: 20px;
  transition: background-color 0.2s;
}

.news-item:hover {
  background-color: rgba(0, 0, 0, 0.01);
}

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

.news-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 110px;
  flex-shrink: 0;
}

.news-date {
  color: var(--text-secondary);
  font-family: 'Inter', monospace;
  font-weight: 500;
  font-size: 0.9rem;
}

.news-tag {
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 20px;
  color: var(--white);
  min-width: 90px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-tag.event {
  background-color: var(--accent-color);
}

.news-tag.info {
  background-color: var(--secondary-color);
  color: var(--primary-dark);
}

.news-tag.course {
  background-color: #FFA726;
  /* Orange for courses */
}

.news-link {
  color: var(--text-primary);
  font-weight: 600;
  flex: 1;
  line-height: 1.6;
}

.news-link:hover {
  color: var(--primary-color);
}

/* Facility Info */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--surface-color);
  padding: 50px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.info-item h3 {
  color: var(--primary-dark);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
}

.info-item ul li {
  margin-bottom: 16px;
  padding-left: 24px;
  position: relative;
  color: var(--text-secondary);
}

.info-item ul li::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 10px;
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 40px 0 20px;
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 30px;
  justify-items: center;
  text-align: center;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 2px;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-col p {
  opacity: 0.8;
  font-size: 0.9rem;
}

.footer-col a {
  display: inline-block;
  /* リンクをインラインブロックにして回り込みを許可 */
  margin-bottom: 8px;
  opacity: 0.7;
  transition: all 0.2s;
  font-size: 0.9rem;
  line-height: 1.4;
}

.footer-col a:hover {
  opacity: 1;
  transform: translateY(-2px);
  color: var(--secondary-color);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  opacity: 0.6;

}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .logo {
    font-size: 1.2rem;
    gap: 8px;
  }

  .hero {
    clip-path: none;
    height: auto;
    padding: 120px 0 80px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 30px 20px;
    gap: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 1.1rem;
  }

  .nav-links a::after {
    display: none;
  }

  .info-grid {
    grid-template-columns: 1fr;
    padding: 30px;
  }
}

@media (max-width: 600px) {
  .news-item {
    gap: 16px;
  }

  .news-meta {
    min-width: 90px;
    gap: 4px;
  }

  .news-tag {
    min-width: 80px;
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  .news-link {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 40px;
  }

  .card-title {
    font-size: 1.3rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }
}

/* Courses Page Specifics */
.course-list {
  display: grid;
  gap: 24px;
}

.course-item {
  background: var(--surface-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: flex-start;
  gap: 24px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.course-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.course-content h3 {
  color: var(--primary-dark);
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.course-tag {
  display: inline-block;
  background: var(--secondary-color);
  color: #006064;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.course-tag-orange {
  display: inline-block;
  background: var(--background-orange);
  color: #006064;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.course-tag-green {
  display: inline-block;
  background: var(--background-green);
  color: #006064;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.course-tag-pink {
  display: inline-block;
  background: var(--background-pink);
  color: #006064;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
}


@media(max-width: 600px) {
  .course-item {
    flex-direction: column;
  }
}

/* Rental Page Specifics */
.rental-info {
  background: var(--surface-color);
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.rental-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  background: var(--surface-color);
  box-shadow: var(--shadow-sm);
  border-radius: 8px;
  overflow: hidden;
}

.rental-table th,
.rental-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  text-align: left;
}

.rental-table th {
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.rental-table tr:hover {
  background-color: rgba(0, 0, 0, 0.01);
}

.rule-box {
  background: #FFF3E0;
  border: 1px solid #FFE0B2;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 40px;
}

.rule-box h4 {
  color: #E65100;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Additional Utility Classes */
.section-intro {
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.course-icon {
  min-width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #E0F7FA, #B2EBF2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary-dark);
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.7), 0 5px 10px rgba(0, 0, 0, 0.05);
}

.contact-box {
  margin-top: 60px;
  padding: 40px;
  background: var(--surface-color);
  border-left: 5px solid var(--accent-color);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.contact-box h3 {
  margin-bottom: 16px;
  color: var(--primary-dark);
}

.contact-phone {
  font-weight: 700;
  font-size: 1.5rem;
  margin-top: 16px;
  color: var(--primary-color);
  display: block;
}

.media-service-section h3 {
  color: var(--primary-dark);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 12px;
  margin-bottom: 24px;
  font-size: 1.4rem;
}

.info-alert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.alert-info {
  background: #E0F7FA;
  padding: 24px;
  border-radius: 12px;
}

.alert-warning {
  background: #FFF8E1;
  padding: 24px;
  border-radius: 12px;
}

.alert-title {
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

.bordered-heading {
  margin-bottom: 24px;
  border-left: 6px solid var(--accent-color);
  padding-left: 16px;
  color: var(--primary-dark);
  font-size: 1.5rem;
}

.media-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.media-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

@media(min-width: 768px) {
  .media-card {
    flex-direction: row;
    align-items: stretch;
  }

  .media-card img {
    width: 45%;
    height: auto;
    min-height: 300px;
  }

  .media-card .card-content {
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.pb-0 {
  padding-bottom: 0 !important;
}

.text-link {
  color: var(--secondary-color);
  text-decoration: underline;
  transition: color 0.3s;
}

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

.card-image-placeholder {
  height: 70px;
  background: linear-gradient(135deg, #E0F2F1, #B2DFDB);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.2rem;
}

.map-placeholder {
  min-height: 300px;
  background: #EEEEEE;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.bg-image1 {
  background-image: url("../images/pc1.png");
}

.bg-image2 {
  background-image: url("../images/pc2.png");
}

.bg-image3 {
  background-image: url("../images/pc3.png");
}

/* Compact News Section */
.news-section .section-title {
  margin-bottom: 20px;
  /* 縮小 */
}

.news-section .news-container {
  padding: 15px 30px;
  /* 縮小 */
  max-width: 800px;
}

.news-section .news-item {
  padding: 5px 0;
  /* 縮小 */
}

/* Responsive Map Iframe */
.map-placeholder span {
  width: 100%;
  display: block;
}

.map-placeholder iframe {
  width: 100%;
  max-width: 100%;
  height: 450px;
  border-radius: 12px;
}

/* Apply Button for Training Courses */
.apply-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.apply-button:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

@media (max-width: 600px) {
  .apply-button {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

.underline-text {
  text-decoration: underline;
}