/* ==========================================================================
   CSS Variables & Typography
   ========================================================================== */
   :root {
    /* Color Palette */
    --clr-primary: #1A365D; /* Deep Trust Blue */
    --clr-primary-light: #2B6CB0;
    --clr-secondary: #ED8936; /* Energetic Orange */
    --clr-secondary-hover: #DD6B20;
    --clr-accent: #3182CE; /* Bright Blue */
    
    --clr-bg: #FFFFFF;
    --clr-bg-light: #F7FAFC;
    --clr-bg-dark: #2D3748;
    
    --clr-text-main: #2D3748;
    --clr-text-light: #4A5568;
    --clr-text-white: #FFFFFF;
    
    --clr-border: #E2E8F0;
    
    /* Typography */
    --font-main: 'Noto Sans JP', sans-serif;
    --font-heading: 'Noto Sans JP', sans-serif;
    --font-accent: 'Montserrat', sans-serif;
    
    /* Transition */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Shadow */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

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

body {
    font-family: var(--font-main);
    color: var(--clr-text-main);
    background-color: var(--clr-bg);
    line-height: 1.6;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

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

/* ==========================================================================
   Typography & Components
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--clr-primary);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--clr-secondary);
    border-radius: 2px;
}

.section-subtitle {
    display: block;
    font-family: var(--font-accent);
    color: var(--clr-accent);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--clr-secondary);
    color: var(--clr-text-white);
}

.btn-primary:hover {
    background-color: var(--clr-secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--clr-text-white);
    color: var(--clr-text-white);
}

.btn-outline:hover {
    background-color: var(--clr-text-white);
    color: var(--clr-primary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

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

.logo a {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--clr-primary);
}

.header.scrolled .logo a {
    color: var(--clr-primary);
    text-shadow: none;
}

.logo span {
    color: var(--clr-secondary);
}

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

.nav-list {
    display: flex;
    gap: 25px;
}

.nav-link {
    font-weight: 700;
    color: var(--clr-text-main);
    position: relative;
}

.header.scrolled .nav-link {
    color: var(--clr-text-main);
    text-shadow: none;
}

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

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

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: var(--clr-primary);
}

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

.hamburger span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--clr-primary);
    left: 0;
    transition: var(--transition);
}

.header.scrolled .hamburger span {
    background-color: var(--clr-primary);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.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);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-image-section {
    width: 100%;
    padding-top: 80px; /* Header offset */
    background-color: #e6f6ff; /* Fallback light blue */
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.hero-main-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* ==========================================================================
   Message Section
   ========================================================================== */
#message {
    padding-top: 40px;
    padding-bottom: 40px;
}

#message .section-header {
    margin-bottom: 25px;
}

.message-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--clr-bg);
    padding: 60px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
}


.message-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.signature {
    text-align: right;
    font-size: 1.5rem;
    font-weight: 900;
    margin-top: 40px;
    color: var(--clr-primary);
}

/* ==========================================================================
   Profile Section
   ========================================================================== */
.profile-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.profile-image {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.profile-text {
    flex: 1;
}

.profile-name {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 30px;
    color: var(--clr-primary);
}

.profile-name span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--clr-text-light);
    margin-left: 10px;
}

.profile-history {
    margin-bottom: 30px;
    border-left: 2px solid var(--clr-secondary);
    padding-left: 20px;
}

.profile-history li {
    margin-bottom: 15px;
    position: relative;
}

.profile-history li span {
    font-weight: 700;
    color: var(--clr-primary);
    display: inline-block;
    width: 80px;
}

.profile-desc {
    font-size: 1.1rem;
}

/* ==========================================================================
   Policy Section
   ========================================================================== */
.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.policy-card {
    background-color: var(--clr-bg);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.policy-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--clr-secondary);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

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

.policy-card:hover::after {
    transform: scaleX(1);
}

.policy-icon {
    font-size: 3rem;
    color: var(--clr-accent);
    margin-bottom: 25px;
}

.policy-title {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--clr-primary);
}

.policy-desc {
    color: var(--clr-text-light);
    text-align: left;
}

/* ==========================================================================
   News Section
   ========================================================================== */
.news-list {
    max-width: 800px;
    margin: 0 auto 40px;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid var(--clr-border);
    transition: var(--transition);
    gap: 20px;
}

.news-item:first-child {
    border-top: 1px solid var(--clr-border);
}

.news-item:hover {
    background-color: var(--clr-bg-light);
    padding-left: 15px;
    padding-right: 15px;
}

.news-date {
    font-family: var(--font-accent);
    font-weight: 500;
    color: var(--clr-text-light);
    width: 100px;
}

.news-category {
    padding: 5px 15px;
    background-color: var(--clr-primary-light);
    color: white;
    font-size: 0.8rem;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    min-width: 100px;
}

.news-category.category-activity {
    background-color: var(--clr-secondary);
}

.news-category.category-policy {
    background-color: var(--clr-accent);
}

.news-title {
    flex: 1;
    font-weight: 700;
}

.news-title a {
    display: block;
}

.news-title a:hover {
    color: var(--clr-secondary);
}

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

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-wrapper {
    display: flex;
    gap: 0;
    background-color: var(--clr-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    color: var(--clr-text-main);
}

.contact-info {
    flex: 1;
    padding: 60px;
    background-color: var(--clr-bg-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--clr-primary);
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contact-details p {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-details i {
    color: var(--clr-secondary);
    font-size: 1.5rem;
}

.contact-details span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--clr-text-light);
}

.contact-form {
    flex: 1;
    padding: 60px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-group label .required {
    background-color: #E53E3E;
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--clr-bg-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
}

.form-submit {
    text-align: right;
    margin-top: 30px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--clr-bg-dark);
    color: var(--clr-text-white);
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--clr-secondary);
}

.footer-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--clr-text-white);
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--clr-secondary);
    transform: translateY(-3px);
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--clr-secondary);
}

.footer-links ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.footer-links a {
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--clr-secondary);
}

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

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

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

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image {
        align-self: center;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--clr-bg);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .nav-link {
        color: var(--clr-text-main);
        font-size: 1.2rem;
        display: block;
        padding: 10px 0;
    }
    
    .hamburger.active span {
        background-color: var(--clr-text-main);
    }
    
    .hero-image-wrapper {
        width: 100%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .message-content {
        padding: 40px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links ul {
        grid-template-columns: 1fr;
    }
    
    .profile-content {
        flex-direction: column;
    }
    
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .news-date {
        margin-bottom: 5px;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
    
    .contact-info, .contact-form {
        padding: 40px 20px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 25px;
    }
}
