:root {
    --primary-color: #1a1a1a;
    --text-color: #333333;
    --bg-color: #fcfbf9;
    --accent-color: #5d675b;
    /* Muted forest green */
    --font-base: 'Inter', 'Noto Sans JP', sans-serif;
    --font-serif: 'Noto Serif JP', serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-base);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    opacity: 0.7;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--primary-color);
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 24px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s ease;
}

header.scrolled {
    background-color: rgba(252, 251, 249, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 5%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logo img {
    height: 40px;
    width: auto;
    transition: all 0.4s ease;
}

header.scrolled .logo img {
    filter: drop-shadow(0px 0px 5px rgba(255, 255, 255, 0.5));
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav a {
    font-size: 14px;
    letter-spacing: 0.05em;
    font-weight: 500;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    position: relative;
}

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

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('./TOP画像.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
}

.hero-title {
    font-size: 3.5rem;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease 0.5s forwards;
    color: #fff;
    text-shadow:
        1px 1px 0 #000,
        -1px 1px 0 #000,
        1px -1px 0 #000,
        -1px -1px 0 #000,
        0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-family: var(--font-base);
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease 0.8s forwards;
}

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

/* Sections General */
section {
    padding: 120px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.section-subtitle {
    text-align: center;
    color: var(--accent-color);
    margin-bottom: 80px;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

/* Trails For Good */
.trails-for-good {
    background-color: var(--bg-color);
}

.tfg-content {
    max-width: 800px;
    margin: 0 auto 80px;
    text-align: justify;
    line-height: 1.8;
    font-size: 1.05rem;
}

.tohoku-trails-logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.tohoku-trails-logo {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    /* Adjust according to the actual logo size */
}

.works-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .works-grid {
        grid-template-columns: 1fr;
    }
}

.work-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.work-number {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 20px;
    color: var(--accent-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.work-card h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.work-card ul {
    list-style: none;
    text-align: left;
    color: #fff;
}

.work-card li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    position: relative;
    padding-left: 15px;
}

.work-card li::before {
    content: "・";
    position: absolute;
    left: 0;
}

/* Custom Card Colors (Teal, Light Green, Green) */
.work-card-1 {
    background-color: #21b8cb;
    /* Teal */
}

.work-card-1 .work-number {
    color: #21b8cb;
}

.work-card-2 {
    background-color: #5dcdac;
    /* Light Green */
}

.work-card-2 .work-number {
    color: #5dcdac;
}

.work-card-3 {
    background-color: #8ed06d;
    /* Green */
}

.work-card-3 .work-number {
    color: #8ed06d;
}

/* Contact Button */
.contact-button-wrapper {
    text-align: center;
    margin: 60px 0 80px;
}

.btn-contact {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.btn-contact:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

/* Achievements */
.achievements-section {
    max-width: 900px;
    margin: 100px auto;
}

.achievements-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.achievements-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 40px;
    line-height: 1.6;
}

.achievements-intro {
    text-align: justify;
    margin-bottom: 50px;
    line-height: 1.8;
}

.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.achievement-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.achievement-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1.4;
}

.achievement-text {
    flex: 1;
    line-height: 1.8;
}

.achievement-text a {
    color: #0066cc;
    text-decoration: underline;
    font-size: 0.9rem;
    word-break: break-all;
}

/* Long Trail Section */
.long-trail-section {
    max-width: 900px;
    margin: 100px auto;
    padding: 60px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.long-trail-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.long-trail-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 40px;
}

.long-trail-content p {
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 24px;
}

.work-card-3 .work-number {
    color: #8ed06d;
}


/* Vision */
.vision {
    background-color: #fff;
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 800px;
    margin: 0 auto;
}

.vision-text {
    font-size: 1.2rem;
    line-height: 2;
    text-align: center;
    margin-bottom: 40px;
}

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

.vision-point {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-color);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vision-point:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.vision-point h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.vision-point p {
    font-size: 0.95rem;
    color: #666;
}

.vision-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
}

.vision-logo img {
    height: 120px;
    width: auto;
}



/* About Center Parallax */
.about-center {
    background-image: url('./images/volcano_trail_bg_1772407673017.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    position: relative;
}

.about-center::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.about-center .container {
    position: relative;
    z-index: 10;
}

.about-center .section-title,
.about-center .section-subtitle {
    color: #fff;
}

.center-content-card {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-color);
    padding: 60px;
    border-radius: 4px;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.center-logo-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

.center-logo {
    max-height: 120px;
    width: auto;
    max-width: 100%;
}

.center-description-ja p,
.center-description-en p {
    text-align: justify;
    margin-bottom: 24px;
    font-size: 1rem;
    line-height: 1.8;
}

.center-description-en {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #555;
    font-size: 0.95rem;
}

.center-info {
    margin-top: 40px;
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 768px) {
    .info-item {
        flex-direction: row;
        gap: 24px;
    }

    .info-item dt {
        flex: 0 0 200px;
    }
}

.info-item dt {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1rem;
}

.info-item dd {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.en-text {
    display: block;
    color: #777;
    font-size: 0.85rem;
    margin-top: 4px;
}

.access-link {
    color: var(--accent-color);
    font-weight: 500;
    text-decoration: underline;
    opacity: 0.8;
}

.access-link:hover {
    opacity: 1;
}

/* Volcano Trail */
.trail-content-card {
    max-width: 1000px;
    margin: 0 auto;
}

.trail-description-ja p,
.trail-description-en p {
    text-align: justify;
    margin-bottom: 24px;
    font-size: 1rem;
    line-height: 1.8;
}

.trail-description-en {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #555;
    font-size: 0.95rem;
}

.trail-description-ja h3,
.trail-description-en h3 {
    font-size: 1.6rem;
    margin-bottom: 24px;
    text-align: center;
}

/* Members */
.members {
    background-color: var(--bg-color);
}

.tfg-members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.member-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.member-image {
    width: 60%;
    margin: 0 auto;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: block;
}

.lnt-logo-wrapper {
    margin-top: 24px;
    text-align: center;
}

.lnt-logo {
    max-width: 120px;
    height: auto;
}

.vision-alliance-image {
    margin-top: 24px;
    text-align: center;
}

.vision-alliance-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.member-info h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    text-align: center;
}

.member-info .role {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 24px;
    display: block;
    text-align: center;
    font-size: 0.9rem;
    font-family: var(--font-base);
}

.member-info p {
    margin-bottom: 16px;
}

.member-info ul {
    list-style-type: none;
    margin-top: 24px;
}

.member-info li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #555;
}

.member-info li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0 30px;
    text-align: center;
}

.footer-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 24px;
    filter: brightness(0) invert(1);
}

.footer-info {
    margin-bottom: 40px;
    font-size: 0.9rem;
    color: #aaa;
}

.copyright {
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid #333;
    padding-top: 30px;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    nav {
        display: none;
        /* simple mobile nav approach for now */
    }

    .tfg-members-grid {
        grid-template-columns: 1fr;
    }

    .center-content-card {
        padding: 30px;
    }
}