/* ==========================================================================
   Akords Top Page Styles
   ========================================================================== */

/* Typography & Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    color: #334155;
    line-height: 1.7;
    background-color: #ffffff;
}

h1, h2, h3, h4 {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.akords-hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 140px;
    background: url('../images/hero-bg.jpg') no-repeat center bottom;
    background-size: cover;
}

.akords-hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, #ffffff, transparent);
    z-index: 5;
}

/* Backgrounds */
.sky-background {
    display: none;
}

.cityscape-background {
    display: none;
}

/* Titles */
.hero-titles {
    position: relative;
    z-index: 10;
    text-align: center;
    margin-bottom: 80px;
}

/* Floating House Link */
.floating-house-link {
    position: absolute;
    bottom: -20px;
    left: 0;
    z-index: 100;
    display: block;
    width: 560px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: houseFloat 6s ease-in-out infinite;
}

.floating-house-link img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
}

.floating-house-link:hover {
    transform: scale(1.03) translateY(-10px);
}

.house-tooltip {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #0056b3;
    color: white;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 700;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.4);
}

.floating-house-link:hover .house-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@keyframes houseFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

@media (max-width: 1024px) {
    .floating-house-link {
        width: 400px;
        bottom: -10px;
    }
}

@media (max-width: 768px) {
    .floating-house-link {
        width: 280px;
        bottom: -5px;
    }
}

.hero-titles h2 {
    font-size: 3rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.hero-titles h3 {
    display: none;
}

/* --------------------------------------------------------------------------
   Balloons Container
   -------------------------------------------------------------------------- */
.balloons-container {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    padding: 0 20px;
    /* staggered positioning on flex items */
}

/* --------------------------------------------------------------------------
   Balloon Items & Animation
   -------------------------------------------------------------------------- */
.balloon-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    /* Independent scale property avoids conflict with keyframes transform */
    transition: scale 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    scale: 1;
}

.balloon-item:hover {
    scale: 1.08;
    z-index: 20;
}

/* Tooltip */
.balloon-tooltip {
    position: absolute;
    top: -40px;
    background: white;
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.balloon-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: white transparent transparent transparent;
    display: block;
    width: 0;
}

.balloon-item:hover .balloon-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Balloon Sphere */
.balloon-sphere {
    width: 200px;
    height: 220px;
    border-radius: 50% 50% 50% 50% / 45% 45% 55% 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: white;
    text-align: center;
    box-shadow: 
        inset -10px -10px 30px rgba(0,0,0,0.2), /* internal shadow */
        inset 10px 10px 30px rgba(255,255,255,0.6), /* internal highlight */
        0 20px 40px rgba(0,0,0,0.15); /* external drop shadow */
    position: relative;
    overflow: hidden;
}

/* Glossy highlight for a premium 3D look */
.balloon-sphere::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 15%;
    width: 40%;
    height: 30%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    transform: rotate(-30deg);
}

.balloon-icon {
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.balloon-title {
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 5px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.balloon-catch {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Balloon Basket */
.balloon-basket {
    width: 30px;
    height: 24px;
    background: #d4a373;
    border-radius: 4px;
    margin-top: 15px;
    position: relative;
    box-shadow: inset 0 -4px 8px rgba(0,0,0,0.3), 0 5px 10px rgba(0,0,0,0.1);
}

/* Basket Ropes */
.balloon-basket::before,
.balloon-basket::after {
    content: '';
    position: absolute;
    top: -15px;
    width: 2px;
    height: 15px;
    background: rgba(0,0,0,0.4);
}

.balloon-basket::before {
    left: 5px;
    transform: rotate(15deg);
}

.balloon-basket::after {
    right: 5px;
    transform: rotate(-15deg);
}


/* --------------------------------------------------------------------------
   Balloon Colors
   -------------------------------------------------------------------------- */
.color-blue .balloon-sphere {
    background: radial-gradient(circle at 30% 30%, #60A5FA, #2563EB, #1E3A8A);
}

.color-green .balloon-sphere {
    background: radial-gradient(circle at 30% 30%, #4ADE80, #16A34A, #14532D);
}

.color-pink .balloon-sphere {
    background: radial-gradient(circle at 30% 30%, #F472B6, #DB2777, #831843);
}

.color-orange .balloon-sphere {
    background: radial-gradient(circle at 30% 30%, #FB923C, #EA580C, #7C2D12);
}

.color-yellow .balloon-sphere {
    background: radial-gradient(circle at 30% 30%, #FDE047, #CA8A04, #713F12);
}

/* --------------------------------------------------------------------------
   Antigravity Floating Animations
   -------------------------------------------------------------------------- */
@keyframes float1 {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
    25% { transform: translateY(-15px) translateX(5px) rotate(2deg); }
    50% { transform: translateY(-5px) translateX(10px) rotate(-1deg); }
    75% { transform: translateY(-20px) translateX(-5px) rotate(1deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) translateX(0); }
    33% { transform: translateY(-25px) translateX(-10px); }
    66% { transform: translateY(-10px) translateX(5px); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-30px) translateX(0); }
}

@keyframes float4 {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
    25% { transform: translateY(-10px) translateX(-8px) rotate(-2deg); }
    50% { transform: translateY(-25px) translateX(5px) rotate(1deg); }
    75% { transform: translateY(-5px) translateX(8px) rotate(-1deg); }
}

@keyframes float5 {
    0%, 100% { transform: translateY(0) translateX(0); }
    40% { transform: translateY(-20px) translateX(10px); }
    80% { transform: translateY(-15px) translateX(-5px); }
}

/* Assign animations and vertical offsets for staggering */
.float-delay-1 { 
    animation: float1 8s ease-in-out infinite; 
    margin-top: 40px; 
}
.float-delay-2 { 
    animation: float2 10s ease-in-out infinite; 
    animation-delay: 1s; 
    margin-top: -20px;
}
.float-delay-3 { 
    animation: float3 9s ease-in-out infinite; 
    animation-delay: 2s; 
    margin-top: 20px;
}
.float-delay-4 { 
    animation: float4 11s ease-in-out infinite; 
    animation-delay: 0.5s; 
    margin-top: 60px;
}
.float-delay-5 { 
    animation: float5 9.5s ease-in-out infinite; 
    animation-delay: 1.5s; 
    margin-top: -10px;
}

/* Fix hover interacting with animation transform */
/* By wrapping the balloon contents, we avoid animation conflicts with the hover scale.
   Actually, the transform transition on hover will fight with the @keyframes transform.
   Let's wrap the balloon to fix this. */
   
/* --------------------------------------------------------------------------
   Responsive Layout
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .balloons-container {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .balloon-sphere {
        width: 160px;
        height: 176px;
        padding: 15px;
    }
    
    .balloon-title {
        font-size: 0.95rem;
    }
    
    .balloon-catch {
        font-size: 0.75rem;
    }
    
    /* Reset margins for smaller screens */
    .balloon-item { margin-top: 10px !important; }
}

@media (max-width: 768px) {
    .hero-titles h2 { font-size: 2rem; }
    .hero-titles h3 { font-size: 1.4rem; }
    
    .balloons-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .balloon-sphere {
        width: 180px;
        height: 198px;
    }
    
    .cityscape-background {
        height: 20vh;
    }
}

/* --------------------------------------------------------------------------
   Content Sections (Below Hero)
   -------------------------------------------------------------------------- */
.akords-content-container {
    background-color: #ffffff;
    padding: 100px 20px;
    position: relative;
    z-index: 20;
}

.akords-section {
    max-width: 1100px;
    margin: 0 auto 120px auto;
}

.section-inner {
    padding: 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #0f172a;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: #0056b3;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Philosophy */
.philosophy-layout {
    display: flex;
    align-items: center;
    gap: 60px;
    background: #f8fafc;
    overflow: hidden;
}

.philosophy-image {
    flex: 1;
    height: 100%;
}

.philosophy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.philosophy-content {
    flex: 1;
    padding: 60px 60px 60px 0;
    text-align: left;
}

.philosophy-catchphrase {
    font-size: 2.2rem;
    color: #0f172a;
    margin-bottom: 30px;
    font-weight: 700;
}

.philosophy-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #475569;
    margin-bottom: 25px;
}

.btn-detail {
    display: inline-block;
    padding: 12px 40px;
    border: 1px solid #0f172a;
    border-radius: 30px;
    color: #0f172a;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-detail:hover {
    background: #0f172a;
    color: #ffffff;
}

@media (max-width: 992px) {
    .philosophy-layout {
        flex-direction: column;
    }
    .philosophy-content {
        padding: 40px 20px;
        text-align: center;
    }
    .philosophy-image {
        width: 100%;
        height: 300px;
    }
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Services List (Linear Layout) */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.service-row {
    display: flex;
    align-items: center;
    gap: 60px;
    background: #ffffff;
    overflow: hidden;
}

.service-row.reverse {
    flex-direction: row-reverse;
}

.service-row-image {
    flex: 1.2;
    height: 400px;
    overflow: hidden;
}

.service-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-row:hover .service-row-image img {
    transform: scale(1.05);
}

.service-row-content {
    flex: 1;
    padding: 40px 0;
    text-align: left;
}

.service-row-content h3 {
    font-size: 1.8rem;
    color: #0f172a;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.service-row-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #0056b3;
}

.service-row-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .service-row, .service-row.reverse {
        flex-direction: column;
        gap: 30px;
    }
    .service-row-content {
        padding: 20px;
        text-align: center;
    }
    .service-row-content h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .service-row-image {
        width: 100%;
        height: 300px;
    }
}

/* Company Table */
.company-table {
    width: 100%;
    border-collapse: collapse;
    background: #f8fafc;
}

.company-table th,
.company-table td {
    padding: 25px 30px;
    border-bottom: 1px solid #e2e8f0;
}

.company-table th {
    width: 25%;
    font-weight: 700;
    color: #0f172a;
    background-color: transparent;
    font-size: 1.1rem;
}

.company-table td {
    color: #475569;
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-inner {
        padding: 30px 20px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .company-table th, .company-table td {
        display: block;
        width: 100%;
    }
    
    .company-table th {
        border-bottom: none;
        padding-bottom: 5px;
    }
    
    .company-table td {
        padding-top: 5px;
        margin-bottom: 10px;
    }
}
