@charset "utf-8";

/* ==========================================================================
   Design Tokens & Variables
   ========================================================================== */
:root {
    /* Color Palette - Medical & Trustworthy but Modern */
    --primary: #00897B; /* Teal - Trust, Healthcare */
    --primary-light: #4DB6AC;
    --primary-dark: #00695C;
    --secondary: #F3A847; /* Warm accent for WOW factor */
    --accent: #E0F2F1;
    
    /* Text Colors */
    --text-main: #2D3748;
    --text-muted: #718096;
    --text-light: #F7FAFC;
    
    /* Backgrounds */
    --bg-main: #FAFBFC;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-dark: rgba(255, 255, 255, 0.9);
    
    /* Typography */
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-en: 'Outfit', sans-serif;
    
    /* Spacing & Layout */
    --container-w: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-jp);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: var(--primary);
    transition: color var(--transition-base);
}

ul {
    list-style: none;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
}

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

.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-en);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    color: var(--text-main);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 50px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 10px 20px rgba(0, 137, 123, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 137, 123, 0.3);
    color: white;
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    padding: 10px 0;
    background: var(--bg-glass-dark);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 45px;
    transition: transform var(--transition-base);
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-btn {
    background-color: var(--secondary);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(243, 168, 71, 0.3);
    transition: all var(--transition-base);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(243, 168, 71, 0.4);
    color: white;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 2rem;
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-glass-dark);
    backdrop-filter: blur(10px);
    padding: 20px 5%;
    flex-direction: column;
    gap: 15px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all var(--transition-base);
}

.mobile-nav.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-link {
    font-weight: 600;
    color: var(--text-main);
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-btn {
    display: block;
    text-align: center;
    background-color: var(--secondary);
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 10px;
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
}

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

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide:first-child {
    opacity: 1; /* First image visible initially */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,105,92,0.4));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-subtitle {
    display: block;
    font-family: var(--font-en);
    font-size: 1.2rem;
    letter-spacing: 4px;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-desc {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 500;
    margin-bottom: 40px;
    line-height: 1.8;
}

.sp-br { display: none; }
@media (max-width: 768px) { .sp-br { display: block; } }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-text {
    font-family: var(--font-en);
    color: white;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: white;
    animation: scrollDown 2s infinite ease-in-out;
}

@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* Initial Load Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Message Section (Glassmorphism + Blob)
   ========================================================================== */
.glass-section {
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1.5" fill="%2300897B" fill-opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>') repeat;
}

.message-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.message-text .lead-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.message-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.blob-frame {
    width: 100%;
    max-width: 500px;
    height: 500px;
    margin: 0 auto;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: morphBlob 8s ease-in-out infinite alternate;
}

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

@keyframes morphBlob {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

@media (max-width: 900px) {
    .message-wrapper { grid-template-columns: 1fr; }
    .blob-frame { height: 350px; }
}

/* ==========================================================================
   Charms Section
   ========================================================================== */
.charms-section {
    background-color: white;
}

.charms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.charm-card {
    background: var(--bg-main);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid rgba(0,0,0,0.05);
}

.charm-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.charm-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.charm-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.charm-card:hover .charm-image {
    transform: scale(1.1);
}

.charm-icon {
    position: absolute;
    bottom: -25px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 3px solid white;
}

.charm-content {
    padding: 40px 25px 30px;
}

.charm-content h3 {
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.charm-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   Jobs Section
   ========================================================================== */
.jobs-section {
    background: linear-gradient(180deg, var(--bg-main) 0%, var(--accent) 100%);
}

.jobs-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.job-card {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 30px;
    border-left: 6px solid var(--primary);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast);
}

.job-card:hover {
    transform: translateX(5px);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.job-header h3 {
    font-size: 1.4rem;
    color: var(--text-main);
}

.badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-accent { background: var(--secondary); color: white; }
.badge-primary { background: var(--primary-light); color: white; }
.badge-outline { border: 1px solid var(--text-muted); color: var(--text-muted); }

.job-body p {
    color: var(--text-muted);
}

.scholarship-banner {
    background: white;
    border-radius: var(--radius-md);
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--accent);
}

.scholarship-icon {
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.scholarship-info h4 {
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.scholarship-info p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .jobs-list { grid-template-columns: 1fr; }
    .scholarship-banner { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   Entry (CTA) Section
   ========================================================================== */
.entry-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.entry-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('http://iwamurohp.jp/images/3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
}

.entry-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 105, 92, 0.85); /* Teal Overlay */
}

.relative-z {
    position: relative;
    z-index: 2;
}

.entry-box {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    padding: 60px;
    text-align: center;
    color: white;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.entry-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 20px;
}

.entry-desc {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-method {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: rgba(255,255,255,0.15);
    padding: 20px;
    border-radius: var(--radius-md);
    transition: background var(--transition-base);
}

.contact-method:hover {
    background: rgba(255,255,255,0.25);
}

.contact-icon-circle {
    width: 50px;
    height: 50px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-detail {
    text-align: left;
}

.contact-label {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.contact-number {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    font-family: var(--font-en);
    line-height: 1;
}

.contact-number span {
    font-size: 1rem;
    font-weight: 500;
}

.contact-email {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    font-family: var(--font-en);
}

.contact-person {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 40px;
    background: var(--secondary);
    display: inline-block;
    padding: 8px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.external-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

@media (max-width: 600px) {
    .entry-box { padding: 40px 20px; }
    .contact-method { flex-direction: column; text-align: center; }
    .contact-detail { text-align: center; }
    .contact-number { font-size: 1.5rem; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: #1A202C;
    color: white;
    padding: 80px 0 20px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand {
    flex: 2;
    min-width: 300px;
}

.footer-logo {
    max-width: 250px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Makes the logo white */
}

.footer-address {
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-links-group {
    flex: 1;
    min-width: 200px;
}

.footer-links-group h4 {
    font-family: var(--font-en);
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-links-group ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-group a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-links-group a:hover {
    color: white;
}

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

/* ==========================================================================
   Scroll Animations Logic
   ========================================================================== */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), 
                transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-in-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
