@charset "utf-8";

/*===================================================

 お客様サポート
   /support               （#support）
   /support/improvements  （#support-improvements）

===================================================*/
.support-page {
    --sp-border: #f2d444;
    --sp-btn: #474747;
    --sp-btn-hover: #222;
    --sp-gold: #9a7400;
    --sp-gray: #e6e6e6;
    /* フォントは、紙うちわのページ（hand-fan.css の #hand-fan article）と同じ */
    --sp-font: "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
}
/* 幅に応じて 2 列から 1 列に切り替える（container query）。サイドバーがあるため、画面幅ではなく、記事の幅で判断する */
.support-page article {
    container-type: inline-size;
    text-align: left;
    font-family: var(--sp-font);
    font-feature-settings: "palt";
    /* 日本語の単語の途中（「真摯」の間など）で折り返さない。最後の行に 1 文字だけ残らないようにする（対応していないブラウザでは、無視される） */
    word-break: auto-phrase;
    text-wrap: pretty;
}
/* 入力欄・ボタンは、既定では、親のフォントを引き継がないため、明示する */
.support-page article input,
.support-page article button {
    font-family: inherit;
    font-feature-settings: inherit;
}
.support-page article h1 {
    margin-bottom: 30px;
    display: flex;
    font-size: 3.0rem;
    font-weight: 700;
    line-height: 4.0rem;
}
.support-page article h1::after {
    height: 1px;
    margin: 20px 0 0 15px;
    display: block;
    flex-grow: 1;
    background: var(--light-black);
    content: '';
}

/*---------------------------------------------------
 ボタン（共通）
---------------------------------------------------*/
.support-page .sp-btn {
    width: 100%;
    max-width: 320px;
    height: 52px;
    border-radius: 26px;
    box-sizing: border-box;
    display: block;
    background: var(--sp-btn);
    color: #fff;
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 52px;
    text-align: center;
    text-decoration: none;
    transition: background-color .2s;
}
.support-page .sp-btn:hover {
    background: var(--sp-btn-hover);
    text-decoration: none;
}
.support-page .sp-btn:focus-visible {
    outline: 2px solid var(--light-black);
    outline-offset: 2px;
}

/*---------------------------------------------------
 サポートトップ（/support）
---------------------------------------------------*/
#support .sp-lead {
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 2.6rem;
}
#support .sp-text {
    font-size: 1.6rem;
    line-height: 2.8rem;
}

/* よくあるご質問・お問い合わせ */
#support .sp-cards {
    margin: 30px 0 35px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
}
#support .sp-card {
    padding: 28px 26px 30px;
    border: 2px solid var(--sp-border);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    background: #fff;
}
#support .sp-card h2 {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--sp-gray);
    font-weight: 700;
    font-size: 2.2rem;
    line-height: 3.2rem;
    text-align: center;
}
#support .sp-card p {
    margin-bottom: 28px;
    flex-grow: 1;
    font-size: 1.4rem;
    line-height: 2.4rem;
}
#support .sp-card .sp-btn {
    max-width: none;
}

/* みなさまの声を、カタチに。（改善事例への入口） */
#support .sp-voice {
    margin-bottom: 0;
    padding: 34px 36px;
    border: 2px solid var(--sp-border);
    border-radius: 24px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 24px 32px;
    align-items: center;
    background: #fff;
}
/* 左から、マヒト君、見出し、紹介文とボタンの順に、横に並べる */
#support .sp-voice-head {
    display: flex;
    align-items: center;
    gap: 20px;
}
/* マヒト君（背景なし） */
#support .sp-voice-visual {
    width: 112px;
    height: 112px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
#support .sp-voice-visual picture,
#support .sp-voice-visual img {
    width: 100%;
    height: auto;
    display: block;
}
#support .sp-voice h2 {
    font-weight: 700;
    font-size: 2.2rem;
    line-height: 3.4rem;
}
/* 紹介文とボタンは、右側に寄せる。幅は、記事の幅の半分から 40px を引いた値（狭いときは、max-width で、左のマヒト君と見出しに重ならないようにする） */
#support .sp-voice-body {
    width: calc((100cqw - 0px) / 2 - 40px);
    max-width: 100%;
    justify-self: end;
}
#support .sp-voice p {
    margin-bottom: 8px;
    font-size: 1.4rem;
    line-height: 2.4rem;
}
/* ボタンの幅は、上のカード（お問い合わせ）のボタンと同じにする。
   カードのボタン幅 ＝ (記事の幅 － カードの間隔 35px) ÷ 2 － カードの左右の余白と枠（26×2 ＋ 2×2） */
#support .sp-voice .sp-btn {
    width: calc((100cqw - 35px) / 2 - 56px);
    max-width: 100%;
    margin-top: 18px;
}

/*---------------------------------------------------
 改善事例（/support/improvements）
---------------------------------------------------*/
#support-improvements .si-intro {
    margin-bottom: 36px;
    display: flex;
    align-items: flex-start;
    gap: 40px;
}
#support-improvements .si-intro-text {
    flex: 1 1 auto;
    min-width: 0;
}
#support-improvements .si-intro-text p {
    margin-bottom: 1.2em;
    font-size: 1.5rem;
    line-height: 2.5rem;
}
/* 導入の画像（マヒト君）。薄い黄色の丸い四角の枠の中に表示する */
#support-improvements .si-intro-visual {
    width: 255px;
    height: 255px;
    padding: 20px;
    border-radius: 28px;
    box-sizing: border-box;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff8d6;
}
#support-improvements .si-intro-visual picture,
#support-improvements .si-intro-visual img {
    width: 100%;
    height: auto;
    display: block;
}

#support-improvements .si-list {
    display: grid;
    /* 1 列。minmax(0, 1fr) にして、中の文章の最小幅（auto-phrase の長い文節）で、列が、枠より広がらないようにする */
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
}
#support-improvements .si-item {
    border: 1px solid var(--sp-border);
    border-radius: 20px;
    background: #fff;
}
#support-improvements .si-item summary {
    padding: 26px 72px 26px 30px;
    border-radius: 18px;
    position: relative;
    display: block;
    font-size: 1.6rem;
    line-height: 2.6rem;
    list-style: none;
    cursor: pointer;
}
#support-improvements .si-item summary::-webkit-details-marker {
    display: none;
}
#support-improvements .si-item summary:focus-visible {
    outline: 2px solid var(--light-black);
    outline-offset: 2px;
}
/* タグ（何についての改善かを、質問の上に表示する。色ではなく、文字で意味を伝える） */
#support-improvements .si-tags {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
#support-improvements .si-tag {
    padding: 0 12px;
    border-radius: 50px;
    display: inline-block;
    background: #fff8d6;
    color: var(--light-black);
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 2.4rem;
}
/* タグの色（注文履歴のステータスの配色に合わせた。文字は、背景に対して 4.5:1 以上のコントラスト。赤は「データ不備」で使うので、使わない） */
#support-improvements .si-tag.is-paper {
    background: #fff4e0;
    color: #9a5b00;
}
#support-improvements .si-tag.is-function {
    background: #efedfa;
    color: #5b4bb7;
}
#support-improvements .si-tag.is-submission {
    background: #eaf3fc;
    color: #1a6fc4;
}
#support-improvements .si-tag.is-order {
    background: #eaf6ee;
    color: #2d7a3e;
}
#support-improvements .si-tag.is-delivery {
    background: #f2f2f2;
    color: #444;
}
#support-improvements .si-tag.is-service {
    background: #fbecf4;
    color: #b03a7a;
}
#support-improvements .si-question {
    display: block;
}
/* 開閉のアイコン（閉じているときは＋、開いているときは－） */
#support-improvements .si-item summary::after {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    right: 26px;
    background:
        linear-gradient(#444, #444) center / 12px 2px no-repeat,
        linear-gradient(#444, #444) center / 2px 12px no-repeat,
        var(--sp-gray);
    content: '';
    transform: translateY(-50%);
}
#support-improvements .si-item[open] summary::after {
    background:
        linear-gradient(#444, #444) center / 12px 2px no-repeat,
        var(--sp-gray);
}
#support-improvements .si-answer {
    margin: 0 30px;
    padding: 0 0 30px;
}
/* 改善の見出し（答えの1行）は、閉じているときも見せる。説明文とリンクだけを、開いたときに見せる */
#support-improvements .si-headline {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--sp-gray);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 2.4rem;
}
#support-improvements .si-headline span {
    text-wrap: balance;
}
#support-improvements .si-headline picture,
#support-improvements .si-headline img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: block;
}
#support-improvements .si-answer p {
    margin-bottom: 8px;
    font-size: 1.4rem;
    line-height: 2.4rem;
}
#support-improvements .si-answer a {
    color: var(--light-black);
    text-decoration: underline;
}
#support-improvements .si-answer a:hover {
    text-decoration: none;
}

/*---------------------------------------------------
 responsive（記事の幅で切り替える）
---------------------------------------------------*/
@container (max-width: 620px) {
    #support .sp-cards {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
    #support .sp-voice {
        padding: 26px 22px;
        grid-template-columns: minmax(0, 1fr);
    }
    /* 1 列のときは、カードのボタン幅（記事の幅 － カードの左右の余白と枠 56px）と同じ */
    #support .sp-voice .sp-btn {
        width: calc(100cqw - 56px);
    }
    /* マヒト君と見出しを横に並べ、その下に、上のカードと同じ灰色の線を引く */
    #support .sp-voice-head {
        padding-bottom: 14px;
        border-bottom: 1px solid var(--sp-gray);
        gap: 16px;
        justify-content: center;
    }
    #support .sp-voice-visual {
        width: 84px;
        height: 84px;
    }
    #support .sp-voice-body {
        width: 100%;
        justify-self: stretch;
    }
    #support-improvements .si-intro {
        flex-direction: column-reverse;
        gap: 22px;
    }
    /* 導入文の手動の改行は、幅が狭いと不自然な位置で折り返すため、使わない */
    #support-improvements .si-intro-text br {
        display: none;
    }
    #support-improvements .si-intro-visual {
        width: 100%;
        max-width: 255px;
        height: auto;
        aspect-ratio: 1 / 1;
        align-self: center;
    }
    #support-improvements .si-item summary {
        padding: 20px 60px 20px 20px;
    }
    #support-improvements .si-item summary::after {
        right: 18px;
    }
    #support-improvements .si-answer {
        margin: 0 20px;
    }
}
@media screen and (max-width: 700px) {
    .support-page article h1 {
        font-size: 2.2rem;
        line-height: 3.2rem;
    }
}
