@charset "UTF-8";

/* =========================================
   CSS Variables & Design System Tokens
   ========================================= */
:root {
    /* Color Palette: Modern Hawaiian Natural */
    --color-bg-base: #FAF8F5; /* ウォームサンド・アイボリー */
    --color-bg-light: #FFFFFF;
    --color-main: #C67B6B;    /* ミュート・テラコッタ */
    --color-second: #6E7A66;  /* セージ・グリーン */
    --color-text: #2C2523;    /* ダークアース・チャコール */
    --color-text-muted: #5A4E49;
    --color-border: #E8E2D9;

    /* Typography */
    --font-primary: 'Noto Sans JP', sans-serif;
    --font-serif: 'Noto Serif JP', serif;
    --font-accent: 'Playfair Display', serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Borders & Shadows */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 9999px;

    --shadow-soft: 0 10px 30px rgba(44, 37, 35, 0.05);
    --shadow-glass: 0 8px 32px rgba(44, 37, 35, 0.08);
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Header height offset */
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-base);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Page Themes */
.theme-ohana {
    --color-main: #D98894;
    --color-second: #B36A75;
}

.theme-ponocare {
    --color-main: #D48C5B;
    --color-second: #AD6D41;
}

.theme-aloha {
    --color-main: #8DA668;
    --color-second: #6C824E;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* =========================================
   Typography
   ========================================= */
.section-title {
    font-family: var(--font-accent);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-second);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-main);
    letter-spacing: 0.1em;
    font-weight: 500;
}

.section-heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
    font-weight: 500;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-danger {
    color: #c0392b;
}

/* =========================================
   Mobile Menu Overlay
   ========================================= */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 37, 35, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: var(--color-bg-base);
    z-index: 1000;
    padding: 80px var(--spacing-md) var(--spacing-md);
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-nav-menu.active {
    right: 0;
}

.mobile-nav-menu .mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text);
    cursor: pointer;
    padding: 8px;
    line-height: 1;
}

.mobile-nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu ul li {
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav-menu ul li > a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0.95rem 0;
    color: var(--color-text);
    text-decoration: none;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: color 0.2s ease;
}

.mobile-nav-menu ul li > a:hover {
    color: var(--color-main);
}

.mobile-nav-en {
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: 0.03em;
}

.mobile-nav-ja {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.mobile-nav-services-group {
    padding: 0.9rem 0 1rem;
}

.mobile-nav-group-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.65rem;
    color: var(--color-text);
}

.mobile-service-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.mobile-service-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-size: 0.86rem;
    color: var(--color-text);
    box-shadow: 0 2px 6px rgba(44, 37, 35, 0.04);
    transition: all 0.2s ease;
}

.mobile-service-item:hover,
.mobile-service-item.is-current {
    border-color: var(--color-main);
    background: #fff;
    transform: translateX(2px);
}

.mobile-service-item .dropdown-service-name {
    font-weight: 700;
    font-size: 0.86rem;
}

.mobile-service-item .dropdown-service-type {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.mobile-nav-menu ul li:last-child > a {
    display: block;
    color: var(--color-bg-light);
    background: var(--color-main);
    text-align: center;
    border-radius: var(--radius-pill);
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    font-weight: 600;
}

.mobile-nav-menu ul li:last-child {
    border-bottom: none;
}

/* =========================================
   Layout Utilities
   ========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
    /* Performance optimization for off-screen rendering */
    content-visibility: auto;
    contain-intrinsic-block-size: auto 600px;
}

.bg-light {
    background-color: var(--color-bg-light);
}

/* =========================================
   Components
   ========================================= */
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-pill);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-family: var(--font-primary);
}

.btn-small {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--color-main);
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background-color: #A36253;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(198, 123, 107, 0.2);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-second);
    color: var(--color-second);
}

.btn-outline:hover {
    background-color: var(--color-second);
    color: #fff;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* =========================================
   Global Header (Glassmorphism)
   ========================================= */
.global-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    display: block;
}

.desktop-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.desktop-nav a {
    font-weight: 500;
    font-size: 0.95rem;
}

.desktop-nav a:not(.btn):hover {
    color: var(--color-main);
}

/* Bilingual Nav Links */
.nav-item-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.15;
    padding: 0.25rem 0.2rem;
    text-decoration: none;
}

.nav-item-link .nav-en {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.04em;
    transition: color 0.25s ease;
}

.nav-item-link .nav-ja {
    font-size: 0.66rem;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-top: 0.15rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.nav-item-link:hover .nav-en,
.nav-item-link:hover .nav-ja {
    color: var(--color-main);
}

/* Services Pill Dropdown Button (Option C + Pattern 1) */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.42rem 1.15rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--color-main);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-text);
    cursor: pointer;
    font-family: var(--font-primary);
    transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(44, 37, 35, 0.05);
}

.nav-trigger-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.12;
}

.nav-dropdown-trigger .nav-en {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-main);
    letter-spacing: 0.04em;
    transition: color 0.25s ease;
}

.nav-dropdown-trigger .nav-ja {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-top: 0.12rem;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.nav-dropdown-caret {
    color: var(--color-main);
    transition: transform 0.25s ease, color 0.25s ease;
    flex-shrink: 0;
}

.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown.open .nav-dropdown-trigger,
.nav-dropdown-trigger:focus-visible {
    background-color: var(--color-main);
    border-color: var(--color-main);
    box-shadow: 0 6px 16px rgba(44, 37, 35, 0.14);
    transform: translateY(-1px);
    outline: none;
}

.nav-dropdown:hover .nav-dropdown-trigger .nav-en,
.nav-dropdown:hover .nav-dropdown-trigger .nav-ja,
.nav-dropdown:hover .nav-dropdown-caret,
.nav-dropdown.open .nav-dropdown-trigger .nav-en,
.nav-dropdown.open .nav-dropdown-trigger .nav-ja,
.nav-dropdown.open .nav-dropdown-caret,
.nav-dropdown-trigger:focus-visible .nav-en,
.nav-dropdown-trigger:focus-visible .nav-ja,
.nav-dropdown-trigger:focus-visible .nav-dropdown-caret {
    color: #fff;
}

.nav-dropdown:hover .nav-dropdown-caret,
.nav-dropdown.open .nav-dropdown-caret {
    transform: rotate(180deg);
}

/* Dropdown Menu List (Option 2: Clean 1-line items) */
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 285px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    box-shadow: 0 14px 36px rgba(44, 37, 35, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    z-index: 1010;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    width: 100%;
    height: 14px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-service-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.72rem 0.9rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.service-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.item-ohana .service-dot {
    background-color: #D98894;
}

.item-ponocare .service-dot {
    background-color: #D48C5B;
}

.item-aloha .service-dot {
    background-color: #8DA668;
}

.dropdown-service-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--color-text);
    transition: color 0.2s ease;
}

.dropdown-service-type {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.dropdown-service-item:hover {
    background-color: var(--color-bg-base);
    transform: translateX(3px);
}

.dropdown-service-item.item-ohana:hover .dropdown-service-name,
.dropdown-service-item.item-ohana.is-current .dropdown-service-name {
    color: #B36A75;
}

.dropdown-service-item.item-ponocare:hover .dropdown-service-name,
.dropdown-service-item.item-ponocare.is-current .dropdown-service-name {
    color: #AD6D41;
}

.dropdown-service-item.item-aloha:hover .dropdown-service-name,
.dropdown-service-item.item-aloha.is-current .dropdown-service-name {
    color: #6C824E;
}

.dropdown-service-item.is-current {
    background-color: var(--color-bg-base);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(44, 37, 35, 0.7) 0%, rgba(44, 37, 35, 0.3) 100%);
    mix-blend-mode: multiply;
}

.hero-content {
    color: #fff;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-subtitle {
    display: block;
    font-family: var(--font-accent);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #E8E2D9;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.hero-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
    max-width: 600px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* =========================================
   Philosophy Section
   ========================================= */
.philosophy-section {
    background-color: var(--color-bg-base);
}

.philosophy-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .philosophy-cards {
        gap: 0.5rem;
    }
    .philosophy-card {
        padding: 1.5rem 0.5rem;
    }
    .philosophy-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    .philosophy-icon svg {
        width: 24px;
        height: 24px;
    }
    .philosophy-card-title {
        font-size: 0.9rem;
        letter-spacing: 0.05em;
    }
}

.philosophy-card {
    background: linear-gradient(135deg, #ffffff 0%, #FAF8F5 100%);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(44, 37, 35, 0.05);
    border: 1px solid var(--color-border);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.philosophy-card::before, .service-link-card::before, .info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--color-main), var(--color-second));
}

.philosophy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(198, 123, 107, 0.15);
}

.philosophy-icon {
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(198, 123, 107, 0.08);
    border: 1px solid rgba(198, 123, 107, 0.2);
    color: var(--color-main);
    transition: transform 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.philosophy-card:hover .philosophy-icon {
    transform: scale(1.08);
    color: #A36253;
    border-color: rgba(198, 123, 107, 0.5);
    box-shadow: 0 12px 30px rgba(198, 123, 107, 0.15);
}

.philosophy-card-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--color-text);
    font-weight: 600;
    letter-spacing: 0.1em;
    margin: 0;
}

.philosophy-message {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    position: relative;
}

.philosophy-message::before {
    content: '“';
    font-family: var(--font-accent);
    font-size: 6rem;
    color: var(--color-border);
    position: absolute;
    top: -10px;
    left: 20px;
    line-height: 1;
    opacity: 0.5;
}

.philosophy-message p {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.philosophy-message p:last-child {
    margin-bottom: 0;
}

/* =========================================
   Interactive Showcases (Tabs)
   ========================================= */
.section-header {
    margin-bottom: var(--spacing-lg);
}

/* =========================================
   Service Link Cards (Multi-page navigation)
   ========================================= */
.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.service-link-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.service-link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(44, 37, 35, 0.1);
    border-color: var(--color-border);
}

.service-link-card.highlight-card {
    border-top: 4px solid var(--color-second);
}

.card-icon {
    margin: 0 auto 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(110, 122, 102, 0.1);
    border: 1px solid rgba(110, 122, 102, 0.2);
    color: var(--color-second);
    transition: transform 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.service-link-card:hover .card-icon {
    transform: scale(1.1);
    color: #4A5344;
    border-color: rgba(110, 122, 102, 0.5);
    box-shadow: 0 10px 25px rgba(110, 122, 102, 0.2);
}

.service-link-card h3 {
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 0.2rem;
}

.card-sub {
    font-size: 0.85rem;
    color: var(--color-main);
    font-weight: 500;
    margin-bottom: 1rem;
}

.card-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-action {
    display: inline-block;
    color: var(--color-second);
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

.service-link-card:hover .card-action {
    transform: translateX(5px);
}

/* =========================================
   Careers Banner (index.html)
   ========================================= */
#careers-banner {
    background-color: var(--color-bg-base);
    padding: var(--spacing-xl) 0;
}

.careers-banner-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    background-color: #fff;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.careers-banner-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--color-main), var(--color-second));
}

.careers-banner-text p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.careers-banner-card .service-link-card {
    height: 100%;
    justify-content: center;
    border: 2px solid var(--color-border);
    box-shadow: none;
}

.careers-banner-card .service-link-card::before {
    display: none;
}

.careers-banner-card .service-link-card:hover {
    border-color: var(--color-second);
    box-shadow: var(--shadow-glass);
}

/* =========================================
   Sub-page Specific Styles
   ========================================= */
.page-main {
    padding-top: 80px; /* Header height offset */
}

.page-header {
    padding: var(--spacing-lg) 0 var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--spacing-md);
}

/* Page Header Title wrapper styles */
.title-wrapper {
    position: relative;
    display: block;
    width: 100%;
    padding: 3rem 0;
    margin-bottom: var(--spacing-sm);
}

.title-en-accent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-accent);
    color: var(--color-main);
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 800;
    font-style: italic;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
    letter-spacing: 0.05em;
    user-select: none;
    white-space: nowrap;
}

.title-wrapper .service-formal-title {
    position: relative;
    z-index: 1;
}

.title-wrapper .service-formal-title .service-prefix {
    font-size: clamp(0.85rem, 2.5vw, 1rem); /* Fixed small size */
    margin-bottom: 0.5rem;
}

.title-wrapper .service-formal-title .service-main-name {
    font-size: clamp(2rem, 6vw, 3.2rem); /* Largest font on the page */
    line-height: 1.2;
}

.section-title.section-title-ja {
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: 0.2em;
    margin-bottom: 0;
    line-height: 1.2;
}

.service-intro {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.service-intro h3 {
    font-size: 1.8rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.service-catchphrase {
    color: var(--color-main);
    font-weight: 500;
    font-size: 1.2rem;
}

/* =========================================
   Recruit Message Banner
   ========================================= */
.recruit-message-container {
    max-width: 800px;
    margin: 2.5rem auto 1rem;
    background: var(--color-bg-light);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glass);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.recruit-message-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--color-main), var(--color-second));
}

.recruit-catchphrase {
    color: var(--color-main);
    font-weight: 700;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.recruit-description {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: left;
    margin: 0 auto;
    display: inline-block;
}

@media (max-width: 768px) {
    .recruit-message-container {
        padding: 1.8rem 1.2rem;
        margin-top: 2rem;
    }
    
    .recruit-description {
        font-size: 1rem;
        text-align: left;
    }
}

/* =========================================
   Responsive Iframe Embeds
   ========================================= */
.embed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.embed-grid.single-col {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.embed-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.embed-card.full-width {
    grid-column: 1 / -1;
}

.embed-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 4px solid var(--color-main);
}

.iframe-container {
    position: relative;
    width: 100%;
    background: #f5f5f5;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

/* CSS Aspect Ratios */
.aspect-16-9 {
    aspect-ratio: 16 / 9;
}

.aspect-4-3 {
    aspect-ratio: 4 / 3;
}

/* Fallback for older browsers not supporting aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
    .aspect-16-9 {
        padding-bottom: 56.25%;
    }
    .aspect-4-3 {
        padding-bottom: 75%;
    }
    .iframe-container > iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.embed-note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
    margin-bottom: 0;
    padding: 0.5rem;
    background: var(--color-bg-base);
    border-radius: var(--radius-sm);
}

/* Dummy Overlay Styles (For presentation only) */
.dummy-embed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Cover the broken dummy iframes */
}

.dummy-sheet table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.dummy-sheet th, .dummy-sheet td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: center;
}

.dummy-sheet th { background: #f9f9f9; }
.dummy-pdf, .dummy-calendar {
    font-size: 1.2rem;
    color: var(--color-second);
    text-align: center;
}

/* =========================================
   Careers (Job Cards)
   ========================================= */
.job-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.job-card {
    background: #fff;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    text-align: center;
    border-top: 4px solid var(--color-second);
}

.job-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.job-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.job-card p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* =========================================
   Instagram Gallery
   ========================================= */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.dummy-insta-item {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.dummy-insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dummy-insta-item:hover img {
    transform: scale(1.05);
}

/* =========================================
   Contact Form
   ========================================= */
.contact-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-glass);
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    background: var(--color-bg-base);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-second);
}

/* LINE Contact Styles */
.line-contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 1rem 0;
}

.line-contact-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.btn-line {
    background-color: #06C755;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
    border: none;
    gap: 0.5rem;
}

.btn-line:hover {
    background-color: #05B34C;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6, 199, 85, 0.4);
}

.line-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* =========================================
   Footer
   ========================================= */
.global-footer {
    background-color: var(--color-text);
    color: #fff;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-grid.footer-grid-4col {
    grid-template-columns: 1.1fr 1fr 1.15fr 0.75fr;
    gap: var(--spacing-md);
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 50px;
    width: auto;
    display: block;
}

.company-desc {
    color: rgba(255, 255, 255, 0.7);
}

.footer-info h4, .footer-links h4 {
    color: var(--color-second);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-info a {
    color: #fff;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: var(--color-main);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* =========================================
   Responsive Breakpoints
   ========================================= */
@media (max-width: 992px) {
    .about-grid, .footer-grid, .footer-grid.footer-grid-4col, .careers-banner-inner {
        grid-template-columns: 1fr;
    }
    
    .embed-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-card {
        padding: var(--spacing-md);
    }

    .hidden-mobile {
        display: none;
    }
}

@media (max-width: 480px) {
    .tabs {
        justify-content: flex-start;
    }
    
    .tab-btn {
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
    }
}

/* Bottom Information Grid (Evaluation, News, Contact) */
.bottom-info-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
}

.bottom-right-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.info-card.h-100 {
    height: 100%;
}

.bottom-right-col .info-card {
    flex: 1;
}

/* Formal Service Title Styles */
.service-formal-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-formal-title .service-prefix {
    display: block;
    font-size: 0.55em; /* Smallest size required to fit Ohana's 20-char prefix into its 10-char main name */
    color: var(--color-main);
    font-weight: 600;
    margin-bottom: 0.2em;
    letter-spacing: 0;
    white-space: nowrap;
}

.service-formal-title .service-main-name {
    display: block;
    font-size: 1em;
    color: var(--color-text);
}

/* Text alignment */
.text-left {
    text-align: left;
}

/* News List Styles */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex: 1;
    padding-right: 0.5rem;
}

/* Custom subtle scrollbar for news list */
.news-list::-webkit-scrollbar {
    width: 4px;
}
.news-list::-webkit-scrollbar-track {
    background: transparent;
}
.news-list::-webkit-scrollbar-thumb {
    background-color: var(--color-border);
    border-radius: 4px;
}

.news-list li {
    border-bottom: 1px dashed var(--color-border);
    padding: 1.2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.news-list li:first-child {
    padding-top: 0;
}

.news-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-date {
    font-size: 0.85rem;
    color: var(--color-main);
    font-weight: 500;
}

.news-link {
    font-size: 0.95rem;
    color: var(--color-text);
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: var(--color-second);
}

@media (max-width: 992px) {
    .bottom-info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        padding: 2rem;
    }
}

/* =========================================
   Recruit Status Table
   ========================================= */
.status-section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--color-main);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.status-section-note {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.status-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: start;
}

@media (max-width: 992px) {
    .status-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.facility-status-card {
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glass);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--color-border);
}

.facility-status-card .facility-title {
    color: var(--color-main);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--color-main);
    padding-left: 0.8rem;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.status-table {
    width: 100%;
    border-collapse: collapse;
}

.status-table th,
.status-table td {
    padding: 0.6rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.status-table th:nth-child(3),
.status-table td:nth-child(3) {
    text-align: center;
}

.status-table th {
    background-color: var(--color-bg-base);
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.95rem;
}

.status-table td {
    color: var(--color-text);
    vertical-align: middle;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    min-width: 100px;
    transition: all 0.3s ease;
}

a.status-badge {
    cursor: pointer;
}

a.status-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.status-active {
    background-color: #e6f4ea;
    color: #1e8e3e;
    border: 1px solid #ceead6;
}

a.status-active:hover {
    background-color: #ceead6;
    color: #188038;
}

.status-closed {
    background-color: #f1f3f4;
    color: #5f6368;
    border: 1px solid #dadce0;
    cursor: not-allowed;
}

/* =========================================
   Recruit Contact Section
   ========================================= */
.recruit-contact-section {
    max-width: 900px;
    margin: 4rem auto 0;
}

.recruit-contact-box {
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 3rem 2rem;
    border: 1px solid var(--color-border);
}

.contact-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.example-bubble {
    background: var(--color-bg-base);
    color: var(--color-text);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid var(--color-border);
    position: relative;
    white-space: nowrap;
}

.contact-methods {
    background: var(--color-bg-base);
    padding: 2rem;
    border-radius: var(--radius-md);
}

.contact-info {
    text-align: center;
    font-size: 1.1rem;
    border-bottom: 1px dashed var(--color-border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.method-cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.method-card {
    background: var(--color-bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.method-card h4 {
    color: var(--color-main);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.method-card .phone-number a {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-text);
    font-family: var(--font-accent);
}

.method-card .phone-number a:hover {
    color: var(--color-main);
}

@media (min-width: 768px) {
    .recruit-contact-box {
        padding: 4rem 3rem;
    }
    .method-cards-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================================
   Availability Schedule Table (Ponocare)
   ========================================= */
.avail-card {
    padding: 2.5rem 2rem;
}

@media (max-width: 992px) {
    .avail-card {
        padding: 2rem;
    }
}

.avail-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.avail-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.avail-hours-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.avail-hours-tag svg {
    color: var(--color-main);
    flex-shrink: 0;
}

.avail-update-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--color-bg-base);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-left: auto;
}

.avail-update-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-main);
}

.avail-table-wrapper {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(44, 37, 35, 0.04);
}

.avail-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    text-align: center;
    font-size: 0.9rem;
    background: #fff;
}

.avail-table thead {
    background: var(--color-bg-base);
    border-bottom: 2px solid var(--color-main);
}

.avail-table th,
.avail-table td {
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.avail-table th:last-child,
.avail-table td:last-child {
    border-right: none;
}

.avail-table tbody tr:last-child th,
.avail-table tbody tr:last-child td {
    border-bottom: none;
}

.avail-table thead th {
    padding: 0.55rem 0.2rem;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--color-text);
}

.avail-table thead th.avail-col-time {
    width: 118px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 0.55rem 0.4rem;
    letter-spacing: 0.02em;
}

.avail-table tbody tr:nth-child(even) {
    background-color: rgba(250, 248, 245, 0.55);
}

.avail-table tbody tr:hover {
    background-color: rgba(212, 140, 91, 0.06);
}

.avail-table tbody th.avail-time-cell {
    background-color: var(--color-bg-base);
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.42rem 0.5rem;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

.avail-table tbody tr:hover th.avail-time-cell {
    background-color: #f3ede4;
}

.avail-table tbody td {
    padding: 0.35rem 0.15rem;
    vertical-align: middle;
}

/* Status Marks */
.avail-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
}

.avail-mark-double {
    color: #0d7490;
    background-color: rgba(13, 116, 144, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 1rem;
}

.avail-mark-circle {
    color: #1976d2;
    font-size: 1.02rem;
}

.avail-mark-triangle {
    color: #ef6c00;
    font-size: 0.95rem;
}

.avail-mark-full {
    color: #b94a48;
    background-color: #fdf3f3;
    border: 1px solid #f5d6d6;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.18rem 0.38rem;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

.avail-mark-off {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.avail-mark-capacity {
    color: var(--color-text);
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Ohana Table Specific Adjustments */
.theme-ohana .avail-table tbody tr:hover {
    background-color: rgba(217, 136, 148, 0.07);
}

.theme-ohana .avail-table tbody tr:hover th.avail-time-cell {
    background-color: #f6ecef;
}

.avail-table-ohana thead th.avail-col-time {
    width: 84px;
}

.avail-table-ohana tbody th.avail-time-cell {
    padding: 0.65rem 0.4rem;
    font-size: 0.85rem;
}

.avail-table-ohana tbody td {
    padding: 0.65rem 0.15rem;
}

.avail-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.6rem 1rem;
    margin-top: 0.65rem;
    font-size: 0.76rem;
    color: var(--color-text-muted);
}

.avail-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

@media (max-width: 480px) {
    .avail-card {
        padding: 1.5rem 1rem;
    }

    .avail-table thead th.avail-col-time {
        width: 96px;
        font-size: 0.72rem;
        padding: 0.45rem 0.2rem;
    }

    .avail-table-ohana thead th.avail-col-time {
        width: 68px;
    }

    .avail-table tbody th.avail-time-cell {
        font-size: 0.75rem;
        padding: 0.38rem 0.25rem;
    }

    .avail-table-ohana tbody th.avail-time-cell {
        font-size: 0.76rem;
        padding: 0.55rem 0.2rem;
    }

    .avail-table tbody td {
        padding: 0.3rem 0.1rem;
    }

    .avail-table-ohana tbody td {
        padding: 0.55rem 0.08rem;
    }

    .avail-mark-capacity {
        font-size: 0.74rem;
    }

    .avail-mark-double {
        width: 21px;
        height: 21px;
        font-size: 0.9rem;
    }

    .avail-mark-circle {
        font-size: 0.92rem;
    }

    .avail-mark-full {
        font-size: 0.68rem;
        padding: 0.14rem 0.28rem;
    }
}
