/* ============================================================
   sts-66 複業ログ — カスタムCSS
   カラーテーマ: Camel & Tan
   最終更新: 2026-04
   構成:
     1. CSS変数（:root）
     2. インポート
     3. ベース
     4. レイアウト
     5. ヘッダー・ナビ
     6. ヒーローセクション
     7. フッター
     8. 見出し（H2〜H5）
     9. 目次
    10. ボタン
    11. アーカイブ・カード
    12. おすすめ記事カード
    13. テーブル
    14. コンポーネント（メモ・注意・成功談・失敗談）
    15. FAQアコーディオン
    16. フローチャート
    17. ステップボックス
    18. 商品カード
    19. コピーボックス
    20. タイムライン
    21. アコーディオン（汎用）
    22. ページャー
    23. 記事本文
    24. その他ユーティリティ
============================================================ */


/* ============================================================
   1. CSS変数
============================================================ */
:root {
  /* --- ベース --- */
  --main-bg:      #FDFAF6;   /* ウォームオフホワイト */
  --main-text:    #2E1C0E;   /* ダークブラウン */
  --border-color: #E8D5BC;   /* ベージュボーダー */
  --radius:       8px;
  --shadow:       0 2px 6px rgba(46,28,14,0.07);

  /* --- アクセント・リンク（キャメル） --- */
  --accent-color: #9E6B3A;
  --accent-hover: #7A4F28;
  --link-color:   var(--accent-color);
  --link-hover:   var(--accent-hover);

  /* --- グレースケール（ウォームトーン） --- */
  --gray-100: #FBF3E8;   /* 薄キャメル */
  --gray-200: #F5EAD8;   /* ベージュ */
  --gray-300: #E8D5BC;   /* ボーダーベージュ */
  --gray-400: #C49060;   /* ミッドタン */
  --gray-500: #8C6040;   /* ミディアムブラウン */
  --gray-600: #5A3820;   /* ダークタン */
  --gray-700: #3A2210;   /* ディープブラウン */
  --gray-800: #2E1C0E;   /* ヘッダー・ページャー用 */
  --gray-900: #1A0E06;   /* ページャーhover用 */

  /* --- 注意ボックス（赤系） --- */
  --notice-bg:    #FDECEA;
  --notice-icon:  #C43030;
  --notice-title: #8B1A1A;
  --notice-body:  #702020;

  /* --- メモボックス（青系 → 情報・補足として差別化） --- */
  --memo-bg:    #EBF3FA;
  --memo-icon:  #3A6EA8;
  --memo-title: #1A3D6B;
  --memo-body:  #2A4F7A;

  /* --- 成功談（緑系） --- */
  --success-bg:    #EDF6ED;
  --success-icon:  #3A7A3A;
  --success-title: #1F5A1F;

  /* --- 失敗談（オレンジ強め → メモとの混同を解消） --- */
  --failure-bg:    #FFF0E0;
  --failure-icon:  #C05010;
  --failure-title: #7A2E08;

  /* --- ステップボックス --- */
  --step-bg:           var(--gray-100);
  --step-border:       var(--gray-400);
  --step-icon-bg:      var(--gray-200);
  --step-icon-color:   var(--gray-500);
  --step-number-bg:    var(--gray-400);
  --step-number-color: #ffffff;
  --step-title:        var(--gray-700);
  --step-body:         var(--gray-600);
  --step-shadow:       rgba(100,60,20,0.1);
  --step-shadow-hover: rgba(100,60,20,0.2);

  /* --- ヘッダー・ドロップダウン --- */
  --hero-text:   var(--gray-500);
  --dropdown-bg: var(--gray-800);
}


/* ============================================================
   2. インポート
============================================================ */
@charset "UTF-8";/*!
Theme: Smooth
Author: Hatena Blog Team
Responsive: yes
*//*!
 * Bootstrap Reboot v4.2.1 (https://getbootstrap.com/)
 * Copyright 2011-2018 The Bootstrap Authors
 * Copyright 2011-2018 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 * Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
 */*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:left;background-color:#fff}[tabindex="-1"]:focus{outline:0!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[title],abbr[data-original-title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul,dl{margin-top:0;margin-bottom:1rem}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#007bff;text-decoration:none;background-color:transparent}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){color:inherit;text-decoration:none}a:not([href]):not([tabindex]):hover,a:not([href]):not([tabindex]):focus{color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}pre,code,kbd,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto}figure{margin:0 0 1rem}img{vertical-align:middle;border-style:none}svg{overflow:hidden;vertical-align:middle}table{border-collapse:collapse}caption{padding-top:.75rem;padding-bottom:.75rem;color:#6c757d;text-align:left;caption-side:bottom}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}input,button,select,optgroup,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}template{display:none}[hidden]{display:none!important}html,body{background:#f9fafb;font-family:helvetica,Segoe UI,游ゴシック体,YuGothic,游ゴシック Medium,Yu Gothic Medium,游ゴシック,Yu Gothic,メイリオ,Meiryo,sans-serif;color:#293030}html{line-height:1}body{font-size:17px;line-height:1.6}img{vertical-align:baseline}a{color:#293030}a:hover{color:#586767;transition:all .3s}.date{margin:0 0 .7em;font-size:.9rem}.date a{color:#6f8383}.date a:hover{color:#a5b3b3}.date-last-updated{color:#6f8383;font-size:.9rem}#globalheader-container{position:sticky;top:0;background:#f9fafb}#container{word-wrap:break-word}#blog-title{max-width:1280px;margin:auto;padding:4% 5%;text-align:center}#title{font-size:150%;font-family:Times New Roman,游明朝体,YuMincho,游明朝,Yu Mincho,serif;font-weight:400}@media(min-width:768px){#title{font-size:215%}}#blog-description{font-size:90%;font-weight:400}#content-inner{width:100%;display:flex;flex-direction:column}@media(min-width:768px){#content-inner{flex-direction:row;margin:auto;padding:0 20px}}@media(min-width:1200px){#content-inner{width:1200px}}#wrapper{flex:0 0 100%;max-width:100%}@media(min-width:768px){#wrapper{flex:0 0 75%;max-width:75%}}@media(min-width:1020px){#main{padding:0 3% 0 0}}.header-image-enable #blog-title,.header-image-only #blog-title{padding:0 0 1.5em}@media(min-width:1200px){.header-image-enable #blog-title,.header-image-only #blog-title{width:1160px}}.header-image-enable #blog-title #blog-title-inner,.header-image-only #blog-title #blog-title-inner{display:flex;align-items:center;justify-content:center;height:50vw;max-height:200px}@media(min-width:1200px){.header-image-enable #blog-title #blog-title-inner,.header-image-only #blog-title #blog-title-inner{background-size:100%}}.header-image-enable #blog-title-content,.header-image-only #blog-title-content{margin:0 .5em}.breadcrumb{font-size:.9rem}.categories{margin-bottom:2em}.categories a{display:inline-block;background:#e9f0f2;margin:0 .3em 0 0;padding:0 10px;font-size:12px}.pager{text-align:center;margin:3em .8em}@media(min-width:1020px){.pager{margin:0}}.pager a{display:inline-block;width:100%;background:#eff1f5;padding:.7em 1.2em;border:none;font-weight:400;font-size:.9rem;color:#293030}.pager a:hover{background-color:#e9ecf1;text-decoration:none}.pager .pager-next,.pager .pager-prev{width:100%;padding:.5em 0}.pager .pager-prev+.pager-next{margin-left:1em;padding-left:1em}@media(min-width:768px){.pager .pager-prev+.pager-next{margin-left:1.5em;padding-left:1.5em}}.pager.permalink{display:flex;justify-content:center;align-items:center;text-align:center}.hatena-urllist{padding-left:0;list-style:none}.hatena-urllist li{border-top:1px dotted #cfd8d8;padding-top:10px;padding-bottom:10px}.hatena-urllist .archive-module-year,.hatena-urllist .archive-module-month{line-height:2}.hatena-urllist .urllist-date-link a{color:#6f8383}.hatena-urllist .urllist-category-link{display:inline-block;background:#e9f0f2;margin:.5em .3em 0 0;padding:3px 10px;font-size:12px;line-height:1.3}.hatena-urllist .urllist-category-link:hover{background:#d9e5e9;text-decoration:none;transition:background .3s}.hatena-urllist .urllist-entry-body{margin-top:10px}.hatena-module{margin-bottom:3em;padding-left:20px;padding-right:20px;font-size:.85rem}.hatena-module:last-child{margin-bottom:0}.hatena-module-title{margin-bottom:12px;font-family:Times New Roman,游明朝体,YuMincho,游明朝,Yu Mincho,serif;font-size:20px}.hatena-module-body{font-size:15px}.hatena-module-body .urllist-title-link{font-size:100%}.hatena-module-body .archive-module-button{display:inline-block;width:15px;height:15px}.hatena-module-body .archive-module-hide-button,.hatena-module-body .archive-module-show-button{position:absolute;overflow:hidden;width:15px;height:15px;text-indent:-15px}.hatena-module-body .archive-module-hide-button:after,.hatena-module-body .archive-module-show-button:after{content:"";top:50%;display:inline-block;position:absolute;width:8px;height:8px;margin-top:-.1em;border-top:1px solid #6f8383;border-right:1px solid #6f8383}.hatena-module-body .archive-module-hide-button{transform:rotate(135deg);margin-top:.2em}.hatena-module-body .archive-module-show-button{transform:rotate(45deg);margin-top:.2em}@media(min-width:481px){.search-result-form{margin:0 1em}}.search-result+p{background:#fff;border:1px solid #f0f1f1;margin:0 0 3em;padding:8% 0;font-weight:700;text-align:center}.search-form,.search-result-form{position:relative;width:100%;background:#fff;margin:auto;border:1px solid #eee;box-sizing:border-box}.search-form:hover,.search-result-form:hover{border-color:#ddd}.search-module-input,.search-result-form .search-result-input{width:90%;height:30px;padding:5px;background:#fff;border:none;outline:none}.search-module-input::-webkit-input-placeholder,.search-result-form .search-result-input::-webkit-input-placeholder,.search-module-input::-placeholder,.search-result-form .search-result-input::-placeholder{color:#9faba9}.search-module-button,.search-result-form .search-result-button{width:20px;height:20px;background:transparent url(https://cdn.blog.st-hatena.com/images/theme/search@2x.png?version=f55d41c1f1e9d553c20fd41f441dc0) no-repeat right center;background-size:20px 20px;border:none;outline:none;text-indent:-9999px;position:absolute;top:5px;right:5px;opacity:.5;cursor:pointer}.search-module-button:hover,.search-result-form .search-result-button:hover{opacity:.85}#top-box{margin:0 auto;padding:0 10px}@media(min-width:768px){#top-box{padding:0 20px}}@media(min-width:1200px){#top-box{max-width:1200px}}.entry{background:#fff;border:1px solid #f0f1f1;margin-bottom:2em;padding:8% 5%}@media(min-width:768px){.entry{padding:8% 9% 5%}}.entry-header{position:relative;margin-bottom:1.5em}@media(min-width:481px){.entry-header{margin-bottom:3em}}.entry-header-menu{position:absolute;top:0;right:0;margin-bottom:1em}.entry-header-menu a{background:#f9fafb;border:1px solid #cfd8d8;padding:5px 10px;font-size:.9rem}.entry-header-menu a:hover{background:#f3f5f7;text-decoration:none}.entry-title{margin-bottom:.5em;font-family:Times New Roman,游明朝体,YuMincho,游明朝,Yu Mincho,serif;font-size:130%;font-weight:400;line-height:1.5}@media(min-width:768px){.entry-title{font-size:190%}}.entry-content{line-height:1.85}.entry-content a{color:#119e4d}.entry-content a:hover{color:#0c7037}.entry-content a.keyword{-webkit-text-decoration:underline dotted #cfd8d8;text-decoration:underline dotted #cfd8d8}.entry-content a.keyword:hover{color:#586767;-webkit-text-decoration:underline dotted #ffffff;text-decoration:underline dotted #ffffff}.entry-content img,.entry-content video{max-width:100%;height:auto}.entry-content h1,.entry-content h2,.entry-content h3,.entry-content h4,.entry-content h5,.entry-content h6{margin:1.5em 0 .8em;line-height:1.3}.entry-content h1{padding-bottom:15px;font-size:190%;border-bottom:1px solid #cfd8d8}.entry-content h2{font-size:165%}.entry-content h3{padding-bottom:10px;font-size:140%;border-bottom:1px solid #cfd8d8}.entry-content h4{font-size:130%}.entry-content h5{padding-bottom:10px;font-size:120%;border-bottom:1px solid #cfd8d8}.entry-content h6{font-size:100%}.entry-content ul,.entry-content ol,.entry-content dd{margin:0 0 1em 1.5em;padding:0;line-height:1.7}.entry-content ul li ul,.entry-content ol li ul,.entry-content dd li ul,.entry-content ul li ol,.entry-content ol li ol,.entry-content dd li ol{margin-bottom:0}.entry-content dl{margin-top:2em}.entry-content dl dt{margin-bottom:.8em}.entry-content p{margin:0 0 .7em}.entry-content h1,.entry-content h2,.entry-content h3,.entry-content h4,.entry-content h5,.entry-content h6,.entry-content .footnote-number{scroll-margin-top:56px}.entry-content blockquote{position:relative;padding:9px 15px 9px 40px;border:1px solid #f0f1f1}@media(min-width:1020px){.entry-content blockquote{padding:20px 20px 20px 60px}}.entry-content blockquote:before{display:inline-block;position:absolute;top:10px;left:10px;vertical-align:middle;content:"“";font-size:40px;font-family:Times New Roman,游明朝体,YuMincho,游明朝,Yu Mincho,serif;color:#6f8383;line-height:1}@media(min-width:1020px){.entry-content blockquote:before{left:15px;font-size:70px}}.entry-content blockquote p{margin-bottom:0}.entry-content blockquote cite{display:block;margin-top:.5rem;text-align:right;font-size:85%;line-height:1.3}.entry-content table{border-collapse:collapse;border-spacing:0;border-bottom:1em;margin-bottom:1em;width:100%;overflow:auto;display:block}.entry-content table th,.entry-content table td{border:1px solid #f0f1f1;padding:5px 10px}.entry-content table th{background:#f9fafb}.entry-content pre,.entry-content code{font-family:Monaco,Consolas,Courier New,Courier,monospace,sans-serif}.entry-content pre{background:#293030;border:none;white-space:pre-wrap;text-overflow:ellipsis ellipsis;font-size:100%;font-size:.9rem;padding:10px;color:#ccc}@media(min-width:768px){.entry-content pre{font-size:.85rem;padding:15px}}.entry-content pre>code{margin:0;padding:0;white-space:pre;border:none;background-color:transparent;font-family:Monaco,Consolas,Courier New,Courier,monospace,sans-serif}.entry-content code{font-size:90%;margin:0 .1em;padding:0 5px;border-radius:3px}.entry-content .table-of-contents{background:#f9fafb;margin-left:0;padding:15px 10px 15px 35px;font-size:16px}@media(min-width:768px){.entry-content .table-of-contents{padding:20px 20px 20px 50px}}.entry-footer{margin-top:1em}.entry-footer-modules .hatena-module{padding:0}.entry-footer-section{margin-bottom:8px;color:#6f8383;font-size:.9rem}.entry-footer-section a{color:#6f8383}.entry-footer-ad{margin-left:-9%;margin-right:-9%}.comment-box{margin:0 -5%;padding:5% 5% 0;border-top:1px solid #f0f1f1}@media(min-width:768px){.comment-box{margin:0 -11%;padding:20px 11% 0}}.comment-box .leave-comment-title{background:#f9fafb;border:1px solid #cfd8d8;padding:.5rem 1rem;font-size:.9rem}.comment-box .leave-comment-title:hover{background:#f3f5f7}.comment-box .comment{list-style:none;padding-left:0}.comment-box .comment a{color:#119e4d}.comment-box .comment a:hover{color:#0c7037}.comment-box .comment .comment-user-id{font-size:14px;font-weight:700}.comment-box .comment .entry-comment{padding:20px 0 0;border-top:1px solid #f0f1ff;color:#6f8383}.comment-box .comment .entry-comment:first-child{padding-top:0;border-top:none}.comment-box .comment .entry-comment .comment-content{word-wrap:break-word}.comment-box .comment .entry-comment .comment-content p{font-size:14px}.comment-box .comment .entry-comment time{font-size:12px}.comment-box .comment .read-more-comments{font-size:14px}@media(min-width:1020px){.comment-box .comment .read-more-comments{margin-right:25px}}.comment-box .comment .read-more-comments a{position:relative;display:inline-block}.comment-box .comment .read-more-comments a:after{content:"";top:20%;left:-20px;display:inline-block;position:absolute;width:8px;height:8px;border-top:1px solid #119e4d;border-right:1px solid #119e4d;transform:rotate(135deg);margin-top:1px}#box2{flex:0 0 100%;max-width:100%;background:#fff3;padding:1em 0}@media(min-width:768px){#box2{flex:0 0 25%;max-width:25%}}#box2 .hatena-urllist>li:last-child{border-bottom:1px dotted #cfd8d8}.hatena-module-profile .profile-icon-link{display:inline;float:left;margin-right:.7em}.hatena-module-profile .profile-icon-link .profile-icon{border-radius:400px}@media(min-width:1020px){.hatena-module-profile .profile-icon-link{display:block;float:none;margin-right:0}}.hatena-module-profile .id{display:block}.hatena-module-profile .id a{color:#119e4d;font-weight:700}.hatena-module-profile .id a:hover{color:#0c7037}.hatena-module-profile .profile-description p{font-size:80%}.archive-module-calendar .calendar-day a{color:#119e4d;font-weight:700}.archive-module-calendar .calendar-day a:hover{color:#0c7037}.hatena-module-recent-comments .user-id span{font-size:12px;opacity:.7}#footer{background:#fff;margin-top:2em;padding-top:2rem;padding-bottom:2rem;text-align:center;font-size:.9rem;color:#6f8383}#footer a{color:#6f8383}#footer p{margin:.5em auto}.archive-header-category{margin-bottom:.3em}.page-archive .archive-heading{margin:.5em .7em 1.3em;line-height:1.5}@media(min-width:1020px){.page-archive .archive-heading{margin:.5em 0 1.3em}}.page-archive .archive-entry{background:#fff;border:1px solid #f0f1f1;margin-bottom:30px;padding:9% 6% 6%}@media(min-width:768px){.page-archive .archive-entry{padding:6%}}@media(min-width:768px){.page-archive .archive-entry .entry-title{font-size:150%}}



/* ============================================================
   3. ベース
============================================================ */

/* デフォルトのブログタイトルを非表示 */
#blog-title,
.blog-title {
  display: none !important;
}

body {
  font-family: "Noto Sans JP", "游ゴシック体", YuGothic, sans-serif;
  color: var(--main-text);
  background-color: var(--main-bg);
  font-size: 16px;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid rgba(158,107,58,0.25);
  outline-offset: 3px;
  color: var(--link-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em 0;
  border-radius: 6px;
}

.img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}


/* ============================================================
   4. レイアウト
============================================================ */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 15px;
}


/* ============================================================
   5. ヘッダー・ナビ
============================================================ */
.site-header {
  background-color: var(--gray-800);
  padding: 20px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.site-title a {
  font-size: 1.4rem;
  color: #F5EAD8 !important;
  text-decoration: none;
  font-family: "Noto Sans JP", sans-serif;
}

.site-title .fa-layer-group {
  font-size: 1.5rem;
  color: var(--gray-400);
}

.logo {
  font-size: 1.6rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--main-text);
}

/* グローバルナビ */
#gnav .gnav-inner {
  display: flex;
  gap: 10px;
}

.menu a {
  font-size: 0.95rem;
  color: #C8A878 !important;
  font-weight: 600;
  text-decoration: none;
  display: block;
  padding: 10px 16px;
  line-height: 1.3;
}

.menu a:hover {
  color: #F5EAD8 !important;
  text-decoration: none;
}

.menu i {
  margin-right: 6px;
}

/* ドロップダウン */
.menu.dropdown {
  position: relative;
}

.menu.dropdown > a {
  display: block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--dropdown-bg);
  min-width: 180px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  border-radius: var(--radius);
  flex-direction: column;
  z-index: 1500;
}

.dropdown-content a {
  font-size: 0.85rem;
  line-height: 1.2;
  padding: 6px 12px;
  color: #C8A878;
}

.menu.dropdown:hover .dropdown-content {
  display: flex;
}

/* ハンバーガー */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #F5EAD8;
  cursor: pointer;
}

/* スマホ */
@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
  }

  #gnav {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  #gnav.collapsed {
    display: none;
  }

  .menu.dropdown > .dropdown-content {
    position: relative;
    box-shadow: none;
    border-radius: 0;
  }

  .dropdown-content.active {
    display: flex;
    flex-direction: column;
  }

  #gnav .gnav-inner {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}


/* ============================================================
   6. ヒーローセクション
============================================================ */
.hero-section {
  background: linear-gradient(135deg, #FBF3E8 0%, #F5EAD8 100%);
  text-align: center;
  padding: 20px 20px 40px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.hero-section h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--gray-700);
}

.hero-section p {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--hero-text);
}

.hero-categories {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.hero-card {
  display: block;
  width: 250px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
}

.card-img-wrapper {
  position: relative;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 8px 6px;
  background: rgba(46,28,14,0.72);
  color: #F5EAD8;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: background 0.3s;
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(46,28,14,0.15);
}

.hero-card:hover .card-overlay {
  background: rgba(46,28,14,0.88);
}

@media (max-width: 768px) {
  .hero-categories {
    flex-direction: column;
    gap: 20px;
  }

  .hero-card {
    width: 90%;
    margin: 0 auto;
  }
}


/* ============================================================
   7. フッター
============================================================ */
footer {
  width: 100%;
  background: var(--main-bg);
  border-top: 1px solid var(--border-color);
  padding: 30px 15px;
  text-align: center;
  font-size: 14px;
  color: var(--gray-500);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-links li {
  display: inline-block;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-copy {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 10px;
}


/* ============================================================
   8. 見出し（H2〜H5）
   ※ はてなブログではH3が最上位見出し
============================================================ */
h1, h2, h3, h4, h5 {
  color: var(--main-text);
  margin-top: 2em;
  margin-bottom: 0.8em;
  line-height: 1.3;
  word-break: break-word;
}

/* H2・H3 共通（セクションの柱） */
h2,
h3 {
  font-size: 1.45rem !important;
  font-weight: 700;
  padding: 0.7em 0.9em;
  background: var(--gray-100);
  border-left: 7px solid var(--accent-color);
  border-bottom: 2px solid var(--gray-300);
  border-radius: 6px;
  color: var(--gray-700);
  box-shadow: 0 3px 6px rgba(46,28,14,0.06);
  margin-top: 2.6em;
}

/* H4（中見出し）— グラデ背景でH3との階層差を明確に */
h4 {
  font-size: 1.15rem !important;
  font-weight: 600;
  padding: 0.45em 0.75em;
  background: linear-gradient(90deg, #FBF0E4 0%, var(--main-bg) 70%);
  border-left: 4px solid var(--accent-color);
  border-radius: 4px;
  color: var(--gray-600);
  box-shadow: 0 1px 2px rgba(46,28,14,0.04);
  margin-top: 2em;
}

/* H5（補助見出し）— ドット＋破線下線。ボタンとの混同なし */
h5 {
  font-size: 1rem !important;
  font-weight: 600;
  padding-left: 0.9em;
  padding-bottom: 4px;
  position: relative;
  color: var(--gray-600);
  border-bottom: 1px dashed var(--gray-300);
  margin-top: 1.8em;
}

h5::before {
  content: "·";
  position: absolute;
  left: 0;
  top: -4px;
  color: var(--accent-color);
  font-size: 1.6rem;
  line-height: 1;
}

/* スマホ */
@media screen and (max-width: 768px) {
  h2,
  h3 {
    font-size: 1.3rem !important;
    padding: 0.6em 0.75em;
  }

  h4 {
    font-size: 1.05rem !important;
    padding: 0.4em 0.6em;
  }

  h5 {
    font-size: 0.95rem !important;
    padding-left: 0.85em;
  }

  h1, h2, h3 {
    margin-top: 1.4em;
  }
}


/* ============================================================
   9. 目次
============================================================ */
.table-of-contents {
  max-width: 100%;
  width: 100%;
  border: 1px solid var(--gray-300);
  background: var(--main-bg);
  border-radius: 6px;
  margin: 2.5em 0 2em;
  color: var(--gray-700);
  box-shadow: 0 2px 8px rgba(46,28,14,0.07);
  user-select: none;
  position: relative;
  padding: 1.6em 1.8em;
  line-height: 1.6;
  font-size: 15px;
}

.table-of-contents::before {
  content: "INDEX";
  position: absolute;
  top: -1em;
  left: 1.5em;
  background: var(--main-bg);
  padding: 0 0.6em;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  text-transform: uppercase;
  border-radius: 4px;
  user-select: none;
}

.table-of-contents > ul > li {
  position: relative;
  margin-bottom: 1.5em;
  padding-left: 1.6em;
  font-weight: 700;
  color: var(--gray-700);
  letter-spacing: 0.02em;
  cursor: pointer;
}

.table-of-contents > ul > li::before {
  content: "▼";
  position: absolute;
  left: 0;
  top: 0.2em;
  color: var(--accent-color);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.3s ease, color 0.3s ease;
  user-select: none;
}

.table-of-contents > ul > li:hover::before {
  color: var(--accent-hover);
}

.table-of-contents > ul > li > ul {
  max-height: 0;
  overflow: hidden;
  padding-left: 2.2em;
  border-left: 2px solid var(--gray-300);
  margin-top: 0.6em;
  transition: max-height 0.35s ease;
}

.table-of-contents > ul > li.open > ul {
  max-height: 500px;
}

.table-of-contents > ul > li.open::before {
  transform: rotate(-180deg);
}

.table-of-contents > ul > li > ul > li {
  margin-bottom: 1.1em;
  font-weight: 400;
  color: var(--gray-600);
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
}

.table-of-contents a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
  width: 100%;
}

.table-of-contents > ul > li > ul > li:hover a,
.table-of-contents a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .table-of-contents {
    padding: 1em 1.2em;
    font-size: 14px;
  }

  .table-of-contents::before {
    left: 1em;
    font-size: 0.8rem;
  }

  .table-of-contents > ul > li::before {
    font-size: 1rem;
    top: 0.1em;
  }

  .table-of-contents > ul > li > ul > li {
    font-size: 0.95rem;
  }
}


/* ============================================================
   10. ボタン
   ソリッド（メインCTA）＋ アウトライン（サブCTA）
============================================================ */

/* メインCTA：ソリッド */
.button,
.btn-link {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 7px;
  background: var(--accent-color);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(46,28,14,0.12);
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.button:hover,
.btn-link:hover {
  background: var(--accent-hover);
  color: #fff !important;
  text-decoration: none;
  transform: translateY(-1px);
}

/* サブCTA：アウトライン */
.btn-link-outline {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 7px;
  background: transparent;
  border: 1.5px solid var(--accent-color);
  color: var(--accent-color) !important;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.btn-link-outline:hover {
  background: var(--gray-100);
  color: var(--accent-hover) !important;
  text-decoration: none;
  transform: translateY(-1px);
}


/* ============================================================
   11. アーカイブ・カード
============================================================ */
.page-archive .archive-entries {
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
}

.page-archive .archive-entry {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 10px;
  width: 100%;
  margin-bottom: 2em;
}

@media (min-width: 481px) {
  .page-archive .archive-entry {
    width: 50%;
  }
}

.archive-entry-header {
  display: flex;
  flex-direction: column-reverse;
  order: 2;
  width: 100%;
}

.page-archive .entry-title {
  font-size: 18px;
  line-height: 1.5;
  margin: 0.5em 0;
  padding: 0;
  font-weight: bold;
}

.page-archive .entry-title a {
  font-size: 18px;
  color: var(--main-text);
  text-decoration: none;
}

.page-archive .entry-thumb-link {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: rgba(46,28,14,0.12) 0 2px 5px -1px,
              rgba(0,0,0,0.1) 0 1px 3px -1px;
  width: 100%;
  height: auto;
}

.page-archive .entry-thumb {
  background-size: cover;
  background-position: 50%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  transition: transform 0.25s ease-in-out;
}

.page-archive .entry-thumb::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(46,28,14,0.25);
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}

.page-archive .archive-entry:hover .entry-thumb {
  transform: scale(1.05);
}

.page-archive .archive-entry:hover .entry-thumb::before {
  opacity: 1;
}

.page-archive .categories {
  order: 3;
  margin: 0;
  padding: 0;
}

.archive-entry-body {
  display: none;
}

/* 人気記事一覧 */
.popular-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.popular-articles li {
  background: var(--main-bg);
  box-shadow: 0 2px 10px rgba(46,28,14,0.08);
  border-radius: 8px;
  padding: 15px;
  flex: 1 1 calc(33% - 20px);
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.popular-articles li:hover {
  transform: translateY(-6px);
}

.popular-articles a {
  font-weight: 700;
  color: var(--main-text);
  text-decoration: none;
}

.popular-articles p {
  margin-top: 10px;
  color: var(--gray-500);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .popular-articles ul {
    flex-direction: column;
  }

  .popular-articles li {
    flex: 1 1 100%;
  }
}


/* ============================================================
   12. おすすめ記事カード
============================================================ */
[class^="recommend"] {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: var(--main-bg);
}

.recommend-container {
  padding: 20px 2vw;
  background: var(--main-bg);
}

.recommend-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  list-style: none;
}

.recommend-item {
  width: calc(50% - 1vw);
  border: solid 1px var(--border-color);
  border-radius: 6px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: rgba(46,28,14,0.1) 0 1px 4px;
}

@media (min-width: 992px) {
  .recommend-container {
    padding: 28px 28px 0;
  }

  .recommend-item {
    width: calc(25% - 10px);
  }
}

.recommend-figure {
  padding-top: 50%;
  position: relative;
  overflow: hidden;
}

.recommend-img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.recommend-figure::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(46,28,14,0.2);
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.2s ease-in-out;
}

.recommend-link:hover .recommend-figure img {
  transform: scale(1.05);
}

.recommend-link:hover .recommend-figure::before {
  opacity: 1;
}

.recommend-title {
  display: block;
  padding: 8px;
  font-size: 16px;
  font-weight: bold;
  text-align: left;
  line-height: 1.4;
  color: var(--main-text);
}

.recommend-link {
  text-decoration: none;
  color: var(--gray-600) !important;
  display: block;
  width: 100%;
  height: 100%;
  background: var(--main-bg);
}


/* ============================================================
   13. テーブル
   .table-wrap を inline-block 化しコンテンツ幅に追従させる
   HTML側: <div class="table-outer"><div class="table-wrap">...</div></div>
============================================================ */
.table-outer {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrap {
  display: inline-block;
  min-width: 280px;
  max-width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: var(--gray-100);
  box-shadow: 0 4px 12px rgba(46,28,14,0.07);
  box-sizing: border-box;
}

.gray-table {
  width: auto;
  border-collapse: separate;
  border-spacing: 0 6px;
  font-size: 16px;
  color: var(--main-text);
  table-layout: auto;
  min-width: 260px;
  white-space: nowrap;
}

.gray-table thead th {
  background-color: var(--accent-color);
  color: #FBF3E8;
  text-align: left;
  padding: 16px 20px;
  font-weight: 600;
  letter-spacing: 0.03em;
  user-select: none;
  border: none;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.gray-table tbody td {
  background-color: #fff;
  padding: 14px 20px;
  color: var(--main-text);
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  transition: background-color 0.2s;
}

.gray-table tbody tr:nth-child(even) td {
  background-color: #FDFAF6;
}

.gray-table tbody tr:hover td {
  background-color: var(--gray-100);
}

.gray-table tfoot td {
  background-color: var(--gray-200);
  font-weight: 600;
  color: #C43030;
  padding: 16px 20px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

@media screen and (max-width: 768px) {
  .table-wrap {
    min-width: 0;
  }

  .gray-table {
    font-size: 15px;
    min-width: 0;
    white-space: normal;
    word-break: break-word;
  }

  .gray-table thead th,
  .gray-table tbody td,
  .gray-table tfoot td {
    padding: 12px 14px;
  }
}


/* ============================================================
   14. コンポーネント（メモ・注意・成功談・失敗談）
============================================================ */

/* --- アイコン共通 --- */
.notice-icon,
.memo-icon,
.result-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.result-icon img,
.notice-icon img,
.memo-icon img {
  width: 22px;
  height: 22px;
  display: block;
}

.notice-icon img {
  width: 24px;
  height: 24px;
}

.notice-text,
.memo-text,
.result-text {
  flex: 1;
  padding-left: 0.5em;
}

/* --- 注意ボックス --- */
.notice-box {
  display: flex;
  align-items: flex-start;
  background-color: var(--notice-bg);
  padding: 18px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
  gap: 16px;
  max-width: 780px;
  margin: 1.5em 0 1.5em 1em;
}

.notice-icon {
  background: var(--notice-icon);
}

.notice-icon svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.notice-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--notice-title);
  margin-bottom: 6px;
}

.notice-body {
  font-size: 0.95rem;
  color: var(--notice-body);
  line-height: 1.6;
}

/* --- メモボックス（青系） --- */
.memo-box {
  display: flex;
  align-items: flex-start;
  background-color: var(--memo-bg);
  padding: 18px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(58,110,168,0.07);
  gap: 16px;
  max-width: 780px;
  margin: 2em 0 2em 1em;
}

.memo-icon {
  background: var(--memo-icon);
}

.memo-icon svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
}

.memo-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--memo-title);
  margin-bottom: 6px;
}

.memo-body {
  font-size: 0.95rem;
  color: var(--memo-body);
  line-height: 1.6;
}

/* --- 成功談・失敗談（共通ベース） --- */
.result-box {
  display: flex;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  gap: 16px;
  max-width: 780px;
  margin: 2em 0 2em 1em;
}

.result-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
}

.result-title {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

/* 成功談 */
.result-box.success {
  background: var(--success-bg);
}

.result-box.success .result-icon {
  background: var(--success-icon);
}

.result-box.success .result-icon svg {
  stroke: white;
}

.result-box.success .result-title {
  color: var(--success-title);
}

/* 失敗談（オレンジ強め） */
.result-box.failure {
  background: var(--failure-bg);
}

.result-box.failure .result-icon {
  background: var(--failure-icon);
}

.result-box.failure .result-icon svg {
  stroke: white;
}

.result-box.failure .result-title {
  color: var(--failure-title);
}

/* 引用ブロック */
div.custom-blockquote {
  background: var(--gray-200);
  border-left: 4px solid var(--gray-300);
  padding: 16px;
  margin: 20px 0;
  color: var(--gray-700);
  font-style: normal;
  position: relative;
  border-radius: var(--radius);
}

div.custom-blockquote::before {
  content: "体験談";
  font-size: 12px;
  color: #fff;
  background: var(--gray-400);
  padding: 2px 8px;
  border-radius: 4px;
  position: absolute;
  top: -10px;
  left: 10px;
}


/* ============================================================
   15. FAQアコーディオン
============================================================ */
.faq-wrap {
  max-width: 800px;
  margin: 32px auto;
  padding: 0 10px;
}

.faq-item {
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(46,28,14,0.05);
  transition: box-shadow 0.25s ease;
}

.faq-item:hover {
  box-shadow: 0 3px 8px rgba(46,28,14,0.09);
}

.faq-question {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent-color);
  cursor: pointer;
  padding: 0;
}

.faq-q-icon {
  color: var(--accent-hover);
  margin-right: 6px;
  font-weight: bold;
}

.faq-toggle-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
  stroke: var(--accent-hover);
  margin-left: 5px;
  vertical-align: middle;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease, margin 0.4s ease;
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.5;
  border-top: 1px dashed var(--gray-300);
  padding-top: 0;
  margin-top: 0;
}

.faq-answer.show {
  max-height: 400px;
  padding-top: 10px;
  margin-top: 10px;
}

.faq-question[aria-expanded="true"] .faq-toggle-icon {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .faq-wrap { padding: 0 8px; }
  .faq-item { padding: 10px 12px; }
  .faq-question { font-size: 0.95rem; }
  .faq-answer { font-size: 0.9rem; }
  .faq-q-icon { margin-right: 4px; }
  .faq-toggle-icon { width: 16px; height: 16px; }
}


/* ============================================================
   16. フローチャート
============================================================ */
.flow-chart {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0 1rem 1rem;
}

.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.4rem 0;
}

.step-number {
  font-weight: bold;
  color: var(--gray-400);
  min-width: 1.5rem;
}

.step-text {
  font-size: 1rem;
  color: var(--main-text);
  line-height: 1.4;
}


/* ============================================================
   17. ステップボックス
============================================================ */

/* 画像付きステップ（.step-flex） */
.step-box {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 2em;
}

.step-flex {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px;
  background-color: var(--main-bg);
  box-shadow: var(--shadow);
}

.step-img img {
  width: 180px;
  height: auto;
  border-radius: 8px;
}

.step-label {
  font-weight: bold;
  font-size: 1.2em;
  color: #fff;
  background-color: var(--accent-color);
  padding: 4px 10px;
  display: inline-block;
  border-radius: 4px;
  margin-bottom: 0.5em;
}

@media (max-width: 768px) {
  .step-flex {
    flex-direction: column;
    text-align: left;
  }

  .step-img img {
    width: 100%;
    max-width: 100%;
  }
}

/* アイコン＋番号付きステップ（.step-wrap3） */
.step-wrap3 {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
  padding: 0 10px;
}

.step-content3 {
  display: flex;
  align-items: center;
  background: var(--step-bg);
  border-left: 5px solid var(--step-border);
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: 0 2px 6px var(--step-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  gap: 16px;
  color: var(--step-body);
}

.step-content3:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px var(--step-shadow-hover);
}

.step-icon-image {
  width: 48px;
  height: 48px;
  background: var(--step-icon-bg);
  border-radius: var(--radius);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.step-icon-image svg {
  width: 24px;
  height: 24px;
  fill: var(--step-icon-color);
}

.step-icon-image img {
  width: 24px;
  height: 24px;
  display: block;
}

.step-icon3 {
  min-width: 32px;
  height: 32px;
  background: var(--step-number-bg);
  color: var(--step-number-color);
  font-weight: bold;
  font-size: 0.95rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 6px rgba(100,60,20,0.15);
  flex-shrink: 0;
}

.step-title3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--step-title);
  margin-bottom: 6px;
}

.step-body3 {
  font-size: 0.95rem;
  color: var(--step-body);
  line-height: 1.6;
}


/* ============================================================
   18. 商品カード
============================================================ */
.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px;
  margin: 24px 0;
  background: var(--main-bg);
  box-shadow: var(--shadow);
}

.product-image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 6px;
  display: block;
  object-fit: contain;
  margin-bottom: 16px;
}

.product-content {
  flex: 1;
}

.product-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--main-text);
}

.product-summary {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.affiliate-box {
  margin: 16px 0;
}

.product-detail {
  font-size: 0.9rem;
  color: var(--main-text);
  line-height: 1.6;
  margin-top: 12px;
}

@media screen and (min-width: 600px) {
  .product-card {
    flex-direction: row;
    gap: 20px;
  }

  .product-image {
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .product-image img {
    max-width: 200px;
  }
}

/* もしもアフィリエイトリンク */
[id^="msmaflink-"] .msmaflink-item__btns {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
}

[id^="msmaflink-"] .msmaflink-item__btn {
  flex: 1 0 auto !important;
  transition: all 0.3s ease;
}

[id^="msmaflink-"] .msmaflink-item__btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}


/* ============================================================
   19. コピーボックス
============================================================ */
.copy-box-container {
  max-width: 700px;
  margin: 2em auto;
  padding: 1em;
  background-color: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  position: relative;
  box-shadow: var(--shadow);
}

.copy-text-box {
  white-space: pre-wrap;
  background-color: var(--gray-200);
  border: 1px dashed var(--gray-400);
  color: var(--main-text);
  font-family: 'Courier New', monospace;
  padding: 1em;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.8em;
  overflow-wrap: break-word;
}

.copy-btn {
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  padding: 0.6em 1.2em;
  font-size: 0.9rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.copy-btn:hover {
  background-color: var(--accent-hover);
}

.copy-toast {
  position: absolute;
  bottom: -2.2em;
  left: 1em;
  background-color: var(--gray-700);
  color: #fff;
  padding: 0.5em 1em;
  border-radius: 6px;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 100;
}

.copy-toast.show {
  opacity: 1;
}


/* ============================================================
   20. タイムライン
============================================================ */
.timeline {
  position: relative;
  margin: 20px auto;
  padding: 0;
  max-width: 736px;
  box-sizing: border-box;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 92px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-color);
  border-radius: 2px;
  z-index: 0;
}

.timeline-item {
  position: relative;
  padding: 18px 16px;
  min-height: 48px;
  z-index: 1;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 88px;
  top: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent-color);
  box-shadow: 0 2px 6px rgba(46,28,14,0.1);
  z-index: 2;
}

.timeline .time {
  position: absolute;
  left: 0;
  width: 84px;
  text-align: right;
  padding-right: 8px;
  font-weight: 700;
  color: var(--accent-color);
  font-size: 14px;
  line-height: 1.2;
  z-index: 3;
}

.timeline .task {
  margin-left: 110px;
  background: var(--gray-100);
  padding: 12px 14px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(46,28,14,0.05);
  border: 1px solid var(--border-color);
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 15px;
  word-break: break-word;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.timeline-item:hover .task,
.timeline-item:focus-within .task {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(46,28,14,0.08);
}

@media (max-width: 768px) {
  .timeline { padding: 0 8px; }
  .timeline::before { left: 20px; }
  .timeline-item::before { left: 16px; top: 38px; }
  .timeline .time {
    position: relative;
    display: block;
    width: auto;
    text-align: left;
    padding: 0 0 6px 38px;
    font-size: 13px;
  }
  .timeline .task {
    margin-left: 38px;
    font-size: 14px;
    padding: 10px 12px;
  }
}

@media (max-width: 420px) {
  .timeline-item::before { top: 40px; width: 12px; height: 12px; left: 14px; }
  .timeline .task { margin-left: 34px; font-size: 13px; line-height: 1.6; padding: 8px 10px; }
  .timeline .time { padding-left: 34px; font-size: 12px; }
}

@media print {
  .timeline .task { box-shadow: none; border: 1px solid #eaeaea; background: #fff; }
  .timeline::before, .timeline-item::before { background: #000; border-color: #000; }
}


/* ============================================================
   21. アコーディオン（汎用）
============================================================ */
.accordion-heading button,
.accordion-article button {
  width: 100%;
  text-align: left;
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  transition: background 0.2s;
}

.accordion-heading button .icon,
.accordion-article button .icon {
  font-size: 12px;
  transition: transform 0.3s ease-in-out;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 10px;
  transition: max-height 0.3s ease, padding-top 0.3s ease, padding-bottom 0.3s ease;
}

.accordion-content.open {
  padding-top: 4px;
  padding-bottom: 4px;
}

.accordion-heading h3,
.accordion-heading h4,
.accordion-heading h5 {
  margin: 0;
}

.accordion-heading button { font-weight: 600; }
.accordion-heading h3 button { font-size: 18px; padding: 10px 16px; }
.accordion-heading h4 button { font-size: 16px; padding: 8px 14px; }
.accordion-heading h5 button { font-size: 15px; padding: 6px 12px; font-weight: 500; }

.accordion-article button {
  font-size: 14px;
  padding: 4px 10px;
  font-weight: 400;
}

@media (max-width: 768px) {
  .accordion-heading h3 button { font-size: 16px; padding: 8px 12px; }
  .accordion-heading h4 button { font-size: 15px; padding: 6px 10px; }
  .accordion-heading h5 button { font-size: 14px; padding: 5px 8px; }
  .accordion-article button { font-size: 13px; padding: 4px 8px; }
  .accordion-content.open { padding-top: 3px; padding-bottom: 3px; }
}


/* ============================================================
   22. ページャー
============================================================ */
.pager {
  max-width: 900px;
  margin: 40px auto 20px;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.pager-next a,
.pager-prev a {
  display: inline-block;
  max-width: 200px;
  width: 100%;
  padding: 10px 24px;
  background-color: var(--gray-800);
  color: #F5EAD8 !important;
  border-radius: 5px;
  font-weight: 600;
  box-sizing: border-box;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(46,28,14,0.15);
  transition: background-color 0.3s ease;
}

.pager-next a:hover,
.pager-prev a:hover {
  background-color: var(--gray-900);
}


/* ============================================================
   23. 記事本文
============================================================ */
.entry-content,
.article-body,
.post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
  font-family: "BIZ UDP Gothic", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.02em;
  word-break: break-word;
}

.post-content {
  font-family: "Noto Sans JP", "游ゴシック体", YuGothic, sans-serif;

.entry-content p,
.article-body p,
.post-content p {
  margin-bottom: 1.05em;
}

@media (max-width: 768px) {
  .entry-content,
  .article-body,
  .post-content {
    max-width: 100%;
    padding: 0 10px;
    font-size: 15px;
    line-height: 1.55;
  }
}


/* ============================================================
   24. その他ユーティリティ
============================================================ */
/* もしもの1px追跡画像を非表示 */
a + img[width="1"][height="1"] {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
img[src*="moshimo.com/af/i/impression"] {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ============================================================
   25. コンポーネント内テキストリセット
   メモ・注意・成功談・失敗談・フローチャートの直書きテキストを
   entry-content 等の影響から守る
============================================================ */

/* メモ・注意・結果ボックス内の直書きテキスト */
.memo-box,
.notice-box,
.result-box {
  font-family: "Noto Sans JP", "游ゴシック体", YuGothic, sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.6;
}

/* ボックス内にpタグが自動生成された場合も統一 */
.memo-box p,
.notice-box p,
.result-box p,
.memo-text p,
.notice-text p,
.result-text p {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  margin-bottom: 0.5em;
  color: inherit;
}

/* フローチャート内テキストリセット */
.flow-chart,
.step-text {
  font-family: "Noto Sans JP", "游ゴシック体", YuGothic, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}

.flow-chart p,
.flow-step p {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  margin-bottom: 0;
  color: inherit;
}