﻿/* topimage */
body {
  background-color: #DFE9F1;
}

.topimage-bg {
    position: relative;
    width: 100vw;
    height: 416px;
    background: url("../images/About01.png") no-repeat center center;
    background-size: cover;
    z-index: 10;
}
@media (max-width: 480px) {
  .topimage-bg {
    margin-top: 20px;  
  }
}

.topimage-bg::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(41, 119, 138, 0.35); 
  z-index: 20;
}

.topimage-title1{
  position: absolute;
  font-weight: 700;
  font-size: 44px;
  margin-top: 137px; 
  margin-left: 65px;
  color: #FFFFFF;
  z-index: 30;
}

.topimage-title2{
  position: absolute;
  font-weight: 500;
  font-size: 22px;
  margin-top: 199px; 
  margin-left: 65px;
  color: #FFFFFF;
  z-index: 30;
}

/* 600px以下の時 */
@media screen and (max-width: 600px) {
    .topimage-bg {
        width: 100vw;
        height: 145px;
    }

    .topimage-title1 {
        font-size: 22px;
        margin-top: 50px;
        margin-left: 20px;
    }

    .topimage-title2 {
        font-size: 11px;
        margin-top: 90px;
        margin-left: 20px;
    }
}

/*　会社概要　*/
.container {
    position: relative;
    width: 1320px;
    height: 2744px;
    /* 背景画像Bが前面、背景色Aが背面 */
    background-image: url("../images/About02.png"), linear-gradient(#FFFFFF, #FFFFFF);
    background-repeat: no-repeat, no-repeat;
    background-position: left bottom, left top;
    background-size: 1320px 486px, 1320% 2744%;
}

.content {
    position: relative; /* これで z-index の文脈を作れる */
    z-index: 1; /* 背景画像より前に出す */
    display: grid;
    margin-top: 50px;
    width: 1320px;
    grid-template-columns: repeat(12, 1fr);
}

.main_AboutUs {
    grid-column: span 3;
    margin-left: 75px;
    margin-top: 40px;
    font-size: 22px;
    
}

.sidebar {
    grid-column: span 9;
    margin-top: 40px;
    font-size: 22px;
    display: flex;
    flex-direction: column;
}

.info-map-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.info {
    flex: 1;
    font-size: 18px;   
    padding-right: 20px;
}

.map-wrapper {
    width: 35%; /* 必要に応じて調整 */
    max-width: 400px;
    margin-right: 80px;
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
}


.content_line {
    grid-column: 1 / -1; /* ← 12列全体にまたがる */
    border-bottom: 1px solid #E4E4E4;
    margin: 10px auto 0;
    padding-bottom: 20px;
    width: 1178px;
}

.contact-link_AboutUs {
    font-size: 18px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 16px 0;
}

.access-button {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    background-color: #1d4ed8;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 16px;
}

    .access-button .icon {
        width: 20px;
        height: 20px;
        fill: white;
        margin-left: 8px;
    }

.gamennwake {
    display: flex;
    margin-top: 142px;
    letter-spacing: 0.06em;
    font-weight: 600;
}

p {
    font-size: 22px;
    font-weight: 400;
    padding: 0px 0px 24px 0px;
}

.access-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* テキストとアイコンの間隔 */
    padding: 8px 16px;
    background-color: #2563eb; /* 青系 */
    color: white;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 200px; /* 任意幅、なくても可 */
}

    .access-button:hover {
        background-color: #1d4ed8; /* 少し濃い青に */
    }

.icon {
    width: 16px;
    height: 16px;
    fill: currentColor; /* テキストと同じ色にする */
}

:root {
    --size-lr-graph: 1000px;
    --size-left: 75%;
    --size-right: 75%;
    --size-middle-width: 30px;
    --size-item-height: 94px;
    --size-item-margin: 20px;
    --box-width-small: 236px;
    --box-width-large: 434px;
    --font-size: 14px;
    --font-color: #000000;
    --font-family: 'Noto Sans JP', sans-serif;
    --border-width: 1px;
    --border-color: #C5C5C5;
    --color-line: #C5C5C5;
}

/* 組織図 */
* {
    box-sizing: border-box;
}

.lr-graph {
    --size-lr-graph: 100%;
    --size-left: 236px;
    --size-right: 236px;
    --size-end: 350px;
    --size-middle-width: 50px;
    --size-item-height: 30px;
    --size-item-mergin: 10px;
    --color-line: #C5C5C5;
}

.lr-graph {
    width: var(--size-lr-graph);
    max-width: 100%;
    display: flex;
    margin: 10px auto;
}

    .lr-graph > * {
        position: relative;
        min-height: calc(var(--size-item-height) + var(--size-item-mergin));
    }

    .lr-graph > .left {
        text-align: right;
    }

    .lr-graph > .right {
        text-align: left;
    }

    .lr-graph > .left,
    .lr-graph > .right {
        display: block;
    }

    .lr-graph > .left {
        width: calc(var(--size-left) - var(--size-middle-width) / 3);
    }

    .lr-graph > .right {
        width: calc(var(--size-right) - var(--size-middle-width) / 3);
    }

    .lr-graph > .end {
  width: var(--size-end);

    }
    

    .lr-graph > .middle {
        width: var(--size-middle-width);
    }

        .lr-graph > .middle:first-child {
            display: none;
        }

    .lr-graph .item {
        display: block;
        height: 150px;
        line-height: var(--size-item-height);
        text-align: center;
        width: 100%;
        position: relative;
        font-size: 18px;
        font-weight: bold;
        color: #000000;
    }

        /* ボックスの中　指定 */
        .lr-graph .item .plate {
            border: 1px solid #c4c3c3;
            width: 100%;
            height: auto;
            padding: 15px;
            border-radius: 0;
            position: absolute;
            top: 50%;
            left: 0;
            transform: translateY(-50%);
            background-color: #FFFFFF;
        }

    /* 1階層　ボックス内余白指定 */
    .lr-graph > .left .plate {
        padding: 20px 20px; /* ← 上下20px 左右20px */
    }

    /* 2階層　ボックス内余白指定 */
    .lr-graph > .right .plate {
        padding: 20px 20px;
    }

    /* 3階層　ボックス内余白指定 */
    .lr-graph > .end .plate {
        padding: 8px 10px; 
    }

        /* left */
        .lr-graph > .left .item {
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
    }

    .lr-graph > .right .item {
        display: block;
    }


    /* Middle */
    .lr-graph > .middle {
        display: flex;
    }

        .lr-graph > .middle > * {
            width: 50%;
            height: 100%;
            position: relative;
        }

        .lr-graph > .middle .middle-left .item {
            display: block;
            width: 100%;
            height: 1px;
            position: absolute;
            top: 50%;
            left: 0;
            transform: translateY(-50%);
            background-color: var(--color-line);
        }

        .lr-graph > .middle .middle-right .item .line {
            position: relative;
            height: 100%;
        }

            .lr-graph > .middle .middle-right .item .line::before {
                content: '';
                display: block;
                width: 100%;
                height: 1px;
                background-color: var(--color-line);
                position: absolute;
                top: 50%;
                left: 0;
                transform: translateY(-50%);
            }

            .lr-graph > .middle .middle-right .item .line::after {
                content: '';
                display: block;
                width: 1px;
                height: 100%;
                background-color: var(--color-line);
                position: absolute;
                top: 0;
                left: 0;
            }

        .lr-graph > .middle .middle-right .item:first-child .line::after {
            top: 50%;
            height: 50%;
        }

        .lr-graph > .middle .middle-right .item:last-child .line::after {
            top: 0%;
            height: 50%;
        }

.middle_top {
    display: none;
}

/* スマホ（600px以下）対応 */
@media (max-width: 600px) {
    .container {
        width: 100%;
        height: auto;
        background-size: 100% auto, 100% 100%;
        background-position: center bottom, center top;
        background-repeat: no-repeat, no-repeat;
        padding: 0 16px;
    }

    .content {
        display: block;
        width: 100%;
        padding: 0;
    }

    .main_AboutUs {
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
        font-size: 14px;
        font-weight: bold;
    }

    .sidebar {
        width: 90%;
        margin-left: 30px;
        margin-right: 20px;
        margin-top: 10px;
        font-size: 10px;
    }


    .info-map-wrapper {
        display: flex;
        flex-direction: column;
    }

    .info {
        margin-left: 0px;
        margin-top: 0px;
        font-size: 10px;
        padding-right: 0;
        margin-bottom: 0px;
        order: 1;
    }

    .map-wrapper {
        width: 213px;
        height: auto;
        margin-left: 0px;
        margin-top: 10px;
        order: 3;
    }

    .content_line {
        width: 90%;
    }

    .contact-link_AboutUs {
        font-size: 10px;
        gap: 6px;
        order: 2;
    }

    .access-button {
        width: 80%;
        margin-bottom: 10px;
        font-size: 10px;
        padding: 10px;
        order: 4;
        margin-top: 4px;
    }

    .gamennwake {
        flex-direction: column;
        margin-top: 80px;
        font-size: 10px;
    }

    p {
        font-size: 10px;
    }

    /*　組織図　スマホ版　*/
    .lr-graph > .middle_top .item {
        display: block;
        width: 50%;
        height: 1px;
        position: absolute;
        top: 0;
        left: 0;
        transform: translateY(-50%);
        background-color: var(--color-line);
    }

    .lr-graph > .middle_top:before {
        content: '';
        display: block;
        width: 1px;
        height: 119%;
        background-color: #c4c3c3;
        position: absolute;
        top: -119%;
        left: 50%;
    }

    .lr-graph {
        flex-wrap: wrap;
        --size-middle-width: 50px;
        --size-left-mergin: 20px;
    }

        .lr-graph > .left {
            margin-bottom: var(--size-left-mergin);
			margin-left: -15px;
        }

        .lr-graph > .left,
        .lr-graph > .right,
        .lr-graph > .end {
            width: calc(100% - var(--size-middle-width))
        }

        .lr-graph > .middle:first-child {
            display: block;
            margin-bottom: var(--size-left-mergin);
        }

            .lr-graph > .middle:first-child > * {
                width: 100%;
            }

            .lr-graph > .middle:first-child .middle-right .item:last-child .line::after {
                top: 50%;
                height: calc(50% + var(--size-left-mergin));
            }

        .lr-graph > .middle > .middle-left::after {
            content: '';
            display: block;
            width: 1px;
            height: 50%;
            background-color: var(--color-line);
            position: absolute;
            top: 0;
            left: 0;
        }

        .lr-graph > .middle-top {
            display: block;
            width: 100%;
        }

        .lr-graph > .middle .middle-top > .item {
            display: block;
        }


        .lr-graph .item .plate {
            font-size: 14px;
            font-weight: bold;
            color: #000000;
        }

            .lr-graph .item .plate p {
                font-size: 10px;
                color: #000000;
                font-weight: 400;
            }
}


    /* 沿革 */
    .container2 {
        position: relative;
        width: 1285px;
        height: 1390px;
        background-image: url("../images/About02.png"), linear-gradient(#FFFFFF, #FFFFFF);
        background-repeat: no-repeat, no-repeat;
        background-position: left bottom, left top;
        background-size: 1300px 486px, 1285% 1390%;
        margin: 50px auto;
    }

    /* 左上タイトル */
    .history {
        max-width: 1285px;
        margin: 10px auto;
        font-family: Noto Sans JP;
        padding: 40px 20px;
    }

        .history h2 {
            font-size: 34px;
            color: #000000;
            font-weight: bold;
            margin-bottom: 30px;
            margin-left: 40px;
            position: relative;
            text-align: left;
        }

            .history h2 span {
                font-size: 20px;
                color: #000000;
                display: block;
                margin-top: 4px;
                margin-left: 0px;
            }

    /* 年表 */
    h1 {
        font-size: 1.875rem;
        font-weight: 800;
        line-height: 1.5;
        margin: 0;
    }

    h2 {
        font-size: 1.5rem;
        font-weight: 700;
        line-height: 1.5;
        margin: 0;
    }

    h3 {
        font-size: 22px;
        font-weight: 500;
        line-height: 1.5;
        margin: 0;
    }

    p {
        font-size: .9rem;
        font-weight: 400;
        line-height: 1.5;
        margin: 0;
    }

    /* Layout components */
    .page-container {
        min-height: 100vh;
        background-color: var(--background);
    }

    .container {
        max-width: 1700px;
        margin: 0 auto;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Main content */
    .main-content {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .content-wrapper {
        max-width: 56rem;
    }

    /* Timeline */
    .timeline {
        position: relative;
    }

    .timeline-line {
        position: absolute;
        left: 222px;
        top: 0;
        bottom: 0;
        width: 3px;
        background-image: linear-gradient(to bottom, #4AA6FF 50%, transparent 50%);
        background-size: 3px 15px;
        background-repeat: repeat-y;
        z-index: 1;
    }

    .timeline-items {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .timeline-item {
        position: relative;
        display: flex;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .timeline-date {
        position: relative;
        width: 20%;
        flex-shrink: 0;
        text-align: right;
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-around;
    }

        .timeline-date .year {
            position: absolute;
            left: 35px;
            top: 0;
            color: #000000;
            font-size: 32px;
            font-weight: 800;
        }

        .timeline-date .month {
            position: absolute;
            left: 170px;
            top: 5px;
            color: #000000;
            font-weight: 500;
            font-size: 22px;
            line-height: 1.5;
        }

    .timeline-dot {
        position: absolute;
        left: 222px;
        top: 12px;
        transform: translate(-50%, 0);
        z-index: 2;
    }

    .dot {
        width: 0.75rem;
        height: 0.75rem;
        background-color: #EC4025;
        border-radius: 50%;
    }

    .timeline-content {
        flex: 1;
        padding-bottom: 2rem;
        margin-left: 40px;
        margin-top: 5px;
    }

        .timeline-content h3 {
            margin-bottom: 0.5rem;
            color: #000000;
            font-weight: 500;
            font-size: 22px;
        }

        .timeline-content p {
            color: var(--muted-foreground);
        }

    /* Footer */
    .footer {
        border-top: 1px solid var(--border);
        background-color: var(--card);
        margin-top: 4rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .footer-text {
        color: var(--muted-foreground);
        font-size: 0.875rem;
        text-align: center;
    }

    /*　沿革　レスポンシブ対応　*/
    @media (max-width: 600px) {
        .container2 {
            width: 100%;
            height: auto;
            padding: 0 16px;
            background-size: 100% auto, 100% 100%;
            background-position: center bottom, center top;
            background-repeat: no-repeat, no-repeat;
        }

        .history {
            padding: 20px 12px;
        }

            .history h2 span {
                font-size: 16px;
            }

        .timeline-line {
            left: 30%; /* ← ドット・縦線の共通位置 */
        }

        .timeline-items {
            gap: 1.5rem;
        }

        .timeline-date {
            width: 30%;
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 6px;
            justify-content: flex-start;
            text-align: left;
            position: relative;
        }

            .timeline-date .year {
                font-size: 18px;
                font-weight: 700;
                display: inline-block;
                width: 45px; /* ←ここがポイント！空でもスペース確保 */
				margin-left: -40px;
            }

            .timeline-date .month {
                font-size: 16px;
                font-weight: 400;
                margin-left: -110px;
            }

        .timeline-dot {
            left: 30%; /* ← timeline-line に合わせる */
        }

        .timeline-content {
            margin-left: 0;
            font-size: 14px;
            padding-bottom: 1.5rem;
        }

            .timeline-content h3 {
                font-size: 12px;
            }

            .timeline-content p {
                font-size: 12px;
            }
    }