* {
    box-sizing: border-box;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 1.5rem;
    background-color: rgba(37, 91, 255, 0.938);
    flex-wrap: wrap;
    height:auto;
}


.header-left {
    display: flex;
    justify-content: space-between;
    align-items: center;
   
    flex-wrap: wrap;
    height: auto;
}

.header-left img {
    height: 35px;
}

.header-left-nav a {
    margin: 0 20px;
    color: rgb(240,240,240);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.header-left-nav a:hover {
    opacity: 0.3;
}


.header-nav a {
    margin: 0 20px;
    color: rgb(240,240,240);
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.header-nav a:hover {
    opacity: 0.3;
}

.header-contact p {
    margin: 0;
    font-size: 0.85rem;
    text-align: right;

}eader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background-color: rgb(240,240,240);
    flex-wrap: wrap;
}
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  /*line-height: 1.6;*/
  background-color: rgb(240,240,240);
  color: #000000ee;
  text-align: center;
}

.nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  gap: 15px;
  background-color: rgba(83, 212, 255, 0.8);
  font-size: 0.9rem;
}

.contact-icon {
  height: 20px;
  vertical-align: middle;
}


.logo img {
  width: 40px;
  height: 40px;
}

.nav a {
  margin-left: 15px;
  color: rgb(240,240,240);
  text-decoration: none;
  font-weight: bold;
}

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

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 40vh;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: auto; /* アスペクト比を保つ */
  display: block; /* 余計な余白を消す */
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.hero-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  font-weight: 900;
  color: rgb(240,240,240);
}

.hero h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -80%);
  font-size: 4rem;
  z-index: 1;
  font-weight: bold;
  color: rgb(240,240,240);
}

.contact-info-overlay {
    position: absolute;
    top: 20px;
    right: 350px;
    z-index: 2;
}

.contact-info-overlay img {
    width: 320px;
    height: auto;
}

.ryokinhyou {
    margin-top: 20px;
}

.ryokinhyou img {
    width: 500px;
}

.pack-prices div,
.hour-price div {
  font-size: 2em;
  margin: 10px 0;
  font-weight: 550;
}

.price {
  color: rgb(255, 123, 0);
  font-size:   1.2em;
  font-weight: 550;
  margin-left: 10px;
}

.note {
    font-size: 1em;
    font-weight: 500;
}

.tax {
    font-size: 0.5em;
    margin-left: 20px;
}


.tokutyou {
    margin-top: 30px;
}

.tokutyou img {
    width: 500px;
    align-items: center;
}

.feature h1 img {
    margin-left: 100px;
    width:500px;
    height: auto;
}



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

.block {
  margin-bottom: 0px;
}

.block h2 {
  text-align: center;
  font-size: 23px;
  font-weight: bold;
  margin-bottom: 0px;
}

.block h2 img {
    align-items: center;
    margin-left: 100px;
    width: 500px;
    height: auto;
}


.block h3 {
  text-align: center;
  font-size: 23px;
  font-weight: bold;
  margin-bottom: 0px;
}

.block h3 img {
    align-items: center;
    margin-left: 120px;
    width: 450px;
    height: auto;
}

.block h4 {
  text-align: center;
  font-size: 23px;
  font-weight: bold;
  margin-bottom: 0px;
}

.block h4 img {
    align-items: center;
    margin-left: 50px;
    width: 380px;
    height: auto;
}

.block h5 {
  text-align: center;
  font-size: 23px;
  font-weight: bold;
  margin-bottom: 0px;
}

.block h5 img {
    align-items: center;
    margin-left: 80px;
    width: 370px;
    height: auto;
}


.row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /*gap: 20px*/
}

.side-text {
  flex: 1;
  font-size: 18px;
  line-height: 1.8;
  /*font-weight: 520;*/
}

.arrow {
  font-size: 20px;
  color: gray;
  font-weight: bold;
  flex-shrink: 0;
}

.icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.mic {
  background-color: #a7dcf1;
  background-image: url('icons/mic.svg');
}

.stand {
  background-color: #f3c3dd;
  background-image: url('icons/stand.svg');
}

.guitar {
  background-color: #ecd9fa;
  background-image: url('icons/guitar.svg');
}

.piano {
  background-color: #e1f0ff;
  background-image: url('icons/piano.svg');
}

.highlight {
  color: #fd681d;
  font-weight: bold;
}




.courseichiran img {
    margin-top: 70px;
    margin-bottom: 30px;
    width: 500px;
}

.courseichiran2 img {
    margin-top: 30px;
    margin-bottom: 30px;
    width: 1000px;
}

.ironnahito img {
    margin-top: 50px;
    width: 1000px;
}



.subtitle {
  font-size:clamp(6px, 1.8vw, 23px);
}



.fotter-center img {
    width: 100%;
    height: 380px;
    object-fit: cover;
	
}

.fotter-center div:hover img {
    transform: scale(1.03);
	transition: 0.2s;
}


.footer-contact img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

footer {
    margin: 1rem;
    background-color: rgba(37, 91, 255, 0.938);
    text-align: center;
    padding: 10px 100px;
}

footer img {
    width: 120px;
    transform: scale(1.03);
	transition: 0.2s;
}

.footer-left img:hover {
    opacity: 0.7;
}

.footer-nav a {
    margin: 20px 20px;
    color: rgb(240,240,240);
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover {
    opacity: 0.7;
}

.footer {
	color: rgb(240,240,240);
	font-size: 15px;

}

.footer a {
	color: rgb(240,240,240);
	
}

.copyrite {
  color: rgb(3, 3, 3);
}


.linetouroku {
  text-align: center;
  color: rgb(240,240,240);
  text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: opacity 0.3s ease;

     
}




@media screen and (max-width: 768px) {
  .header-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
  }
  .header-nav a {
    font-size: 1.1rem;
    margin: 5px 0;
  }
  .hero {
    height: auto;
  }
  .hero img {
    height: auto;
    width: 100%;
  }
  .hero-logo-centered {
    position: static;
    transform: none;
    margin-top: 1rem;
  }


  body {
    font-size: 1rem;
    padding: 0 10px;
  }
  img {
    max-width: 100%;
    height: auto;
  }

  .subtitle {
  font-size:clamp(6px, 1vw, 10px);
}

}




/* ======= Responsive Adjustments ======= */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-nav {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
    }

    .header-nav a {
        margin: 0;
        padding: 0.5rem 1rem;
    }

    .hero-logo-centered {
        width: 80%;
    }

    .plans {
        padding: 0 1rem;
    }

    .menu-links {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .menu-links div {
        margin: 0 auto;
        width: 90%;
    }

    .contact-info-overlay {
        top: 10px;
        right: 10px;
        width: 40px;
    }

    .contact-info-overlay img {
        width: 100%;
        height: auto;
    }
    
}


/* ======= Hamburger Menu ======= */
.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: rgb(240,240,240);
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .header-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: rgba(83, 212, 255, 0.8);
    }

    .header-nav.active {
        display: flex;
    }

    .header-nav a {
        padding: 1rem;
        border-top: 1px solid rgba(83, 212, 255, 0.8);
    }
}


/* Refine hero logo positioning and size */
.hero {
    position: relative;
}

.hero-logo-centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
    max-width: 80%;
}

.hero-logo-centered img {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .hero-logo-centered {
        width: 200px;
        max-width: 70%;
    }
}












/* === Responsive Additions === */

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

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

  .arrow {
    transform: rotate(90deg);
    margin: 10px 0;
  }

  .icon {
    width: 80px;
    height: 80px;
    margin: 10px 0;
  }

  .pack-prices div {
    font-size: 1.4em;
  }

  .note {
    font-size: 0.9em;
  }


  .tokutyou img,
  .courseichiran img,
  .ironnahito img {
    width: 80%;
    height: auto;
  }

    .ryokinhyou img{
      width: 50%;
      height: auto;
    }


  .courseichiran2 img {
    width: 100%;
    height:auto;
  }

  .hero h1 {
    font-size: 2.5rem;
    transform: translate(-50%, -50%);
  }

  .hero-logo-centered {
    top: 40%;
  }

  footer {
    padding: 10px 20px;
  }

  .footer-nav a {
    display: block;
    margin: 10px 0;
  }

  .fotter-center img {
    height: auto;
  }
}


/* === Centering Fixes for Header Images === */

@media (max-width: 768px) {
  .block h2 img,
  .block h3 img,
  .block h4 img,
  .block h5 img {
    margin: 0 auto;
    display: block;
    width: 90%;
    height: auto;
  }
}


/* === Hero Image Fix === */

@media (max-width: 768px) {
  .hero {
    height: auto;
  }

  .hero img {
    display: block;
    position: relative;
    height: auto;
    width: 100%;
    object-fit: cover;
  }

  .hero h1 {
    font-size: 2.5rem;
    transform: translate(-50%, -50%);
    position: absolute;
  }
}


/* === Hero Text Position Fix === */

@media (max-width: 768px) {
  .hero {
    position: relative;
    height: auto;
  }

  .hero img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .hero-logo-centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    max-width: 90%;
  }

  .hero h1 {
    font-size: 2rem;
    position: relative;
    color: rgb(240,240,240);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
    text-align: center;
    margin: 0;
  }
}


/* === Sticky Transparent Header Fix === */

@media (max-width: 768px) {
  header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(83, 212, 255, 0.8); /* semi-transparent */
    z-index: 1000;
    padding: 0.5rem 1rem;
  }

  body {
    padding-top: 80px; /* offset for fixed header */
  }

  .hamburger {
    color: rgb(240,240,240);
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
  }

  .header-nav {
    background-color: rgba(83, 212, 255, 0.8);
    width: 100%;
  }
}


/* === Header Width Fix === */

@media (max-width: 768px) {
  header {
    width: 100vw;
    left: 0;
    right: 0;
    overflow-x: hidden;
  }

  html, body {
    overflow-x: hidden;
  }
}


/* === Font Size Adjustment === */

@media (max-width: 768px) {
  body {
    font-size: 0.5rem;
  }

  h1, h2, h3, h4, h5 {
    font-size: 1.2rem;
  }
  
  h6 {
    font-size: 0.5rem;
  }

  .pack-prices div {
    font-size: 1.2em;
  }

  .note {
    font-size: 0.85em;
  }

  .side-text {
    font-size: 0.7rem;
  }

  .footer {
    font-size: 0.85rem;
  }

  .footer-nav a {
    font-size: 0.9rem;
  }

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