*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans JP',sans-serif;
}

html, body {
    height: 100%;
    font-family: sans-serif;
    color: #222;
    line-height: 1.5;
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd {
  margin: 0;
}

ul, ol {
  list-style: none;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  margin: 0;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

a {
  text-decoration: none;
  color: inherit;
}

:focus {
  outline: none;
}

.title-top {
    display: flex;
    align-items: center;
    position: relative;
    width: fit-content;
}

.title-top::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 6px;
    background: radial-gradient(ellipse 100% 40% at 50% 50%, #17a2b8 0%, transparent 70%),
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(23, 162, 184, 0.8) 0%, transparent 70%),
        radial-gradient(ellipse 90% 50% at 80% 60%, rgba(23, 162, 184, 0.6) 0%, transparent 70%);
    border-radius: 50px;
    transform: skewX(-5deg);
}

.hero-section {
    position: relative;
    width: 100%;
    height: 20vh;
    min-height: 300px;
    background: url("../img/数字で見る.png") no-repeat center center!important;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 70px;
    max-width: 1200px;
    margin: 70px auto;
    background-size: cover!important;
}

.hero-overlay {
    position: absolute;
    background: rgb(147 147 148 / 30%);
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

.title {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 400;
    color: #595959;
    position: relative;
    width: fit-content;
    margin-bottom: 1rem;
}

.circle {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #cdeeff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 6px;
    background: radial-gradient(ellipse 100% 40% at 50% 50%, #17a2b8 0%, transparent 70%),
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(23, 162, 184, 0.8) 0%, transparent 70%),
        radial-gradient(ellipse 90% 50% at 80% 60%, rgba(23, 162, 184, 0.6) 0%, transparent 70%);
    border-radius: 50px;
    transform: skewX(-5deg);
}

.circle::after {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #88CAEB;
}

.header {
    padding: 40px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-title {
    font-size: 36px;
    font-weight: 700;
    color: #273775;
    margin-bottom: 50px;
    line-height: 1.3;
}

#growth {
    max-width: 1200px;
    margin: 3rem auto;
}

.number-wrap {
    background: #ECF9FF;
    padding: 3rem;
    border-radius: 2rem;
}

.number-title {
    font-size: 2rem;
    padding: 1rem 0;
}

.number-box-card {
    background: #ffffff;
    border-radius: 25px;
    padding: 20px;
    text-align: center;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.number-box-card h4 {
    font-size: 24px;
    font-weight: 600;
    color: #ffc137;
    text-align: left;
    line-height: 1.5;
    width: 100%;
    margin: 0;
    display: block;
}

.number-img02 {
    max-width: 130px;
    margin: 0 auto!important;
}

.number-img01 {
    max-width: 200px;
    margin-left: auto!important;
}

.number-box-card img {
    object-fit: contain;
    margin: 0;
}

.number-title-custom {
    position: absolute;
    top: 57%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.number-container {
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.number-box {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

.number-box-card-custom {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.number-box-card-custom > .number-box-card {
    flex: 2;
    min-width: 0;
}

.number-box-card-custom > div:not(.number-box-card) {
    flex: 1 1 20%;
    display: flex;
    gap: 20px;
}

.number-box-card-custom > div:not(.number-box-card) .number-box-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.counter-120 {
    font-size: 12rem!important;
}

.counter-11 {
    font-size: 9rem!important;
}

.number-box span, .number-box-box span {
    color: #044fbe;
    font-weight: bold;
    font-size: 6rem;
    z-index: 2;
    position: relative;
    display: inline-block;
    line-height: 0.8;
}

.number-box small, .number-box-box small {
    font-size: 3rem;
    z-index: 2;
    position: relative;
    color: #0567be;
}

.nen-date {
    font-size: 6rem!important;
}

.number-title-sex {
    position: absolute;
    top: 20px;
    left: 20px;
}

.number-img03 {
    height: 70px;
}

.number-img04 {
    margin-left: auto;
    max-width: 120px;
}

.male-date {
    font-size: 10rem!important;
}

.number-box-pasen {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
}

.number-img-onna {
    max-width: 40px;
    height: 90px;
}

.number-box-pasen-card {
    display: flex;
}

.male-date, .span-onna {
    color: #ff209f!important;
}

.male-name, .span-dansei {
    color: #00c5f5!important;
}

.sex-male {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    gap: 0 4rem;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
}

.number-box-box {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-around;
}

.kyoten-card {
    display: flex;
    color: #044FBE;
    margin-bottom: 1.5rem;
}

.kyoten-card-container {
    position: absolute;
    top: 100px;
    left: 80px;
}

.kyoten-card ul {
    text-align: left;
}

.number-img05 {
    display: block;
    margin: 0 auto;
}

.kyoten-line {
    width: 3px;
    background: #1BD2FF;
    margin: 0 0.5rem;
    border-radius: 0.2rem;
}

.line-osaka {
    background: #46FF2E;
}

.line-kyoto {
    background: #E256FF;
}

.line-group {
    background: #FF6F95;
}

.kyoten-group {
    position: relative;
    right: -210px;
}

.kyoten-date {
    font-size: 15rem!important;
}

.span-kyoten {
    font-size: 5rem!important;
}

.number-box .number-img08 {
    position: absolute;
    z-index: 1;
    top: 70%;
    left: 33%;
    transform: translate(-50%, -50%);
    height: 200px;
}

.number-box-age {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.span-age {
    font-size: 1.2rem!important;
    color: #424955!important;
}

span.age02 {
    display: block;
}

.info-age-box {
    position: absolute;
}

.info-age-box small {
    font-size: 0.8rem;
}

.info-age-box .counter-age {
    font-size: 2.7rem;
    display: block;
}

.info-age01 .counter-age, .info-age01 small {
    color: #FFCF00;
}

.info-age02 .counter-age, .info-age02 small {
    color: #60BD3F;
}

.info-age03 .counter-age, .info-age03 small {
    color: #006BCB;
}

.info-age04 .counter-age, .info-age04 small {
    color: #FF209F;
}

.info-age05 .counter-age, .info-age05 small {
    color: #ED1C24;
}

.info-age01 {
    top: -30px;
    right: 40px;
}

.info-age02 {
    bottom: -50px;
    right: 50px;
}

.info-age03 {
    bottom: -60px;
    left: 70px;
}

.info-age04 {
    bottom: 20px;
    left: 23px;
}

.info-age05 {
    top: -30px;
    left: 15px;
}

.number-box .number-img07 {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 75%;
    transform: translate(-50%, -50%);
    height: 220px;
}

.number-box .number-img09 {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 70%;
    transform: translate(-50%, -50%);
    height: 170px;
}

.number-box .number-img10 {
    position: absolute;
    z-index: 1;
    top: 35%;
    left: 65%;
    transform: translate(-50%, -50%);
    height: 160px;
}

.info-out {
    display: flex;
    align-items: center;
    position: absolute;
    top: 60%;
    left: 35%;
    transform: translate(-50%, -50%);
    gap: 0 1rem;
    color: #0567BE;
    font-size: 1.5rem;
    font-weight: 600;
    z-index: 2;
}

.span-pasento {
    font-size: 1.5rem!important;
}

.info-age-pasento {
    display: flex;
    align-items: center;
}

.span-price {
    font-size: 3.5rem!important;
}

.span-price-mini {
    font-size: 2.1rem!important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
}

.layout-b {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    grid-template-rows: 1fr 0.8fr;
    gap: 20px;
}

.layout-b .number-box-card:nth-child(1) {
    grid-row: 1 / 2;
    grid-template-columns: 1fr 4.3fr;
    grid-column: 1 / 2;
    display: grid;
}

.layout-b .number-box-card:nth-child(2) {
    grid-row: 2 / 3;
    grid-template-columns: 1fr 4.3fr;
    grid-column: 1 / 2;
    display: grid;
}

.layout-b .number-box-card:nth-child(3) {
    grid-row: 1 / 3;
    grid-column: 2 / 3;
    justify-content: center;
}

.layout-c {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.layout-c .number-box-card:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.layout-c .number-box-card:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.layout-c .number-box-card:nth-child(3) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.number-total, .number-box-time {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.number-img-total {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 255px;
}

.info-time span {
    font-size: 10rem;
}

.info-time {
    position: absolute;
    right: 20px;
    bottom: -50px;
}

.kyouten-info {
    position: absolute;
}

.number-box-comany {
    display: flex;
    gap: 0 20px;
}

.number-box-comany > .number-box-card {
    flex: 2;
    min-width: 0;
}

.number-img09 {
    height: 250px;
    margin-left: auto!important;
}

.number-img07 {
    height: 150px;
    margin-left: auto!important;
}

.nen-date01 {
    font-size: 5rem!important;
}

.number-box-fix {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: baseline;
}

.number-nenkan h4 {
    text-align: center!important;
    margin: 0 auto;
}

.number-img10 {
    max-width: 130px;
    margin: 0 auto!important;
}

.number-kyu-custom {
    position: absolute;
    top: 56%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.title-fx {
    text-align: center!important;
}

.nen-date-181,
.nen-date-100{
    font-size: 10rem!important;
}
.number-img181 {
    height: 150px;
    margin-left: auto!important;
}
.info-ninzu {
    display: flex;
    align-items: end;
    position: absolute;
    left: 20px;
}
.number-box-taget{
     flex: 1 1 35%;   
}
.number-class {
    display: flex;
    font-size: 2rem;
    gap: 0 3rem;
    font-weight: 700;
}




/* =================================================================== */
/* RESPONSIVE - TABLET (iPad: 768px - 1024px)                        */
/* =================================================================== */

@media (max-width: 1024px) and (min-width: 768px) {
    .hero-section {
        min-height: 250px;
        margin-top: 60px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-content {
        padding: 0 30px;
    }
    
    #growth {
        padding: 0 20px;
        margin: 2rem auto;
    }
    
    .header {
        padding: 30px 0;
    }
    
    .main-title {
        font-size: 30px;
        margin-bottom: 30px;
    }
    
    .number-wrap {
        padding: 2rem;
    }
    
    .number-title {
        font-size: 1.8rem;
    }
    
    /* Layout A - 3 cards */
    .number-box-card-custom.layout-a {
        flex-direction: column;
    }
    
    .number-box-card-custom.layout-a > .number-box-card,
    .number-box-card-custom.layout-a > div {
        flex: 1;
        width: 100%;
    }
    
    .number-box-card-custom.layout-a > div {
        flex-direction: row;
        gap: 20px;
    }
    
    .number-box-card-custom.layout-a > div .number-box-card {
        flex: 1;
        height: auto;
    }
    
    /* Layout B - Grid adjust */
    .layout-b {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    
    .layout-b .number-box-card:nth-child(1),
    .layout-b .number-box-card:nth-child(2) {
        grid-column: 1 / 2;
    grid-template-columns: auto;
    }
    
    .layout-b .number-box-card:nth-child(3) {
        grid-column: 2 / 3;
        grid-row: 1 / 3;
    }
    
    .number-box-comany {
        flex-direction: column;
        gap: 20px;
    }
    .number-box-comany > .number-box-card {
        width: 100%;
    }
    
    /* Font sizes */
    .number-box-card h4 {
        font-size: 20px;
        z-index: 9;
    }
    
    .counter-120 {
        font-size: 8rem!important;
    }
    
    .counter-11 {
        font-size: 6rem!important;
    }
    
    .number-box span {
        font-size: 5rem;
    }
    
    .nen-date, .nen-date01 {
        font-size: 5rem!important;
    }
    
    .male-date {
        font-size: 7.7rem!important;
    }
    
    .sex-male {
        gap: 0 2rem;
    }
    
    /* Kyoten card */
    .kyoten-card-container {
        position: static;
        padding-top: 2rem;
    }
    
    .kyoten-date {
        font-size: 10rem!important;
    }
    
    .span-kyoten {
        font-size: 5rem!important;
    }
    
    .kyoten-group {
        position: static;
        right: 0;
    }
    
    .number-img05 {
        max-width: 300px;
    }
    
    /* Images adjust */
    .number-box .number-img08 {
        height: 150px;
        left: 30%;
    }
    
    .number-box .number-img07 {
        height: 180px;
        left: 70%;
    }
    
    .number-box .number-img09 {
        height: 150px;
    }
    
    .info-time span {
        font-size: 8rem;
    }
    
    .info-out {
        font-size: 1.3rem;
        left: 30%;
    }
    
    .span-price {
        font-size: 3rem!important;
    }
}

@media all and (min-width: 768px) and (max-width:1200px) and (orientation: landscape) {
#growth{
    padding: 0 20px;
}
.counter-120 {
    font-size: 8rem!important;
}
.counter-11 {
    font-size: 8rem!important;
}
.number-box-card img {
    height: auto!important;
    width: auto!important;
}
.nen-date01, .nen-date {
    font-size: 4rem!important;
}
.number-box-pasen-card {
    display: flex;
    justify-content: center;
    align-items: center;
}
.number-img03 {
    max-width: 100px;
}
.span-kyoten {
    font-size: 5rem!important;
}
.kyoten-date {
    font-size: 10rem!important;
}
.number-img-total{
      max-width: 210px;
}
.number-img08{
    max-width: 200px;
}
.number-img07{
    max-width: 170px;
}
.info-time span {
    font-size: 7rem;
}
.number-img181{
    max-width: 200px;
}
.info-age-box .counter-age {
    font-size: 2.1rem;
    display: block;
}








}
@media all and (min-width: 768px) and (max-width: 1200px) and (orientation: portrait) {

    .sex-male {
       gap: 20px; /* Thêm khoảng cách để không bị dính vào nhau */
    }
.kyouten-info {
    position: inherit;
}
.info-age05 {
    top: 0px;
    left: 15px;
}
.info-age04 {
    bottom: 0px;
    left: 23px;
}
.box-ipad{
    flex-direction: column;
}
.number-img05 {
    position: absolute;
    opacity: 0.7;
}
.info-age-box .counter-age {
    font-size: 1.4rem;
    display: block;
}
.info-age-box {
    position: absolute;
    line-height: 1;
}
.info-nen{
    display: flex;
}
.number-img-total {
    height: 200px;
}
.number-img-onna {
    max-width: 40px;
    height: 55px;
}
.title-fx {
    text-align: left!important;
    top: 20px;
    left: 20px;
    transform: inherit;
}
.nen-date-181, .nen-date-100 {
    font-size: 8rem!important;
}








}

@media (max-width: 767px) {
    .hero-section {
        min-height: 180px;
        margin-top: 60px;
        border-radius: 0;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    #growth {
        padding: 0 15px;
        margin: 1.5rem auto;
    }
    
    .header {
        padding: 20px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .main-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .number-wrap {
        padding: 1.5rem;
        border-radius: 1rem;
    }
    
    .number-title {
        font-size: 1.5rem;
        padding: 0.5rem 0;
    }
    
    /* All layouts to single column */
    .number-box-card-custom,
    .number-box-card-custom.layout-a,
    .number-box-comany {
        flex-direction: column;
        gap: 15px;
    }
    
    .number-box-card-custom > .number-box-card,
    .number-box-card-custom > div {
        flex: 1;
        width: 100%;
    }
    
    .number-box-card-custom > div {
        gap: 15px;
    }
    
    .layout-b,
    .layout-c {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .layout-b .number-box-card,
    .layout-c .number-box-card {
        grid-column: auto!important;
        grid-row: auto!important;
        display: flex!important;
    }
    
    .layout-b .number-box-card:nth-child(1),
    .layout-b .number-box-card:nth-child(2) {
        display: flex!important;
        flex-direction: column!important;
    }
    
    /* Card styles */
    .number-box-card {
        padding: 20px 15px;
        min-height: 200px;
    }
    
.number-box-card h4 {
    font-size: 20px;
    margin: 0 auto 0px!important;
}

    .number-box-box {
        position: static;
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    /* Font sizes */
    .counter-120 {
        font-size: 7rem!important;
    }
    
    .counter-11 {
        font-size: 4rem!important;
    }
    
    .number-box span,
    .number-box-box span {
        font-size: 3.5rem;
        line-height: 1;
    }
    
    .number-box small,
    .number-box-box small {
        font-size: 1.1rem;
    }
    
    .nen-date,
    .nen-date01 {
        font-size: 3.5rem!important;
    }
    
    .male-date {
        font-size: 5rem!important;
    }
    
    .kyoten-date {
        font-size: 5rem!important;
    }
    
    .span-kyoten {
        font-size: 2rem!important;
    }
    
    .info-time span {
        font-size: 5rem;
    }
    
    .span-price {
        font-size: 2.5rem!important;
    }
    
    .span-price-mini {
        font-size: 1.5rem!important;
    }
    
    .info-out {
        font-size: 1rem;
        gap: 5px;
    }
    

    
    .number-img-total {
        max-width: 150px;
        height: auto!important;
        margin: 0 auto;
    }
    
    .number-img-onna {
        height: 50px;
        max-width: 30px;
    }
    
.kyoten-card-container {
    position: absolute;
    top: 80px;
    left: 20px;
    background: transparent;
}
    .kyoten-card {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 0;
        padding: 0;
        background: rgba(255,255,255,0.5);
        border-radius: 10px;
    }
    
    .kyoten-line {
        width: 100%;
        height: 3px;
        margin: 0.5rem 0;
    }
    
    .kyoten-group {
        position: static!important;
        right: 0!important;
    }
.kyouten-info {
    top: 0;
    position: relative;
    right: -80px;
}
    
    
    .info-age01,
    .info-age02,
    .info-age03,
    .info-age04,
    .info-age05 {
        top: auto!important;
        line-height: 1;
    }
.number-img01 {
    max-width: 100px;
    margin-left: auto!important;
}
.layout-b .number-box-card:nth-child(3) {

    justify-content: flex-start;
}
.number-img02 {
    max-width: 90px;
    margin: 0 auto!important;
}
.number-img08 {
    height: 110px!important;
}
.info-time {
    position: absolute;
    right: 40px;
    bottom: -30px;
}
.number-img181{
       max-width: 150px; 
}
.number-box-fix {
    flex-direction: row;
}
.number-img09 {
    height: 150px;
}
.number-img07 {
    height: 145px;
    margin-left: auto!important;
}
.number-title-hekin{
    text-align: left!important;
}

.info-age-box .counter-age {
    font-size: 1.5rem;
    display: block;
}

.span-age {
    font-size: 0.9rem!important;
    color: #424955!important;
}
.info-age03 {
    bottom: -40px;
    left: 70px;
}
.info-age04 {
    bottom: -10px;
    left: 13px;
}
.number-last{
    height: auto;
}
.number-img10 {
    max-width: 80px;
    margin: 0 auto!important;
}
.number-box-nin {
    flex-direction: row;
    align-items: baseline;
}
.info-age01 {
    right: 10px;
}
.sex-male {
    gap: 0 1rem;

}
.nen-date-181, .nen-date-100 {
    font-size: 6rem!important;
}




}