/* Base Variables */
:root {
    --primary-color: #005F6A;
    /* Darker Teal for better contrast */
    --secondary-color: #72B8B1;
    /* Slightly darker for better visibility */
    --accent-color: #D68666;
    /* Muted Orange */
    --text-color: #1A202C;
    /* Darker text */
    --text-light: #4A5568;
    /* Darker gray for readability */
    --bg-light: #F7FAFC;
    --white: #FFFFFF;
    --font-heading: 'Zen Kaku Gothic New', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --spacing-section: 120px;
    --spacing-section-mobile: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    /* Explicit minimum for seniors */
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: 0.05em;
}

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

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.pc-only {
    display: block;
}

@media (max-width: 768px) {
    .pc-only {
        display: none;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 80px;
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-item a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

.nav-item a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-item a:not(.btn-primary):hover::after {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 14px 32px;
    /* Larger click area */
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0, 95, 106, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Definition */
    font-size: 1rem;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #004d55;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 95, 106, 0.4);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

.hamburger.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Main Visual */
.main-visual {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding-top: 80px;
}

.main-visual-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.main-visual-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.main-visual-content {
    position: relative;
    z-index: 1;
    padding: 0 24px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.5s;
}

.main-copy {
    font-size: 3.5rem;
    margin-bottom: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sub-copy {
    font-size: 1.5rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

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

/* Sections Common */
.section {
    padding: var(--spacing-section) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    display: inline-block;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 8px auto 0;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Message Section */
.message-section {
    background-color: var(--white);
}

.message-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.message-text {
    font-size: 1.25rem;
    line-height: 2.2;
    color: var(--text-color);
}

/* Services Section */
.services-section {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-image {
    height: 240px;
    overflow: hidden;
}

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

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

.service-body {
    padding: 32px;
}

.service-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.service-desc {
    color: var(--text-light);
    font-size: 1rem;
}

.special-service {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.special-service-content {
    flex: 1;
    padding: 40px;
}

.special-service-image {
    flex: 1;
    height: 100%;
    min-height: 400px;
}

.special-service-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.special-service-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.special-service-desc {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Team Section */
.team-section {
    background-color: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.team-item {
    text-align: center;
    padding: 32px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.team-item:hover {
    transform: translateY(-5px);
}

.team-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.team-role {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.team-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.team-desc {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 1.5rem;
    margin-bottom: 24px;
    font-family: var(--font-heading);
}

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

.footer-email {
    color: var(--secondary-color);
    font-weight: 700;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 16px;
}

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

.footer-nav a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Animations - Fade In */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .header {
        height: 60px;
    }

    .logo a {
        font-size: 1rem;
    }

    .hamburger {
        display: block;
    }

    .nav {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--white);
        transition: right 0.3s ease;
        padding-top: 40px;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 24px;
    }

    .main-visual {
        height: auto;
        min-height: 500px;
    }

    .main-copy {
        font-size: 2rem;
    }

    .sub-copy {
        font-size: 1rem;
    }

    .section {
        padding: var(--spacing-section-mobile) 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .special-service {
        flex-direction: column-reverse;
    }

    .special-service-image {
        min-height: 250px;
        width: 100%;
    }
}

/* Team Item Images (inline) */
.team-item-image {
    margin-top: 12px;
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.team-item-image img {
    width: 100%;
    height: auto;     /* keep natural proportions */
    display: block;
}

/* Governance image: reduce displayed width so its height matches left/right (no distortion) */
.team-item-image--gov img {
    width: 72%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

/* On small screens, allow a bit larger width for readability */
@media (max-width: 768px) {
  .team-item-image--gov img {
    width: min(92%, 80%);
  }
}
