/* ===== 基本設定 & フォント ===== */
:root {
    --text-color: #212121;
    --text-color-gy: #7f8080;
    --background-color: #fff;
    --border-color: #e0e0e0;
}
body {
    margin: 0;
    font-family: 'EB Garamond', 'Zen Old Mincho', serif;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 14px;
    line-height: 2;
}
* {
    box-sizing: border-box;
    letter-spacing: 0.5px;
}
a {
    color: inherit;
    text-decoration: none;
    transition: all .3s ease-in-out;
}
a:hover {   opacity: .7;}

.only_pc {  display: block;}
.only_sp {  display: none;}

@media (max-width: 768px) {
    .only_pc {  display: none;}
    .only_sp {  display: block;}
}

/* ---- text ---- */
.ttl01 {    display: none;}
@media (max-width: 768px) {
    .ttl01 {
        display: block;
        font-size: 20px;
        font-weight: normal;
        letter-spacing: 1px;
    }
    h1.ttl01 {
        margin: 1rem 0;
        font-weight: normal;
    }
}

.ttl02 {
    margin: 0 0 1.6rem;
    font-size: 1.3em;
    font-weight: normal;
    letter-spacing: 0.5px;
}

.ttl03 {
    margin: 0 0 3rem;
    font-size: 1.4em;
    font-weight: normal;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .ttl01 {
        display: block;
        font-size: 20px;
        font-weight: normal;
        letter-spacing: 1px;
    }
    h1.ttl01 {
        margin: 1rem 0;
        font-weight: normal;
    }
}

/* ---- link ---- */
.link-txt {
    display: inline;
    border-bottom: 1px solid var(--text-color);
    padding: 0 0 2px 0;
}

/* ---- margin ---- */
.u-mb-1 {   margin-bottom: 10px;}
.u-mb-2 {   margin-bottom: 20px;}
.u-mb-3 {   margin-bottom: 30px;}
.u-mb-4 {   margin-bottom: 40px;}
.u-mb-5 {   margin-bottom: 50px;}
.u-mb-6 {   margin-bottom: 60px;}
.u-mb-7 {   margin-bottom: 70px;}
.u-mb-8 {   margin-bottom: 80px;}
.u-mb-9 {   margin-bottom: 90px;}
.u-mb-10 {   margin-bottom: 100px;}
.u-mb-11 {   margin-bottom: 110px;}
.u-mb-12 {   margin-bottom: 120px;}

/* ===== 全体レイアウト ===== */
.site-container {
    display: flex;
}

.site-header {
    width: 280px;
    flex-shrink: 0;
    position: fixed;
    height: 100vh;
    /* padding: 40px; */
    /* border-right: 1px solid var(--border-color); */
    /* min-height: 100vh; */
    z-index: 900;
}
.site-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.site-content {
    width: 100%;
    /* margin: 0 auto; */
    padding: 90px 0 20px 280px;
}
.site-content-inner {
    margin: 0 auto;
}
.site-footer {
    padding: 0 60px 0 0;
    font-size: 12px;
    text-align: right;
}
#home .site-footer {
    position: fixed;
    bottom: 20px;
    right: 40px;
}

@media (max-width: 768px) {
    .site-header {
        /* position: static; */
        flex-wrap: wrap;
        width: 100%;
        height: auto;
        min-height: 80px;
        background: #fff;
    }
    .site-container {
        display: block;
    }
    .site-content,
    #home .site-content {
        margin-left: 0;
        margin: 0 0 70px;
        padding: 90px 15px 0;
    }
    #home .site-content {
        margin: 0;
    }
    #product .site-content {
        padding: 95px 0 0;
    }
    .product-info {
        padding: 0 15px;
    }
    .site-footer {
        padding: 0;
        text-align: center;
    }
    #home .site-footer {   position: static;}
}

/* ===== ナビゲーション ===== */
#head_logo {
    margin: 90px 0 30px 60px;
}
#head_logo img {    width: 110px;}

@media (max-width: 768px) {
    #head_logo {
        margin: 30px 10px 0 50px;
    }
    #head_logo img {    width: 100px;}
}

.main-nav {
    padding: 0 0 60px 60px;
}
.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.main-nav .sub-menu li {
    margin: 0 0 2px;
    line-height: 1.6;
}
.main-nav a {
    font-size: 16px;
    padding-left: 20px; /* アイコン分のスペースを確保 */
    letter-spacing: 1px;
}
.main-nav .sub-menu a {
    font-size: 15px;
}

.main-nav .has-children > a {
    position: relative; /* ::afterを配置するため */
    display: inline-block; /* リンクの領域を確保 */
    cursor: pointer;
}

/* + や - のアイコンのための共通スタイル */
.main-nav .has-children > a {
    position: relative; /* ::afterを配置するため */
    display: inline-block; /* リンクの領域を確保 */
    padding-right: 20px; /* アイコン分のスペースを確保 */
}

.main-nav .has-children > a::before {
    content: '';
    position: absolute;
    left: 0; /* ::before なので左に配置 */
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background:
        /* 縦線 (これが + の縦棒になる) */
        linear-gradient(to bottom, currentColor, currentColor) no-repeat center / 1px 100%, 
        /* 横線 (これが + と - の横棒になる) */
        linear-gradient(to right, currentColor, currentColor) no-repeat center / 100% 1px;
    transition: all 0.3s ease-out; /* アニメーション設定 */
}

/* 開いた状態（-）: 縦線を非表示にする */
.main-nav .nav-open > a::before {
    /* 縦線だけを消す（幅を0にすることで、横線だけが残り - に見える） */
    background-size: 0 100%, 100% 1px;
    /* transition: all を設定しているため、スムーズに縦線が消えます */
}

.main-nav .sub-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out;
}

.main-nav .nav-open > .sub-menu {
    /* display: block; */
    max-height: 300px; /* <--- ここをコンテンツが収まる高さに設定 */
    margin: 6px 0 10px 0;
    opacity: 1;
}

.main-nav .icon {
    font-size: 20px;
    margin-top: 40px;
}
/* デスクトップ版のスタイル（769px以上） */
.main-nav .hamburger-btn {
    display: none;
}

@media (max-width: 768px) {
    .main-nav {
        /* position: relative; */
        position: absolute;
        top: 0;
        right: 0;
    }

    .main-nav .hamburger-btn {
        display: block;
        position: absolute;
        top: 25px;
        right: 25px;
        width: 28px;
        height: 35px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 100;
    }

    .hamburger-btn .line {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #333;
        transition: transform 0.3s ease-in-out;
    }

    .hamburger-btn::before, .hamburger-btn::after {
        content: '';
        display: block;
        width: 100%;
        height: 1px;
        background-color: #333;
        position: absolute;
        left: 0;
        transition: transform 0.3s ease-in-out, top 0.3s ease-in-out;
    }

    .hamburger-btn::before {
        top: 12px;
    }

    .hamburger-btn::after {
        top: 20px;
    }

    .hamburger-btn.is-active .line {
        transform: scale(0);
    }

    .hamburger-btn.is-active::before {
        top: 50%;
        /* transform: rotate(45deg); */
    }

    .hamburger-btn.is-active::after {
        display: none;
        /* top: 50%; */
        /* transform: rotate(-45deg); */
    }

    /* ナビゲーションメニューのスタイル */
    .main-nav_box {
        /* display: none; の代わりに以下のプロパティを使用 */
        visibility: hidden; /* 通常は非表示 */
        opacity: 0;         /* 透明にして見えなくする */
        transition: opacity 0.4s ease, visibility 0.4s ease; /* アニメーションを追加 */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        padding: 50px 0 0 50px;
        background-color: #fff;
        margin-top: 80px;
        box-sizing: border-box;
        z-index: 99;

        /* スクロール防止が必要な場合、以下を追加 */
        overflow-y: auto;
    }

    .main-nav_box.is-active {
        height: 100vh;
        visibility: visible; /* 表示 */
        opacity: 1;          /* 不透明 */
        /* display: block; は削除 */
        /* padding: 10% 14%; */
    }
    .main-nav .sub-menu li {
        line-height: 2;
    }
    .main-nav a {
        font-size: 18px;
    }
    .main-nav .sub-menu a {
        font-size: 16px;
    }
}

/* ===== ページ別スタイル ===== */

/* トップページ (index) -------------------------------*/
.home-hero {
    height: calc(100vh - 180px);
    overflow: hidden;
}
.home-hero img {
    width: 100%;
    max-width: 1050px;
    height: 100%;
    object-fit: cover;
}

/* 商品一覧 (stock) */
.stock-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); [cite_start]/* [cite: 64] */
    gap: 20px;
    max-width: 90%;
}
.stock-item {   margin: 0 5px 5px 0;}
.stock-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .stock-grid {
        max-width: 100%;
    }
}

/* 商品詳細 (product) -------------------------------------*/
.product-page-layout {
    display: flex;
    gap: 60px;
    justify-content: center;
}
.product-gallery {
    flex: 1;
    max-width: 450px;
    /* max-width: 40%; */
}
.product-gallery img {
    width: 100%;
    margin-bottom: 20px;
    width: 100%;
    max-width: 450px; /* 最大W450px */
    height: auto;
    display: block;
    margin: 0 auto;
}
.product-info {
    flex: 1;
    max-width: 40%;
    position: sticky; /*[cite_start] [cite: 119] */
    top: 320px;
    height: fit-content;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

.product_list {
  display: grid;
  grid-template-columns: 90px 1fr;/* dt、ddを残りの幅全て(1fr) */
  /*gap: 1rem 1rem; 行間の隙間1、列間の隙間 */
  max-width: 800px;
  margin: 0 auto;
}
.product_list dt {
    margin-bottom: 2px;
    color: var(--text-color-gy);
}
.product_list dd {
    margin-bottom: 2px;
    margin-inline-start: 0;
}
.product-info p {
    margin: 0 0 1.5em 0;
}
/* .product-info .category-no {
    margin-bottom: 2em;
} */
/* .product-info .price-details {
    margin: 3em 0 2em;
} */

.purchase-button {
    display: inline-block;
    border-bottom: 1px solid var(--text-color);
    /* padding: 0 0 2px 0; */
}

.product-description {
    position: relative;
    margin: 4rem 0 2rem;
}
.product-description::before {
    content: '';
    display: block;
    position: absolute;
    top: -20px;
    width: 20px;
    height: 1px;
    background-color: #222;
}

@media (max-width: 960px) {
    .product-page-layout {
        display: block;
    }
    .product-gallery {
        max-width: 100%;
    }
    .product-info {
        max-width: 100%;
        margin: 50px 0 0;
    }
}

/* slide */
/* Splide標準のページネーション（ドット）を隠す */
.splide__pagination {
    display: none;
}

/* スライド画像のサイズ制限 */
.splide__slide {
    margin: 0 0 10px;
}
.splide__slide img {
    width: 100%;
    max-width: 450px; /* 画像の最大幅を450pxに */
    height: auto;
    margin: 0 auto;
    display: block;
}

/* カスタムコントロールのスタイル */
/* .splide-controls {  display: none;} */

.splide-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 0;
}

.splide-controls button {
    /* padding: 10px; */
    border: none;
    background: none;
    font-size: 22px;
    font-family: serif;
    color: var(--text-color-gy);
    transition: opacity 0.3s;
    cursor: pointer;
}

.splide-controls button:disabled {
    opacity: 0.3;
}

.splide-pagination-numbers {
    display: none;
    /* letter-spacing: 0.1em; */
}

@media (max-width: 960px) {
    .splide-controls {
        margin: 5px 0 0;
    }
    .splide-controls button {
        font-size: 18px;
    }
}

/* アバウト・お問い合わせ (about, contact) -----------------------------*/
.text-content {
    max-width: 750px;
}
.map_img {  max-width: 480px;}


.contact-form {
    margin-top: 40px;
}
.form-group {
    max-width: 600px;
    margin-bottom: 25px;
}
.form-group-col2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.form-group-col2 .form-group {
    width: 46%;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    max-width: 600px;
    padding: 10px;
    border: none;
    border-bottom: 1px solid var(--text-color);
    background-color: var(--background-color);
    font-family: inherit;
    font-size: 16px;
}


.form-group textarea {
    min-height: 150px;
    border: 1px solid var(--text-color);
}
.submit_wrap {
    text-align: center;
}
input.wpcf7-submit.submit-button {
    width: 150px!important;
    margin: auto;
    padding: 10px!important;
    border: 1px solid var(--text-color);
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: inherit;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: all .3s ease-in-out;
}
input.wpcf7-submit.submit-button:hover {
    background-color: var(--text-color);
    color: var(--background-color);
}

.submit_wrap .wpcf7-spinner {
    display: block!important;
    margin: 0.5em auto 0!important;
}

/* reCAPTCHAの右下バッジを非表示にする */
.grecaptcha-badge {
    visibility: hidden;
}

@media (max-width: 768px) {
    .form-group-col2 {
        display: block;
    }
    .form-group-col2 .form-group {
        width: 100%;
    }
    .submit_wrap .submit-button {
        width: 50%;
        margin: 0 auto;
    }
}

/*--- error ---*/
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
    margin: 0em 0.5em 1em;
	border: none!important;
	color: #dc3232!important;
    text-align: center!important;
}

/* 特定商取引 (legal) ------------------------------------*/
#legal .text-content {
        max-width: 780px;
}

/* dl全体（リスト全体）のスタイリング */
.legal_list {
  display: grid;
  grid-template-columns: 220px 1fr;/* dt、ddを残りの幅全て(1fr) */
  gap: 3rem 1rem;/* 行間の隙間1、列間の隙間 */
  max-width: 800px;
  margin: 0 auto;
  line-height: 2;
}
.legal_list dd {    margin: 0;}

@media (max-width: 768px) {
    .legal_list {
        display: block;
    }
    .legal_list dd {    margin: 0 0 2rem;}
}

/* 404 ------------------------------------*/
#page404 .ttl404 {
        margin: 0 0 60px;
        font-size: 70px;
        letter-spacing: 5px;
        line-height: 1;
}
#page404 .txt404_01 {
        font-size: 16px;
        font-weight: normal;
        letter-spacing: 1px;
}

@media (max-width: 768px) {
    #page404 .ttl404 {
        text-align: center;
    }
}