
html {
scroll-behavior: smooth;
}

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

/* =========================
   BASE
========================= */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    background-color: #0f3d2e;
    color: white;
    line-height: 1.6;
}

.page-container {
    background-color: #0f3d2e; 
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================
   HEADER
========================= */
header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000;   /* for on mobile, it doesn't overlap with the background */
}

header h1 {
    font-size: 24px;
}

.logo {
    color: #1b4d3e;
    text-decoration: none;
}

.logo:hover {
    opacity: 0.8;
}

/* =========================
   NAVIGATION
========================= */
nav {
    display: flex;
}

nav a {
    color: #1b4d3e;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
}

nav a:hover {
    color: #0f2e24;
    opacity: 0.7;
}

/* =========================
   HAMBURGER
========================= */
.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.3s ease;

    color: #1b4d3e;
}

.hamburger.active {
    transform: rotate(90deg);
}

/* =========================
   HERO
========================= */
/* =========================
   HERO DEFAULT (Purple for subpages)
========================= */

.hero {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;

    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    padding: clamp(60px, 10vh, 120px) 20px;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.button {
    background: white;
    color: #764ba2;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
}

.button:hover {
    opacity: 0.8;
}

/* =========================
   SECTIONS
========================= */
.section {
    padding: 80px 20px;
    text-align: center;
}

footer {
    margin-top: 60px;
    background: #111;
    color: white;
    text-align: center;
    padding: 20px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

    header {
        flex-direction: row;
        align-items: center;
    }

    nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        border-top: 1px solid #e5e5e5;
        padding: 0;
        flex-direction: column;

        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;

        z-index: 1100;
    }

    nav.active {
        max-height: 400px;
        padding: 15px 0;
    }

    nav a {
        margin: 12px 20px;
    }

    .hamburger {
        display: block;
    }

    .section {
        padding: 50px 20px;
    }
}

/* Cookie */

#cookie-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #222;
    color: white;
    padding: 15px;
    text-align: center;
    z-index: 2000;
}

#cookie-banner button {
    margin-left: 10px;
    padding: 6px 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

@media (max-width: 600px) {

    #cookie-banner button {
        display: block;
        margin: 8px auto;
        width: 120px;
    }

}

/* =========================
   INDEX PAGE
========================= */

.hero-index {
    min-height: 80dvh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-index::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content p {
    margin-bottom: 30px;
    font-size: 18px;
}

.hero-content .button {
    display: inline-block;
    margin-top: 10px;
}

.news-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #ddd;
}

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

.news-item img {
    width: 300px;
    border-radius: 10px;
}

.news-text {
    text-align: left;
}

.news-text .date {
    font-size: 14px;
    color: gray;
    margin-bottom: 10px;
}

.zoom-img {
    cursor: pointer;
    transition: 0.3s;
}

.zoom-img:hover {
    opacity: 0.8;
}

#lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 80px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    text-align: center;
}

#lightbox-img {
    max-width: 95%;
    max-height: 95%;
}

#close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.page-title {
    font-size: 42px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 50px;
    text-align: center;
}

.coming-placeholder {
    width: 300px;
    height: 200px;
    background: #eee;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.upcoming {
    opacity: 0.85;
}

/* Mobile News Layout */
@media (max-width: 768px) {

    .hero,
    .hero-index {
    	min-height: 60vh;
    	padding: 80px 20px;
    }

    .news-item {
        flex-direction: column;
        gap: 20px;
    }

    .news-item img {
        width: 100%;
        max-width: 100%;
    }

    .news-text {
        line-height: 1.8;
    }

    #close {
        right: 20px;
        top: 20px;
    }
}

/* =========================
   SLIDE BUTTONS
========================= */

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    background: rgba(0,0,0,0.3);
    border: none;
    color: white;
    padding: 10px 16px;
    cursor: pointer;
    z-index: 3;
    transition: background 0.3s;
}

.slide-btn:hover {
    background: rgba(0,0,0,0.6);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}


/* =========================
   SLIDE INDICATOR BAR
========================= */

.slide-indicator {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}

.slide-bar {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    transition: background 0.4s;
}

.slide-bar.active {
    background: white;
}

@media (max-width: 768px) {

.hero-content {
    margin-bottom: 40px;
}

.slide-btn {
    top: auto;
    bottom: 120px;
    transform: none;
}

}

/* =========================
   HERO SLIDESHOW
========================= */

.hero-index {
    position: relative;
    min-height: 80dvh;
    overflow: hidden;
}

/* each slide */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s ease;
    transform: scale(1.05)
}

/* visible slide */
.hero-slide.active {
    opacity: 1;
    animation: heroFadeIn 2s ease;
    transform: scale(1);
}

/* dark overlay for text readability */
.hero-index::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.2),
        rgba(0,0,0,0.5)
    );
    z-index: 1;
}

/* text above slides */
.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeText 2s ease;
}

/* Title */
.hero-content h2 {
    font-size: clamp(36px, 5vw, 56px);
    letter-spacing: 3px;
}

/* Subtitle */
.hero-content p {
    font-size: 20px;
    margin-top: 10px;
    margin-bottom: 30px;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: scale(1.08);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeText {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================
   HOME PAGE
========================= */

.responsive-title span{
font-family: "Yuji Syuku", serif;
letter-spacing: 6px;
font-size: clamp(48px,6vw,80px);
}

@media (max-width: 768px) {
    .responsive-title span {
        display: block;
        margin-right: 0;
    }
}

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

.day {
    border: 1px solid #ddd;
    padding: 10px;
    min-height: 80px;
}

.date {
    font-weight: bold;
    margin-bottom: 5px;
}

.special-text{
color:#6EC6FF;
font-weight:bold;
}

.kenjo-text{
color:#E07BE0;
font-weight:bold;
}

@media (max-width: 768px) {

.schedule-grid {
    display: block;
}

.day {
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

}


/* =========================
   KEIKO PAGE
========================= */

.dojo-item {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #ddd;
}

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

.dojo-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 300px;
}

.map-wrapper iframe {
    width: 100%;
    height: 300px;
    border-radius: 10px;
}

.dojo-left img {
    width: 100%;
    border-radius: 10px;
}

.dojo-text {
    text-align: left;
}

.dojo-text .date {
    font-size: 14px;
    color: gray;
    margin-bottom: 10px;
}

.health-text{
color:#FFC107;
font-weight:bold;
}

/* Parking Section */

.parking-section {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 80px;
}

.parking-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.parking-images img {
    width: 300px;
    border-radius: 10px;
}

.parking-text {
    text-align: left;
    max-width: 400px;
}

/* Responsive */

@media (max-width: 768px) {

    .dojo-item {
        flex-direction: column;
        gap: 20px;
    }

    .dojo-left {
        width: 100%;
    }

    .dojo-text {
        text-align: center;
        line-height: 1.8;
    }

    .parking-section {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .parking-images img {
        width: 100%;
        max-width: 100%;
    }

    .parking-text {
        text-align: center;
    }
}

/* =========================
   SENSEI PAGE
========================= */

.subtitle{
display:block;
font-size:18px;
font-weight:normal;
margin-top:8px;
}

.profile {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.profile img {
    width: 300px;
    border-radius: 10px;
}

.profile-text {
    text-align: left;
}

.video-section {
    text-align: center;
    padding: 80px 20px;
}

.video-section video {
    max-width: 100%;
    border-radius: 10px;
}

.enbu-video{
width:100%;
max-width:900px;
border-radius:10px;
}

/* Responsive */

@media (max-width: 768px) {

    .profile {
        flex-direction: column;
        text-align: center;
    }

    .profile img {
        width: 100%;
        max-width: 350px;
    }

    .profile-text {
        text-align: left;
    }
}

/* =========================
   Katsudo
========================= */

.news-grid{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap:30px;
    max-width:1000px;
    margin:auto;
    margin-bottom: 60px;
}

.news-card{
    display:block;
    text-decoration:none;
    color:#C79A2B;
    border:1px solid #ddd;
    border-radius:10px;
    padding:25px;
    background:white;
    transition:all 0.25s ease;
}

.news-card:hover{
    transform:translateY(-4px);
    box-shadow:0 8px 18px rgba(0,0,0,0.15);
}

.news-card h3{
    margin-bottom:5px;
}

.date{
    color:#777;
    font-size:14px;
}

.readmore{
    display:inline-block;
    margin-top:10px;
    color:#0b5e3c;
    font-weight:bold;
}

/* =========================
   Nanbei
========================= */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 30px 0;
}

.photo-grid img {
  width: 100%;
  border-radius: 6px;
}

.link-card {
  color: #333;
  background: white;
  padding: 25px;
  border-radius: 8px;
  margin: 20px 0;
  
  width: 280px;
}

.link-card1 {
  color: #333;
  background: white;
  padding: 25px;
  border-radius: 8px;

  width: 280px;
  margin: 0 auto;
}

.link-button {
  display: inline-block;
  margin-top: 10px;
  color: #0a5;
  text-decoration: none;
}

.article-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
}

.article-title {
  flex: 1;
}

.image-protect {
  position: relative;
  display: inline-block;
}

.image-protect img {
  display: block;
  width: 100%;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}