/* ========================================
   HERB MOOD CONTACT PAGE
======================================== */

.hm-contact {
    width: 100%;
    color: #5b3826;
    font-family: "Yu Mincho", "Hiragino Mincho ProN",
        "Noto Serif JP", serif;
}

.hm-contact *,
.hm-contact *::before,
.hm-contact *::after {
    box-sizing: border-box;
}

.hm-contact-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.hm-faq-herb-right {
    transform: scaleX(-1);
}

/* 共通タイトル */

.hm-contact-en {
    margin: 0 0 12px;
    color: #829274;
    font-family: Georgia, serif;
    font-size: 15px;
    font-style: italic;
    letter-spacing: 0.1em;
    text-align: center;
}

.hm-contact-title {
    margin: 0;
    color: #5b3826;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1.7;
    text-align: center;
}

.hm-contact-lead {
    margin: 18px auto 0;
    color: #767d72;
    font-size: 14px;
    line-height: 2.2;
    text-align: center;
}

.hm-faq-title-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 18px;
}

.hm-faq-herb {
    width: 220px;
    height: auto;
    display: block;
    flex-shrink: 0;
    opacity: 0.8;
}

.hm-faq-title-center {
    text-align: center;
}

.hm-faq-title-center .hm-contact-en {
    margin: 0 0 12px;
}

.hm-faq-title-center .hm-contact-title {
    margin: 0;
}


/* ========================================
   FAQ
======================================== */

.hm-faq {
    padding: 90px 24px 100px;
    background: #faf8f2;
}


/* カテゴリーボタン */

.hm-faq-categories {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 55px 0 65px;
}

.hm-faq-category {
    position: relative;
    width: 100%;
    min-height: 65px;
    padding: 15px 38px 15px 18px;

    background: #fffdf9;
    border: 1px solid #cbd5c5;
    border-radius: 13px;

    color: #5b3826;
    font-family: inherit;
    font-size: 14px;
    letter-spacing: 0.05em;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* 右端の小さな矢印 */

.hm-faq-category::after {
    content: "⌄";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-56%);

    color: #829274;
    font-family: Georgia, serif;
    font-size: 20px;
}

/* ホバー */
.hm-faq-category:hover {
    background: #fffdf9;
    border-color: #cbd5c5;
    transform: scale(1.03);
    box-shadow: 0 5px 14px rgba(91, 56, 38, 0.06);
}

/* 選択中のカテゴリー */

.hm-faq-category.is-active {
    background: #e8eee3;
    border-color: #9dae93;
}

.hm-faq-category.is-active::after {
    color: #5b3826;
}


/* ========================================
   FAQ 質問と回答
======================================== */

.hm-faq-panels {
    max-width: 1000px;
    margin: 0 auto;
}

.hm-faq-panel[hidden] {
    display: none !important;
}

.hm-faq-panel h2 {
    margin: 0 0 15px;
    padding: 0 0 18px;

    border-bottom: 2px solid #a6b49c;

    color: #5b3826;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.07em;
}

/* 質問1行 */

.hm-faq-item {
    border-bottom: 1px solid #d9ded4;
}

.hm-faq-item summary {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;

    padding: 25px 45px 25px 14px;

    color: #5b3826;
    font-size: 15px;
    line-height: 1.9;
    letter-spacing: 0.03em;

    cursor: pointer;
    list-style: none;

    transition: background-color 0.3s ease;
}

.hm-faq-item summary::-webkit-details-marker {
    display: none;
}

.hm-faq-item summary::marker {
    content: "";
}

.hm-faq-item:not([open]) summary:hover {
    background: #f1f4ed;
}

/* Q. */

.hm-faq-q {
    flex-shrink: 0;
    color: #829274;
    font-family: Georgia, serif;
    font-size: 19px;
    font-weight: 600;
}

/* 右端のプラスマーク */

.hm-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);

    color: #829274;
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 300;
}

/* 開いたらマイナス */

.hm-faq-item[open] summary::after {
    content: "−";
}

/* 回答 */

.hm-faq-answer {
    padding: 22px 30px 27px 48px;
    background: #f1f4ed;
    color: #767d72;
    font-size: 14px;
    line-height: 2.2;
    letter-spacing: 0.03em;

    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: anywhere;
}

.hm-faq-answer a {
    color: #5b3826;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hm-faq-answer a:hover {
    color: #829274;
}


/* ========================================
   CONTACT FORM
======================================== */

.hm-contact-form-section {
    padding: 100px 24px 115px;
    background: #fffdf9;
}

.hm-form-inner {
    max-width: 850px;
}

.hm-form {
    margin-top: 55px;
}

/* 各入力項目 */

.hm-form-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.hm-form-field label {
    color: #5b3826;
    font-size: 15px;
    letter-spacing: 0.05em;
}

/* 必須・任意 */

.hm-required,
.hm-optional {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 11px;

    border-radius: 20px;

    font-size: 10px;
    letter-spacing: 0.05em;
}

.hm-required {
    background: #f5e9e6;
    color: #984a50;
}

.hm-optional {
    background: #eff1eb;
    color: #767d72;

    position: relative;
    top: -3px;
    left: -5px;
}

/* 入力欄 */

.hm-form input[type="text"],
.hm-form input[type="email"],
.hm-form select,
.hm-form textarea {
    display: block;
    width: 100%;
    padding: 17px 20px;

    background: #fff;
    border: 1px solid #d9ded4;
    border-radius: 12px;

    color: #5b3826;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.7;

    outline: none;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* お問い合わせ項目のセレクトボックス */
.hm-select-wrap {
    position: relative;
    width: 100%;
}

/* 元の矢印を非表示 */
.hm-select-wrap #hm-type {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: none;
    padding-right: 55px;
    cursor: pointer;
}

/* セージグリーンの下三角 */
.hm-select-wrap::after {
    content: "";

    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);

    width: 0;
    height: 0;

    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #829274;

    pointer-events: none;
}

.hm-form input::placeholder,
.hm-form textarea::placeholder {
    color: #a2a69e;
}

.hm-form input:focus,
.hm-form select:focus,
.hm-form textarea:focus {
    border-color: #9dae93;
    box-shadow: 0 0 0 3px rgba(157, 174, 145, 0.15);
}

.hm-form textarea {
    min-height: 190px;
    resize: vertical;
}

/* 個人情報の同意 */

.hm-form-consent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    margin: 45px 0 30px;

    color: #5b3826;
    font-size: 13px;
    cursor: pointer;
}

.hm-form-consent input {
    width: 17px;
    height: 17px;
    accent-color: #829274;
}

/* 送信ボタン */

.hm-form-submit {
    text-align: center;
}

.hm-form-submit button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    min-width: 280px;
    padding: 19px 35px;

    background: #829274;
    border: 1px solid #829274;
    border-radius: 999px;

    color: #fff;
    font-family: inherit;
    font-size: 15px;
    letter-spacing: 0.1em;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.hm-form-submit button:hover {
    background: #f7f3eb;
    color: #5b3826;
    transform: translateY(-3px);
    box-shadow: 0 7px 16px rgba(91, 56, 38, 0.1);
}

.hm-form-submit button span {
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 300;
}

/* デモフォームの注意表示 */

.hm-form-notice {
    margin: 0 0 25px;
    color: #984a50;
    font-size: 13px;
    line-height: 1.9;
    text-align: center;
}

.hm-form-notice[hidden] {
    display: none !important;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 900px) {

    .hm-faq-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

}


/* ========================================
   SMARTPHONE
======================================== */

@media (max-width: 600px) {

    .hm-faq {
        padding: 65px 18px 75px;
    }

    .hm-contact-title {
        font-size: 26px;
    }

    .hm-contact-lead {
        font-size: 12px;
    }

    .hm-faq-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin: 35px 0 45px;
    }

    .hm-faq-category {
        min-height: 65px;
        padding: 12px 25px 12px 8px;
        font-size: 11px;
        line-height: 1.6;
    }

    .hm-faq-category::after {
        right: 9px;
        font-size: 17px;
    }

    .hm-faq-panel h2 {
        font-size: 18px;
    }

    .hm-faq-item summary {
        gap: 9px;
        padding: 20px 32px 20px 5px;
        font-size: 12px;
    }

    .hm-faq-q {
        font-size: 17px;
    }

    .hm-faq-answer {
        padding: 18px 14px;
        font-size: 12px;
    }

    .hm-contact-form-section {
        padding: 75px 18px 90px;
    }

    .hm-form {
        margin-top: 40px;
    }

    .hm-form-field label {
        font-size: 13px;
    }

    .hm-form input[type="text"],
    .hm-form input[type="email"],
    .hm-form select,
    .hm-form textarea {
        padding: 15px;
        font-size: 13px;
    }

    .hm-form-submit button {
        min-width: 240px;
        padding: 17px 25px;
    }

}

/* 送信ボタンの封筒線画 */

.hm-form-submit button .hm-mail-icon {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 3px;
    flex-shrink: 0;
    transform: translate(-6px, -1px);
}

.hm-form-submit button .hm-mail-icon::before,
.hm-form-submit button .hm-mail-icon::after {
    content: "";
    position: absolute;
    top: 2px;
    width: 13px;
    height: 2px;
    background: currentColor;
}

.hm-form-submit button .hm-mail-icon::before {
    left: 0;
    transform-origin: left center;
    transform: rotate(34deg);
}

.hm-form-submit button .hm-mail-icon::after {
    right: 0;
    transform-origin: right center;
    transform: rotate(-34deg);
}


/* FAQタイトル左右のハーブ線画：スマホ対応 */
@media (max-width: 767px) {

    .hm-faq-title-wrap {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .hm-faq-title-center {
        min-width: 0;
        text-align: center;
    }

    .hm-faq-herb {
        width: clamp(38px, 13vw, 65px);
    }

    .hm-faq-title-center .hm-contact-en {
        font-size: 12px;
        letter-spacing: 0.04em;
    }

    .hm-faq-title-center .hm-contact-title {
        font-size: 25px;
    }
}

.hm-faq-category:hover {
    background: #fffdf9;
    border-color: #cbd5c5;
    transform: scale(1.03);
    box-shadow: 0 5px 14px rgba(91, 56, 38, 0.06);
}

/* タブレットサイズ */
@media (min-width: 601px) and (max-width: 1024px) {
    .hm-faq-herb {
        width: clamp(170px, 25vw, 240px);
    }
}

/* スマホサイズ */
@media (max-width: 600px) {
    .hm-faq-title-wrap {
        gap: 0;
    }

    .hm-faq-herb {
        width: clamp(62px, 20vw, 110px);
        margin-left: -10px;
        margin-right: -10px;
    }
}

/* スマホ・タブレットのハーブ線画を下へ */
@media (max-width: 1024px) {
    .hm-faq-herb {
        position: relative;
        top: 12px;
    }
}

/* 選択中はホバーしていても緑色を維持 */
.hm-faq-category.is-active,
.hm-faq-category.is-active:hover {
    background: #e8eee3;
    border-color: #9dae93;
}

/* ========================================
   個人情報の取り扱い 確認ウィンドウ
======================================== */

/* 同意欄 */
.hm-form-consent {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hm-form-consent label {
    cursor: pointer;
}

.hm-privacy-link {
    padding: 0;
    border: none;
    background: transparent;
    color: #829274;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}

.hm-privacy-link:hover {
    color: #5b3826;
}

/* ウィンドウ全体 */
.hm-privacy-dialog {
    width: min(580px, calc(100% - 32px));
    max-height: 85vh;
    padding: 0;
    border: 1px solid #cbd5c5;
    border-radius: 18px;
    background: #fffdf9;
    color: #5b3826;
    box-shadow: 0 20px 60px rgba(40, 35, 25, 0.2);
}

.hm-privacy-dialog::backdrop {
    background: rgba(35, 40, 30, 0.5);
}

/* 上部 */
.hm-privacy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 25px;
    border-bottom: 1px solid #d9ded4;
}

.hm-privacy-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 500;
}

.hm-privacy-close {
    border: none;
    background: transparent;
    color: #829274;
    font-size: 26px;
    cursor: pointer;
}

/* スクロールする文章部分 */
.hm-privacy-scroll {
    max-height: 45vh;
    overflow-y: auto;
    padding: 25px;
    color: #767d72;
    font-size: 13px;
    line-height: 2;
    overflow-wrap: anywhere;
}

.hm-privacy-scroll h3,
.hm-privacy-scroll h4 {
    margin: 20px 0 10px;
    color: #5b3826;
    font-size: 15px;
    font-weight: 500;
}

.hm-privacy-scroll p {
    margin-bottom: 13px;
}

.hm-privacy-scroll ul {
    list-style: disc;
    padding-left: 22px;
    margin: 12px 0;
}

.hm-privacy-scroll li {
    list-style: disc;
    margin-bottom: 7px;
}

.hm-privacy-scroll a {
    color: #829274;
    text-decoration: underline;
}

/* 下部 */
.hm-privacy-footer {
    padding: 20px 25px 25px;
    border-top: 1px solid #d9ded4;
    text-align: center;
}

.hm-privacy-footer p {
    margin-bottom: 15px;
    color: #767d72;
    font-size: 12px;
}

.hm-privacy-footer button {
    padding: 12px 35px;
    border: 1px solid #829274;
    border-radius: 30px;
    background: #829274;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.hm-privacy-footer button:hover:not(:disabled) {
    background: #6d8060;
}

.hm-privacy-footer button:disabled {
    background: #d9ded4;
    border-color: #d9ded4;
    color: #92998d;
    cursor: not-allowed;
}

@media (max-width: 600px) {

    .hm-privacy-header,
    .hm-privacy-footer {
        padding: 18px;
    }

    .hm-privacy-scroll {
        padding: 18px;
    }
}