@charset "utf-8";

/* =================================================
   1. 全体共通・PC版設定 (1441px以上〜)
   ================================================= */

/* --- 共通部分 --- */
body {
    font-family: "Yu Mincho", "Noto serif";
    background-color: rgb(59,55,54);
    color: #fff;
}
.wrapper {
    width: 1440px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    overflow-x: hidden; /* 横揺れ防止 */
}
ul li a:hover {
    color: rgb(128, 151, 166);
    transition : all 0.5s ease 0s;
    letter-spacing: 0.1em;
}
.telnumber a:hover {
    color: rgb(128, 151, 166);
    transition : all 0.5s ease 0s;
    letter-spacing: 0.1em;
}

/* --- ヘッダー領域 --- */
header {
    width: 100%;
    max-width: 1440px; /* wrapperのサイズに合わせる */
    height: auto;    
    background-color: #020201;
    position: fixed; /* スクロールしても固定する */
    top: 0;
    left: 50%;
    transform: translateX(-50%);  /* 画面中央に配置 */
    z-index: 1000;
    background-color: #020201;
}
.overlay {
    display: none;
}
.header-vail {
    width: 100%;
    line-height: 0; /* 下部の隙間を消す */
}
        /* ヘッダー画像：常に横幅100%・切り取りなし */
.header-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ヘッダーナビゲーション（PC版：画像の上に絶対配置） */
.header-nav {
    position: absolute;
    transform: translate(-50%, -50%);  /* 自身の幅の半分だけ戻して真ん中へ */
    top: 50%;         
    left: 50%;       
    width: 90%;        /* 左右に少し余裕を持たせる */
    z-index: 1010;
}
.header-nav ul {
   list-style: none;
    display: flex;
    justify-content: center; 
    gap: 40px;               /* 項目間の距離（適宜調整） */
    margin: 0;
    padding: 0;
}
.header-nav a {
    text-decoration: none;
    color: #fff;
    writing-mode: vertical-rl; /* 縦書き */
    text-orientation: upright;
    font-size: 18px;
}
.img-logo {
    margin-top: -10px;
    /* width: 40px; */
    /* width: 80%; */
    /* height: auto; */
}
.sp-menu, .sp-hero {
    display: none;
}

/* --- メイン --- */
main {
    background-color: rgb(59,55,54);
    padding-top: 300px; /* PC版ヘッダーの高さに合わせて数値を調整 */
}
img {
    max-width: 100%;
    height: auto;
}
.hero img {
    width: 100%;
    display: block;
}
        /* 大城寺の写真と大きな四角いボタン */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.shoukai {
    padding: 80px 40px;
    border-radius: 15%;
}
.shoukai:hover {
    transition : all 0.5s ease 0s;
    transform: scale(1.1);
}
.section-2 input[type="image"]:hover {
    transition : all 0.5s ease 0s;
    transform: scale(1.1);
}
.section-1 input[type="image"]:hover {
    transition : all 0.5s ease 0s;
    transform: scale(1.1);
}
.button1 input[type="image"]:hover {
    transition : all 0.5s ease 0s;
    transform: scale(1.1);
}


h1 {
    text-align: center;
    padding: 80px 0 40px 0;
}
.daizyouzi-img {
    text-align: center;
}
.button2 {
    text-align: right;
    margin-top: 30px;
}
.button1 {
    margin-bottom: 100px;
    margin-top: 30px;
    text-align: center;
}

/* --- セクション（PC版：横並び） --- */
.section-1, .section-2 {
    width: 1200px;
    max-width: 95%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 100px auto;
}
.section-2 {
    flex-direction: row-reverse;
}
.section-1-text, .section-2-text {
    margin-left: 100px;
}
.section-2-text {
    margin-right: 100px;
}

/* --- フッター領域 --- */
.contact {
    background-image: url(../img/back_cta.jpg);
    background-size: cover;
    background-position: center;
    min-height: 519px;
    padding: 70px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    color: #fff;
}
.banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}
h3 {
    font-size: 20px;
    padding: 0 0 50px 0;
}
.telcontainer {
    display: flex;
    align-items: center;
     flex-direction: column;
    width: 50%;
 }
.telnumber a {
    font-size: 40px;
    color: #fff;
    text-decoration: none;
}
.form {
    padding-left: 100px;
    width: 50%;
}
.telephon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.chuui {
    font-size: 12px;
}
.footer-all {
    background-color: #0f0b00;
    background-size: cover;
    text-align: center;
    padding-bottom: 30px;
}
.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 0 40px;
}
.footer-logo {
    padding-top: 95px;
}
.footer-navigation {
    display: flex;
    text-align: left;
    padding-top: 178px;
}
.img-x {
    padding-top: 30px;
}
.footer-nav ul, .footer-link ul {
    list-style: none;
    margin-left: 30px;
}
.footer-nav a, .footer-link a {
    text-decoration: none;
    color: #fff;
    line-height: 2rem;
}
.link {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.link-text {
    padding-left: 15px;
    width: 70%;
}
.copyright {
    padding-top: 100px;
    text-align: center;
    margin-bottom: 170px;
}
.footer-logo:hover, .img-x:hover, .access-button:hover {
    transition : all 0.5s ease 0s;
    transform: scale(1.1);
}
.form input[type="image"]:hover{
    transition : all 0.5s ease 0s;
    transform: scale(1.1);
}




/* =================================================
   2. pc専用設定 (1300px以下)
   ================================================= */
@media (max-width: 1300px) {
    .shoukai {
        padding: 40px 20px;
    } 
    main {
    padding-top: 270px; /* PC版ヘッダーの高さに合わせて数値を調整 */
    }

}



/* =================================================
   3. pc専用設定 (1000px以下)
   ================================================= */
@media (max-width: 1000px) {
    .header-nav ul li a {
        font-size: 80%;
    }
    .header-nav ul {
        gap: 50px;
    }
    main {
    padding-top: 210px; /* PC版ヘッダーの高さに合わせて数値を調整 */
    }

    .banner {
        flex-direction: column;
        gap: 20px;
    }
    .form {
        width: 100%;
        padding-left: 0;
        align-items: center;
        flex-shrink: 0;
    }
    .form input[type="image"] {
        width: 100%;
        width: 250px;
        padding: 0;
        height: auto;
        display: block;
        margin: auto;

    }
    .line {
        display: none;
    }

}




/* =================================================
   4. スマホ専用設定 (850px以下)
   ================================================= */
@media (max-width: 850px) {
    header {
        display: flex;
    }
    .header-vail, .pc-menu {
        display: none;
    }
    .sp-menu {
        background-image: url(../img/hd_sp.jpg);
        background-size: 100% 80%;
        width: 100%;
        display: flex;
        justify-content: space-between;
        padding: 16px ;
        align-items: center;
        position: fixed;
    }
    main {
        padding-top:60px;
    }
    .hero {
        display: none;
    }
    .overlay-nav ul li a {
        color: #fff;
        text-decoration: none;
    }
    .overlay-open {
        margin-left: auto;
    }
    .overlay-logo .overlay-img {
        width: 50%;
        margin-right: auto;
        flex-shrink: 0;
    }
     .overlay-open #open .hide {
        display: none;
        margin-left: auto;
     }
    .overlay {
        display: block;
        position: fixed;
        top: 0;
        bottom: 0;
        right: 0;
        left: 0;
        background-color: #020201;
        text-align: center; 
        padding: 64px;
        opacity: 0;
        pointer-events: none;
        transition: opacity .6s;
    }
    .overlay.show {
        opacity: 1;
        pointer-events: auto;
    } 
    .overlay #close {
        position: absolute;
        top: 16px;
        right: 16px;
        font-size: 32px;
        cursor: pointer;
    }
    .overlay ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
    }
    .sp-menu #open.hide {
        display: none;
    }
    .sp-hero {
        display: block;
    }
     nav a {
        font-size: 16px;
        padding: 8px 15px;
        display: block;
    }  
    .container {
        flex-direction: column;
        gap: 0;
    }
    .top-section {
        display: block;
       margin: auto;
    }
    .section-1, .section-2 {
        flex-direction: column;
        gap: 0;
        text-align: center;
    }
    .section-1-text, .section-2-text {
        margin: 20px 0 0 0;
        padding: 0 20px;
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }
    .footer-navigation {
        flex-direction: column;
        padding-top: 40px;
        gap: 30px;
    }
    .footer-nav ul {
        margin-left: 0;
        text-align: center;
    }
    .footer-link ul {
        margin: 0 15px;
                padding-left: 0;

        text-align: left;
    }
    .telcontainer {
        width: 100%;
    }
}




/* =================================================
   5. スマホ専用設定 (480px以下)
   ================================================= */
@media (max-width: 480px) {
    .sp-menu {
        background-image: url(../img/top_header_back.png);
        background-size: 100%;
        width: 100%;
        height: auto;
        display: flex;
        justify-content: space-between;
        padding: 16px ;
        align-items: center;
        position: fixed;
    }
    .shoukai {
        width: 80%;
        display: block;
        margin: auto;
    }
    input[type="image"] {
        width: 150px;
   }
}