/* ========================================
   会社概要ページ専用スタイル
   ======================================== */

/* ========================================
   パンくずリスト
   ======================================== */
.breadcrumb-section {
    margin-top: 90px;
    padding: 10px 0;
    background-color: var(--bg-light);
}

.breadcrumb {
    margin: 0;
    padding: 0;
    background-color: transparent;
}

.breadcrumb ol {
    display: flex;
    gap: 10px;
    list-style: none;
    align-items: center;
    font-size: 14px;
}

.breadcrumb ol li {
    display: flex;
    align-items: center;
}

.breadcrumb ol li:not(:last-child)::after {
    content: '›';
    margin-left: 10px;
    color: var(--text-gray);
    font-size: 16px;
}

.breadcrumb ol li a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb ol li a:hover {
    opacity: 0.7;
}

.breadcrumb ol li:last-child {
    color: var(--text-gray);
}

/* ========================================
   ヒーローセクション（パターン1: 施工写真 + オーバーレイ）
   ======================================== */
.company-hero {
    position: relative;
    padding: 120px 0 80px;
    background:
        linear-gradient(135deg, rgba(3, 107, 252, 0.9) 0%, rgba(5, 137, 255, 0.85) 100%),
        url('img/hero-bg.png');
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: white;
    text-align: center;
    overflow: hidden;
    border-bottom: 4px solid;
    border-image: linear-gradient(90deg, #D0A900 0%, #F5D76E 50%, #D0A900 100%);
    border-image-slice: 1;
}

.page-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.page-title-en {
    font-family: var(--font-en);
    font-size: 18px;
    letter-spacing: 0.3em;
    opacity: 0.9;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

/* ========================================
   メインコンテンツセクション
   ======================================== */
.main-content-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
    align-items: start;
}

/* ========================================
   左カラム：メインコンテンツ
   ======================================== */
.content-column {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.content-block {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.content-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: none;
    position: relative;
}

/* 左寄せのタイトルのみに適用 */
.content-title:not([style*="text-align: center"]) {
    overflow: visible;
}

/* 水平ライン部分 */
.content-title:not([style*="text-align: center"])::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #D0A900 0%, #FFF9E6 100%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 斜め上がりライン部分 */
.content-title:not([style*="text-align: center"])::after {
    content: '';
    position: absolute;
    left: 150px;
    bottom: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #D0A900 0%, #FFF9E6 100%);
    transform-origin: left bottom;
    transform: rotate(25deg);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.6s;
    box-shadow:
        0 0 8px rgba(208, 169, 0, 0.4),
        0 2px 4px rgba(208, 169, 0, 0.3);
}

/* アニメーション発動時 */
.content-title.animate-in:not([style*="text-align: center"])::before {
    width: 150px;
}

.content-title.animate-in:not([style*="text-align: center"])::after {
    width: 40px;
}

/* 会社情報テーブル */
.company-info-table {
    display: flex;
    flex-direction: column;
}

.info-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.info-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.info-value {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
}

.info-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-link:hover {
    color: var(--accent-color);
}

/* 事業内容 */
.business-content {
    padding: 10px 0;
}

.business-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.business-list li {
    padding: 15px 0 15px 30px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    font-size: 15px;
    color: var(--text-gray);
}

.business-list li:last-child {
    border-bottom: none;
}

.business-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* 沿革 */
.history-content {
    padding: 10px 0;
}

.history-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 30px;
    padding: 20px 0;
    border-left: 3px solid var(--primary-color);
    padding-left: 30px;
    margin-left: 10px;
    position: relative;
}

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

.history-year {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-en);
}

.history-description {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* 取引先 */
.clients-content {
    padding: 10px 0;
}

.clients-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.clients-list li {
    padding: 15px 20px;
    background-color: var(--bg-light);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-gray);
    border-left: 3px solid var(--primary-color);
}

/* アクセス */
.access-content {
    padding: 10px 0;
}

.access-info {
    margin-bottom: 30px;
}

.access-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    margin-top: 20px;
}

.access-subtitle:first-child {
    margin-top: 0;
}

.access-address {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
    margin: 0;
}

.access-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.access-list li {
    padding: 10px 0 10px 25px;
    font-size: 15px;
    color: var(--text-gray);
    position: relative;
}

.access-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.map-note {
    margin-top: 15px;
    font-size: 13px;
    color: var(--text-gray);
    text-align: center;
    font-style: italic;
}

.access-contact {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
    margin: 15px 0 0 0;
}

/* ========================================
   右カラム：サイドバー
   ======================================== */
.sidebar-column {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

/* サイドバーナビゲーション */
.sidebar-nav {
    margin: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu li a {
    display: block;
    padding: 12px 15px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 15px;
    position: relative;
    padding-left: 35px;
}

.sidebar-menu li a::before {
    content: '▸';
    position: absolute;
    left: 15px;
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding-left: 35px;
}

.sidebar-menu li a:hover::before {
    opacity: 1;
}

.sidebar-menu li.current a {
    background-color: var(--primary-color);
    color: white;
}

.sidebar-menu li.current a::before {
    color: white;
    opacity: 1;
}

/* サブメニュー */
.sidebar-menu .has-submenu>a {
    position: relative;
}

.sidebar-menu .has-submenu>a::after {
    content: '▼';
    position: absolute;
    right: 15px;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.sidebar-menu .has-submenu.open>a::after {
    transform: rotate(180deg);
}

.sidebar-menu .submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sidebar-menu .submenu li {
    margin-bottom: 3px;
}

.sidebar-menu .submenu li a {
    font-size: 13px;
    padding: 8px 15px 8px 45px;
    color: var(--text-gray);
}

.sidebar-menu .submenu li a::before {
    content: '−';
    left: 30px;
}

.sidebar-menu .submenu li a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* お問い合わせウィジェット */
.contact-widget {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
}

.contact-widget .sidebar-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.widget-contact-info {
    text-align: center;
}

.widget-text {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.widget-phone {
    display: block;
    font-size: 24px;
    font-weight: 700;
    font-family: var(--font-en);
    color: white;
    text-decoration: none;
    margin-bottom: 10px;
    transition: opacity 0.3s ease;
}

.clients-list a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    border-bottom: 1px dotted currentColor;
}

.clients-list a:hover {
    color: var(--accent-color);
    border-bottom-style: solid;
}

.widget-phone:hover {
    opacity: 0.8;
}

.widget-hours {
    font-size: 12px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.widget-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.widget-button:hover {
    background-color: #ff8555;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* ========================================
   レスポンシブ対応
   ======================================== */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sidebar-column {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .info-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .clients-list {
        grid-template-columns: 1fr;
    }

    .history-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 36px;
    }

    .page-title-en {
        font-size: 14px;
    }

    .main-content-section {
        padding: 50px 0;
    }

    .content-block {
        padding: 30px 20px;
    }

    .sidebar-column {
        grid-template-columns: 1fr;
    }

    .content-title {
        font-size: 20px;
    }
}

/* ========================================
   アニメーション
   ======================================== */
.content-block {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.content-block:nth-child(1) {
    animation-delay: 0.1s;
}

.content-block:nth-child(2) {
    animation-delay: 0.2s;
}

.content-block:nth-child(3) {
    animation-delay: 0.3s;
}

.content-block:nth-child(4) {
    animation-delay: 0.4s;
}

.content-block:nth-child(5) {
    animation-delay: 0.5s;
}

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

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

/* ========================================
   代表挨拶
   ======================================== */
.president-message p {
    margin-bottom: 30px;
    line-height: 2.2;
    text-align: justify;
}

.president-message p:last-of-type {
    margin-bottom: 50px;
}

.president-signature {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    margin-top: 30px;
}

.president-title {
    font-size: 1.2em;
    font-weight: 500;
    margin-bottom: 15px;
    /* 画像の下端より少し上に配置するための余白 */
    letter-spacing: 0.1em;
}

.signature-image {
    display: block;
    max-width: 200px;
    height: auto;
}