/* ============================================
   MangaXX - Common Styles (Sorajima Style)
   全ページ共通スタイル
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #1a1a1a;
    background: #fafafa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

ul {
    list-style: none;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
.section-label {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

.accent {
    color: #0066cc;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: #1a1a1a;
    color: #fff;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn-ghost {
    background: transparent;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
}

.btn-ghost:hover {
    background: #1a1a1a;
    color: #fff;
}

.btn-white {
    background: #fff;
    color: #1a1a1a;
}

.btn-white:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1rem;
}

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #1a1a1a;
}

.logo a {
    color: inherit;
    text-decoration: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-list a {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #666;
    position: relative;
}

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

.nav-list a:hover,
.nav-list a.active {
    color: #1a1a1a;
}

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

.nav-contact {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    background: #1a1a1a;
    color: #fff !important;
    border-radius: 50px;
}

.nav-contact:hover {
    background: #333;
}

.nav-contact::after {
    display: none !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1a1a1a;
    transition: all 0.3s ease;
}

/* ============================================
   Page Header (Subpages)
   ============================================ */
.page-header {
    padding: 10rem 0 5rem;
    background: linear-gradient(180deg, #f5f5f5 0%, #fafafa 100%);
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.page-header p {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #888;
}

/* ============================================
   Content Sections
   ============================================ */
.content-section {
    padding: 6rem 0;
    background: #fff;
}

.content-section:nth-child(even) {
    background: #f5f5f5;
}

/* Info Cards */
.info-card {
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.info-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    color: #1a1a1a;
}

/* Info Table */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table th,
.info-table td {
    padding: 1.25rem 0;
    text-align: left;
    vertical-align: top;
}

.info-table th {
    width: 180px;
    font-weight: 600;
    color: #666;
    font-size: 0.9375rem;
}

.info-table td {
    color: #1a1a1a;
}

/* Business Content */
.business-content {
    display: grid;
    gap: 2rem;
}

.business-item {
    padding: 2rem;
    background: #fafafa;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.business-item:hover {
    background: #f5f5f5;
}

.business-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.business-item p {
    color: #666;
    line-height: 1.8;
}

/* ============================================
   MVV Section Styles
   ============================================ */
.mvv-section {
    padding: 5rem 0;
}

.mvv-block {
    margin-bottom: 4rem;
}

.mvv-block:last-child {
    margin-bottom: 0;
}

.mvv-label {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #0066cc;
    margin-bottom: 1rem;
}

.mvv-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.mvv-description {
    color: #666;
    line-height: 2;
    max-width: 800px;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-card {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: #0066cc;
}

.value-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.value-card p {
    color: #666;
    font-size: 0.9375rem;
    line-height: 1.8;
}

/* ============================================
   Contact Form
   ============================================ */
.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-info {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.contact-info p {
    color: #666;
    line-height: 1.8;
}

.contact-form {
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid #eee;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    font-size: 0.9375rem;
}

.form-group .required {
    color: #e53935;
    margin-left: 0.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

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

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

.contact-form .btn {
    width: 100%;
    margin-top: 1rem;
}

.contact-success {
    text-align: center;
    padding: 3rem;
    background: #f0f9f0;
    border-radius: 20px;
}

.contact-success h3 {
    font-size: 1.5rem;
    color: #2e7d32;
    margin-bottom: 1rem;
}

.contact-success p {
    color: #666;
}

/* ============================================
   Timeline
   ============================================ */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #0066cc, #1a1a1a);
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
    padding-left: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0;
    width: 12px;
    height: 12px;
    background: #0066cc;
    border-radius: 50%;
    transform: translateX(-5px);
}

.timeline-date {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0066cc;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.timeline-description {
    color: #666;
    line-height: 1.8;
}

/* ============================================
   News
   ============================================ */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 1.5rem 2rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.news-item:hover {
    border-color: #0066cc;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.news-date {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.875rem;
    color: #888;
    white-space: nowrap;
}

.news-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    white-space: nowrap;
}

.news-title {
    flex: 1;
    font-weight: 500;
    color: #1a1a1a;
}

.news-title:hover {
    color: #0066cc;
}

/* ============================================
   Message Section
   ============================================ */
.message-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.message-profile {
    text-align: center;
}

.message-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid #f0f0f0;
}

.message-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.message-role {
    font-size: 0.875rem;
    color: #888;
}

.message-text {
    color: #444;
    line-height: 2.2;
}

.message-text p {
    margin-bottom: 1.5rem;
}

.message-text p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 5rem 0 2rem;
    background: #0a0a0a;
    color: #fff;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.footer-tagline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-col a:hover {
    color: #fff;
}

.footer-col address {
    font-style: normal;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: 6rem 0;
    background: #1a1a1a;
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-nav {
        grid-template-columns: repeat(3, 1fr);
    }

    .message-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .message-profile {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        text-align: left;
    }

    .message-photo {
        width: 120px;
        height: 120px;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 1rem 1.5rem;
    }

    .nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .page-header {
        padding: 8rem 0 3rem;
    }

    .content-section {
        padding: 4rem 0;
    }

    .info-card {
        padding: 2rem;
    }

    .info-table th {
        display: block;
        width: 100%;
        padding-bottom: 0.5rem;
    }

    .info-table td {
        display: block;
        padding-top: 0;
        padding-bottom: 1.5rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .news-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-nav {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-col:last-child {
        grid-column: span 2;
    }

    .container {
        padding: 0 1.5rem;
    }

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

@media (max-width: 480px) {
    .footer-nav {
        grid-template-columns: 1fr;
    }

    .footer-col:last-child {
        grid-column: span 1;
    }

    .message-profile {
        flex-direction: column;
        text-align: center;
    }
}
