/* IOS Safari 감지 */
@supports (-webkit-touch-callout: none) {
  .ios-specific {
    padding: 1.2rem;
    font-size: 0.9rem;
  }
}

/* iOS 전용 grid-3 스타일 */
@supports (-webkit-touch-callout: none) {
  .grid-3 div {
    font-size: clamp(0.9rem, 2.8vw, 1.1rem);
    font-weight: 550;
  }
}

/* 안드로이드 Chrome 감지 */
@supports not (-webkit-touch-callout: none) {
  .android-specific {
    padding: 1rem;
    font-size: 1rem;
  }
  .features-grid {
	  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  /* grid-3 안드로이드 전용 스타일 */
  .grid-3 div {
    /*font-size: clamp(1rem, 3vw, 1.5rem) !important;*/
    font-weight: 600 !important;
  }
}
.mob-css .special-section .features-grid .feature-item:nth-child(1) .feature-header {
	padding: 23px 0 !important;
}

.mob-css .special-section .features-grid .feature-item:nth-child(5) .feature-header {
	padding: 23px 0 !important;
}

body {
      margin: 0 auto;
      letter-spacing: -1px;
      font-family: 'SCoreDream', -apple-system, BlinkMacSystemFont, sans-serif;
	  max-width: 950px;
	  font-size: clamp(14px, 4vw, 18px);
    }

    /* 공통 */
    h2, h3, h4 { margin: 0; }
    p { margin: 0; }

    /* 헤더 */
    header {
      text-align: center;
      padding: 10px;
      background: #fff;
    }
    header img {
      max-width: min(150px, 80vw);
      height: auto;
    }
    
    .hour24 {
      font-size: clamp(20px, 5vw, 33px);
      background: #0c2A44;
      color: white;
      text-align: center;
      padding: 15px 10px;
      word-break: keep-all;
    }
    
    header .phone {
      font-size: clamp(1.2rem, 4vw, 1.6rem);
      font-weight: bold;
      color: #003366;
    }

    /* 우측 꽃 이미지 */
    .blue-banner {
      background: url('../img/flower1.jpg') no-repeat right center / cover;
      padding: 30px 20px;
      text-align: left;
      min-height: 180px;
      display: flex;
      flex-direction: column;
      justify-content: left;
    }
    .blue-banner h3 {
      font-size: clamp(1.4rem, 4.5vw, 2rem);
      margin-bottom: 10px;
      color: #0c2A44;
      word-break: keep-all;
    }
    .blue-banner p {
      font-size: clamp(14px, 3.5vw, 21px);
      line-height: 1.5;
      font-weight: 500;
      word-break: keep-all;
    }

    .black-banner {
      position: relative;
      padding: 40px 20px;
      min-height: 120px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: url('../img/flower2.jpg') no-repeat center / cover;
    }
	
    .black-banner h3 {
      color: white;
      text-align: center;
      font-size: clamp(19px, 3.5vw, 28px);
      position: relative;
      z-index: 1;
      word-break: keep-all;
      line-height: 1.4;
    }
    
    /* '상담 필요한 경우' */
    .section {
      padding: 30px 0px;
      text-align: center;
    }
    .section h3 {
      color: #003366;
      margin-bottom: 20px;
      font-size: clamp(1.2rem, 4vw, 1.5rem);
      word-break: keep-all;
    }
    .grid-3 {
      display: grid;
      gap: 20px;
      justify-content: space-around;
	  grid-template-columns: 2fr 2fr 2fr;
      max-width: 1000px;
      margin: 0 auto;
    }
    .grid-3 div {
      background: #f7f8fc;
      padding: 15px 0px;
      border-radius: 5px;
	  /*font-size: clamp(14px, 3vw, 16px);*/
      font-size: clamp(14px, 3.2vw, 21px);
	  font-weight: 500;
      line-height: 1.4;
      word-break: keep-all;
      min-height: 60px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
    }

    /* 서비스 안내 */
    .service {
      background: #fff;
      padding: 30px 20px 80px;
    }
    .service h4 {
      color: #003366;
      margin-bottom: 15px;
      font-size: clamp(1rem, 3vw, 1.1rem);
      text-align: center;
    }
    .service table {
      width: 100%;
      border-collapse: collapse;
    }
    .service td {
      padding: 10px;
      border-bottom: 1px solid #ddd;
      font-size: clamp(0.8rem, 2.5vw, 0.9rem);
      word-break: keep-all;
    }
    .service td:first-child {
      font-weight: bold;
      color: #003366;
      width: 30%;
    }

    /* 하단 고정 버튼 */
    .fixed-bottom {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      display: flex;
      justify-content: space-between;
      gap: 2px;
	  z-index: 1;
    }
    .fixed-bottom a {
	  flex: 1;
      display: flex;
	  justify-content: center;
	  align-items: center;
	  height: 65px;
      text-align: center;
      background: #0C2A44;
    }
	.fixed-bottom a img {
		height: auto;
	}
    .fixed-bottom a:first-child img {
	  width: clamp(105px, 49%, 155px);
	  /*height: 27px;*/
    }
	.fixed-bottom a:last-child img {
	  width: clamp(165px, 80%, 265px);
    }
    
    /* 부모사랑상조 특별함 */
    .special-section {
      max-width: 1200px;
      margin: 0 auto;
      /*padding: 40px 20px 20px;*/
	  padding-top: 40px;
      background-color: white;
    }
    
    .section-title {
      text-align: center;
      font-size: clamp(20px, 5vw, 28px);
      font-weight: bold;
      color: #333;
      margin-bottom: 30px;
      word-break: keep-all;
    }
    
    .features-grid {
      display: grid;
      /*grid-template-columns: repeat(auto-fit, minmax(305px, 1fr));*/
	  grid-template-columns: 1fr 1fr;
	  grid-template-rows: auto auto auto;
      gap: 20px;
      margin-bottom: 20px;
    }
    
    .feature-item {
      background: #f7f8fc;
      border-radius: 6px;
      overflow: hidden;
    }
    
    .feature-header {
      background: #0c2A44;
      color: white;
      padding: 15px 0;
      text-align: center;
      position: relative;
    }
    
    .feature-number {
      /*font-size: clamp(15px, 1vw, 18px);*/
	  font-size: clamp(14px, 3.5vw, 21px);
      font-weight: bold;
      margin-bottom: 8px;
      display: inline;
      margin-right: 3px;
    }
    
    .feature-title {
      /*font-size: clamp(14px, 1vw, 18px);*/
	  font-size: clamp(14px, 3.5vw, 21px);
      font-weight: 500;
      line-height: 1.4;
      display: inline;
      word-break: keep-all;
    }
    
    .feature-content {
      padding: 20px 15px;
      text-align: center;
      color: #1A1A1A;
      line-height: 1.6;
	  /*font-size: clamp(14px, 3vw, 16px);*/
      font-size: clamp(14px, 3.5vw, 21px);
      font-weight: 500;
    }
    
    .feature-description {
      margin-bottom: 15px;
      word-break: keep-all;
    }
    
    .feature-highlight {
      color: #000;
      font-weight: 700;
      margin-right: -4px;
    }
    
    /* 서비스 안내 */
    .service-section {
      max-width: 900px;
      margin: 0 auto;
      padding: 20px 15px 120px;
    }
    
    .service-title {
      font-size: clamp(20px, 5vw, 27px);
      font-weight: bold;
      color: #333;
      margin-bottom: 15px;
      text-align: center;
    }
    
    .service-container {
      border-radius: 15px;
      overflow: hidden;
    }
    
    .serviceHeader {
      border: none;
      border-radius: 12px 12px 0 0;
      background: #f3f3f3;
      width: 33%;
      max-width: 300px;
      height: auto;
      min-height: 50px;
      color: #00172E;
      text-align: center;
      padding: 15px 10px;
      font-size: clamp(22px, 4vw, 25px);
      font-weight: 600;
      word-break: keep-all;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .serviceHeader.active {
	  font-size: clamp(18px, 3vw, 24px);
      background: #0C2A44;
      color: white;
    }
    
    .service-content {
      border-radius: 0 15px 15px 15px;
      display: none;
      padding: 30px 15px;
      background: #cde4f6;
    }
    .service-content.active {
      display: block;
    }
    
    .service-main-title {
      text-align: center;
      font-size: clamp(18px, 4vw, 25px);
      font-weight: 750;
      color: #333;
      margin-top: 12px;
      margin-bottom: 12px;
      word-break: keep-all;
    }
    
    .service-subtitle {
      text-align: center;
      font-size: clamp(14px, 3vw, 25px);
      font-weight: 600;
      margin-bottom: 30px;
      word-break: keep-all;
    }
    
    .service-list {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
    }
    
    .service-item {
      display: flex;
      background: white;
      width: 100%;
      max-width: 650px;
      border-radius: 15px;
      overflow: hidden;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }
    
    .service-label {
      background: #0C2A44;
      color: white;
      padding: 15px 20px;
      font-size: clamp(14px, 3.5vw, 23px);
      font-weight: 500;
	  width: 120px;
      display: flex;
      align-items: center;
      justify-content: center;
      word-break: keep-all;
    }
    
    .service-value {
      padding: 15px 5px;
      color: #333;
      font-size: clamp(14px, 3.5vw, 23px);
      font-weight: 600;
      display: flex;
      align-items: center;
      flex: 1;
      justify-content: center;
      word-break: keep-all;
	  text-align: center;
    }
    
    /* 모바일 최적화 */
    @media (max-width: 750px) {
      
	  .features-grid {
        /*grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));*/
        gap: 15px;
      }
      
      .grid-3 {
        gap: 5px;
      }
      
      .grid-3 div {
        padding: 15px 0px;
      }
      
      .blue-banner {
        padding: 25px 15px;
        min-height: 150px;
      }
      
      .black-banner {
        padding: 25px 15px;
        min-height: 100px;
      }
      
      .section {
        padding: 25px 5px;
      }
      
      .service-section {
        padding: 20px 10px 60px;
      }
      
      .service-content {
        padding: 25px 10px;
      }
      
      .service-item {
        border-radius: 12px;
      }
      
      .service-label {
        padding: 12px 15px;
        min-width: 70px;
      }
      
      .service-value {
        padding: 12px 15px;
      }
    }
    
    @media (max-width: 480px) {
      .hour24 {
        padding: 12px 8px;
      }
      
      .serviceHeader {
        padding: 12px 8px;
        min-height: 45px;
      }
      
      .feature-header {
        padding: 12px;
      }
      
      .feature-content {
        padding: 15px 12px;
      }
      
      .service-label {
        padding: 10px 12px;
        min-width: 65px;
      }
      
      .service-value {
        padding: 10px 5px;
      }
    }