/* CSS Document */


.hero-lace {
  margin-bottom: 20px;
  transition: margin 0.3s ease, max-height 0.3s ease;
  overflow: hidden;
}

.hero-lace img {
  width: 100%;
  display: block;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 80%, rgba(255,255,255,0) 100%);
  transition: 0.3s ease;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: padding 0.3s ease;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-wrap img {
  width: 250px;
  transition: width 0.3s ease;
}

.nav-a {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

header nav a {
  text-decoration: none;
  color: #555;
  font-size: 1rem;
  font-weight: 700;
  padding: 6px 0;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
}

header nav a:hover,
header nav a.active {
  background: #fff;
  color: #7cc6ee;
}

header nav span img{
  width: 16px;
  display: block;
  aspect-ratio: 1/1;
}

.header-contact {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.header-contact .numbers{
  display: flex;
  flex-direction: column;
}

.header-contact .numbers span {
  font-size: 0.95rem;
  font-weight: 600;
  color: #64a3c7;
  letter-spacing: 0.1rem;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #7cc6ee;
  color: #fff;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s ease-in;
}

.btn-contact:hover {
  background: #ffabd5;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--sky);
  border-radius: 2px;
  transition: 0.3s;
}

/* shrink 状態 */
header.header--shrink{
  background: #fff;
  box-shadow: 3px 3px 10px #c1e2f3;
}
header.header--shrink .hero-lace {
  margin-bottom: 0;
/*  max-height: 0;*/
}
header.header--shrink .header-inner {
  padding-top: 4px;
  padding-bottom: 4px;
}
header.header--shrink .logo-wrap img {
  width: 160px;
}

.nav-close {
  display: none;
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #555;
  cursor: pointer;
  z-index: 201;
  line-height: 1;
}


@media (max-width: 1460px) {
  header nav a {
    font-size: 0.9rem;
  }
  .header-contact .tel {
    font-size: 1rem;
  }
  
  .hero-lace {
    margin-bottom: 0;
  }
}

@media (max-width: 1200px) {
  .nav-a {
    gap: 8px;
  }
}

@media (min-width: 1001px) {
  
  .rwd-tel,
  .menu-contact,
  .rwd-hd-logo,
  .rwd-box{
    display: none;
  }
}

@media (max-width: 1000px) {
  
  .rwd-tel{
    display: block;
    position: absolute; 
    right: 59px;
    top: 35px;
    z-index: 1000;
  }
  
  .rwd-tel a{
    background: #fff;
    border-radius: 5px;
    width: 30px;
    height: 30px;
    box-shadow: 1px 1px 5px #59c2e0;
    color: #59c2e0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
  }
  
  
  .menu-contact{
    display: block;
  }
  
  .menu-contact a{
    margin-top: 10px;
    font-size: 0.85rem;
    background: #ffabd5;
    color: #fff;
    width: 100%;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    gap: 5px;
    position: relative;
  }
  
  .menu-contact i{
    font-weight: 300;
    font-size: 0.8rem;
    position: relative;
    left: 1px;
    top:2px;
  }
  
  .nav-a a{
    padding-left: 32px;
  }
  
  .nav-a a::after{
    content: '';
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    width: 18px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: url("../img/logo-small-wh.png") no-repeat center;
    background-size: cover;
  }
  
  .nav-a a:hover {
    background: #7cc6ee;
    color: #fff;
  }
  
  .menu-contact a:hover{
    background: #ffabd5;
    color: #fff;
  }
  
  .menu-contact a::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 15px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: url(../img/traingle.png) no-repeat center;
    background-size: cover;
    transition: 0.2s ease-in;
  }
  
  .logo-wrap img {
    width: 200px;
  }

  .header-inner{
    padding-top: 4px;
    padding-bottom: 4px;
  }
  
  .header-contact{
    display: none;
  }
  
  .nav-close.visible {
    display: block;
  }


  .hamburger { 
    display: flex; 
  }
  
  
  header nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100px; 
    left: 0; 
    right: 0;
    background: #fff;
    padding: 0 20px;
    z-index: 200;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: 0.5s;
  }
  
  header nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0; 
    left: 0; right: 0;
    background: #fff;
    z-index: 200;
    max-height:100vh; /* メニュー項目数に合わせて調整 */
    height:fit-content;
    padding: 20px;
    opacity: 1;
    transform: translateY(0);
    flex-wrap: nowrap;
    overflow: auto;
  }
  
  #main-nav span img{
    display: none;
  }
  
  .nav-a {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
    width: 100%;
}

   .nav-a a{
    background: #7cc6ee;
    color: #fff;
     width: 100%;
     position: relative;
  }
  
  .nav-a a::before{
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 15px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: url(../img/traingle.png) no-repeat center;
    background-size: cover;
    transition: 0.2s ease-in;
  }

  
  .rwd-hd-logo{
    display: block;
  }
  
  .rwd-box{
    display: flex;
    flex-direction: column;
    gap:20px;
  }
  
  .rwd-box .footer-map iframe {
    height: 500px;
  }
  
  .rwd-box .ft-info-box-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    background: #eef7fc;
    padding: 20px;
    border-radius: 20px;
  }
  
  .rwd-box .ft-info-box span {
    display: block;
    border-bottom: 1px dashed #898989;
  }
  
  .rwd-box .ft-info-box i{
    color: #7cc6ee;
    width: 16px;
  }
  
  .rwd-box .ft-info-box p strong {
    font-size: 0.7rem;
    font-weight: 500;
    color: #fff;
    background: #7cc6ee;
    display: inline-block;
    padding: 0px 8px;
    border-radius: 10px;
    width: fit-content;
    letter-spacing: 0.1rem;
  } 
  
  .rwd-tel {
    top: 50px;
  }

  .hamburger { 
    display: flex; 
    z-index: 2001;
    position: absolute;  /* 追加 */
    right: 20px;
    top: 50px;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-radius: 5px;
    width: 30px;
    height: 30px;
    box-shadow: 1px 1px 5px #59c2e0;
  }
  
  
  .hamburger span {
    width: 19px;
    height: 2px;
    background: #59c2e0;
    border-radius: 2px;
    transition: 0.3s;
  }
  

  /* 中間の線を消す */
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  /* 上の線を回転 */
  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  /* 下の線を回転 */
  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  .header-contact .tel { font-size: 0.9rem; }

  .hero-text h1 { font-size: 2rem; }
  .news-list a {
    grid-template-columns: 90px 100px 1fr;
  }
  .news-arrow { display: none; }
}

@media (max-width: 480px) {
  .news-list a { grid-template-columns: 1fr; gap: 4px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-icons { gap: 12px; }
  .hero-icon-item img { width: 50px; height: 50px; }
}


@media(max-width:768px){
  
  .hamburger {
    top: 35px;
    background: #fff;
    border-radius: 5px;
    width: 30px;
    height: 30px;
    box-shadow: 1px 1px 5px #59c2e0;
  }
  
  header.header--shrink .logo-wrap img {
    width: 140px;
  }
  
  .rwd-tel{
    right: 59px;
    top: 35px;
  }
  
  .logo-wrap img {
    width: 140px;
  }
  
}

@media(max-width:480px){
  
.hero-lace {
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
  }

  .hero-lace img{
    height: 18px;
    aspect-ratio: 200/6;
    width: auto;
  }
}
