/* ==============================================
   VISION.CSS - ビジョン・企業理念セクションスタイル
   ============================================== */

/* ビジョン特有のレイアウトスタイル */
.detail-column-vision .detail-features[data-layout="vision-specific"] {
    padding: 2rem;
}

.detail-column-vision .detail-features[data-layout="vision-specific"] h2 {
    font-size: 2.3rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.detail-features[data-layout="vision-specific"] {
    /* vision専用の特別なレイアウト */
}

.detail-features[data-layout="vision-specific"]::before {
    top: -40px;
    left: 12%;
    width: 48px;
    height: 48px;
    opacity: 0.14;
    transform: rotate(88deg);
    background-image: url('images/vision/Character1.png');
}

.detail-features[data-layout="vision-specific"]::after {
    bottom: 80px;
    right: 3%;
    width: 29px;
    height: 29px;
    opacity: 0.19;
    transform: rotate(-92deg);
    background-image: url('images/vision/Character6.png');
}

/* ビジョンセクション */
.vision-content {
    text-align: center;
}

.vision-text {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    font-weight: 300;
    color: #2c3e50;
    margin-bottom: 3rem;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.vision-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ビジョンマップ画像コンテナ */
.vision-map-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden; /* 画像のはみ出しを隠す */
}

.vision-map-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.vision-map-image {
    max-width: 110%; /* 10%拡大 */
    height: auto;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.vision-map-image:hover {
    transform: scale(1.05); /* 画像のみスケールアップ、コンテナがoverflow:hiddenで枠は固定 */
}

.vision-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* ビジョンアイテムのアニメーション */
.vision-item {
    padding: 2rem;
    background: rgba(72, 202, 228, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(72, 202, 228, 0.2);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.vision-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.vision-item h3 {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #0077BE;
    margin-bottom: 1rem;
    text-align: center;
}

.vision-item p {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #555;
    line-height: 1.6;
    text-align: center;
}

/* ビジョン詳細モーダル専用スタイル */
.vision-detail-container {
    max-width: 100%;
    margin: 0 auto;
}

.vision-detail-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(72, 202, 228, 0.2);
}

.vision-detail-section h3 {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid #48CAE4;
    padding-bottom: 0.5rem;
}

.vision-subtitle {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #666;
    text-align: center;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* ビジョンハイライト */
.vision-highlight {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #48CAE4 0%, #0077BE 100%);
    border-radius: 20px;
    color: white;
}

.vision-highlight h4 {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ビジョンコンセプト */
.vision-concept {
    margin: 2rem 0;
}

.vision-concept h5 {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.vision-flow {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(72, 202, 228, 0.1);
    border-radius: 15px;
    border-left: 4px solid #48CAE4;
}

.vision-flow p {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #2c3e50;
    line-height: 1.8;
    margin: 0;
}

.vision-quote {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #666;
    text-align: center;
    font-style: italic;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

/* ミッション */
.vision-mission {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(72, 202, 228, 0.1) 0%, rgba(0, 119, 190, 0.1) 100%);
    border-radius: 20px;
    border: 2px solid rgba(72, 202, 228, 0.3);
}

.vision-mission h4 {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.vision-mission p {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #2c3e50;
    line-height: 1.8;
    margin: 0;
}

/* テーブルスタイル */
.vision-table-wrapper,
.vision-action-table-wrapper,
.vision-value-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.vision-table,
.vision-action-table,
.vision-value-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-family: 'Sawarabi Gothic', sans-serif;
}

.vision-table th,
.vision-action-table th,
.vision-value-table th {
    background: linear-gradient(135deg, #48CAE4, #0077BE);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.vision-table td,
.vision-action-table td,
.vision-value-table td {
    padding: 1rem;
    border: 1px solid #e0e0e0;
    text-align: center;
    vertical-align: middle;
    font-size: 0.9rem;
    line-height: 1.6;
}

.vision-table td:nth-child(3),
.vision-action-table td:nth-child(1),
.vision-action-table td:nth-child(3),
.vision-value-table td {
    text-align: left;
}

.vision-keyword {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #2c3e50;
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(72, 202, 228, 0.1);
    border-radius: 10px;
}

/* VISIONセクション */
.vision-statement {
    position: relative;
    text-align: center;
    padding: 2rem;
    color: white;
    overflow: hidden;
    height: 800px;
}

/* VISION画像要素 */
/* 中央画像（メインテキスト位置） */
.vision-tyoudoii-center {
    position: absolute;
    top: calc(20% - 50px);
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    height: 24%;
    width: auto;
}

/* 左側画像（中央配置に変更） */
.vision-family-future {
    position: absolute;
    top: calc(50% + 200px);
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    height: 70%;
    width: auto;
}

/* 回転パーツ1（写真と中央揃え・拡大1.07倍・上に配置） */
.vision-circle-parts1 {
    position: absolute;
    top: calc(50% + 200px);
    left: 50%;
    transform: translate(-50%, -50%) scale(1.07);
    z-index: 2;
    height: 75%;
    width: auto;
    animation: rotate-parts1 10s linear infinite;
}

/* 回転パーツ2（写真と中央揃え・拡大1.07倍・下に配置） */
.vision-circle-parts2 {
    position: absolute;
    top: calc(50% + 200px);
    left: 50%;
    transform: translate(-50%, -50%) scale(1.07);
    z-index: 1;
    height: 75%;
    width: auto;
    animation: rotate-parts2 12s linear infinite reverse;
}

/* kakawaruhito.png（.vision-sectionの下部、横幅いっぱいに拡大） */
.kakawaruhito-vision-bottom {
    display: block;
    margin: 2rem auto 0 auto;
    width: 100%;
    max-width: 100%;
    max-height: 104px;
    object-fit: contain;
    z-index: 3;
    position: relative;
    transform: translateY(0px);
}

/* ビジョンマップ専用レイアウト */
.vision-map-layout {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 50%, #90CAF9 100%);
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.vision-map-header {
    text-align: center;
    margin-bottom: 2rem;
}

.vision-map-logo {
    max-width: 300px;
    height: auto;
}

.vision-map-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
}

.vision-map-pentagon-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pentagon-container {
    position: relative;
}

.pentagon-main {
    max-width: 400px;
    height: auto;
}

.pentagon-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 200px;
    height: auto;
}

.vision-map-characters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 800px;
}

.character {
    max-width: 120px;
    height: auto;
    transition: transform 0.3s ease;
}

.character:hover {
    transform: scale(1.1);
}

.vision-map-philosophy {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.philosophy-main {
    max-width: 400px;
    height: auto;
}

.satisfaction-text {
    max-width: 200px;
    height: auto;
}

.vision-map-bottom {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.value-section {
    text-align: center;
}

.value-header {
    max-width: 200px;
    height: auto;
    margin-bottom: 2rem;
}

.value-items {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

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

.value-img {
    max-width: 150px;
    height: auto;
    transition: transform 0.3s ease;
}

.value-img:hover {
    transform: scale(1.05);
}

.mission-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.mission-header {
    max-width: 200px;
    height: auto;
}

.mission-text {
    max-width: 300px;
    height: auto;
}

/* デスクトップ版ビジョンマップコンテンツ */
.vision-content-layout {
    padding: 0.125rem 0.5rem 1rem 0.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.vision-section {
    margin-top: 3rem; /* 上部マージンを追加して位置を下げる */
    margin-bottom: 1rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border-left: none;
    text-align: center;
}

/* 行動指針専用のスタイル */
.action-guide-section {
    margin-bottom: 3rem;
    padding: 0 0 2rem 0;
    min-height: 1159px;
}

.vision-section:first-child {
    margin-top: -1rem;
}

.vision-section-title {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding: 0 0 0.5rem 0;
    border: none;
    background: transparent;
    position: relative;
    border-bottom: 2px solid #48CAE4; /* 下線は固定 */
    overflow: hidden; /* マスク効果：浮上前の文字を隠す */
}

/* テキスト部分のみアニメーション */
.vision-section-title .title-text {
    display: block;
    opacity: 0;
    transform: translateY(1.2em); /* 初期状態：下方向に隠す */
    transition: all 1.8s cubic-bezier(0.23, 1, 0.32, 1); /* よりゆっくりなアニメーション */
}

/* アニメーション開始後のスタイル */
.vision-section-title.animate .title-text {
    opacity: 1;
    transform: translateY(0); /* 本来の位置へ浮上 */
}

.vision-question {
    font-size: 1.3rem;
    font-weight: 500;
    color: #0077BE;
    margin-bottom: 1rem;
    text-align: center;
}

.vision-answer {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

/* 経営理念スタイル */
.philosophy-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.philosophy-item {
    background: transparent;
    padding: 0;
    border-radius: 0;
    text-align: center;
}

.philosophy-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0077BE;
    margin-bottom: 0.5rem;
}

.philosophy-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* ビジョン企業理念セクション */
.vision-company-philosophy {
    padding: 2rem;
    text-align: center;
}

.philosophy-header {
    margin-bottom: 3rem;
}

.philosophy-title-bg {
    background-color: #8B4513;
    padding: 1rem 2rem;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 1rem;
}

.philosophy-title {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
    font-family: "Sawarabi Gothic", sans-serif;
}

.philosophy-subtitle {
    color: #48CAE4;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 1rem 0;
    font-family: "Sawarabi Gothic", sans-serif;
}

.company-building {
    /* 既存のスタイルがあれば保持 */
}

/* ビジョンマップセクション */
.vision-map-section {
    text-align: center;
    margin: 2rem 0;
}

.vision-map-preview {
    display: block; /* inline-block → block に変更 */
    width: 100%; /* 幅を100%に設定 */
    cursor: pointer;
}

.vision-map-small {
    width: 100%; /* max-width → width: 100% */
    max-width: none; /* max-widthの制限を削除 */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.vision-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #1e3a8a, #1e40af); /* 紺色のグラデーション */
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
    margin-top: 1rem;
}

.vision-detail-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

.vision-detail-btn svg {
    transition: transform 0.3s ease;
}

.vision-detail-btn:hover svg {
    transform: translateX(2px);
}

/* モバイル版ビジョンコンテンツ */
.mobile-vision-content {
    padding: 1rem;
}

.mobile-vision-section {
    margin-bottom: 2rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border-left: none;
}

.mobile-vision-title {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0;
    border-bottom: none;
}

.mobile-vision-question {
    font-size: 1rem;
    font-weight: 500;
    color: #0077BE;
    margin-bottom: 0.8rem;
    text-align: center;
}

.mobile-vision-answer {
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: center;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

/* モバイル経営理念 */
.mobile-philosophy-item {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 1rem;
    border-left: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* モバイル版アニメーション */
.mobile-philosophy-item .philosophy-content {
    font-size: 1.1rem;
    background: #ffffff;
    padding: 1rem;
    text-align: left;
    width: 68%;
    flex-shrink: 0;
    line-height: 1.5;
}

.mobile-philosophy-item .philosophy-arrow {
    width: 30px;
    height: 30px;
}

.mobile-philosophy-item .philosophy-conclusion {
    width: 32%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    align-self: center;
    transform: translateY(-13px) translateX(-20px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-philosophy-item.animate-conclusion .philosophy-conclusion {
    opacity: 1 !important;
    transform: translateY(-13px) translateX(0) !important;
}

.mobile-philosophy-item .philosophy-category {
    font-size: 2rem;
}

.mobile-philosophy-item .philosophy-category-multi {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}

.mobile-philosophy-item h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #28a745;
    margin-bottom: 0.5rem;
}

/* モバイル用サブタイトル */
.mobile-subtitle {
    font-size: 0.95rem;
    font-weight: 500;
    color: #0077BE;
    text-align: center;
    margin-bottom: 1rem;
}

.mobile-highlight {
    font-weight: 500;
    color: #e74c3c;
    text-align: center;
    margin-top: 1rem;
}

.mobile-vision-statement {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.vision-main-text {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #2c3e50;
    line-height: 1.8;
    text-align: center;
}

/* ==============================================
   レスポンシブ対応 - タブレット・モバイル
   ============================================== */

/* タブレット対応 */
@media (max-width: 1024px) {
    .vision-content-layout {
        padding: 0.125rem 1rem 1rem 1rem;
        max-width: 800px;
    }
    
    .vision-section-title {
        font-size: 1.3rem;
    }
    
    .vision-question {
        font-size: 1.2rem;
    }
    
    .vision-answer {
        font-size: 1rem;
    }
    
    .kakawaruhito-vision-bottom {
        margin: 1.5rem auto 0 auto;
        width: 100%;
        max-width: 100%;
        max-height: 78px;
        transform: translateY(30px);
    }
}

/* モバイル対応 */
@media (max-width: 1023px) {
    .vision-map-layout {
        padding: 1rem;
    }
    
    .vision-map-logo {
        max-width: 250px;
    }
    
    .pentagon-main {
        max-width: 300px;
    }
    
    .pentagon-text {
        max-width: 150px;
    }
    
    .character {
        max-width: 80px;
    }
    
    .philosophy-main {
        max-width: 300px;
    }
    
    .value-items {
        gap: 1.5rem;
    }
    
    .value-img {
        max-width: 120px;
    }
    
    .mission-text {
        max-width: 250px;
    }
    
    .vision-content-layout {
        padding: 0.125rem 0.5rem 1rem 0.5rem;
        max-width: 100%;
    }
    
    .vision-section {
        margin-top: 2rem;
    }
    
    .vision-section-title {
        font-size: 1.2rem;
    }
    
    /* モバイル版vision-section-titleアニメーション調整 */
    .vision-section-title .title-text {
        transform: translateY(0.8em);
    }
    
    .vision-question {
        font-size: 1.1rem;
    }
    
    .vision-answer {
        font-size: 0.95rem;
    }
    
    .vision-detail-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .vision-detail-section h3 {
        font-size: 1.3rem;
    }
    
    .vision-table th,
    .vision-action-table th,
    .vision-value-table th {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
    
    .vision-table td,
    .vision-action-table td,
    .vision-value-table td {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
    
    .vision-highlight h4 {
        font-size: 1.5rem;
    }
    
    .vision-mission h4 {
        font-size: 1.4rem;
    }
    
    .mobile-vision-section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .vision-map-small {
        width: 100%; /* モバイルでも幅100% */
        max-width: none; /* max-widthの制限を削除 */
    }
    
    .vision-detail-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .vision-content-layout {
        padding: 0.125rem 0.25rem 1rem 0.25rem;
    }
    
    .vision-section-title {
        font-size: 1.1rem;
    }
    
    .vision-question {
        font-size: 1rem;
    }
    
    .vision-answer {
        font-size: 0.9rem;
    }
    
    .detail-column-vision .detail-features[data-layout="vision-specific"] h2 {
        font-size: 1.9rem;
        padding: 0;
        margin-bottom: 2rem;
    }
    
    /* 詳細モーダル内でのkakawaruhito-vision-bottom表示最適化 */
    .detail-modal-content .kakawaruhito-vision-bottom {
        width: 100%;
        max-width: 100%;
        margin: 1rem auto 0 auto;
        max-height: 65px;
        transform: translateY(70px);
    }
} 