/* Modern CSS Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

ul[class],
ol[class] {
    list-style: none;
    padding: 0;
}

body {
    min-height: 100dvh;
    text-rendering: optimizeSpeed;
    line-height: 1.6;
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--secondary-color);
}

img,
picture {
    max-width: 100%;
    display: block;
}

input,
button,
textarea,
select {
    font: inherit;
}

/* Base Styles */
:root {
    --primary-color: #0056b3;
    /* Deep Blue */
    --secondary-color: #ffffff;
    /* White */
    --accent-color: #f0f4f8;
    /* Light Grayish Blue */
    --text-color: #333333;
    --text-light: #666666;
    --font-family: 'Zen Kaku Gothic New', sans-serif;
    --transition-speed: 0.3s;
}

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

ul {
    list-style: none;
}

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

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

/* Header */
.header {
    background-color: #000000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.05em;
}

/* Navigation - Mobile First */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    margin: 5px 0;
    transition: var(--transition-speed);
}

.nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #000000;
    padding: 20px 0;
    border-top: 1px solid #333333;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.nav-item a {
    font-weight: 500;
    color: #ffffff;
}

.nav-item a:hover {
    color: var(--accent-color);
}

.btn-primary {
    background-color: #ffffff;
    color: #333333 !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    transition: background-color var(--transition-speed);
}

.btn-primary:hover {
    background-color: #f0f4f8;
}

/* Desktop Navigation */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    .nav {
        position: static;
        width: auto;
        padding: 0;
        border: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: none;
    }

    .nav-list {
        flex-direction: row;
        gap: 30px;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100dvh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
    /* Header is fixed, but we might want content to start under it? If under, leave 0. If below, add padding-top to main. */
}

.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;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
    animation: zoomEffect 20s linear infinite;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    letter-spacing: 0.1em;
    font-weight: 500;
    opacity: 0.9;
}

/* News Section */
.news-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

@media (min-width: 768px) {
    .news-item {
        flex-direction: row;
        align-items: baseline;
    }
}

.news-date {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    width: 120px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .news-date {
        margin-bottom: 0;
    }
}

.news-content {
    flex-grow: 1;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.news-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Company Section */
.company-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

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

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 1rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-subtitle::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
}

.company-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .company-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



.card {
    background-color: var(--secondary-color);
    /* 背景色を白に変更 */
    border-radius: 10px;
    text-align: left;
    /* テキスト左揃えに変更 */
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
    /* 画像のはみ出し防止 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* デフォルトでも少し影をつける */
    border: 1px solid #eee;
    /* 薄い枠線 */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-image-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

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

.card:hover .card-image {
    transform: scale(1.05);
    /* 画像ズームエフェクト */
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 700;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
}

.card-arrow {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform var(--transition-speed);
    align-self: flex-end;
    /* 右下に配置 */
}

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


/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), #003366);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

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

.btn-large {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

.btn-white:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background-color: #222;
    color: #ccc;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
    }
}

.footer-logo {
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .footer-logo {
        margin-bottom: 0;
    }
}

.footer-nav {
    display: flex;
    gap: 20px;
}

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

.footer-address {
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.8;
}

@media (min-width: 768px) {
    .footer-address {
        text-align: left;
        margin-bottom: 0;
        margin-left: 30px;
        /* ロゴとの間隔 */
        margin-right: auto;
        /* ナビゲーションを右寄せにするため */
    }
}

.mobile-only {
    display: block;
}

@media (min-width: 768px) {
    .mobile-only {
        display: inline;
    }

    .mobile-only::before {
        content: " / ";
        margin: 0 10px;
    }
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #444;
    padding-top: 20px;
}

/* Subpage Styles */
.page-hero {
    background-color: var(--primary-color);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    letter-spacing: 0.1em;
}

.content-section {
    padding: 80px 0;
    background-color: white;
}

/* Info Table */
.info-table {
    max-width: 800px;
    margin: 0 auto;
}

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

.info-item {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

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

.info-item dt {
    font-weight: 700;
    color: var(--primary-color);
    min-width: 150px;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .info-item dt {
        margin-bottom: 0;
    }
}

.info-item dd {
    flex: 1;
}

.info-item dd ul {
    list-style: disc;
    padding-left: 20px;
}

.info-item dd li {
    margin-bottom: 5px;
}

/* Officers List Styles */
.officers-list {
    margin-top: 5px;
}

.officer-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 5px;
}

.officer-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

@media (min-width: 768px) {
    .officer-item {
        flex-direction: row;
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 4px;
    }
}

/* Specific overrides for nested info items */
.info-item .officers-list dt {
    color: var(--text-color);
    font-weight: 700;
    min-width: 160px;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

@media (min-width: 768px) {
    .info-item .officers-list dt {
        margin-bottom: 0;
    }
}

.text-link {
    text-decoration: underline;
    color: var(--primary-color);
    display: inline-block;
    margin-top: 5px;
}

.text-link:hover {
    text-decoration: none;
}

/* Message Page */
.message-content {
    max-width: 800px;
    margin: 0 auto;
}

.message-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.message-author {
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.message-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* History Page */
.history-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.history-era {
    padding: 30px;
    margin-bottom: 20px;
    background-color: var(--accent-color);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.era-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.era-period {
    color: var(--text-light);
}

.history-entries {
    margin-bottom: 30px;
}

.history-entry {
    display: flex;
    flex-direction: column;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.history-entry:last-child {
    border-bottom: none;
}

@media (min-width: 768px) {
    .history-entry {
        flex-direction: row;
        align-items: flex-start;
    }
}

.entry-year {
    font-weight: 700;
    color: var(--primary-color);
    min-width: 180px;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

@media (min-width: 768px) {
    .entry-year {
        margin-bottom: 0;
    }
}

.entry-month {
    min-width: 50px;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 5px;
}

@media (min-width: 768px) {
    .entry-month {
        margin-bottom: 0;
        text-align: center;
    }
}

.entry-detail {
    flex: 1;
    line-height: 1.7;
}

/* Meeting Page */
article.contents {
    max-width: 800px;
    margin: 0 auto;
}

article.contents h2 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    font-weight: 700;
}

article.contents h2:first-child {
    margin-top: 0;
}

article.contents .itemIcon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    margin-right: 10px;
}

article.contents .itemIcon a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-speed);
}

article.contents .itemIcon a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

article.contents .itemIcon img.b {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    opacity: 0.7;
    transition: opacity var(--transition-speed);
}

article.contents .itemIcon a:hover img.b {
    opacity: 1;
}

article.contents br {
    display: block;
    margin-bottom: 10px;
    content: "";
}

/* Privacy Page */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.privacy-content h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.privacy-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.privacy-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.privacy-content ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.privacy-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
}