/* CSS Document */

/* ===== HERO ===== */
.hero { 
  background: url("../img/fv-bk.jpg") center no-repeat; 
  background-size: cover;
  position: relative; 
  overflow: hidden; 
  aspect-ratio: 1920/700;
  padding-top: 4vw;
}


.hero-content {;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    position: relative;
}

.clinic-name{
  display: block;
  width: 90%;
  margin-bottom: 10px;
}


.clinic-name span{
  display: block;
  width: 100%;
  background: url("../img/company-name.png") center no-repeat;
  background-size: cover;
  aspect-ratio: 20/1;
}

.hero-text { 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  color: #59c2e0;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.15rem;
}

.hero-text p { 
  font-size: 1.1rem;
  font-weight: 500;
  color: #353535; 
  margin-bottom: 20px; 
  position: relative;
}

/*

.hero-text p::after { 
  position: absolute;
  content: '';
  display: block;
  background: #555; 
  width: 10px;
  height: 2px;
  top: 50%;
  left: -15px;
  transform: translateY(-50%);
  border-radius: 5px;
}

.hero-text p::before { 
  position: absolute;
  content: '';
  display: block;
  background: #555; 
  width: 10px;
  height: 2px;
  top: 50%;
  right: -15px;
  transform: translateY(-50%);
  border-radius: 5px;
}
*/


.hero-icons { 
  display: flex; 
  gap: 10px; 
  flex-wrap: wrap; 
}

.hero-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #64a3c7;
  font-size: 0.85rem;
  font-weight: 700;
  transition: transform 0.2s;
   text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff, -1px 1px 0 #fff, 1px -1px 0 #fff, 0px 1px 0 #fff, 0 -1px 0 #fff, 0px 0 0 #fff, 1px 0 0 #fff;
}

.hero-icon-item:hover { 
  transform: translateY(-3px); 
}

.hero-icon-item img { 
  width: 120px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}


.top-ani{
  display: block;
  width: 20vw;
  max-width: 150px;
}


.top-ani img{
  width:100%;
}
/*
.hero-baby {     
  flex-shrink: 0;
  position: absolute;
  width: clamp(180px, 25vw, 260px);
  right: 0;
  bottom: 0;
}

.hero-baby img { 
  width: 100%; 
}
*/


/* ===== BANNER ===== */
.banner-wrap {
  display: flex;
  justify-content: flex-end;
  max-width: 1100px;
  margin: 0 auto;
  position: absolute;
  z-index: 10;
  right: 0;
  bottom: 0;
  flex-direction: column;
}

.banner-wrap .grass-mushroom{
  position: relative;
  display: flex;
  justify-content: flex-end;
  top: 10px;
  padding-right: 5px;
  z-index: 2;
}


.banner-link {
  background: #7cc6ee;
  color: #fff;
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 12px 50px;
  border-radius: 50px 0 0 50px;
  text-decoration: none;
  flex-direction: column;
  position: relative;
  border: 2px solid #fff;
  border-right: none;
  transition: 0.3s ease;
}

.banner-link::after {
  content: "";
	position: absolute;
	right: 10px;
	top: 50%;
  background: url("../img/traingle-tri.png") no-repeat center;
  background-size: cover;
  width:30px;
  aspect-ratio: 9/5;
  display: block;
  transform: translateY(-50%);
  transition: 0.3s ease;
}

.banner-link:hover::after {
  right: 5px;
}

.banner-link p{
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.5;
  position: relative;
  top:-5px;
  left: -10px;
}

.banner-link small{
  font-weight: 400;
  line-height: 1;
}

.banner-link:hover{ 
  background: #ffabd5;
}

/* ===== NEWS ===== */
.news-section {
  background: url("../img/grass-bk.jpg") no-repeat top center;
  background-size: cover;
  background-position: top;
}
.news-list { list-style: none; }
.news-list li { border-bottom: 1px solid rgba(168,216,234,0.4); }
.news-list li:last-child { border-bottom: none; }
.news-list a {
  display: grid;
  grid-template-columns: 100px 130px 1fr 24px;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s;
  border-radius: 10px;
}
.news-list a:hover { background: var(--sky-light); }
.news-date { font-size: 0.85rem; color: #999; }
.news-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--sky);
  color: #fff;
  white-space: nowrap;
}
.news-tag.ie     { background: var(--green); }
.news-tag.clinic { background: var(--pink); color: #888; }
.news-title-text { font-size: 0.9rem; }
.news-arrow { color: var(--sky); font-size: 0.85rem; }

.news-section .section-inner{
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  padding: 50px;
  border-radius: 50px;
}

/* ===== ABOUT CARDS ===== */
.about-section { background: #fff; }
.about-cards { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 30px; 
}

.about-card {
/*  background: #eef7fc;*/
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  box-shadow: 3px 3px 10px #cce3eb;
  overflow: hidden;
  background: url(../img/subpage/sub-top-bk.png) repeat;
  background-size: contain;
}

.about-card::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(168,216,234,0.2);
  animation: floating 3s ease-in-out infinite;
}


.about-card::after {
  content: '';
  position: absolute;
  left: -20px;
  bottom : -20px;
  width: 160px; 
  height: 160px;
  border-radius: 50%;
  background: rgba(168,216,234,0.2);
  animation: floating 3s ease-in-out infinite;
}


.about-card-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: #7cc6ee;
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  width: fit-content;
}

.about-card-up{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-card h3 { 
  font-size: 1.5rem; 
  font-weight: 800; 
}

.about-card p { 
  line-height: 1.8; 
}

.about-card img { 
  z-index: 1;
  width:200px; 
  align-self: flex-end; 
}

.about-card img:hover {
    animation: jump 0.5s ease-in;
}

.card-btn{
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 10px;
  justify-content: space-between;
}


/* ACCESS */
.access-section { background: var(--sky-pale); }
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.access-info p { font-size: 0.88rem; line-height: 1.9; margin-top: 16px; }
.access-map iframe { width: 100%; height: 280px; border-radius: 12px; border: none; }




@media (max-width: 1460px) {

  .hero{
    width: 100%;
    height: 100vh;
    max-height:550px;
  }
  
  .hero-text p {
    font-size: 0.9rem;
  }
  
}
  

@media (max-width: 1000px) {
  
  .clinic-name span {
    max-width: 400px;
    margin: auto;
  }
  
  .clinic-name span {
    display: block;
    width: 100%;
    background: url(../img/company-name-sp.png) center no-repeat;
    background-size: cover;
    aspect-ratio: 75 / 5;
  }

  .hero-text p::before ,
  .hero-text p::after {
    display: none;
  }
  
  .banner-link::after {
    width: 20px;
  }

  .banner-link {
    padding: 15px 30px 7px;
  }
  
  .banner-link p {
    font-size: 1.1rem;
  }

  .hero-baby {
    width: min(250px, 24vw);
  }
  
  .about-cards { 
    grid-template-columns: 1fr; 
  }
  
  .access-grid { 
    grid-template-columns: 1fr; 
  }
  
  .hero-icon-item img {
    width: 100px;
  }
  
  .top-ani {
    width: 15vw;
  }
  
  .hero-icons {
    gap: 5px;
  }
  
}

@media (min-width: 768px) {

  .rwd-top{
    display: none;
  }
  
}


@media (max-width: 768px) {
  
  .hero {
    overflow: visible;
  }
  
  

  .clinic-name span{
    display: block;
    width: 100%;
    background: url("../img/company-name-sp.png") center no-repeat;
    background-size: cover;
    aspect-ratio: 75/5;
  }
  
  .banner-wrap {
    bottom: -60px;
  }
  
  .hero-text{
    position: relative;
    width: 100%;
    max-width: 100%;
  }
  
  .hero-text::after{
    position: absolute;
    content: '';
    display: block;
    background: url("../img/butterfly.png") no-repeat;
    background-size: cover;
    right: 0;
    top: -30px;
    width: 7vw;
    max-width: 50px;
    aspect-ratio: 1 / 1;
    animation: floating-2 3s ease-in-out infinite ;
  }
  
  .hero-text h1 {
    font-size: min(3rem, 10vw);
  }
  
  .hero-text p {
    font-size: max(0.8rem, 2.25vw);
  }
  
  .hero-text p::after{
    display: none;
  }
  
  
  .hero-icons a span{
    font-size: 0.75rem;
  }
  
  .computer-v{
    display: none;
  }
  
  .top-ani{
    display: none;
  }
  
  .rwd-top{
    display: block;
    position: relative;
  }
  
  .rwd-top-img img{
    vertical-align: bottom;
    z-index: 1;
  }
  
  .rwd-v {
    display: block;
    left: 10vw;
    top: -20px;
    width: 39vw;
    right: inherit;
    bottom: inherit;
  }
  
  .hero {
    padding: 0;
    width: 100%;
    height: fit-content;
    max-height: fit-content;
    aspect-ratio: inherit;
    background: none;
  }
  
  .hero-content {
    z-index: 2;
    max-width: 700px;
    padding: 50px 10px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  
  .about-card {
    padding: 20px;
  }
  
  .about-card h3 {
    font-size: 1.25rem;
  }
  
  .about-card p {
   line-height: 1.5; 
  }
  
  .about-card-up {
    gap: 10px;
  }

  .about-card img {
    width: 100%;
  }
  
  .about-card-label {
    font-size: 0.75rem;
    padding: 3px 10px;
  }
  
  .hero-icons {
    gap: 10px;
  }
  
  .hero-icon-item img {
    width: 100px;
  }
  
  .news-list a { 
    grid-template-columns: 90px 110px 1fr; 
  }
  
  .news-arrow { display: none; 
  }
}



@media (max-width: 480px) {
  
  .hero-text p {
    letter-spacing: -0.05rem;  
  }
  
  .hero-icon-item img {
    object-fit: inherit ;
  }
  
  .news-list a { 
    grid-template-columns: 1fr; 
    gap: 4px; 
  }
  
  .hero-icons { 
    width: 100%;
    gap: 10px;
    justify-content: center; 
  }
  
  .hero-icon-item img {
    width: 18vw;
    height: 18vw;
    aspect-ratio: 1 / 1;
  }
}