/* ==========================================================================
   法人案内ページ専用スタイル
   ========================================================================== */

/* ==========================================================================
   ページヘッダー（共通スタイル）
   ========================================================================== */
.page-header {
    position: relative;
    padding: 100px 0 60px;
    color: white;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 61, 92, 0.85) 0%, rgba(46, 82, 102, 0.85) 100%);
    z-index: 1;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.03"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    z-index: 2;
}

.page-header .container {
    position: relative;
    z-index: 3;
}

.page-title {
    text-align: center;
}

.page-title .title-en {
    display: block;
    font-size: 14px;
    letter-spacing: 0.2em;
    margin-bottom: 8px;
    opacity: 0.8;
    font-weight: 400;
}

.page-title .title-ja {
    display: block;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.breadcrumb {
    text-align: center;
    margin-top: 25px;
    font-size: 13px;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb .separator {
    margin: 0 8px;
    opacity: 0.5;
}

/* ==========================================================================
   セクション共通
   ========================================================================== */
.section-title {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #1976d2;
}

/* ==========================================================================
   理念セクション
   ========================================================================== */
.philosophy-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

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

.philosophy-text {
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.philosophy-text p {
    font-size: 16px;
    line-height: 2;
    color: #555;
    margin-bottom: 20px;
}

.philosophy-text p.emphasis {
    font-size: 20px;
    font-weight: 700;
    color: #1a3d5c;
    margin-bottom: 30px;
}

/* ==========================================================================
   法人名の由来セクション
   ========================================================================== */
.origin-section {
    padding: 60px 0;
    background: white;
}

.origin-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.origin-poem {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 4px solid #1976d2;
}

.origin-poem h3 {
    font-size: 20px;
    color: #1a3d5c;
    margin-bottom: 20px;
    font-weight: 600;
}

.poem-text {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    font-style: italic;
}

/* 縦書き本のコンテナ */
.poem-text-container {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 30px;
    padding: 40px 20px;
    background: linear-gradient(to bottom, #fdfbf7 0%, #f8f6f0 100%);
    border-radius: 8px;
    box-shadow: inset 0 0 20px rgba(139, 69, 19, 0.05);
    min-height: 450px;
    align-items: flex-start;
}

/* 縦書きスタイル */
.poem-text-vertical {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-style: normal;
    font-size: 20px;
    line-height: 2.2;
    letter-spacing: 0.15em;
    padding: 20px 15px;
    min-height: 350px;
    display: inline-block;
    margin: 0;
    border-right: 1px solid rgba(139, 69, 19, 0.1);
}

.poem-text-vertical:first-child {
    border-right: 2px solid rgba(139, 69, 19, 0.2);
}

/* 1文字ずつ表示されるアニメーション */
.poem-text-vertical span {
    display: inline-block;
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInChar 0.6s ease forwards;
}

@keyframes fadeInChar {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.origin-meaning {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* ==========================================================================
   役員紹介セクション
   ========================================================================== */
.directors-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.directors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.director-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 30px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.director-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.director-image {
    flex-shrink: 0;
}

.director-image img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e8e8e8;
}

.director-info {
    flex: 1;
}

.director-info h3 {
    font-size: 22px;
    color: #1a3d5c;
    margin-bottom: 5px;
    font-weight: 600;
}

.position {
    font-size: 14px;
    color: #1976d2;
    margin-bottom: 20px;
    font-weight: 500;
}

.qualifications,
.biography {
    margin-bottom: 15px;
}

.qualifications h4,
.biography h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.qualifications p,
.biography p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* ==========================================================================
   法人概要セクション
   ========================================================================== */
.company-profile-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, white 0%, #f8f9fa 100%);
}

.company-info {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.company-info dl {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.company-info dt {
    font-weight: 600;
    color: white;
    padding: 15px 30px;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    font-size: 14px;
    letter-spacing: 0.05em;
    position: relative;
}

.company-info dt::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #1565c0;
}

.company-info dd {
    padding: 25px 30px 30px;
    background: #fafbfc;
    color: #444;
    margin: 0 0 2px 0;
    font-size: 15px;
    line-height: 1.8;
    position: relative;
}

.company-info dd:hover {
    background: #f5f6f8;
}

/* グループ総称・法人名を強調 */
.company-info dd:first-of-type,
.company-info dd:nth-of-type(2) {
    font-size: 16px;
    font-weight: 500;
    color: #1a3d5c;
}

/* 事業内容リスト */
.company-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.company-info ul li {
    position: relative;
    padding-left: 28px;
    padding-right: 15px;
    background: white;
    padding: 12px 12px 12px 35px;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.company-info ul li:hover {
    background: #e3f2fd;
    border-color: #1976d2;
    transform: translateX(5px);
}

.company-info ul li::before {
    content: '✓';
    position: absolute;
    left: 12px;
    color: #1976d2;
    font-weight: 700;
    font-size: 16px;
}

/* 資格者情報の見やすさ向上 */
.company-info dd:has(br) {
    line-height: 2;
}

/* 連絡先リンク */
.company-info a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.company-info a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #1976d2;
    transition: width 0.3s ease;
}

.company-info a:hover::after {
    width: 100%;
}

/* 連絡先の注意喚起を強調 */
.contact-warning {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    color: #b91c1c;
    background: #fdecea;
    border: 1px solid #f5c2c7;
    border-radius: 6px;
    font-weight: 700;
}

/* アイコン付き情報表示 */
.company-info dd a[href^="tel:"]::before {
    content: '📞';
    margin-right: 5px;
}

.company-info dd a[href^="mailto:"]::before {
    content: '✉️';
    margin-right: 5px;
}

/* ==========================================================================
   グループ一覧セクション
   ========================================================================== */
.group-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.group-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.group-item {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
}

.group-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #1976d2;
}

.group-item h3 {
    color: #1a3d5c;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.group-item .description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.group-item .contact {
    font-size: 15px;
    color: #555;
    margin-bottom: 10px;
}

.website-link {
    display: inline-block;
    color: #1976d2;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.website-link:hover {
    color: #1565c0;
    transform: translateX(5px);
}

/* ==========================================================================
   CTA セクション
   ========================================================================== */
.service-cta {
    padding: 60px 0;
    background: linear-gradient(135deg, #1a3d5c 0%, #2e5266 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 32px;
    margin-bottom: 18px;
    line-height: 1.5;
    font-weight: 600;
}

.cta-content p {
    font-size: 16px;
    margin-bottom: 35px;
    opacity: 0.9;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: #4ade80;
    color: #1a3d5c;
}

.cta-button.primary:hover {
    background: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background: white;
    color: #1a3d5c;
}

/* ==========================================================================
   レスポンシブ対応
   ========================================================================== */
@media (max-width: 768px) {
    .page-header {
        padding: 80px 0 50px;
    }
    
    .page-title .title-ja {
        font-size: 28px;
    }
    
    .page-title .title-en {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .philosophy-text {
        padding: 30px 20px;
    }
    
    .philosophy-text p.emphasis {
        font-size: 18px;
    }
    
    .directors-grid {
        grid-template-columns: 1fr;
    }
    
    .director-card {
        flex-direction: column;
        text-align: center;
    }
    
    .director-image img {
        margin: 0 auto;
    }
    
    /* 法人概要モバイル対応 */
    .company-info {
        border-radius: 12px;
    }
    
    .company-info dt {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .company-info dt::after {
        left: 20px;
    }
    
    .company-info dd {
        padding: 20px;
        font-size: 14px;
    }
    
    .company-info ul {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .company-info ul li {
        padding: 10px 10px 10px 32px;
    }
    
    .group-list {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 26px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    /* 縦書き本のレイアウト - モバイル対応 */
    .poem-text-container {
        gap: 15px;
        padding: 30px 15px;
        min-height: 300px;
        overflow-x: auto;
    }
    
    .poem-text-vertical {
        font-size: 18px;
        line-height: 2;
        letter-spacing: 0.1em;
        padding: 15px 10px;
        min-height: 250px;
    }
}