/* ===================================
   Pages Common Styles
   =================================== */

/* ===================================
   Privacy Policy Section
   =================================== */
.privacy-section {
    background: var(--bg-light);
    padding: 80px 0;
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
}

.privacy-item {
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.privacy-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    font-family: 'Noto Sans JP', sans-serif;
}

.privacy-text p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--text-color);
}

.privacy-text ul {
    margin: 15px 0;
    padding-left: 25px;
}

.privacy-text li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--text-color);
}

.privacy-contact {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
}

.contact-info {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.contact-info p {
    margin-bottom: 10px;
    color: var(--text-color);
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.privacy-date {
    text-align: right;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: var(--text-light);
    font-size: 0.9rem;
}

    .privacy-date p {
        margin-bottom: 5px;
    }

    /* Mobile Responsive for Privacy Policy */
    @media (max-width: 768px) {
        .privacy-section {
            padding: 60px 0;
        }

        .privacy-item {
            margin-bottom: 30px;
            padding: 20px;
        }

        .privacy-title {
            font-size: 1.1rem;
            margin-bottom: 15px;
        }

        .privacy-text p,
        .privacy-text li {
            font-size: 0.9rem;
        }

        .contact-info {
            padding: 15px;
        }
    }/* ===================================
   Contact Page Styles
   =================================== */
.contact-info-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-method {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    margin-bottom: 20px;
}

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

.contact-method h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-detail {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-hours {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form-section {
    padding: 80px 0;
}

.contact-form-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-form {
    background: white;
    padding: 60px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    margin-bottom: 30px;
}

.form-row .form-group:only-child {
    grid-column: 1 / -1;
}

label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1rem;
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

input, select, textarea {
    padding: 12px 16px;
    border: 2px solid var(--bg-gray);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

input.error, select.error, textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.field-error {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
}

.field-error::before {
    content: "⚠";
    margin-right: 0.5rem;
}

/* フォームメッセージスタイル */
.form-message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message.success {
    background: #d4f6d4;
    color: #2d5016;
    border: 1px solid #9fdf9f;
}

.form-message.success::before {
    content: "✓";
    font-weight: bold;
    color: #2d5016;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message.error::before {
    content: "⚠";
    font-weight: bold;
    color: #721c24;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    display: block;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

/* Office Info */
.office-info-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.office-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.office-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 700;
}

.office-details p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.office-details strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Google Map Styles */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.google-map {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Legacy map placeholder (for fallback) */
.map-placeholder {
    width: 100%;
    height: 400px;
    background: #f0f0f0;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border: 2px dashed #ccc;
}

/* Large Screen Optimization */
@media (min-width: 1200px) {
    .contact-form-container {
        max-width: 1200px;
    }
    
    .contact-form {
        padding: 80px;
    }
    
    .form-row {
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .contact-info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 50px;
    }
    
    .office-info-grid {
        gap: 80px;
    }
}

@media (min-width: 1440px) {
    .contact-form-container {
        max-width: 1400px;
        padding: 0 40px;
    }
    
    .contact-form {
        padding: 100px;
    }
    
    .form-row {
        gap: 50px;
        margin-bottom: 50px;
    }
    
    input, select, textarea {
        padding: 16px 20px;
        font-size: 1.1rem;
    }
    
    label {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .submit-btn {
        padding: 18px 50px;
        font-size: 1.2rem;
        max-width: 250px;
    }
}

/* Contact Page Responsive */
@media (max-width: 768px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-method {
        padding: 30px 20px;
    }
    
    .contact-form {
        padding: 40px 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .office-info-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .map-container,
    .map-placeholder {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 30px 20px;
    }
    
    .contact-method {
        padding: 25px 15px;
    }
}

/* ===================================
   Message Page Styles
   =================================== */
.message-section {
    padding: 80px 0;
}

.message-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.message-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-family: 'Noto Serif JP', serif;
}

.message-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 25px;
}

.signature {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--accent-color);
}

.signature-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.signature-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Noto Serif JP', serif;
}

.message-image {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.message-image .ceo-image {
    width: 100% !important;
    height: 400px !important;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative !important;
    background: #f0f0f0;
}

.ceo-photo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 20% !important;
    transition: transform 0.3s ease;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

.ceo-photo:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .message-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .message-text h2 {
        font-size: 2rem;
    }
    
    .message-image {
        order: -1;
    }
    
    .message-image .ceo-image {
        max-width: 350px;
        width: 100%;
        height: 300px;
        margin: 0 auto;
    }
    
    .ceo-photo:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .message-content {
        gap: 30px;
    }
    
    .message-image .ceo-image {
        max-width: 300px;
        width: 100%;
        height: 250px;
    }
    
    .message-text h2 {
        font-size: 1.8rem;
    }
    
    .message-text p {
        font-size: 1rem;
        line-height: 1.7;
    }
}

/* パンくずリスト */
.breadcrumb {
    background: var(--bg-light);
    padding: 20px 0;
    margin-top: 80px;
    border-bottom: 1px solid var(--bg-gray);
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

.breadcrumb span {
    color: var(--text-light);
}

/* ページメイン */
.page-main {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

.main-content {
    padding-top: 100px;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 20px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: 'Noto Serif JP', serif;
}

.page-lead {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===================================
   Products Page Styles
   =================================== */

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

.product-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--bg-gray);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-image .image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a7c59 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 4rem;
    position: relative;
}

.product-image .image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
}

.product-info {
    padding: 30px;
}

.product-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: 'Noto Serif JP', serif;
}

.product-info p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-features span {
    background: var(--bg-light);
    color: var(--text-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--bg-gray);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 60px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: 'Noto Serif JP', serif;
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1f4420 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(44, 95, 45, 0.3);
}

.cta-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(44, 95, 45, 0.4);
}

.cta-buttons .btn-outline {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-buttons .btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(44, 95, 45, 0.3);
}

/* ===================================
   OEM Page Styles
   =================================== */

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

.process-step {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    border: 1px solid var(--bg-gray);
}

.process-step .step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 20px;
}

.process-step h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: 'Noto Serif JP', serif;
}

.process-step p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

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

.feature-item {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--primary-color);
}

.feature-item .feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: 'Noto Serif JP', serif;
}

.feature-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===================================
   Responsive Design for Pages
   =================================== */

@media (max-width: 768px) {
    .main-content {
        padding-top: 80px;
    }

    .page-main {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .page-lead {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 60px;
    }

    .product-card {
        margin: 0 10px;
    }

    .cta-section {
        padding: 40px 20px;
        margin: 0 10px;
    }

    .cta-section h2 {
        font-size: 1.6rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .feature-item {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding-top: 70px;
    }

    .breadcrumb .container {
        flex-wrap: wrap;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .product-info {
        padding: 20px;
    }

    .cta-section {
        padding: 30px 15px;
    }

    .process-step {
        padding: 30px 20px;
    }
}

/* 追加のユーティリティクラス */
.section-title-center {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: var(--primary-color);
    font-family: 'Noto Serif JP', serif;
}

.strength-section {
    background: var(--bg-light);
    padding: 60px 40px;
    border-radius: 20px;
    margin-bottom: 60px;
}

.strength-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: var(--primary-color);
    font-family: 'Noto Serif JP', serif;
}

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

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

.strength-number {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--primary-color);
}

.strength-label {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.strength-description {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===================================
   Company History Styles
   =================================== */
.history-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.history-timeline {
    margin-top: 60px;
    position: relative;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

.history-era {
    margin-bottom: 60px;
    position: relative;
}

.era-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-left: 80px;
    position: relative;
}

.era-title::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.taisho-era .era-title::before {
    background: #8B4513;
}

.showa-era .era-title::before {
    background: #2E8B57;
}

.heisei-era .era-title::before {
    background: #4169E1;
}

.reiwa-era .era-title::before {
    background: #FF6347;
}

.history-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-left: 80px;
    position: relative;
}

.history-item::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.history-year {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 120px;
    line-height: 1.2;
}

.history-content {
    flex: 1;
    padding-left: 30px;
}

.history-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.history-content p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 10px;
}

.history-note {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.history-image {
    margin-top: 20px;
    max-width: 400px;
}

.history-image .image-placeholder {
    width: 100%;
    height: 200px;
    background: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.history-image .image-placeholder:hover {
    border-color: var(--accent-color);
    background: rgba(var(--accent-rgb), 0.05);
}

.history-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.history-photo:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ===================================
   Presidents History Styles
   =================================== */
.presidents-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.presidents-timeline {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.president-item {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    border-left: 6px solid var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
}

.president-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

.president-item.current {
    border-left-color: var(--accent-color);
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.president-item.current::before {
    content: '現職';
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.president-period {
    min-width: 180px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.period-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.period-years {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    padding: 8px 16px;
    background: var(--bg-light);
    border-radius: 20px;
    white-space: nowrap;
}

.presidents-section .president-photo {
    min-width: 120px;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.8rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.photo-placeholder:hover {
    border-color: var(--accent-color);
    background: rgba(var(--accent-rgb), 0.05);
}

.presidents-section .president-photo img,
.presidents-section .president-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.presidents-section .president-photo img:hover,
.presidents-section .president-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.president-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.president-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.3;
}

.president-description {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

.president-achievement {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.achievement-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.achievement-text {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Presidents Responsive Design */
@media (max-width: 768px) {
    .presidents-section {
        padding: 60px 0;
    }
    
    .president-item {
        flex-direction: column;
        gap: 20px;
        padding: 30px 20px;
    }
    
    .president-period {
        min-width: auto;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    
    .period-number {
        font-size: 1.5rem;
    }
    
    .period-years {
        font-size: 0.9rem;
    }
    
    .president-photo {
        min-width: 100px;
        width: 100px;
        height: 100px;
        align-self: center;
    }
    
    .president-name {
        font-size: 1.5rem;
    }
    
    .president-achievement {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .president-item.current::before {
        top: 15px;
        right: 15px;
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .president-item {
        padding: 20px 15px;
    }
    
    .president-period {
        flex-direction: column;
        gap: 8px;
    }
    
    .president-photo {
        min-width: 80px;
        width: 80px;
        height: 80px;
    }
    
    .president-name {
        font-size: 1.3rem;
    }
    
    .president-description {
        font-size: 0.9rem;
    }
}

/* Responsive Design for History */
@media (max-width: 768px) {
    .history-timeline::before {
        left: 20px;
    }
    
    .era-title {
        padding-left: 60px;
        font-size: 1.3rem;
    }
    
    .era-title::before {
        left: 5px;
        width: 25px;
        height: 25px;
    }
    
    .history-item {
        padding-left: 60px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .history-item::before {
        left: 12px;
        width: 12px;
        height: 12px;
    }
    
    .history-year {
        font-size: 1.5rem;
        min-width: auto;
        margin-bottom: 10px;
    }
    
    .history-content {
        padding-left: 0;
        width: 100%;
    }
}

/* Large Screen Support */
@media (min-width: 1200px) {
    .history-timeline {
        padding-left: 20px;
    }
    
    .era-title {
        font-size: 1.7rem;
        padding-left: 100px;
    }
    
    .history-item {
        padding-left: 100px;
    }
    
    .history-year {
        font-size: 2.2rem;
        min-width: 140px;
    }
    
    .history-content {
        padding-left: 40px;
    }
    
    /* Presidents Large Screen */
    .presidents-section {
        padding: 100px 0;
    }
    
    .president-item {
        padding: 50px;
        gap: 50px;
    }
    
    .president-period {
        min-width: 200px;
    }
    
    .period-number {
        font-size: 2rem;
    }
    
    .president-photo {
        min-width: 140px;
        width: 140px;
        height: 140px;
    }
    
    .president-name {
        font-size: 2rem;
    }
}

@media (min-width: 1440px) {
    .history-section {
        padding: 100px 0;
    }
    
    .presidents-section {
        padding: 120px 0;
    }
    
    .president-item {
        padding: 60px;
        gap: 60px;
    }
    
    .president-period {
        min-width: 220px;
    }
    
    .president-photo {
        min-width: 160px;
        width: 160px;
        height: 160px;
    }
}

@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }
    
    .history-timeline {
        padding-left: 40px;
    }
    
    .history-item {
        padding-left: 120px;
    }
    
    .history-year {
        font-size: 2.5rem;
        min-width: 160px;
    }
}