/* ==================================== */
/* 1. ヘッダー・ナビゲーション (nav.cssから統合) */
/* ==================================== */
/* ヘッダー */
header img {
    width: 12vw;
    height: auto;
    margin-top: 8px;
}

header .setting-icon {
    width: 30px;
    height: auto;
    margin: 0;
    background: #444;
    border-radius: 145px;
    padding: 8px;
}

.c-header {
    z-index: 999;
    align-items: center;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1.25rem;
    width: 95%;
    border-radius: 15px;
    height: 60px;
    margin: 0 2.5%;
    top: 1.5vw;
}

.c-header__logo {
    color: #444;

    min-width: 80px;

    text-decoration: none;
}

.c-header__list {
    box-sizing: border-box;
    display: flex;
    margin: 0;
    padding: 0;
}

.c-header__list-item {
    list-style: none;
    text-decoration: none;
}

.c-header__list-item span {
    background: #2A98BA;
    color: white;
    padding: 0.6vw;
    border-radius: 50px;
}

.c-header__list-link {
    color: #444;
    display: block;
    margin-right: 20px;
    text-decoration: none;
    padding: 15px 0px;
    font-size: 0.75rem;
    font-weight: bold;
}

.c-header__list-link:hover {
    filter: opacity(0.6);

}

.c-hamburger-menu {
    position: fixed;
}

@media screen and (max-width: 750px) {
    .c-hamburger-menu__list {
        background-color: white;
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        left: 0;
        padding: 2rem;
        position: absolute;
        transform: translateX(-105%);
        transition: 0.3s;
        top: 100%;
        width: 100%;
        z-index: 1;
    }

    #hamburger:checked~.c-hamburger-menu__list {
        transform: translateX(0%);
        transition: 0.3s;
    }

    .c-header {
        padding: 0;

    }

    header img {
        width: 30vw;
    }
}

.c-hamburger-menu__input {
    display: none;
}

.c-hamburger-menu__bg {
    background-color: #000;
    cursor: pointer;
    display: none;
    height: 100vh;
    left: 0;
    opacity: 0.4;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -1;
}

#hamburger:checked~.c-hamburger-menu__bg {
    display: block;
}

.c-hamburger-menu__button {
    display: none;
}

.c-hamburger-menu__button-mark {
    background-color: #000;
    display: block;
    height: 1px;
    transition: 0.3s;
    width: 20px;
}

@media screen and (max-width: 750px) {
    #hamburger:checked~.c-hamburger-menu__button .c-hamburger-menu__button-mark:nth-of-type(1) {
        transform: translate(2px, 1px) rotate(45deg);
        transform-origin: 0%;

    }

    #hamburger:checked~.c-hamburger-menu__button .c-hamburger-menu__button-mark:nth-of-type(2) {
        opacity: 0;
    }

    #hamburger:checked~.c-hamburger-menu__button .c-hamburger-menu__button-mark:nth-of-type(3) {
        transform: translate(2px, 3px) rotate(-45deg);
        transform-origin: 0%;

    }

    .c-hamburger-menu__button {
        align-items: center;
        appearance: none;
        background-color: transparent;
        border: none;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 5px;
        height: 32px;
        justify-content: center;
        width: 32px;
    }
}


/* ==================================== */
/* 2. ファーストビュー (F/V) */
/* ==================================== */
.firstview_ful {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    /* 水平中央揃え */
    align-items: center;
    /* 垂直中央揃え */
    min-height: 500px;
}

/* メインキャッチコンテナ：要素の横並びを定義 */
.main-catch {
    color: #444444;
    display: flex;

    /* ⭐ 中央揃え対策: 幅を制限し、margin: auto でこのブロック自体を中央に配置 */
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;

    /* 要素間のスペースを均等にし、左右のバランスを取る */
    justify-content: space-between;
    align-items: center;
}

/* h1 (PCスタイル) */
.main-catch h1 {
    margin-right: 80px;
    /* ⭐ サイズ安定化: 固定のremサイズに設定 */
    font-size: 4rem;
    text-align: left;

    /* 画像と均等な幅を確保 */
    width: 45%;
    flex-shrink: 0;
}

/* 画像 (PCスタイル) */
.main-catch img {
    /* ⭐ サイズ安定化: widthを%に設定 */
    width: 50%;
    max-width: 600px;
    height: auto;
}

/* F/V SP Media Query */
@media screen and (max-width: 768px) {
    .firstview_ful {
        height: auto;
        min-height: 60vh;
        padding: 50px 0;
    }

    /* メインキャッチコンテナ：縦積みに変更し、全体を中央に寄せる */
    .main-catch {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        font-size: 1.5rem;
    }

    /* h1 (SPスタイル)：マージンと幅を調整 */
    .main-catch h1 {
        margin: 40px 0 20px 0;
        font-size: 2.7rem;
        text-align: center;
        width: auto;
        /* PCの固定幅指定を解除 */
    }

    /* 画像 (SPスタイル)：幅を確実に設定 */
    .main-catch img {
        width: 90vw;
        /* 画面幅の90%に設定し、過度な広がりを防ぐ */
        height: auto;
    }
}

/* ==================================== */
/* 3. SERVICE */
/* ==================================== */
.service-flex {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    row-gap: 30px;
}

.service-box {
    padding: 20px;
    width: 49%;
    row-gap: 20px;
    text-align: center;
    box-sizing: border-box;
    margin-top: 10px;
    box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    background-color: white;
}

.service-box p span {
    background-color: rgb(69, 149, 161);
    color: white;
    padding: 2px 5px 3px 5px;
    font-weight: 400;
    border-radius: 7px;
}

.service-box p {
    text-align: left;
    line-height: 1.8;
}

.service-box img {
    width: auto;
    height: 13vw;
}

/* SERVICE SP Media Query */
@media screen and (max-width: 768px) {
    .service-flex {
        flex-direction: column;
    }

    .service-box {
        width: 100%;
        margin: auto;
    }

    .service-box img {
        width: 100%;
        height: auto;
    }
}

/* ==================================== */
/* 4. ABOUT & SKILL */
/* ==================================== */
.about-flex {
    display: flex;
    margin: 0 auto;
    justify-content: center;
}

.about-txt {
    margin-right: 30px;
    width: 70%;
    line-height: 1.8;
}

.about-box img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

ul.skill-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: auto;
    padding: 0;
    width: 75%;
    justify-content: center;
    /* 中央寄せ */
}

li.skill-img {
    width: 21%;
    margin: 2%;
    height: auto;
    text-align: center;
}

li img {
    width: 100%;
    height: auto;
}

/* ABOUT SP Media Query */
@media screen and (max-width: 768px) {
    .about-flex {
        flex-direction: column-reverse;
    }

    .about-box {
        width: 100%;
        margin: auto;
    }

    .about-box img {
        width: 60%;
        margin: 0px 20% 50px 20%;
        border-radius: 100%;
    }

    .about-txt {
        width: 100%;
        margin: auto;
    }
}

/* ==================================== */
/* 5. PRICE/PLAN & CONTACT */
/* ==================================== */

/* 料金表 */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-family: "Hiragino Sans", "游ゴシック体", sans-serif;
    font-size: 1rem;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.price-table caption {
    background: #4e73df;
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    text-align: left;
    padding: 12px 16px;
}

.price-table th,
.price-table td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #f5f5f5;
    color: #444;
}

.price-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    width: 35%;
}

.price-option {
    display: block;
    font-size: 0.9em;
    color: #555;
    margin-top: 4px;
}

/* 料金表 SP Media Query */
@media (max-width: 640px) {

    .price-table,
    .price-table thead,
    .price-table tbody,
    .price-table th,
    .price-table td,
    .price-table tr {
        display: block;
        width: 100%;
    }

    .price-table caption {
        font-size: 1.1em;
    }

    .price-table tr {
        margin-bottom: 1rem;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
        overflow: hidden;
    }

    .price-table th {
        background: #f5f5f5;
        width: 100%;
        display: block;
        border: none;
        padding: 8px 16px;
        font-weight: bold;
    }

    .price-table td {
        display: block;
        width: 100%;
        border: none;
        padding: 8px 16px;
    }
}

/* プラン (planarea) */
.plan-box {
    width: 33%;
    text-align: center;
    box-sizing: border-box;
    margin-top: 10px;
    box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    background-color: white;
}

.option-box {
    margin-top: 20px;
}

.option01 {
    background: #9ca3af;
    width: 90%;
    margin: auto;
    padding: 10px 0;
    color: white;
}

.plan-box p {
    text-align: center;
    padding: 20px;
    margin: 0;
}

.plan-name {
    background-color: rgb(69, 149, 161);
    padding: 2%;
    color: #fff;
    border-radius: 10px;
    margin-bottom: 20px;
}

.price {
    color: darkcyan;
    font-size: 2vw;
}

/* CONTACT */
.contact {
    background: #4e73df;
    padding: 50px 0 30px 0;
    text-align: center;
}

.contact a {
    background: white;
    padding: 10px 50px;
    border: solid 2px white;
    color: #4e73df;
    transition: .4s cubic-bezier(0.37, 0, 0.63, 1);
    border-radius: 10px;
}

.contact a:hover {
    background: #fff;
    color: #ff701e;
    letter-spacing: 0.15em;
}

.white-text {
    color: #fff;
    margin-top: 40px;
    font-size: 1rem;
}


/* ==================================== */
/* 6. FOOTER */
/* ==================================== */
.footer {
    padding: 2rem;
    font-size: 15px;
    background: #1d1e22;
    color: #9ca3af;
}

.footer__navi {
    flex-wrap: wrap;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.footer__navi li {
    display: inline-block;
}

.footer__navi li:not(:last-child) {
    margin-right: 16px;
}

.footer__logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer__navi li {
    font-size: 0.75rem;
}

.footer__navi li a:hover {
    color: #fff;
}

.footer__social a {
    display: inline-block;
    width: 24px;
    opacity: 0.7;
}

.footer__social a:not(:last-child) {
    margin-right: 16px;
}

@media (min-width: 768px) {
    .md-flex {
        display: flex;
    }

    .md-justify-between {
        justify-content: space-between;
    }

    .copyright {
        text-align: left;
    }
}


/* ==================================== */
/* 7. WORKSセクション関連のCSS */
/* ==================================== */

/* WORKSへのリンクボタンは残します */
.works-link {
    display: block;
    background: #4e73df;
    padding: 10px 50px;
    color: white;
    border-radius: 10px;
    width: fit-content;
    margin: 30px auto 0 auto;
    text-decoration: none;
    transition: 0.3s;
}

.works-link:hover {
    filter: opacity(0.8);
}

/* ==================================== */
/* 8. SLICK SLIDER 正常動作用の軽微上書き（安全版） */
/* ==================================== */

/* スライダーコンテナ */
.sliderArea {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    box-sizing: border-box;
}

/* slick-list は slick が管理するため、ここでは最低限の指定のみ */
.sliderArea .slick-list {
    overflow: hidden;
}

/* slick-slide は slick の width 計算に任せる */
.sliderArea .slick-slide {
    box-sizing: border-box;
    margin: 0 10px;
}

/* slick-track は JSがwidthを計算するので変更不要 */
.sliderArea .slick-track {
    display: block;
}

/* スライド内の画像を整える */
.sliderArea img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* ==================================== */
/* 9. SLICK スライダー用ボタン・ドット表示設定 */
/* ==================================== */

/* 矢印ボタン */
.slick-prev,
.slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

.slick-prev:hover,
.slick-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slick-prev {
    left: 10px;
}

.slick-next {
    right: 10px;
}

/* ドットナビゲーション */
.slick-dots {
    bottom: -30px;
    text-align: center;
}

.slick-dots li button:before {
    font-size: 10px;
    color: #888;
    opacity: 1;
}

.slick-dots li.slick-active button:before {
    color: #4e73df;
    /* アクティブ色（お好みで変更） */
}
