/* ============================================
   [Theme]: Blue Ocean (Playful & Modern)
   CSS Custom Properties 
   ============================================ */
:root {
    /* Brand Colors */
    --color-primary: #0077b6;
    /* Ocean Blue */
    --color-primary-dark: #023e8a;
    --color-primary-light: #00b4d8;
    --color-primary-bg: #e6f7ff;

    --color-accent: #ff9f1c;
    /* Sunny Orange */
    --color-accent-hover: #f77f00;

    /* UI Colors */
    --color-bg-base: #f8fbfd;
    /* Very light blue-ish white */
    --color-white: #ffffff;
    --color-text-main: #2b2d42;
    --color-text-sub: #6c757d;
    --color-border: #e9ecef;

    /* Layout */
    --max-width: 1160px;
    --header-height: 80px;
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 32px;

    /* Typography */
    --font-main: 'M PLUS Rounded 1c', 'Quicksand', 'Hiragino Maru Gothic ProN', sans-serif;
    --font-en: 'Quicksand', sans-serif;

    /* Shadows */
    --shadow-sm: 0 4px 16px rgba(0, 119, 182, 0.06);
    --shadow-md: 0 12px 32px rgba(0, 119, 182, 0.08);
    --shadow-lg: 0 20px 48px rgba(0, 119, 182, 0.12);

    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ============================================
   Reset & Base
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-bg-base);
    line-height: 1.7;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Animations (Fade In)
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.about__card.fade-in:nth-child(2) {
    transition-delay: 0.1s;
}

.about__card.fade-in:nth-child(3) {
    transition-delay: 0.2s;
}

.products__card.fade-in:nth-child(2) {
    transition-delay: 0.1s;
}

.products__card.fade-in:nth-child(3) {
    transition-delay: 0.15s;
}

.products__card.fade-in:nth-child(4) {
    transition-delay: 0.2s;
}

.products__card.fade-in:nth-child(5) {
    transition-delay: 0.25s;
}

.products__card.fade-in:nth-child(6) {
    transition-delay: 0.3s;
}

/* ============================================
   Typography Patterns
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-label {
    font-family: var(--font-en);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-primary-light);
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--color-primary-dark);
    margin-bottom: 24px;
    line-height: 1.4;
}

.section-lead {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--color-text-sub);
    font-weight: 500;
}

.section-label--white,
.section-title--white,
.section-lead--white {
    color: var(--color-white);
}

.text-highlight {
    display: inline-block;
    color: var(--color-accent);
    position: relative;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(255, 159, 28, 0.3);
    border-radius: 4px;
    z-index: -1;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all 0.4s ease;
    /* Initial state: transparent text on hero */
    color: var(--color-white);
}

.header__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Scrolled state: White background, blue text */
.header.is-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    color: var(--color-primary-dark);
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.header__logo-icon {
    width: 32px;
    height: 32px;
    color: var(--color-accent);
}

.header__logo-text {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.header__nav-list {
    display: flex;
    align-items: center;
    gap: 36px;
}

.header__nav-link {
    font-family: var(--font-en);
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition);
    border-radius: 2px;
}

.header__nav-link:hover::after {
    width: 100%;
}

.header__nav-link--cta {
    background-color: var(--color-accent);
    color: var(--color-white) !important;
    padding: 10px 24px;
    border-radius: 100px;
    transition: background-color var(--transition), transform var(--transition);
}

.header__nav-link--cta::after {
    display: none;
}

.header__nav-link--cta:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 159, 28, 0.3);
}

/* Hamburger */
.header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.header__hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: currentColor;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.header__hamburger.is-active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.header__hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.header__hamburger.is-active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero__bg-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--color-primary-dark);
}

.hero__bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    mix-blend-mode: overlay;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 119, 182, 0.4) 0%, rgba(2, 62, 138, 0.8) 100%);
}

.hero__content {
    text-align: center;
    color: var(--color-white);
    padding: 0 24px;
    max-width: 800px;
    position: relative;
    z-index: 1;
    animation: floatUp 1s ease forwards;
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__sub {
    font-family: var(--font-en);
    font-weight: 700;
    letter-spacing: 0.2em;
    font-size: clamp(0.8rem, 2vw, 1rem);
    margin-bottom: 24px;
    color: var(--color-primary-light);
    background: rgba(255, 255, 255, 0.1);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    backdrop-filter: blur(4px);
}

.hero__title {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 32px;
}

.hero__desc {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
    margin-bottom: 48px;
    opacity: 0.9;
}

.hero__btn {
    display: inline-block;
    background-color: var(--color-white);
    color: var(--color-primary-dark);
    font-weight: 700;
    padding: 16px 40px;
    border-radius: 100px;
    font-size: 1.05rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all var(--transition);
}

.hero__btn:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(255, 159, 28, 0.4);
}

/* Wave Divider */
.hero__wave {
    position: absolute;
    bottom: -1px;
    /* prevent 1px gap */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero__wave svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

@media (min-width: 768px) {
    .hero__wave svg {
        height: 110px;
    }
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: 100px 0 120px;
    background-color: var(--color-bg-base);
}

.about__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 80px;
}

.about__card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 48px 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.about__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.about__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.about__card:hover::before {
    transform: scaleX(1);
}

.about__card-icon-wrap {
    width: 80px;
    height: 80px;
    background-color: var(--color-primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: transform var(--transition);
}

.about__card:hover .about__card-icon-wrap {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--color-primary);
}

.about__card-icon {
    font-size: 2.4rem;
}

.about__card:hover .about__card-icon {
    filter: grayscale(1) brightness(100);
}

.about__card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 16px;
}

.about__card-text {
    font-size: 0.95rem;
    color: var(--color-text-sub);
}

.about__visual {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about__visual img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    transition: transform 1s ease;
}

.about__visual:hover img {
    transform: scale(1.03);
}

.about__visual-badge {
    position: absolute;
    bottom: 40px;
    right: 40px;
    width: 120px;
    height: 120px;
    background-color: var(--color-accent);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 10px 20px rgba(255, 159, 28, 0.4);
    animation: spinSlow 15s linear infinite;
}

@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.about__visual-badge span {
    animation: spinSlow 15s linear infinite reverse;
    /* keeps text upright */
}

/* ============================================
   PRODUCTS
   ============================================ */
.products {
    padding: 120px 0;
    background-color: var(--color-white);
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.products__card {
    background-color: var(--color-bg-base);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.products__card:hover {
    background-color: #ffffff;
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.products__card-head {
    margin-bottom: 24px;
}

.products__card-emoji {
    font-size: 3rem;
    background: var(--color-white);
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.products__card:hover .products__card-emoji {
    transform: scale(1.1) rotate(-10deg);
    background: var(--color-primary-bg);
}

.products__card-body {
    text-align: left;
}

.products__card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 12px;
}

.products__card-text {
    font-size: 0.95rem;
    color: var(--color-text-sub);
}

/* ============================================
   COMPANY
   ============================================ */
.company {
    padding: 120px 0;
    background-color: var(--color-bg-base);
}

.company__inner {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    background: var(--color-white);
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.company__info {
    flex: 0 0 35%;
}

.company__name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    margin-bottom: 16px;
}

.company__desc {
    font-size: 1.05rem;
    color: var(--color-primary);
    font-weight: 500;
}

.company__table-wrap {
    flex: 1;
}

.company__table {
    width: 100%;
    border-collapse: collapse;
}

.company__table th,
.company__table td {
    padding: 24px 20px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.company__table th {
    width: 30%;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.company__table td {
    color: var(--color-text-main);
    font-weight: 500;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    position: relative;
    background-color: var(--color-primary);
    padding-bottom: 120px;
}

.contact__wave {
    position: relative;
    top: -1px;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.contact__wave svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

@media (min-width: 768px) {
    .contact__wave svg {
        height: 120px;
    }
}

.contact__content {
    padding-top: 60px;
}

/* Base layouts for contact section */
.contact__grid-phone {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Card (Phone) */
.contact__card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition);
}

.contact__card:hover {
    transform: translateY(-8px);
}

.contact__card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact__card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 12px;
}

.contact__card-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-family: var(--font-en);
}

.contact__card-note {
    font-size: 0.9rem;
    color: var(--color-text-sub);
    margin-bottom: 24px;
}

/* Contact Form Styling */
.contact__form-wrap {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: left;
}

.contact__form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .contact__form-wrap {
        padding: 56px;
    }

    .contact__form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact__form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact__form-group label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact__form-group .required {
    font-size: 0.75rem;
    background-color: #ef4444;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: normal;
}

.contact__form-group input,
.contact__form-group select,
.contact__form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--color-bg-base);
    border-radius: var(--radius-md);
    background-color: #fafbfc;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    transition: all var(--transition);
}

.contact__form-group input:focus,
.contact__form-group select:focus,
.contact__form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-white);
    box-shadow: 0 0 0 4px rgba(29, 161, 242, 0.1);
}

.contact__form-select-wrap {
    position: relative;
}

.contact__form-select-wrap::after {
    content: "▼";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--color-text-sub);
    pointer-events: none;
}

.contact__form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.contact__form-submit {
    margin-top: 16px;
    text-align: center;
}

.contact__submit-btn {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 16px 48px;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 159, 28, 0.3);
    transition: all var(--transition);
}

.contact__submit-btn:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 159, 28, 0.4);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--color-primary-dark);
    padding: 80px 0 40px;
    color: var(--color-white);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer__logo svg {
    width: 40px;
    height: 40px;
    color: var(--color-accent);
}

.footer__logo-text {
    font-family: var(--font-en);
    font-size: 1.8rem;
    font-weight: 800;
}

.footer__desc {
    font-size: 0.95rem;
    color: var(--color-primary-light);
    font-weight: 500;
}

.footer__nav {
    display: flex;
    gap: 40px;
}

.footer__nav a {
    font-family: var(--font-en);
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
}

.footer__nav a:hover {
    color: var(--color-accent);
}

.footer__bottom {
    text-align: center;
}

.footer__copy {
    font-family: var(--font-en);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .about__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .company__inner {
        flex-direction: column;
        gap: 40px;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .header {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: var(--shadow-sm);
        color: var(--color-primary-dark);
    }

    .header__inner {
        padding: 0 24px;
    }

    .header__logo-text {
        font-size: 1.3rem;
    }

    .header__hamburger {
        display: flex;
    }

    .header__nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-primary-dark);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s ease;
    }

    .header__nav.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .header__nav-list {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .header__nav-link {
        color: var(--color-white);
        font-size: 1.4rem;
    }

    .header__nav-link--cta {
        font-size: 1.2rem;
        padding: 16px 40px;
    }

    .sp-hide {
        display: none;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .about {
        padding: 60px 0 80px;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about__visual-badge {
        width: 90px;
        height: 90px;
        font-size: 0.9rem;
        bottom: 20px;
        right: 20px;
    }

    .products {
        padding: 80px 0;
    }

    .products__grid {
        grid-template-columns: 1fr;
    }

    .products__card {
        flex-direction: row;
        align-items: center;
        gap: 24px;
        padding: 24px;
    }

    .products__card-head {
        margin-bottom: 0;
    }

    .products__card-emoji {
        width: 64px;
        height: 64px;
        font-size: 2.2rem;
    }

    .company {
        padding: 60px 0;
    }

    .company__inner {
        padding: 32px 24px;
    }

    .company__table th,
    .company__table td {
        display: block;
        width: 100%;
        padding: 16px 0;
    }

    .company__table th {
        padding-bottom: 4px;
        border-bottom: none;
    }

    .contact {
        padding-bottom: 80px;
    }

    .contact__grid-phone {
        gap: 24px;
    }

    .contact__card {
        padding: 40px 24px;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .footer__logo {
        justify-content: center;
    }

    .footer__nav {
        flex-direction: column;
        gap: 20px;
    }
}