/* About Page Styles */
.about-section {
    margin-bottom: 60px;
}

.offices-section {
    margin-bottom: 30px;
}

/* About page specific section title */
.about-section .section-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--primary-color, #333);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.section-title-en {
    font-size: 38px;
    font-weight: 300;
    color: var(--primary-color, #333);
    margin-bottom: 30px;
    margin-top: -10px;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.03em;
    position: relative;
}

.section-title-en::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 50%;
    transform: translateY(-50%) rotate(25deg);
    width: 1px;
    height: 50px;
    background: var(--primary-color);
}

/* CEO Message Section */
.ceo-message-section {
    position: relative;
    margin-bottom: 60px;
    padding: 30px 0;
}
.ceo-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}
.ceo-image {
    flex-shrink: 0;
    width: 250px;
}
.ceo-image img {
    width: 100%;
    height: auto;
    display: block;
}

.ceo-content {
    flex: 1;
}
.ceo-name-ja {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color, #333);
    margin-bottom: 5px;
}

.ceo-title {
    font-size: 18px;
    font-weight: 400;
}
.ceo-name-en {
    font-size: 18px;
    font-weight: 400;
    color: #666;
    margin-bottom: 25px;
    font-family: 'Barlow Condensed', sans-serif;
}
.ceo-message p {
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: 0.02em;
    color: #333;
    margin-bottom: 20px;
}

/* Company Information Section */
.company-info-section {
    margin-bottom: 30px;
    background: var(--bg-white);
    border-radius: 0;
    padding: 40px;
    padding-bottom: 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.company-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.03em;
}

.info-label {
    flex-shrink: 0;
    width: 80px;
    color: #666;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.03em;
}

.info-value {
    flex: 1;
    color: #333;
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.03em;
}

.company-map {
    width: calc(100% + 80px);
    margin-left: -40px;
    margin-right: -40px;
    margin-bottom: 0;
    margin-top: 30px;
    overflow: hidden;
}

.company-map iframe {
    display: block;
    height: 450px;
    width: 100%;
}

.representative-message {
    margin-bottom: 40px;
}

.representative-message p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.motto {
    background: linear-gradient(135deg, rgba(212, 78, 255, 0.05) 0%, rgba(135, 222, 255, 0.05) 100%);
    border-left: 4px solid #d44eff;
    padding: 20px 30px;
    margin: 30px 0;
    font-size: 18px;
    font-style: italic;
    color: #555;
}

.representative-profile {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
}

.representative-profile h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color, #333);
}

.profile-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.profile-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.motto-text {
    font-size: 18px;
    font-weight: 600;
    color: #d44eff;
    margin-top: 20px;
}

.company-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.company-info-table th,
.company-info-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.company-info-table th {
    width: 30%;
    background: #f5f5f5;
    font-weight: 600;
    color: var(--primary-color, #333);
}

.company-info-table td {
    width: 70%;
}

.offices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.office-card {
    background: var(--bg-white);
    padding: 30px;
    padding-bottom: 0;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.ukraine-office {
    justify-content: space-between;
    background: #b1b1b1;
    position: relative;
}

.ukraine-office::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2f3336;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 3;
}

.ukraine-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    width: 80%;
    max-width: 400px;
}

.ukraine-message {
    background: transparent;
    border: 1px solid white;
    padding: 25px 20px;
    text-align: center;
}

.ukraine-message p {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 25px;
    font-weight: 300;
    line-height: 1.4;
    color: white;
    letter-spacing: 0.05em;
    margin: 0;
}

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

.office-title-en {
    font-size: 38px;
    font-weight: 300;
    color: #333;
    margin-bottom: 25px;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 1px;
    margin-top: -12px;
}

.office-info {
    margin-bottom: 5px;
    min-height: 130px;
}

.info-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.info-label-office {
    flex-shrink: 0;
    width: 60px;
    color: #666;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.03em;
}

.info-value-office {
    flex: 1;
    color: #333;
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.03em;
    font-family: 'Barlow Condensed', sans-serif;
}

.office-map-small {
    width: calc(100% + 60px);
    margin-left: -30px;
    margin-right: -30px;
    margin-bottom: 0;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1 / 1; /* 正方形を維持 */
}

.office-map-small > div {
    width: 100% !important;
    height: 100% !important;
}

.license-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

/* Tokyo Members Section - ジグザグレイアウト */
.members-container {
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 70px;
    width: 100%;
    padding-left: 16px;
}

.member-row {
    display: flex;
    gap: 40px;
    width: 100%;
}

.member-row.left-aligned {
    justify-content: flex-start;
}

.member-row.right-aligned {
    justify-content: flex-end;
}

.member-row.single-left {
    justify-content: flex-start;
    margin-left: 180px;
}

.member-row.single-right {
    justify-content: flex-start;
}

.member-card {
    background: var(--bg-white);
    padding: 0 30px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    min-height: 120px;
    flex: 0 0 calc(50% - 15px);
    max-width: 360px;
}

.member-info {
    flex: 1;
    padding-left: 110px;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
    align-items: flex-start;
}

.member-name-ja {
    font-size: 20px;
    font-weight: 400;
    color: var(--primary-color);
    font-family: 'Noto Sans JP', sans-serif;
    margin-bottom: 5px;
    line-height: 1.3;
    letter-spacing: 0.03em;
}

.member-name-en {
    font-size: 24px;
    font-weight: 300;
    color: var(--primary-color);
    font-family: 'Barlow Condensed', sans-serif;
    opacity: 0.8;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.member-photo {
    width: 120px;
    height: 120px;
    position: absolute;
    top: -15px;
    left: -15px;
    border-radius: 0;
    overflow: hidden;
    background: #f5f5f5;
    z-index: 2;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.license-list li {
    padding: 15px;
    background: #f9f9f9;
    border-left: 3px solid var(--accent-color);
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .members-container {
        padding: 0;
        gap: 30px;
    }
    
    .member-row {
        flex-direction: column;
        gap: 30px;
    }
    
    .member-row.left-aligned,
    .member-row.right-aligned,
    .member-row.single-left {
        justify-content: stretch;
        margin-left: 0;
        margin-right: 0;
    }
    
    .member-card {
        padding: 20px;
        min-height: 100px;
        flex: 1 1 auto;
        max-width: none;
    }
    
    .member-info {
        padding-right: 15px;
    }
    
    .member-name-ja {
        font-size: 18px;
    }
    
    .member-name-en {
        font-size: 24px;
    }
    
    .member-photo {
        width: 100px;
        height: 100px;
        top: 0px;
        right: 0px;
    }
    
    /* モバイルでは左側配置に統一 */
    .member-photo {
        left: 0px;
        right: auto;
    }

    .section-title {
        font-size: 24px;
    }
    
    .section-title-en {
        font-size: 28px;
    }
    
    .ceo-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .ceo-image {
        width: 200px;
        margin-top: -30px;
    }
    
    .ceo-content {
        display: contents;
    }
    
    .ceo-container > * {
        width: 100%;
    }
    
    .ceo-container .section-title-en {
        order: 1;
    }
    
    .ceo-container .ceo-image {
        order: 2;
    }
    
    .ceo-container .ceo-details,
    .ceo-container .ceo-message {
        order: 3;
    }
    
    .ceo-message-section {
        padding: 25px 0;
    }
    
    .section-title-en {
        font-size: 32px;
        margin-left: 38px;
    }
    
    .company-info-section {
        padding: 25px 20px;
        padding-bottom: 0;
    }
    
    .company-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .info-label {
        width: 70px;
        font-size: 13px;
    }
    
    .info-value {
        font-size: 13px;
    }
    
    .company-map {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
        margin-bottom: 0;
    }
    
    .company-map iframe {
        height: 300px;
    }
    
    .member-card {
        min-height: 100px;
    }
    
    .member-info {
        min-height: 60px;
    }
    
    .offices-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .office-card {
        padding: 20px;
        padding-bottom: 0;
    }
    
    .office-map-small {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
    }
    
    .office-title-en {
        font-size: 32px;
    }
    
    .license-list {
        grid-template-columns: 1fr;
    }
    
    .company-info-table th,
    .company-info-table td {
        display: block;
        width: 100%;
    }
    
    .company-info-table th {
        background: none;
        padding-bottom: 5px;
        border-bottom: none;
    }
    
    .company-info-table td {
        padding-top: 5px;
        margin-bottom: 15px;
    }
}