@charset "UTF-8";

/* =========================================================
   ABOUT：社名の由来（#story）
   - 旧トップページ sec01 の本文を移設
   - main.css は1年キャッシュのため別ファイルで読み込み
   - レイアウト（.sec__flexbox / .sec__navlist）は main.css の #about 共通スタイルを使用
   ========================================================= */

#about #story {
    padding: 0 0 160px
}

/* 直後の企業理念との区切り */
#about #sec01 {
    padding-top: 140px;
    border-top: 1px solid #efefef
}

#about .story__en {
    margin-bottom: 20px
}

#about .story__ja {
    margin-bottom: 60px
}

/* キャッチコピー */
#about .story__catch {
    margin-bottom: 70px
}

#about .story__catch-en {
    font-family: "Jost", sans-serif;
    font-weight: 600;
    font-size: 56px;
    line-height: 1.1;
    letter-spacing: 2px;
    color: #231815;
    margin-bottom: 16px
}

#about .story__catch-ja {
    font-size: 20px;
    letter-spacing: 4px;
    color: #231815
}

/* ロゴマーク＋本文 */
#about .story__body {
    display: flex;
    align-items: center;
    border-top: 1px solid #231815;
    padding-top: 60px
}

/* ロゴマークは本文の高さに対して上下中央・カラム内で左右中央 */
#about .story__body-mark {
    width: 34%;
    display: flex;
    justify-content: center;
    align-items: center
}

#about .story__text {
    width: 66%
}

#about .story__text p {
    font-size: 16px;
    line-height: 2.2;
    margin-bottom: 2.2em;
    color: #231815
}

#about .story__text p:last-child {
    margin-bottom: 0
}

#about .story__text .story__text-em {
    font-size: 20px;
    font-weight: 600
}

/* 句の途中で改行させない（スマホで「い。」だけが1行に落ちるのを防ぐ） */
#about .story__nw {
    display: inline-block
}

/* ---------- ロゴマークのアニメーション（線を描く → 塗りつぶす） ---------- */
#about .story__mark {
    display: block;
    width: 192px;
    height: auto;
    overflow: visible
}

/* JSが動く前・動かない環境では、塗りつぶした完成形を表示 */
#about .story__mark path {
    fill: #231815;
    stroke: #231815;
    stroke-width: 0
}

/* JSが .is-ready を付けたら、線だけの初期状態にする */
#about .story__mark.is-ready path {
    fill-opacity: 0;
    stroke-width: .147; /* 表示上1px（viewBox幅28.2 ÷ 表示幅192px） */
    stroke-dasharray: 1;
    stroke-dashoffset: 1
}

/* 画面に入ったら .is-play で再生 */
#about .story__mark.is-play path {
    -webkit-animation: storyMarkDraw 1.1s ease-out forwards, storyMarkFill .5s ease-out forwards;
    animation: storyMarkDraw 1.1s ease-out forwards, storyMarkFill .5s ease-out forwards
}

#about .story__mark.is-play path:nth-child(1) {
    -webkit-animation-delay: 0s, 1.3s;
    animation-delay: 0s, 1.3s
}

#about .story__mark.is-play path:nth-child(2) {
    -webkit-animation-delay: .15s, 1.4s;
    animation-delay: .15s, 1.4s
}

#about .story__mark.is-play path:nth-child(3) {
    -webkit-animation-delay: .3s, 1.5s;
    animation-delay: .3s, 1.5s
}

#about .story__mark.is-play path:nth-child(4) {
    -webkit-animation-delay: .45s, 1.6s;
    animation-delay: .45s, 1.6s
}

@-webkit-keyframes storyMarkDraw {
    to {
        stroke-dashoffset: 0
    }
}

@keyframes storyMarkDraw {
    to {
        stroke-dashoffset: 0
    }
}

@-webkit-keyframes storyMarkFill {
    to {
        fill-opacity: 1;
        stroke-width: 0
    }
}

@keyframes storyMarkFill {
    to {
        fill-opacity: 1;
        stroke-width: 0
    }
}

/* 動きを減らす設定の端末では、アニメーションせず完成形を表示 */
@media (prefers-reduced-motion: reduce) {

    #about .story__mark.is-ready path,
    #about .story__mark.is-play path {
        -webkit-animation: none;
        animation: none;
        fill-opacity: 1;
        stroke-width: 0;
        stroke-dashoffset: 0
    }
}

/* ---------- タブレット・スマホ ---------- */
@media (max-width:1024px) {
    #about .story__catch-en {
        font-size: 46px
    }

    #about .story__mark {
        width: 150px
    }

    #about .story__mark.is-ready path {
        stroke-width: .188 /* 表示上1px（28.2 ÷ 150px） */
    }
}

@media (max-width:834px) {
    #about #story {
        padding: 0 0 80px
    }

    #about #sec01 {
        padding-top: 80px
    }

    #about .story__ja {
        margin-bottom: 36px
    }

    #about .story__catch {
        margin-bottom: 40px
    }

    #about .story__catch-en {
        font-size: 34px
    }

    #about .story__catch-ja {
        font-size: 15px;
        letter-spacing: 2px
    }

    #about .story__body {
        display: block;
        padding-top: 36px
    }

    #about .story__body-mark {
        width: 100%;
        margin-bottom: 40px
    }

    #about .story__mark {
        width: 120px
    }

    #about .story__mark.is-ready path {
        stroke-width: .235 /* 表示上1px（28.2 ÷ 120px） */
    }

    #about .story__text {
        width: 100%
    }

    #about .story__text p {
        font-size: 14px;
        line-height: 2
    }

    #about .story__text .story__text-em {
        font-size: 16px
    }
}
