:root {
    --gold: #d4af37;
    --gold-light: #fff5cc;
    --bg-black: #111111;
    --font-serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "MS PMincho", serif;
    --gold-gradient: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}


body {
    margin: 0;
    font-family: serif;
    background: #111111;
    color: #d4af37;
}
h1, h2, p, a{
    background-image: linear-gradient(90deg, #d4af37, #fff5cc, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/*共通*/
a {
    color: #d4af37;
    text-decoration: none;
    margin-left: 20px;
}
section {
    max-width: 1200px;
    padding-bottom:160px;
    margin: 0 auto;
    padding-inline: 3%;
}
h1 {
    font-size: 32px;
    margin-bottom: 20px;
}
  
h2,
.login h1,
.register h1,
.search h1{
    border-left:5px solid #d4af37;
    padding-left:16px;
    margin-bottom: 40px;
}
.wrapper{
    max-width: 1100px;
    margin: 0 auto;
    padding-inline: 3%;
}

/*ヘッダー*/
header, footer {
    display: flex;
    justify-content: space-between;
    padding: 20px 80px;
    align-items: center;
}
.logo img{
    width: 200px;
}
.header-menu{
    align-items: center;
}
.header-menu a{
    display: inline-block;
    height:100%;
}

/*メインビジュアル・イントロ*/
.mainvisual{
    position: relative;
}
.mainvisual h1{
    text-align: center;
    position: absolute;
    top:5%;
    left:10%;
    font-size: 40px;
    -webkit-text-stroke: 0.5px  rgb(32, 32, 31)
}
.mainvisual img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.intro{
    text-align: center;
    line-height: 30px;
    font-size: 20px;
    padding-top:160px;
    
}
.sp-only {
    display: none;
}
/*ランキング*/
.ranking-content h3{
    font-size: 25px;
    text-align: center;
}
.ranking-content img{
    object-fit: cover;
    width:100%;
    height:300px;
    display: block;
    padding-bottom: 40px;
}
.ranking-content{
    display: flex;
    gap:40px;
}
.ranking-content div{
    width: 33%;
}
.ranking-content p{
    text-align: center;
}

/*会員様限定情報*/
.inform-content {
    display: flex;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 85px;
    padding-bottom: 85px;
}
.inform-content img {
    object-fit: cover;
    width:100%;
    height:250px;
    display: block;
    padding-bottom: 20px;
}
.inform-content p {
    text-align: center;
    margin-top: 10px;
}
.member-btn{
    width: 265px;
    padding-block: 20px;
    display: flex;
    align-items: center;
    border: 1px solid #d4af37;
    margin:0 auto;
    justify-content: center;
}
.search{
    height:auto;
}


/*エリアから探す*/
.area{
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 40px 80px; 
    margin-top: 80px;
    padding: 0;
    list-style: none;
}
.area li{
    list-style: none;
}
.area li:nth-child(9){
    grid-column: 2;
}
.area a{
    display: inline-block;
    font-size: 18px;
    color: #d4af37;
    text-decoration: none;
    transition: 0.3s;
}
.area a:hover{
    opacity: 0.7;
    transform: translateY(-3px);
}


/* ===================================================
   お問い合わせ・フォーム類（中央寄せ＆垂直整列）
=================================================== */

/* 1. フォーム全体の器を中央に配置 */
.wpcf7, .form {
    max-width: 700px;           /* フォーム全体の横幅 */
    margin: 80px auto !important; /* 左右autoで中央寄せ */
    padding: 0 5%;
}

/* 2. 各行（ラベルと入力欄）を横並びにして垂直に揃える */
.wpcf7 p {
    display: flex;              /* 横並びにする */
    align-items: flex-start;    /* 上揃え */
    margin-bottom: 25px !important;
    gap: 20px;                  /* ラベルと入力欄の間の隙間 */
}

/* 3. ラベル（名前、メールアドレス等の文字）の幅を一定にする */
.wpcf7 label {
    flex: 0 0 150px;            /* 150pxで固定。これで右側が垂直に並ぶ */
    color: var(--gold) !important;
    font-weight: bold;
    padding-top: 10px;          /* 入力欄の文字と高さを合わせる */
    text-align: left;
    -webkit-text-fill-color: var(--gold) !important;
}

/* 4. 入力欄（右側）の幅設定 */
.wpcf7 .wpcf7-form-control-wrap {
    flex: 1;                    /* 残りの幅をすべて使う */
}

/* 5. 入力欄自体のデザイン（40%設定を解除して100%に） */
input[type="text"], 
input[type="password"], 
input[type="email"], 
textarea {
    background-color: var(--bg-black);
    border: 1px solid var(--gold);
    color: #ffffff;
    padding: 10px;
    width: 100% !important;     /* 40%から100%に変更 */
    box-sizing: border-box;
}

/* 6. 送信ボタンのデザイン */
.submit, 
#wpmem_reg input[type="submit"], 
#wpmem_login input[type="submit"], 
div.wpcf7 input.wpcf7-submit {
    display: block;
    margin: 60px auto 0;
    width: 280px !important;    /* 広がりすぎないよう固定 */
    height: 60px;
    background: var(--gold-gradient);
    color: #000;
    -webkit-text-fill-color: #000;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    font-family: var(--font-serif);
    line-height: 60px;
    padding: 0;
}

/* 7. WP-Members用の見出し */
#wpmem_reg legend, #wpmem_login legend {
    color: var(--gold);
    -webkit-text-fill-color: var(--gold);
    font-size: 1.5em;
    border-bottom: 1px solid var(--gold);
    width: 100%;
    display: block;
    margin-bottom: 20px;
}
/* 入力欄をクリックした時の文字を見えるようにする */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea,
.wpcf7-form-control {
    -webkit-text-fill-color: #ffffff ; /* 透明設定を強制上書き */
    color: #ffffff ;                   /* 文字色を白に固定 */
}

/* 入力中の背景色も念のため固定 */
.wpcf7 input:focus,
.wpcf7 textarea:focus {
    background-color: #111111 ;
    outline: none; /* クリック時の青い枠線を消す場合 */
    border: 1px solid var(--gold) ;
}

/* 8. スマホ対応（画面が狭いときは縦並びにする） */
@media (max-width: 600px) {
    .wpcf7 p {
        flex-direction: column; /* 縦並び */
    }
    .wpcf7 label {
        flex: 0 0 auto;
        width: 100%;
        margin-bottom: 8px;
    }
}




/* レスポンシブ対応 */
@media (max-width: 768px) {
    section{
        width:100%;
        padding-bottom: 80px;
    }
    .wrapper{
        width:100%;
    }
    /*ヘッダー*/
    header{
        width:100%;
        flex-direction: column;
        padding: 20px 20px;
        position: fixed;
        background-color: #111111;
        z-index: 1;
        align-items: stretch;
    }
    .logo{
        justify-content: left;
        width: 40px;
    }
    header::after,
    header::before {
        content: "";
        position: absolute;
        left: 4px;
        right: 40px;
        bottom: 6px;
        height: 1px;
        background: #d4af37;
        width:100%;
    }
    header::after {
        bottom: 0;
    }
    header::before {
        bottom: 4px;
    }
    .logo{
        height:70px;
    }
    .header-menu{
        margin: 0 auto;
        padding-top: 20px;
    }

    /*メインビジュアル・イントロ*/
    .mainvisual{
        padding-top: 160px;
    }
    .mainvisual h1{
        font-size: 24px;
        line-height: 1.6;
        top: 30%;
        left:0;
    }
    .mainvisual img{
        height: 440px;
    }
    .intro p{
        font-size: 20px;
    }
    .sp-only {
        display: inline;
    }

    /*ランキング*/
    .ranking-content{
        flex-direction: column;
    }
    .ranking-content div{
        width:100%;
    }
    .ranking2{
        padding: 40px 0;
    }

    /* 会員様限定情報　*/
    .inform-content {
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px; 
        padding-bottom: 50px;
    }

    /* エリアから探す*/
    .area{
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
        gap: 30px 40px; 
        justify-items: center;
        margin-top: 60px;
    }
    .area li{
        text-align: center;
    }
    .area a{
        font-size: 16px;
    }
    .area li:nth-child(9) {
        grid-column: auto; 
    }

    /*お問い合わせ*/
    .form-group{
        flex-direction: column;
    }
    .form input textarea{
        width:350px;
    }

    /* フッター*/
    footer{
        display: flex;
        flex-direction: column-reverse;
        padding: 0 0;
    }
    footer .logo{
        align-self: flex-start;
    }
    .footer-right{
        padding-bottom: 40px;
    }

    /*下層ページ　共通*/
    .login h1,
    .register h1,
    .search h1{
        border-left:5px solid #d4af37;
        padding-left:16px;
        margin-bottom: 40px;
    }
    .login,
    .search,
    .register{
        padding-top: 240px;
    }
    .form{
        width:350px;
        padding:0 2%;
    }
     


}
