/* keyの木 — 記録から作り直した静的サイト用。色は元のテーマ（SWELL）の設定値に合わせている */
:root {
  --main: #663519; --text: #332b26; --link: #137bf9; --bg: #fdfdfd; --line: #e6dfd9;
  --main-thin: rgba(128, 66, 31, .05);
  --deep01: #e44141; --deep02: #3d79d5; --deep03: #00aa19; --deep04: #f09f4d;
  --pale01: #fff2f0; --pale02: #f3f8fd; --pale03: #f1f9ee; --pale04: #fdf9ee;
  --mark-blue: #b7e3ff; --mark-green: #bdf9c3; --mark-yellow: #fcf69f; --mark-orange: #ffddbc;
  --good: #3f8cff; --bad: #f25757; --check: #663519;
  --border01: solid 2px #ff93b4; --border02: solid 2px #f4cf46; --border03: solid 3px #f4de16; --border04: solid 2px #5dafae;
  --gray: #f7f7f7;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.85; font-size: 16px;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif; overflow-wrap: anywhere; }
@media (min-width: 600px) { body { font-size: 17px; } }
a { color: var(--link); }
img { max-width: 100%; height: auto; vertical-align: middle; }
.inner { max-width: 900px; margin: 0 auto; padding: 0 16px; }

.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .inner { padding-top: 14px; padding-bottom: 14px; }
.site-name { font-size: 1.4em; font-weight: 700; color: var(--main); text-decoration: none; letter-spacing: .05em; }
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); color: #686357; font-size: .85em; text-align: center; padding: 24px 0; }
.site-footer nav a { color: inherit; margin: 0 .8em; }

/* 一覧 */
.catnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; font-size: .85em; }
.catnav a { border: 1px solid var(--line); border-radius: 99px; padding: 2px 12px; color: var(--main); text-decoration: none; }
.page-title { font-size: 1.4em; margin: 32px 0 16px; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card a { display: block; color: var(--text); text-decoration: none; }
.card img, .card__noimg { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: var(--main-thin); }
.card__body { display: block; padding: 8px 2px; }
.card__cat { display: inline-block; font-size: .7em; color: #fff; background: var(--main); padding: 0 8px; border-radius: 2px; }
.card__title { display: block; font-weight: 700; font-size: .92em; line-height: 1.6; margin: 4px 0; }
.card time { font-size: .75em; color: #888; }

/* 記事 */
.post { max-width: 760px; margin: 0 auto; }
.post__cat { margin: 32px 0 0; font-size: .8em; }
.post__cat a { color: #fff; background: var(--main); padding: 2px 10px; border-radius: 2px; text-decoration: none; }
.post__title { font-size: 1.5em; line-height: 1.5; margin: 12px 0 8px; }
.post__date { margin: 0; font-size: .85em; color: #888; }
.post__pr { font-size: .8em; color: #888; margin: 8px 0 16px; }
.eyecatch { margin: 0 0 24px; }
.post p { margin: 0 0 1.6em; }
.post h2 { background: var(--main); color: #fff; font-size: 1.25em; line-height: 1.5; padding: .7em 1em; margin: 3em 0 1.5em; border-radius: 2px; }
.post h3 { font-size: 1.15em; border-bottom: 2px solid var(--main); padding: 0 0 .4em .2em; margin: 2.5em 0 1.2em; position: relative; }
.post h4 { font-size: 1.05em; margin: 2em 0 1em; }
.post figure { margin: 0 0 1.6em; }
.post .aligncenter { text-align: center; margin-left: auto; margin-right: auto; }
.post figcaption, .wp-element-caption { font-size: .8em; color: #777; text-align: center; margin-top: .4em; }
.post ul, .post ol { padding-left: 1.5em; margin: 0 0 1.6em; }
.post li { margin: .3em 0; }
.post blockquote { margin: 0 0 1.6em; padding: 1.2em 1.4em; background: var(--gray); border-left: 4px solid #ccc; font-size: .95em; }
.post blockquote p:last-child { margin-bottom: 0; }
.post iframe { max-width: 100%; }
.wp-block-group.has-background, .has-background { padding: 1.2em 1.4em; border-radius: 4px; margin-bottom: 1.6em; }
.wp-block-group.has-border, .has-border { padding: 1.2em 1.4em; margin-bottom: 1.6em; }
.-border01 { border: var(--border01); } .-border02 { border: var(--border02); }
.-border03 { border: var(--border03); } .-border04 { border: var(--border04); }
.wp-block-group__inner-container > :last-child, .has-background > :last-child { margin-bottom: 0; }
.u-mb-0 { margin-bottom: 0 !important; } .u-mb-10 { margin-bottom: .5em !important; }
.u-mb-30 { margin-bottom: 1.5em !important; } .u-mb-40 { margin-bottom: 2em !important; }
.u-fz-xs { font-size: .75em; } .u-fz-s { font-size: .9em; } .u-fz-l { font-size: 1.1em; }
.has-text-align-center { text-align: center; }
.wp-block-columns { display: flex; gap: 16px; flex-wrap: wrap; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
@media (max-width: 599px) { .wp-block-columns:not(.is-not-stacked-on-mobile) { flex-direction: column; } }

/* 文字の色・マーカー */
.has-swl-deep-01-color { color: var(--deep01) !important; } .has-swl-deep-02-color { color: var(--deep02) !important; }
.has-swl-deep-03-color { color: var(--deep03) !important; } .has-swl-deep-04-color { color: var(--deep04) !important; }
.has-swl-main-color { color: var(--main) !important; }
.has-swl-deep-01-background-color { background-color: var(--deep01) !important; color: #fff; }
.has-swl-pale-01-background-color { background-color: var(--pale01) !important; } .has-swl-pale-02-background-color { background-color: var(--pale02) !important; }
.has-swl-pale-03-background-color { background-color: var(--pale03) !important; } .has-swl-pale-04-background-color { background-color: var(--pale04) !important; }
.has-swl-gray-background-color { background-color: var(--gray) !important; }
.swl-bg-color { padding: 0 .3em; border-radius: 2px; }
.mark_yellow { background: linear-gradient(transparent 64%, var(--mark-yellow) 0); }
.mark_blue { background: linear-gradient(transparent 64%, var(--mark-blue) 0); }
.mark_green { background: linear-gradient(transparent 64%, var(--mark-green) 0); }
.mark_orange { background: linear-gradient(transparent 64%, var(--mark-orange) 0); }

/* 目次 */
.toc { border: 1px solid var(--line); background: var(--main-thin); border-radius: 4px; padding: 1em 1.4em; margin: 2em 0; font-size: .92em; }
.toc__ttl { font-weight: 700; text-align: center; margin: 0 0 .5em !important; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: h2; }
.toc li { margin: .25em 0; }
.toc .toc-h2 { counter-increment: h2; }
.toc .toc-h2::before { content: counter(h2) ". "; color: var(--main); font-weight: 700; }
.toc .toc-h3 { padding-left: 1.6em; font-size: .92em; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* 吹き出し */
.c-balloon { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 1.8em; }
.c-balloon.-bln-right { flex-direction: row-reverse; }
.c-balloon__icon { flex: 0 0 64px; text-align: center; }
.c-balloon__iconImg { width: 64px; height: 64px; border-radius: 50%; border: 1px solid #ddd; background: #fff; object-fit: cover; }
.c-balloon__iconName { display: block; font-size: .7em; color: #888; }
.c-balloon__body { position: relative; flex: 1; min-width: 0; padding: .9em 1.1em; border-radius: 6px; background: #fff; border: 2px solid #d9e8f7; }
.c-balloon[data-col="blue"] .c-balloon__body { border-color: #c4dcf3; background: #f6fafe; }
.c-balloon[data-col="red"] .c-balloon__body { border-color: #f3c4c4; background: #fff7f7; }
.c-balloon[data-col="green"] .c-balloon__body { border-color: #c2e8c8; background: #f6fcf7; }
.c-balloon[data-col="yellow"] .c-balloon__body { border-color: #efe2a6; background: #fffdf2; }
.c-balloon[data-col="gray"] .c-balloon__body { border-color: #ddd; background: #fafafa; }
.c-balloon__body::before { content: ""; position: absolute; top: 20px; left: -10px; border: 8px solid transparent; border-right-color: inherit; border-left: 0; }
.c-balloon.-bln-right .c-balloon__body::before { left: auto; right: -10px; border-right: 0; border-left: 8px solid; border-left-color: inherit; border-top-color: transparent; border-bottom-color: transparent; }
.c-balloon__body { border-right-color: inherit; }
.c-balloon__text > :last-child, .c-balloon__text p:last-child { margin-bottom: 0; }
.c-balloon__shapes { display: none; }

/* 見出し付きの囲み */
.cap_box { margin: 0 0 1.8em; border: 2px solid var(--main); border-radius: 4px; }
.cap_box_ttl { display: flex; align-items: center; gap: .4em; background: var(--main); color: #fff; font-weight: 700; padding: .4em 1em; font-size: .95em; }
.cap_box_ttl svg { fill: currentColor; }
.cap_box_content { padding: 1em 1.2em; }
.cap_box_content > :last-child { margin-bottom: 0; }
.cap_box[data-colset="col2"] { border-color: var(--deep02); } .cap_box[data-colset="col2"] .cap_box_ttl { background: var(--deep02); }
.cap_box[data-colset="col3"] { border-color: var(--deep03); } .cap_box[data-colset="col3"] .cap_box_ttl { background: var(--deep03); }

/* 吹き出し風の囲み・小見出し */
.is-style-balloon_box2 { position: relative; display: inline-block; border: 2px solid var(--main); border-radius: 4px; padding: .5em 1em; margin-bottom: 1.4em; }
.is-style-small_ttl { font-weight: 700; border-bottom: 1px dashed var(--line); margin-bottom: .6em !important; }
.mininote { font-size: .8em; color: #888; }

/* リスト */
.is-style-check_list, .is-style-good_list, .is-style-bad_list { list-style: none; padding-left: .2em !important; }
.is-style-check_list li, .is-style-good_list li, .is-style-bad_list li { position: relative; padding-left: 1.6em; }
.is-style-check_list li::before { content: "✔"; position: absolute; left: 0; color: var(--check); }
.is-style-good_list li::before { content: "○"; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.is-style-bad_list li::before { content: "×"; position: absolute; left: .1em; color: var(--bad); font-weight: 700; }
.-list-under-dashed li { border-bottom: 1px dashed var(--line); padding-bottom: .3em; }
.swl-inline-list { display: inline; }

/* 説明リスト（dl） */
.swell-block-dl { margin: 0 0 1.6em; }
.swell-block-dl__dt { font-weight: 700; border-left: 4px solid var(--main); padding: .2em .8em; background: var(--main-thin); margin-top: 1em; }
.swell-block-dl__dd { margin: .6em 0 0 .4em; }
.swell-block-dl__dd > :last-child { margin-bottom: 0; }

/* ステップ */
.swell-block-step { margin: 0 0 1.8em; }
.swell-block-step__item { position: relative; padding: 0 0 1.4em 3em; border-left: 2px solid var(--line); margin-left: 1.2em; }
.swell-block-step__item:last-child { border-left-color: transparent; }
.swell-block-step__number { position: absolute; left: -1.25em; top: 0; width: 2.5em; height: 2.5em; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .8em; line-height: 1; text-align: center; }
.swell-block-step__number .__label { font-size: .75em; }
.u-bg-main { background: var(--main); }
.swell-block-step__title { margin-bottom: .6em; padding-top: .1em; }
.swell-block-step__body > :last-child { margin-bottom: 0; }

/* ボタン */
.swell-block-button { text-align: center; margin: 0 0 1.6em; }
.swell-block-button a { display: inline-block; min-width: 70%; padding: .9em 2em; border-radius: 80px; color: #fff; font-weight: 700; text-decoration: none; background: var(--main); box-shadow: 0 2px 4px rgba(0,0,0,.15); }
.swell-block-button.green_ a { background: #3cb44b; } .swell-block-button.red_ a { background: var(--deep01); } .swell-block-button.blue_ a { background: var(--deep02); }
.swell-block-button img[width="1"] { position: absolute; }

/* 表 */
.wp-block-table { margin: 0 0 1.8em; overflow-x: auto; }
.post table { border-collapse: collapse; width: 100%; font-size: .9em; line-height: 1.6; }
.post th, .post td { border: 1px solid #ddd; padding: .6em .7em; vertical-align: top; }
.post thead th, .post thead td, .post th { background: var(--main-thin); font-weight: 700; }
.post .td_to_th_ tbody tr > :first-child { background: var(--main-thin); font-weight: 700; }
.swl-cell-text-centered { text-align: center; }
.post table figcaption { text-align: left; }

/* 商品リンク（ポチップ） */
.pochipp-box { display: grid; grid-template-columns: 120px 1fr; grid-template-areas: "img body" "img btns"; column-gap: 16px; align-items: center; border: 1px solid #ddd; border-radius: 6px; padding: 16px; margin: 0 0 2em; background: #fff; }
.pochipp-box.-noimg { grid-template-columns: 1fr; grid-template-areas: "body" "btns"; }
.pochipp-box__image { grid-area: img; text-align: center; }
.pochipp-box__body { grid-area: body; min-width: 0; }
.pochipp-box__btns { grid-area: btns; }
.pochipp-box__image img { max-height: 160px; width: auto; }
.pochipp-box__title { font-weight: 700; font-size: .92em; line-height: 1.6; }
.pochipp-box__title a { color: var(--text); text-decoration: none; }
.pochipp-box__info, .pochipp-box__review { font-size: .75em; color: #888; margin-top: .3em; }
.pochipp-box__saleInfo { font-size: .75em; color: var(--deep01); font-weight: 700; margin-bottom: .3em; }
.pochipp-box__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pochipp-box__btnwrap { flex: 1 1 120px; position: relative; }
.pochipp-box__btn { display: block; text-align: center; color: #fff !important; text-decoration: none; font-weight: 700; font-size: .85em; padding: .6em .4em; border-radius: 40px; }
.-amazon .pochipp-box__btn { background: #f99a0c; }
.-rakuten .pochipp-box__btn { background: #e0423c; }
.-yahoo .pochipp-box__btn { background: #438ee8; }
.-mercari .pochipp-box__btn { background: #3c3c3c; }
.-custom .pochipp-box__btn { background: var(--main); }
.pochipp-box__btnwrap img[width="1"] { position: absolute; }
.pochipp-box__logo { display: none; }
@media (max-width: 599px) {
  .pochipp-box { grid-template-columns: 1fr; grid-template-areas: "img" "body" "btns"; text-align: center; row-gap: 8px; }
  .pochipp-box.-noimg { grid-template-areas: "body" "btns"; }
  .pochipp-box__btns { flex-direction: column; }
  .pochipp-box__btnwrap { flex-basis: auto; }
}

/* 関連記事 */
.related { max-width: 760px; margin: 64px auto 0; }
.related__ttl { font-size: 1.15em; border-bottom: 2px solid var(--main); padding-bottom: .4em; margin-bottom: 1.2em; }
.related .cards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* 固定ページ */
.page h1 { font-size: 1.5em; margin: 32px 0 24px; }
.page h2 { font-size: 1.15em; background: none; color: var(--text); border-left: 4px solid var(--main); border-radius: 0; padding: .2em .8em; margin: 2.2em 0 1em; }

.post td p, .post th p { margin: 0 0 .4em; }
.post td p:last-child, .post th p:last-child { margin-bottom: 0; }
.c-balloon__text p:last-of-type { margin-bottom: 0; }
