/* CSS Variables - Color Palette */
:root {
    --main-color: #00A0E9;
    --accent-color: #0077C8;
    --bg-color: #F7FAFC;
    --success-color: #00B37E;
    --text-color: #1A1A1A;
    --white: #FFFFFF;
    --gray-light: #F0F0F0;
    --gray-medium: #CCCCCC;
    --gray-dark: #666666;
    --shadow: rgba(0, 119, 200, 0.15);
    --shadow-hover: rgba(0, 160, 233, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

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

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

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link:hover {
    color: var(--main-color);
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 968px) {
    .nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 5px 20px var(--shadow);
        padding: 20px;
    }

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

    .nav-link {
        display: block;
        padding: 10px 0;
        font-size: 16px;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('images/Title.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    margin-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(247, 250, 252, 0.7);
    z-index: 1;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(32px, 6vw, 72px);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-title-line {
    display: block;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 24px);
    color: var(--gray-dark);
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--gray-dark);
    font-size: 12px;
    letter-spacing: 0.1em;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background-color: var(--main-color);
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--main-color);
    border-bottom: 2px solid var(--main-color);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Section Styles */
.section {
    padding: 100px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 0.05em;
}

.section-link {
    color: var(--main-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.section-link:hover {
    color: var(--accent-color);
}

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

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

.news-item {
    padding: 30px;
    background-color: var(--bg-color);
    border-left: 4px solid var(--main-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.news-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px var(--shadow);
}

.news-date {
    color: var(--gray-dark);
    font-size: 14px;
    margin-right: 15px;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--main-color);
    color: var(--white);
    font-size: 12px;
    border-radius: 20px;
    margin-right: 15px;
}

.news-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 15px;
    line-height: 1.6;
}

/* Purpose Section */
.purpose-section {
    background-color: var(--bg-color);
}

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

.purpose-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
}

.purpose-text {
    font-size: 16px;
    line-height: 2;
    color: var(--gray-dark);
    margin-bottom: 50px;
}

.purpose-text p {
    margin-bottom: 20px;
}

.purpose-image {
    width: 70%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
}

.purpose-image img {
    width: 100%;
    height: auto;
    display: block;
}

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

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

.company-info-card {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 10px;
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--main-color);
}

.company-details {
    display: grid;
    gap: 18px;
}

.company-details dt {
    font-weight: 700;
    color: var(--main-color);
    font-size: 13px;
    margin-bottom: 5px;
}

.company-details dd {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

.company-image-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
}

.company-image-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* Business Section */
.business-section {
    background-color: var(--bg-color);
}

.business-intro {
    max-width: 900px;
    margin: 0 auto 60px;
    font-size: 18px;
    line-height: 2;
    color: var(--gray-dark);
    text-align: center;
}

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

.business-item {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow);
}

.business-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-hover);
}

.business-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 25px;
    color: var(--main-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-icon svg {
    width: 100%;
    height: 100%;
}

.business-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.business-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-dark);
}

.business-status {
    display: inline-block;
    margin-top: 15px;
    padding: 6px 12px;
    background-color: var(--accent-color);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.business-gallery {
    margin-top: 80px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Partners Section */
.partners-section {
    background-color: var(--bg-color);
}

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

.partner-item {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.partner-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.partner-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--main-color);
    margin: 0;
    line-height: 1.4;
}

.partner-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-dark);
    margin-bottom: 15px;
}

.partner-url {
    display: inline-block;
    font-size: 14px;
    color: var(--accent-color);
    font-weight: 500;
    border-bottom: 1px solid var(--accent-color);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.partner-item:hover .partner-url {
    color: var(--main-color);
    border-bottom-color: var(--main-color);
}

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

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

.contact-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
}

.contact-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-dark);
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item strong {
    display: block;
    font-size: 14px;
    color: var(--main-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.contact-item p {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.8;
}

.contact-email {
    color: var(--main-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.contact-map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
    height: 350px;
    min-height: 350px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Contact Form Styles */
.contact-form-wrapper {
    width: 100%;
    padding-top: 0;
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-info {
    background-color: var(--bg-color);
    padding: 32px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow);
}

.contact-info-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 24px;
}

.contact-form {
    width: 100%;
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.form-label .required {
    color: #e74c3c;
    margin-left: 4px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    border: 2px solid var(--gray-medium);
    border-radius: 6px;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(0, 160, 233, 0.1);
}

.form-textarea {
    min-height: 150px;
}

.form-submit-btn {
    width: 100%;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    background-color: var(--main-color);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-submit-btn:hover:not(:disabled) {
    background-color: var(--accent-color);
    box-shadow: 0 4px 15px var(--shadow-hover);
    transform: translateY(-2px);
}

.form-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.form-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.form-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

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

.form-message-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Privacy Policy Section */
.privacy-section {
    background-color: var(--bg-color);
    display: none;
}

.privacy-section.is-visible {
    display: block;
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 2;
    color: var(--gray-dark);
}

.privacy-intro {
    margin-bottom: 30px;
}

.privacy-heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-top: 30px;
    margin-bottom: 10px;
}

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

.privacy-list li {
    margin-bottom: 4px;
}

/* Footer */
.footer {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.05em;
}

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

.footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

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

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    color: var(--gray-medium);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .company-grid,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info-wrapper {
        gap: 24px;
    }

    .contact-info {
        padding: 24px;
    }

    .contact-map {
        height: 300px;
        min-height: 300px;
    }

    .contact-title {
        font-size: 24px;
    }

    .contact-description {
        margin-bottom: 24px;
    }

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

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .hero {
        min-height: 500px;
        margin-top: 70px;
    }

    .business-grid {
        grid-template-columns: 1fr;
    }
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Admin Link */
.admin-link-wrapper {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 998;
}

.admin-link {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--main-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--shadow-hover);
    transition: all 0.3s ease;
    padding: 0;
    text-decoration: none;
}

.admin-link svg {
    width: 24px;
    height: 24px;
}

.admin-link:hover {
    background-color: var(--accent-color);
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

/* News Management Modal */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.news-modal-content {
    background-color: var(--white);
    border-radius: 10px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.news-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 2px solid var(--gray-light);
}

.news-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.news-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--gray-dark);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.news-modal-close:hover {
    color: var(--text-color);
}

.news-modal-body {
    padding: 30px;
}

.news-list-actions {
    margin-bottom: 24px;
}

.news-action-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.news-action-btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--shadow);
}

.news-action-btn-secondary {
    background-color: var(--gray-medium);
    color: var(--white);
}

.news-action-btn-secondary:hover {
    background-color: var(--gray-dark);
}

.news-action-btn-edit {
    background-color: var(--main-color);
    color: var(--white);
    margin-right: 8px;
}

.news-action-btn-edit:hover {
    background-color: var(--accent-color);
}

.news-action-btn-delete {
    background-color: #e74c3c;
    color: var(--white);
}

.news-action-btn-delete:hover {
    background-color: #c0392b;
}

.news-list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-management-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--bg-color);
    border-radius: 8px;
    border-left: 4px solid var(--main-color);
    transition: all 0.3s ease;
}

.news-management-item:hover {
    box-shadow: 0 4px 12px var(--shadow);
    transform: translateX(4px);
}

.news-management-item-info {
    flex: 1;
}

.news-management-date {
    color: var(--gray-dark);
    font-size: 14px;
    margin-right: 12px;
}

.news-management-category {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--main-color);
    color: var(--white);
    font-size: 12px;
    border-radius: 20px;
    margin-right: 12px;
}

.news-management-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 8px;
    margin-bottom: 0;
}

.news-management-item-actions {
    display: flex;
    gap: 8px;
}

.news-form-container {
    margin-top: 24px;
}

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

.news-form {
    background-color: var(--bg-color);
    padding: 24px;
    border-radius: 8px;
}

.news-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .admin-link-wrapper {
        bottom: 20px;
        left: 20px;
    }

    .admin-link {
        width: 50px;
        height: 50px;
    }

    .admin-link svg {
        width: 20px;
        height: 20px;
    }

    .news-modal-content {
        max-height: 95vh;
    }

    .news-modal-header {
        padding: 20px;
    }

    .news-modal-body {
        padding: 20px;
    }

    .news-management-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .news-management-item-actions {
        width: 100%;
    }

    .news-action-btn {
        flex: 1;
    }

    .news-form-actions {
        flex-direction: column;
    }

    .news-action-btn {
        width: 100%;
    }
}

/* Smooth Animations */
@media (prefers-reduced-motion: no-preference) {
    * {
        transition: all 0.3s ease;
    }
}

