:root {
  --main-bg: #fafafa;
  --main-text: #222222;
  --accent-color: #6b7044;
  --accent-hover: #8a925b;
  --link-color: #3b82f6;
  --link-hover: #2563eb;
  --accent-color: #4a90e2;     /* メインアクセント：明るめブルー */
  --accent-hover: #3578c6;     /* ホバー用：濃めブルー */
  --link-color: #4a90e2;        /* リンク色もアクセントと同じ */
  --link-hover: #3578c6;        /* リンクホバー */
  --gray-100: #f5f5f5;          /* 背景用淡グレー */
  --gray-200: #eeeeee;          /* ボーダーや薄め背景 */
  --gray-300: #cccccc;          /* ディバイダー・境界線 */
  --gray-400: #999999;          /* 補助テキストや薄いボーダー */
  --gray-500: #555555;          /* 本文テキスト */
  --gray-600: #444444;          /* 少し濃いテキスト、強調部分 */
  --border-color: #ddd;
  --radius: 8px;
  --shadow: 0 2px 6px rgba(0,0,0,0.05);

  /* グレー系 */
  --gray-100: #f9f9f9;
  --gray-200: #f1f1f1;
  --gray-300: #dcdcdc;
  --gray-400: #aaaaaa;
  --gray-500: #777777;
  --gray-600: #444444;
  --gray-700: #333333; /* blockquote用テキスト */

  /* notice系（赤系） */
  --notice-bg: #fde8e6;
  --notice-border: #f5a49b;
  --notice-icon: #f5a49b;
  --notice-title: #c4433c;
  --notice-body: #822e28;

  /* memo系（青系） */
  --memo-bg: #f5f9fc;
  --memo-border: #c4d9ea;
  --memo-icon: #c4d9ea;
  --memo-title: #35506a;
  --memo-body: #3b4b5b;

  /* success系（緑系） */
  --success-bg: #edf8ed;
  --success-border: #9ecf9d;
  --success-icon: #9ecf9d;
  --success-title: #2e5e2e;

  /* failure系（オレンジ系） */
  --failure-bg: #fff5e6;
  --failure-border: #e8b77a;
  --failure-icon: #e8b77a;
  --failure-title: #a0552b;

  /* 共通 */
  --border-color: #ddd;
  --radius: 8px;
  --shadow: 0 2px 6px rgba(0,0,0,0.05);

  /* STEPボックス */
  --step-bg: #f9f9f9;          /* 背景 */
  --step-border: #aaaaaa;      /* 左ボーダー */
  --step-icon-bg: #eeeeee;     /* アイコン背景 */
  --step-icon-color: #777777;  /* アイコン中濃グレー */
  --step-number-bg: #aaaaaa;   /* 丸番号背景 */
  --step-number-color: #ffffff;/* 丸番号文字色 */
  --step-title: #333333;       /* タイトル濃グレー */
  --step-body: #666666;        /* 本文中グレー */
  --step-shadow: rgba(136, 136, 136, 0.15);
  --step-shadow-hover: rgba(136, 136, 136, 0.3);

}


/* ========== 1. 外部読み込み（@import） ========== */
@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=4d776f2b7a248fe0227f52f5e9d786) 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%}}


/* ===== デフォルトタイトル非表示 ===== */
#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 {
  text-decoration: none;
  transition: color 0.3s ease;
  color: var(--link-color);       /* 明るい青に統一 */
  }

a:hover,
a:focus {
  color: var(--link-hover);
  text-decoration: underline;
}
a:focus-visible {
  outline: 3px solid rgba(106,112,68,0.18); /* アクセント色を薄く輪郭に */
  outline-offset: 3px;
}


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

/* ========== 3. レイアウト（Header / Footer / Container） ========== */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 15px;
}

/* ===== ボタン ===== */
.button {
display: inline-block;
background-color: var(--gray-500);
color: #fff !important;
padding: 10px 20px;
border-radius: 5px;
font-weight: 600;
transition: background-color 0.3s ease;
}
.button:hover {
background-color: var(--gray-400);
}


/* ===== タイトル & ヘッダー ===== */
.site-header {
  background-color: var(--gray-600);
  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: #eee !important;
  text-decoration: none;
  font-family: "Noto Sans JP", sans-serif;
}

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

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

.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: #444; /* タイトルと色合わせ */
  min-width: 180px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  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: #eee;
}

.menu.dropdown:hover .dropdown-content {
  display: flex; /* デスクトップホバー用 */
}

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

/* ===== スマホ用 ===== */

@media screen and (max-width: 768px) {
  .hamburger { display: block; }

  #gnav {
    display: flex;           /* デフォルトは閉じていない状態で flex にしておく */
    flex-direction: column;
    gap: 0;
  }

  #gnav.collapsed {
    display: none;           /* collapsed クラスがついていると閉じる */
  }

  /* ドロップダウンのサブメニュー */
  .menu.dropdown > .dropdown-content {
    position: relative;
    box-shadow: none;
    border-radius: 0;
  }

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




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

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

.hero-section h1 {
  color: var(--main-text); 
  font-size: 2.2rem;
  margin: 0 0 12px 0; /* 上0、下12px */
  font-weight: 700;
  color: var(--gray-600);
}

.hero-section p {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: #555;
}

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

.hero-card {
  display: block;
  width: 250px;
  border-radius: 10px;
  overflow: hidden;
   box-shadow: var(--shadow);
  border-radius: var(--radius);
  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(30, 60, 120, 0.7); /* 紺寄りブルー */
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  opacity: 1;
  transition: opacity 0.3s;
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  background: rgba(20, 40, 90, 0.8); /* ホバー時はさらに濃く */
}

.hero-card:hover .card-overlay {
  opacity: 1;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .hero-categories {
    flex-direction: column;
    gap: 20px;
  }
  .hero-card {
    width: 90%;
    margin: 0 auto;
  }
}



/* ===== メインビジュアル（仮） ===== */
.main-visual {
  background: url('https://example.com/your-image.jpg') no-repeat center center/cover;
  height: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 2.4rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  text-align: center;
  padding: 0 15px;
  margin-bottom: 40px;
}




/* ===== サイドバーのよく読まれている記事（カード） ===== */
.sidebar-article-card {
  margin-bottom: 20px;
  background: var(--main-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}
.sidebar-article-card:hover {
  transform: translateY(-4px);
}
.sidebar-article-card img {
  width: 100%;
  height: auto;
  display: block;
}
.sidebar-article-card p {
  padding: 10px;
  margin: 0;
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--main-text);
}
.sidebar-article-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}




/* ===== カテゴリーリンク（バッジ） ===== */
.category-list ul {
  display: flex;
  gap: 15px;
  padding: 0;
  list-style: none;
}
.category-list a {
  display: inline-block;
  background: var(--gray-500);
  color: #fff;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: 600;
  transition: background 0.3s ease;
}
.category-list a:hover {
  background: #000;
}


/* ===== フッター ===== */
footer {
  width: 100%;
  padding: 15px 0;
  margin: 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 0;
  margin: 0 auto;
  width: 100%;
  list-style: none;
}

/* ===== フッターデザイン ===== */

footer {
  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 {
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

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

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





/* ===== 共通見出し基本設定 ===== */
h1, h2, h3, h4, h5 {
  color: var(--main-text);
  margin-top: 2.0em;    /* 元は3em → 目次や続き読みがスムーズに */
  margin-bottom: 0.8em;
  line-height: 1.3;
}





/* ===== H2：記事内の最上位見出し（主に目次対象） ===== */
h2 {
  font-size: 1.4rem;
  font-weight: bold;
  padding: 0.5em 0.6em;
  background: var(--gray-200);
  border-left: 6px solid var(--gray-500);
  border-bottom: 2px solid var(--gray-300);
  color: var(--main-text);
}


/* ===== 見出し階層：H3〜H5 ===== */
h3 {
  font-size: 1.2rem!important;
  font-weight: bold;
  padding: 0.45em 0.6em;
  border-left: 5px solid var(--gray-600); /* --gray-600が無ければfallback */
  background: var(--gray-100);
  margin-top: 3em;
}

h4 {
  font-size: 1.0rem!important;
  padding: 0.5em 0.7em 0.5em 0.8em; /* 左padding多め */
  color: var(--gray-500);
  margin-top: 2.2em;
  background: var(--main-bg);
  border-radius: 4px;
  border-left: 4px solid var(--gray-400);
}

h5 {
  font-size: 1.0rem!important;
  padding-left: 1.2em;
  position: relative;
  color: var(--gray-500);
  margin-top: 2em;
}

h5::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gray-300);
  font-size: 0.9rem;
}






/* ===== 目次 ===== */
.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 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--gray-700);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  user-select: none;
  transition: box-shadow 0.25s ease;
  position: relative;
  padding: 1.6em 1.8em;
  line-height: 1.6;
  font-size: 15px;
}

/* INDEXラベル */
.table-of-contents:before {
  content: "INDEX";
  position: absolute;
  top: -1.0em; 
  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-600);
  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;
}

/* hover色変更 */
.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-200);
  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 > ul > li {
  margin-bottom: 1.1em;
  padding-left: 0;
  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;
}

/* 大項目クリックで矢印回転 */
.table-of-contents > ul > li.open::before {
  transform: rotate(-180deg);
}

/* ===== レスポンシブ ===== */
@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;
  }
}



/* ===== 人気記事一覧（トップページ用） ===== */
.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(0, 0, 0, 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;
}

/* ===== トップページカード型 ===== */
.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%; /* 16:9 アスペクト比 */
  overflow: hidden;
  border-radius: 6px;
  box-shadow: rgba(50, 50, 93, 0.15) 0 2px 5px -1px,
              rgba(0, 0, 0, 0.2) 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(0, 0, 0, 0.3);
  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;
}


/*** おすすめ記事デザインカード型 ***/
[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(0, 0, 0, 0.16) 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-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);
}

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

.recommend-figure::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 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::before {
  opacity: 1;
}



/* ===== 次のページへボタン ===== */
.pager {
  max-width: 900px; /* サイトの最大幅に合わせる */
  margin: 40px auto 20px;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.pager-next a,
.pager-previous a {
  display: inline-block;
  max-width: 200px;
  width: 100%;
  padding: 10px 24px;
  background-color: var(--gray-800, #333); /* 変数定義がなければフォールバック */
  color: #fff !important;
  border-radius: 5px;
  font-weight: 600;
  box-sizing: border-box;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease;
}

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

/* サイトタイトル内のアイコン */
.site-title .fa-layer-group {
  font-size: 1.5rem;
  color: var(--gray-600, #444);
}

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


/* もしも簡単リンクのボタンを横並びにする */
[id^="msmaflink-"] .msmaflink-item__btns {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
}

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

/* ボタン風リンクのデザイン */
.btn-link {
  display: inline-block;
  background-color: var(--link-color);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.btn-link:hover {
  background-color: var(--link-hover);
  color: #fff !important;
}

/* ===== モバイル対応 ===== */
@media (max-width: 768px) {
  .popular-articles ul {
    flex-direction: column;
  }
  .popular-articles li {
    flex: 1 1 100%;
  }
  .category-list ul {
    flex-direction: column;
  }
  .category-list a {
    width: fit-content;
  }
  .profile {
    flex-direction: column;
    text-align: center;
  }
  .profile p {
    margin-top: 15px;
  }
  .main-visual {
    height: 200px;
    font-size: 1.6rem;
  }
  #gnav .gnav-inner {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}



/* ===== FAQ（Q&A）パーツ：ブルー系統一・コンパクト化版 ===== */
.faq-wrap {
  max-width: 800px;
  margin: 32px auto;
  padding: 0 10px;
}

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

.faq-item:hover {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.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-500);
  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);
}

/* アイコン画像サイズ調整 */
.result-icon img,
.notice-icon img,
.memo-icon img,
.step-icon-image img {
  width: 22px;
  height: 22px;
  display: block;
}

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

/* ===== レスポンシブ ===== */
@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; }
}





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

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


/* フローチャート（シンプル＋左余白あり） */
.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-500);
  min-width: 1.5rem;
}

.step-text {
  font-size: 1rem;
  color: var(--main-text);
  line-height: 1.4; /* 行間をやや狭く */
}

/* ===== シンプルグレーのテーブルスタイル（ボーダーなし版） ===== */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--main-bg);
  padding: 10px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gray-table {
  min-width: 600px;
  width: 100%;
  border-collapse: collapse; /* ボーダーなしでスッキリ */
  font-size: 15px;
  color: var(--gray-500);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.gray-table thead th {
  background-color: var(--gray-500);
  color: var(--main-bg);
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
  user-select: none;
  letter-spacing: 0.03em;
  border: none;
}

.gray-table tbody td,
.gray-table tfoot td {
  padding: 14px 16px;
  background-color: var(--main-bg);
  color: var(--gray-500);
  border: none;
}

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

.gray-table tfoot td {
  font-weight: 600;
  color: #a60000; /* この赤は変数ないので固定 */
  background-color: var(--gray-100);
}

.gray-table tbody tr:hover td {
  background-color: var(--gray-200);
  transition: background-color 0.25s ease-in-out;
}

@media screen and (max-width: 768px) {
  .gray-table {
    font-size: 14px;
  }
  .gray-table thead th,
  .gray-table tbody td,
  .gray-table tfoot td {
    padding: 12px 10px;
  }
}

/*★★★★★★★★ 商品カード全体 ★★★*/
.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;
}

/* 商品タイトル（h4を避けて独自スタイルに） */
.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); /* 新しく定義されたグレー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;
}

/* PC時：画像左・テキスト右 */
@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;
  }
}

/* アクセントリンク・ボタン */
a {
  color: var(--gray-500);
  transition: all 0.3s ease;
}
a:hover {
  color: var(--gray-400);
  text-decoration: underline;
}

/* 汎用ボタン */
.button, .btn-link {
  background-color: var(--gray-500);
  color: #fff !important;
  border-radius: var(--radius);
  padding: 10px 20px;
  display: inline-block;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: background-color 0.22s ease, transform 0.12s ease;
}

.button:hover, .btn-link:hover {
  background-color: var(--gray-400);
  transform: translateY(-2px);
}

/* アフィリエイト枠のリンク周辺 */
[id^="msmaflink-"] .msmaflink-item__btn {
  transition: all 0.3s ease;
}
[id^="msmaflink-"] .msmaflink-item__btn:hover {
  background-color: var(--gray-400) !important;
  transform: translateY(-1px);
}


.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-text {
  flex: 1;
}

.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%;
  }
}


/* ===== 記事内コピー ===== */
.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(--link-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(--link-hover);
}

.copy-toast {
  position: absolute;
  bottom: -2.2em;
  left: 1em;
  background-color: var(--gray-600, #4b5563);
  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;
}



/* ===== STEPボックス ===== */
.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-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%;
  text-align: center;
  line-height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 6px rgba(68, 68, 68, 0.15);
  flex-shrink: 0;
}

.step-text3 {
  flex: 1;
}

.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;
}


/* 引用ブロック */
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-300);
  padding: 2px 8px;
  border-radius: 4px;
  position: absolute;
  top: -10px;
  left: 10px;
}

/* 注意書きボックス */
.notice-box {
  display: flex;
  align-items: flex-start;
  background-color: var(--notice-bg);
  border-left: 5px solid var(--notice-border);
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(179, 179, 179, 0.15);
  gap: 16px;
  max-width: 800px;
  margin: 1.5em auto;
}

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

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

.notice-text {
  flex: 1;
}

.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;
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(170, 170, 170, 0.1);
  gap: 16px;
  margin: 24px 0;
  max-width: 800px;
  margin-inline: auto;
  background-color: var(--memo-bg);
  border-left: 4px solid var(--memo-border);
}

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

.memo-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--gray-600);
}

.memo-text {
  flex: 1;
}

.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: 16px 20px;
  border-left: 4px solid;
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  gap: 16px;
  margin: 24px 0;
  max-width: 800px;
  margin-inline: auto;
}

.result-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

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

.result-text {
  flex: 1;
}

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

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

.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);
  border-left-color: var(--failure-border);
}

.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);
}



/* ===== アコーディオン ===== */
/* ===== 共通 ===== */
.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; }
}


/* 記事本文コンテナ（.entry-content が無ければ使っているクラスに合わせてください） */
.entry-content,
.article-body,
.post-content { /* よく使われるクラス名をカバー */
  max-width: 60ch;           /* 1行あたり約50〜75文字のレンジに収める */
  margin: 0 auto;
  padding: 0 1rem;
  font-size: 16px;
  line-height: 1.65;         /* 本文は少しゆったりめ */
  letter-spacing: 0.02em;    /* 文字の詰まり感を改善 */
  word-break: break-word;
}
/* 段落間隔 */
.entry-content p,
.article-body p {
  margin-bottom: 1.05em;
}

/* モバイルでの快適性 */
@media (max-width: 768px) {
  .entry-content, .article-body {
    padding: 0 14px;
    max-width: 100%;
    line-height: 1.6;
    font-size: 15.5px;
  }

  h1, h2, h3 {
    margin-top: 1.4em;
  }
}
/* 本文スタイル調整（お手本サイト風） */
.entry-content {
  max-width: 800px;         /* 横幅をお手本サイト風に拡張 */
  margin: 0 auto;           /* 中央寄せ */
  font-family: "BIZ UDP Gothic", Arial, sans-serif; /* フォント揃える */
  font-weight: 400;          /* 標準太さ */
  font-size: 16px;           /* フォントサイズ */
  line-height: 1.6;          /* 行間（25.6px → 16*1.6=25.6pxでほぼ同じ） */
  letter-spacing: 0.4px;     /* 文字間 */
  word-break: break-word;     /* 長い単語の折返し */
  padding: 0 12px;           /* スマホ用に余白確保 */
}

/* スマホ表示用 */
@media (max-width: 768px) {
  .entry-content {
    font-size: 15px;
    line-height: 1.55;
    padding: 0 10px;
  }
}


/* タイムライン全体 */
/* ---------- シンプルタイムライン（上書き用） ---------- */
/* ※既存スタイルをリセットしたい場合は、このブロックを末尾に貼ってください */

.timeline {
  position: relative;
  margin: 20px auto;
  padding: 0;
  max-width: 736px;                /* あなたの基本サイズ */
  font-family: inherit;
  box-sizing: border-box;
}

/* vertical line */
.timeline::before {
  content: "";
  position: absolute;
  left: 92px;                      /* 時間列幅 + マージン調整（PC） */
  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(0,0,0,0.08);
  z-index: 2;
}

/* 時間表示（左カラム） */
.timeline .time {
  position: absolute;
  left: 0;
  width: 84px;                      /* 時間列幅（PC） */
  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(0,0,0,0.04);
  border: 1px solid var(--border-color);
  color: var(--gray-600);
  line-height: 1.7;                 /* 長文にも優しい行間 */
  font-size: 15px;
  word-break: break-word;
  transition: transform .12s ease, box-shadow .12s ease;
  z-index: 1;
}

/* hover / focus の軽い演出（見た目向上） */
.timeline-item:hover .task,
.timeline-item:focus-within .task {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

/* ---------- レスポンシブ（スマホ） ---------- */
@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; }
}


