/* About Page Styles */

/* Section title underlines */
.executive-message .section-title,
.company-outline .section-title,
.access .section-title,
.history .section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
}

.title-underline {
    display: block;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    height: 10px !important;
    max-height: 10px;
    overflow: hidden;
    background: url('../images/線.png') left center no-repeat;
    background-size: 100% 100%;
}

/* About page specific hero styles */
.about-hero {
    background: transparent;
    padding: 0; /* 余白なし */
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.container-full {
    max-width: none; /* FVはフルブリード */
    width: 100%;
    margin: 0 auto;
    padding: 0; /* 余白をなくして横幅いっぱいに */
    text-align: center;
}

/* パンくずはFV直後に密着 */
.about-hero + .breadcrumb {
    margin-top: 0 !important;
    /* FVはヘッダー裏から開始するため、パンくずは動的余白なし */
    padding-top: 0;
}

.about-fv-image {
    max-width: none;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    max-height: calc(100svh - 80px);
}

@media (max-width: 768px) {
    .about-fv-image {
        max-height: calc(100svh - 60px);
    }
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumb ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-sm);
    align-items: center;
    font-size: 0.875rem;
}

.breadcrumb li::after {
    content: '>';
    margin-left: var(--spacing-sm);
    color: #ffffff;
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb a {
    color: #ffffff;
}

/* About Main Content */
.about-main {
    padding: 0 0 var(--spacing-3xl); /* 上部パディング削除、セクション間の重複解消 */
}

.about-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-intro h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xl);
}

.about-intro p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: var(--spacing-lg);
}

/* Section Title Centering */
.section-title {
    text-align: center;
}

/* Executive Message */
.executive-message {
    margin-top: 60px; /* FV後のスペース追加 */
    padding: 0 0 var(--spacing-3xl); /* 上部パディング削除、セクション間の重複解消 */
    background: transparent;
}

/* パンくず直後の最初のセクションのみ上部パディング追加 */
.breadcrumb + .executive-message {
    padding-top: var(--spacing-3xl);
}

.message-content {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: var(--spacing-xl);
    display: flex;
    gap: var(--spacing-3xl);
    align-items: flex-start;
}

.message-image {
    flex: 0 0 400px;
}

.message-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.message-text {
    flex: 1;
}

/* 5層レイヤーエフェクト for About page */
.message-title-wrapper {
    position: relative;
    height: 3rem;
    margin-bottom: var(--spacing-lg);
    display: block;
}

.message-title {
    position: absolute;
    width: 100%;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.2;
    letter-spacing: 0.02em;
    left: 0;
    top: 0;
    white-space: nowrap;
}

.message-title.layer-1 {
    color: #FFFFFF;
    z-index: 5;
    transform: translateX(2px) translateY(1px);
}

.message-title.layer-2 {
    color: #FFFF00;
    z-index: 4;
    transform: translateX(3px) translateY(2px);
}

.message-title.layer-3 {
    color: #00EEFF;
    z-index: 3;
    transform: translateX(1px) translateY(1px);
}

.message-title.layer-4 {
    color: #000DFF;
    z-index: 2;
    transform: translateX(0) translateY(0);
}

.message-title.layer-5 {
    color: #FF0900;
    z-index: 1;
    transform: translateX(4px) translateY(3px);
}

.message-text h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-dark);
}

.message-text p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: var(--spacing-md);
}

.executive-info {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
}

.executive-info .company {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: var(--spacing-xs);
}

.executive-info .position {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-dark);
}

.message-image {
    position: relative;
}

.placeholder-image {
    width: 100%;
    height: 400px;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    border-radius: 8px;
}

/* Company Outline */
.company-outline {
    padding: 0 0 var(--spacing-3xl); /* 上部パディング削除、セクション間の重複解消 */
}

.outline-table {
    max-width: 900px;
    margin: 0 auto;
    margin-top: var(--spacing-xl);
}

.outline-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(26, 26, 26, 0.8);
}

.outline-table th,
.outline-table td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.outline-table th {
    width: 30%;
    font-weight: var(--font-weight-bold);
    color: #f0f0f0;
    background: rgba(69, 238, 255, 0.05);
}

.outline-table td {
    color: #ffffff;
}

.outline-table td ul {
    list-style: none;
    padding: 0;
}

.outline-table td li {
    padding-left: var(--spacing-md);
    position: relative;
    margin-bottom: var(--spacing-xs);
}

.outline-table td li::before {
    content: '・';
    position: absolute;
    left: 0;
}

/* Access */
.access {
    padding: 0 0 var(--spacing-3xl); /* 上部パディング削除、セクション間の重複解消 */
    background: transparent;
}

.access .section-title {
    margin-bottom: var(--spacing-xl);  /* Reduced from 8rem to 3rem */
}

.access-office {
    margin-bottom: var(--spacing-xl);  /* Reduced from 8rem to 3rem */
}

.access-office:last-child {
    margin-bottom: 0;
}

.access-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.map-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    display: block;
}

.access-info {
    padding: var(--spacing-lg);
}

.access-info h3 {
    font-size: 1.5rem;
    color: #f0f0f0;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.office-title {
    font-size: 1.5rem;
    color: #f0f0f0;
    margin-bottom: var(--spacing-md);  /* Reduced from 2rem to 1rem */
    padding-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.office-description {
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 10px;
    margin-bottom: var(--spacing-md);  /* Reduced from 2rem to 1rem */
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* When office-description is outside access-grid */
.access-office > .office-description {
    padding: 0 20px;
}

.info-item {
    margin-bottom: var(--spacing-lg);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    display: inline-block;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-item p {
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
}

.access-content {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: var(--spacing-xl);
}

.office-section {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--gray-200);
}

.office-section:last-child {
    border-bottom: none;
}

.office-section h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.address {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    color: #ffffff;
}

.transport h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.transport ul {
    list-style: none;
}

.transport li {
    padding-left: var(--spacing-md);
    position: relative;
    margin-bottom: var(--spacing-xs);
    color: #ffffff;
}

.transport li::before {
    content: '🚃';
    position: absolute;
    left: 0;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    border-radius: 8px;
}

/* History */
.history {
    padding: 0 0 var(--spacing-3xl); /* 上部パディング削除、セクション間の重複解消 */
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    margin-top: var(--spacing-xl);
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 200px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.timeline-item {
    display: flex;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 190px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--black);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-item .year {
    min-width: 180px;
    font-size: 1.125rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    text-align: left;
}

.timeline-item .content {
    flex: 1;
    padding-left: var(--spacing-lg);
}

.timeline-item p {
    color: #ffffff;  /* Changed from gray to white */
    line-height: 1.6;
    font-size: 1.0625rem;
}

/* Animation */
.timeline-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
    .office-section {
        margin-bottom: var(--spacing-lg);
        padding-bottom: var(--spacing-lg);
    }
    
    .map-placeholder {
        height: 300px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item::before {
        left: 10px;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-item .year {
        margin-left: 40px;
        min-width: auto;
    }
    
    .timeline-item .content {
        padding-left: 40px;
    }
    
    .message-content {
        flex-direction: column;
        gap: var(--spacing-xl);
    }
    
    .message-image {
        flex: 0 0 auto;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .message-text {
        flex: 1;
    }
    
    /* メッセージタイトルのレスポンシブ対応 */
    .message-title-wrapper {
        height: 2.5rem;  /* フォントサイズに応じた高さ */
    }
    
    .message-title {
        font-size: clamp(1.2rem, 4.5vw, 2rem);  /* レスポンシブフォントサイズ */
        white-space: normal;  /* 改行を許可 */
        /* position: absolute のまま維持してレイヤーエフェクトを保持 */
    }
    
    /* モバイル用のレイヤーオフセット調整 */
    .message-title.layer-1 {
        transform: translateX(1px) translateY(0.5px);
    }
    
    .message-title.layer-2 {
        transform: translateX(1.5px) translateY(1px);
    }
    
    .message-title.layer-3 {
        transform: translateX(0.5px) translateY(0.5px);
    }
    
    .message-title.layer-4 {
        transform: translateX(0) translateY(0);
    }
    
    .message-title.layer-5 {
        transform: translateX(2px) translateY(1.5px);
    }
    
    .access-grid {
        display: flex;
        flex-direction: column;
    }
    
    .map-container {
        height: 300px;
        order: 1;
        margin-bottom: 10px;  /* Reduced from 20px to 10px */
    }
    
    .map-container iframe {
        height: 300px;
    }
    
    .access-info {
        order: 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding-top: 0;  /* Remove top padding to eliminate purple space */
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 20px;
    }
    
    .access-info .info-item {
        margin-bottom: 0;
    }
    
    .outline-table th,
    .outline-table td {
        display: block;
        width: 100%;
        padding: var(--spacing-sm);
    }
    
    .outline-table th {
        background: none;
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .outline-table td {
        padding-top: 0;
        margin-bottom: var(--spacing-md);
    }
}

/* さらに小さい画面用 */
@media (max-width: 375px) {
    .message-title {
        font-size: 1.1rem;
        line-height: 1.4;
    }
}