/* -------------------------------------
   style.css (最終版)
------------------------------------- */

/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
    padding-top: 60px; /* ヘッダーの高さ（60px）に合わせて調整 */
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
    display: block;
}

/* ユーティリティクラス */
.u-img-pc { display: block; }
.u-img-sp { display: none; }

/* -------------------------------------
   ヘッダー
------------------------------------- */
.l-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.l-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.l-header__logo-link img { height: 40px; }

.l-header__nav { display: flex; }

.l-header__nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.l-header__nav-item a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.l-header__nav-item--cta a {
    color: #fff;
    background-color: #007acc;
    padding: 8px 15px;
    border-radius: 9999px;
    transition: background-color 0.3s ease;
}

.l-header__nav-item--cta a:hover { background-color: #005ea3; }

/* -----------------------------
   ハンバーガーボタン
----------------------------- */
.l-header__hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 45px;
    height: 35px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
}

.l-header__hamburger-btn span {
    display: block;
    height: 4px;
    background-color: #333; /* 色を修正しました */
    border-radius: 2px;
    transition: all 0.3s ease;
}

.l-header__hamburger-btn.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.l-header__hamburger-btn.is-active span:nth-child(2) { opacity: 0; }
.l-header__hamburger-btn.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media screen and (max-width: 767px) {
    .u-img-pc { display: none !important; }
    .u-img-sp { display: block !important; }

    .l-header__nav {
        position: fixed;
        top: 60px;
        right: 0;
        background-color: #fff;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        flex-direction: column;
        padding: 40px 20px;
        box-shadow: -3px 0 6px rgba(0,0,0,0.1);
        z-index: 1001;
    }
    .l-header__nav.is-open { transform: translateX(0); }
    .l-header__nav-list { flex-direction: column; gap: 20px; align-items: center; text-align: center; }
    .l-header__nav-item a { font-size: 16px; }
    .l-header__nav-item--cta a { display: inline-block; text-align: center; padding: 9px 30px; border-radius: 9999px; }

    .l-header__hamburger-btn {
        display: flex;
        width: 45px;
        height: 35px;
        padding: 5px;
    }
}

/* -------------------------------------
   ファーストビュー（FV）
------------------------------------- */
.p-fv { position: relative; margin-top: 0; }
.p-fv__main-img-pc, .p-fv__main-img-sp { width: 100%; display: block; }

/* PC版CTAボタン */
.p-fv__cta {
    position: absolute;
    top: 80%;
    left: 26.5%;
    max-width: 400px;
    transform: translate(-50%, -50%);
    display: flex;
}
.p-fv__cta .cta-btn-img { border-radius: 9999px; cursor: pointer; }

/* SP版CTAボタン */
.p-fv-sp-cta-wrapper { position: relative; width: 100%; text-align: center; }
.p-fv-sp-cta-wrapper .p-fv-sp-cta-bg { width: 100%; display: block; }
.p-fv-sp-cta-btn {
    position: absolute;
    top: 60%;
    left: 50%;
    max-width: 350px;
    width: 100%;
    transform: translate(-50%, -50%);
}
.p-fv-sp-cta-btn-img { border-radius: 9999px; cursor: pointer; }

/* -------------------------------------
   サービスセクション
------------------------------------- */
.services { position: relative; margin: 60px 0; text-align: center; }

/* PCサービスボタン個別配置 */
.services__cta {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.services__cta a:nth-child(1) {
    position: absolute;
    top: 83%;
    left: 18%;
    width: 300px;
}
.services__cta a:nth-child(2) {
    position: absolute;
    top: 82.5%;
    left: 61%;
    width: 300px;
}

/* SPサービスボタン個別配置 */
.services__cta-sp {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.services__cta-sp a:nth-child(1) {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
}
.services__cta-sp a:nth-child(2) {
    position: absolute;
    top: 88%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
}

/* ボタン共通スタイル */
.services__cta a img,
.services__cta-sp a img {
    border-radius: 9999px;
    cursor: pointer;
}

/* -------------------------------------
   フォームタイトル
------------------------------------- */
.p-form__title { text-align: center; margin: 40px 20px 20px; padding: 10px 0; }
.p-form__title img { max-width: 80%; height: auto; }

@media (min-width: 768px) {
    .u-img-pc { display: inline-block; }
    .u-img-sp { display: none; }
    .p-form__title { text-align: left; }
    .p-form__title img { max-width: 500px; margin-left: 6%; }
}
@media (max-width: 767px) {
    .u-img-pc { display: none !important; }
    .u-img-sp { display: block !important; }
    .p-form__title { text-align: center; }
    .p-form__title img { max-width: 90%; margin: 0 auto; display: block; }
}

/* -------------------------------------
   フォーム本体
------------------------------------- */
.p-form__inner { max-width: 600px; margin: 0 auto 80px auto; padding: 0 20px; }
.p-form__group { margin-bottom: 20px; }
.p-form__label { display: block; margin-bottom: 3px; font-weight: 600; }
.p-form__required { color: #e60012; font-weight: 700; margin-left: 5px; font-size: 14px; }

/* Contact Form 7の入力欄（input, select, textarea）に対応 */
.p-form__input,
.p-form__textarea,
.wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

/* フォーカス時のスタイル */
.p-form__input:focus,
.p-form__textarea:focus,
.wpcf7-form-control:focus {
    outline: none;
    border-color: #007acc;
}

/* 送信ボタンの調整（Contact Form 7にも適用） */
.p-form__submit-btn,
.wpcf7-submit {
    display: block;
    width: 100%;
    background-color: #007acc;
    color: #fff;
    padding: 14px 0;
    border: none;
    border-radius: 9999px;
    font-size: 18px;
    cursor: pointer;
    font-weight: 700;
    transition: background-color 0.3s ease;
}
.p-form__submit-btn:hover,
.wpcf7-submit:hover { background-color: #005ea3; }

/* -------------------------------------
   フッター
------------------------------------- */
.l-footer { background-color: white; color: #333; text-align: center; }
.l-footer__inner { max-width: 1200px; margin: 0 auto; }
.l-footer__logo img { height: 40px; margin-bottom: 10px; margin: auto; }

.l-footer__links a {
    color: #555;
    text-decoration:none;
}