/* =================================================== */
/* 1. 基本設定 (リセット & 全体)                      */
/* =================================================== */

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

body {
    margin: 0px;
    padding: 0px 10px;
    font-size: small;
    text-align: center;
    line-height: 1.8;
    letter-spacing: 0.2em;
}

img {
    border: 0;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    text-decoration: none;
}

a:link {
    color: #0000ff;
}

a:active {
    color: #000000;
}

a:visited {
    color: #900090;
}

a:hover {
    color: #ff0000;
}

/* =================================================== */
/* 2. 汎用クラス (ユーティリティ)                     */
/* =================================================== */

.link-break {
    word-break: break-all;
}

.table-wrapper {
    overflow-x: auto;
    width: 100%;
}

.external-link-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z'/%3E%3C/svg%3E");
    background-size: contain;
    vertical-align: middle;
}

/* =================================================== */
/* 3. サイト全体の基本レイアウト                      */
/* =================================================== */

/* --- 全体のコンテナ --- */
#contener {
    max-width: 880px;
    margin: 10px auto;
    padding: 0px;
    text-align: left;
    overflow: hidden;
}

/* --- コンテンツエリアの基本 --- */
#i_content,
#s_content,
#c_content {
    width: auto;
    margin: 0px;
    padding: 10px;
    letter-spacing: 1px;
}

#i_content {
    text-align: center;
}

#s_content,
#c_content {
    text-align: left;
}

/* --- サイトヘッダー --- */
#head {
    width: 100%;
    text-align: left;
    border-bottom: solid 3px #d5e2d9;
    margin: 0px;
    padding: 0px;
    background-color: #ffffff;
}

/* --- ページ上部ナビゲーション --- */
#head_mat {
    width: 100%;
    margin: 0;
    padding: 6px;
    border-bottom: solid 3px #d5e2d9;
    text-align: right;
    line-height: 1;
    white-space: nowrap;
    overflow-x: auto;
    background-color: white;
}

#head_mat .button {
    display: inline-block;
    padding: 4px 12px;
    background-color: transparent;
    color: #000088;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.2s;
}

#head_mat .button:hover {
    background-color: #000088;
    color: #fff;
}

#head_mat .button.current {
    background-color: #000088;
    color: #fff;
    cursor: default;
    pointer-events: none;
}

/* --- サイトフッター --- */
#footer {
    clear: both;
    text-align: center;
    line-height: 2;
    color: #666666;
    border-top: solid 1px #cccccc;
    margin: 0;
    padding: 10px;
    background-color: #ffffff;
    white-space: nowrap;
    overflow-x: auto;
    font-size: clamp(10px, 3vw, 14px);
}

/* =================================================== */
/* 4. サイト共通の部品 (コンポーネント)               */
/* =================================================== */

/* --- ハンバーガーメニューボタン (スマホ用) --- */
#hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    position: fixed;
    top: 11px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    z-index: 100;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 0;
}

#hamburger-btn .hamburger-icon-area {
    width: 24px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#hamburger-btn .hamburger-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
}

#hamburger-btn .hamburger-text {
    font-size: 10px;
    font-weight: bold;
    color: #333;
    line-height: 1;
    font-family: Arial, sans-serif;
}

/* --- メニュー --- */
#menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 80%;
    height: 100%;
    padding: 60px 10px 10px 10px;
    background-color: #fff;
    border-left: 1px solid #ccc;
    z-index: 99;
    overflow-y: auto;
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
}

#menu.is-open {
    display: block;
}

#menu h2 {
    padding: 2px;
    margin: 0px 0px 5px 0px;
    border: solid 1px #999999;
    background-color: #000088;
    color: #ffffff;
}

#menu h2 a {
    color: #ffffff;
    width: 96%;
    display: block;
    font-size: 13px;
}

#menu ul {
    background-color: #ffffff;
    text-align: left;
    margin: 6px 0px;
    padding: 0px;
    border: double 3px #aaaaaa;
    list-style: none;
}

#menu ul > li:first-child > span::before,
#menu ul > li:first-child > span::after {
    content: "-";
    margin: 0 0.5em;
}

#menu li {
    padding: 0px;
    margin: 4px 4px;
    list-style-position: inside;
    border-bottom: solid 1px #cccccc;
    font-size: 11px;
}

#menu li a {
    width: 96%;
    display: block;
    color: #000066;
}

#menu li a:hover {
    color: #ff0000;
}

#menu li.small {
    font-size: 10px;
    color: #666;
    line-height: 1.4;
    background-color: #f7f7f7;
    padding: 8px 10px;
    border-bottom: none;
    margin-top: 2px;
    margin-bottom: 12px;
    border-radius: 4px;
}

#menu li.current a {
    color: #333;
    font-weight: bold;
    text-decoration: none;
    pointer-events: none;
}

#menu li > span,
#menu > ul > li > a {
    display: block;
    padding: 4px;
    font-weight: bold;
}

#menu li > span {
    color: #333;
}

#menu li.parts-item {
    padding-left: 15px;
}

#menu .mh2 {
    letter-spacing: 0.5em;
}

#menu .submenu {
    border: none;
    margin: 5px 0;
    padding-left: 10px;
}

#menu .submenu li {
    position: relative;
    display: flex;
    align-items: center;
    padding: 2px 0;
    border-bottom: none;
    margin: 0;
}

#menu .submenu li::before {
    content: "\25CF";
    font-size: 8px;
    margin-right: 5px;
}

/* --- トップへ戻るボタン --- */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #333;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s,
        visibility 0.3s;
}

#back-to-top::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    border: solid white;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 5px;
    transform: translate(-50%, -35%) rotate(-135deg);
}

#back-to-top:not(.btt-hidden) {
    opacity: 1;
    visibility: visible;
}

/* --- モーダルウィンドウ --- */
.modal-link {
    margin-right: 15px;
    font-weight: bold;
}
.modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* 他の要素より手前に表示 */
}

.modal__container {
    background-color: #fff;
    padding: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.modal__header .modal__title {
    margin: 0;
    font-size: 20px;
    color: #333;
    font-weight: bold;
}

.modal__close {
    background: transparent;
    border: 0;
    cursor: pointer;
}

.modal__close:before {
    content: "\2715"; /* ×マーク */
    font-size: 24px;
    color: #888;
}

.modal__content {
    /* モーダルの中身のスタイル */
    line-height: 1.8;
}

.modal__content figure {
    margin: 1.5em 0;
    text-align: center;
}

.modal__content figure img {
    /* モーダル内の画像がはみ出さないように */
    display: block;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    max-width: 100%;
    width: auto;
}

.modal__content figcaption {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

.modal__content figcaption p {
    font-size: inherit;
    margin: 0;
    line-height: 1.5;
}

.modal__content figcaption p + p {
    margin-top: 0.5em;
}

.modal__content .image-row img:not(:last-child) {
    margin-bottom: 10px;
}

.modal__content .content-gallery {
    margin: 1.5em 0;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
}

.modal__content .table-wrapper {
    overflow-x: auto;
    width: 100%;
}

#modal-iframe .modal__content {
    padding: 0;
    margin: 0;
    line-height: 0;
}

#modal-iframe iframe {
    display: block;
}

/* --- iframeモード --- */
.iframe-mode #head,
.iframe-mode #head_mat,
.iframe-mode #menu,
.iframe-mode #footer,
.iframe-mode #hamburger-btn,
.iframe-mode .page-header {
    display: none;
}

.iframe-mode #contener {
    border: none;
    box-shadow: none;
}

/* =================================================== */
/* 5. ページ種別ごとのレイアウト・スタイル            */
/* =================================================== */

/* --- 付録トップページ --- */
#furoku_top {
    max-width: 880px; /* PCでの最大幅 */
    margin: 20px auto; /* 上下左右の余白と中央寄せ */
    text-align: left; /* bodyのtext-align:centerを上書き */
}

.furoku-header {
    text-align: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.furoku-header h1 {
    font-size: clamp(20px, 5vw, 28px);
    margin: 1em 0 0 0;
}

.furoku-nav,
.furoku-list {
    margin-bottom: 20px;
}

#furoku_top h2 {
    font-size: 18px;
    margin: 0 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #ccc;
}

#furoku_top ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#furoku_top li {
    padding: 5px 0;
}

#furoku_top a {
    font-size: 14px;
}

.furoku-nav a {
    display: block;
    padding: 10px;
    margin-bottom: 8px;
    text-align: center;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #333;
    font-weight: bold;
    transition: all 0.2s;
}

.furoku-nav a:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
    color: #000;
}

#furoku_top .furoku-list h2:not(:first-child) {
    margin-top: 40px;
}

/* --- 個別記事ページ (ブログ・ビルド共通) --- */
.article-header {
    padding: 10px;
    border-bottom: 1px solid #eee;
    background-color: #f8f8f8; /* ヘッダーの背景色 */
}

.header-content {
    max-width: 700px; /* 記事本文の幅と合わせる */
    margin: 0 auto; /* 中央寄せ */
    text-align: center;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
    font-family: monospace; /* 付録らしさを出すフォント */
}

main .breadcrumb-nav {
    display: flex;
    text-wrap: wrap;
    align-items: center;
    line-height: 1.5;
    justify-content: center;
    max-width: 700px; /* 記事本文の幅と合わせる */
    margin: 0 auto 25px auto; /* 上下余白と中央寄せ */
    padding: 10px;
    background-color: #f7f7f7;
    border-radius: 5px;
    font-size: 14px;
}

main .breadcrumb-nav a {
    white-space: nowrap;
    flex-shrink: 0;
    color: #000088;
}

main .breadcrumb-nav a::after {
    content: ">";
    margin: 0 0.5em;
    color: #666;
}

main .breadcrumb-nav span {
    flex-shrink: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
    font-weight: bold;
}

main .breadcrumb-nav .current-breadcrumb {
    color: #333;
    font-weight: bold;
    text-decoration: none;
    pointer-events: none;
    cursor: default;
}

main .article-detail {
    max-width: 700px; /* 記事の最大幅 */
    margin: 20px auto; /* 上下余白と中央寄せ */
    padding: 10px;
}

main .article-detail h1 {
    font-size: clamp(22px, 5.5vw, 32px);
    margin: 0.5em 0 1em 0;
    line-height: 1.4;
    text-wrap: pretty;
}

main .article-detail h2 {
    font-size: clamp(18px, 4.5vw, 24px);
    margin: 1.5em 0 1em 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #ccc;
    text-wrap: balance;
}

main .article-detail h3 {
    font-size: clamp(16px, 4.2vw, 18px);
    font-weight: bold;
    color: #444;
    margin: 2em 0 1em 0;
    padding-left: 12px;
    border-left: 4px solid #000088;
    text-align: left;
    text-wrap: balance;
}

main .article-detail p {
    font-size: clamp(14px, 4vw, 16px);
    line-height: 1.9;
    margin: 1em 0;
}

main .article-detail figcaption p {
    font-size: inherit;
    margin: 0;
    line-height: 1.5;
}

main .article-detail figcaption p + p {
    margin-top: 0.5em;
}

main .article-detail figure {
    margin: 2em 0;
    text-align: center;
}

main .article-detail figure img {
    display: block;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    max-width: 100%;
    width: auto;
}

main .article-detail figcaption {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

main .article-detail table {
    width: 100%;
    min-width: 650px;
    margin: 2em 0;
    border-collapse: collapse;
}

main .article-detail th,
main .article-detail td {
    border: 1px solid #ccc;
    padding: 8px 12px;
    text-align: left;
    vertical-align: top;
}

main .article-detail th {
    background-color: #f7f7f7;
    font-weight: bold;
}

main .article-detail .article-date {
    font-size: 14px;
    color: #666;
    text-align: right;
    margin: -0.5em 0 2em 0;
}

main .article-detail .article-signature {
    text-align: right;
}

main .article-detail .content-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 2em 0;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
}

main .article-detail figure.content-gallery figcaption {
    flex-basis: 100%;
    width: 100%;
    margin-top: -7px; /* gapを打ち消す */
}

main .article-detail div.content-gallery > p {
    margin-top: calc(2em - 15px); /* gapを打ち消す */
}

main .article-detail .image-row img {
    display: block;
    margin-bottom: 10px;
    width: auto;
    max-width: 100%;
}

main .article-detail .image-row img:last-child {
    margin-bottom: 0;
}

main .article-detail .article-links {
    margin: 1.5em 0;
}

/* --- トップページ --- */
#i_content .site-catchcopy {
    font-size: clamp(16px, 5vw, 32px);
    font-weight: bold;
    color: #ff0000;
    margin: 1em 0;
}

#i_content h1 {
    font-size: 5vw;
    margin: 0.5em 0;
}

#i_content > h3 {
    font-size: clamp(12px, 3.5vw, 24px);
    text-wrap: balance;
    margin: 1.5em 0;
}

#i_content .iframe-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 20px auto;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#i_content .iframe-header {
    padding: 8px 12px;
    background-color: #f7f7f7;
    font-weight: bold;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #ddd;
}

#i_content .iframe-container iframe {
    display: block;
    border: 0;
    width: 100%;
    height: 120px;
}

#i_content .hello_bg {
    background-image: url("/images/layout/1301587189.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#i_content .hello_bg .haikei {
    background-color: rgba(256, 256, 256, 0.6);
}

#i_content .hello_bg .nonbreak {
    font-size: 3vw;
}

#i_content .hello_bg article {
    white-space: nowrap;
}

/* --- GUIDEページ --- */
#s_content .page-header {
    border: double 3px #e0e0e0;
    padding: 1em;
    margin-bottom: 2.5em;
    background-color: #f0f8ff;
}

#s_content .page-header h1 {
    font-size: clamp(22px, 5.5vw, 32px);
    margin: 0 0 0.5em 0;
}

#s_content .page-header p {
    color: #333;
    text-shadow: none;
    text-align: left;
    margin: 0;
    font-size: 14px;
}

#s_content section,
#s_content article {
    margin-bottom: 2.5em;
}

#s_content h2 {
    font-size: clamp(18px, 5vw, 24px);
    padding-left: 15px;
    position: relative;
    margin: 0 0 1em 0;
}

#s_content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: #000088;
}

#s_content .guide-category-nav {
    margin: 30px 0 50px;
    padding: 0 10px;
}

#s_content .guide-category-nav h2 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

#s_content .category-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(2, 1fr);
}

#s_content .category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    justify-content: flex-start;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    height: 100%;
}

#s_content .category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#s_content .category-card figure {
    height: 100px;
    width: 100%;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#s_content .category-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

#s_content .category-grid > .category-card:last-child {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 10px 20px;
}

#s_content .category-grid > .category-card:last-child figure {
    width: 80px;
    flex: 0 0 80px;
    height: auto;
    margin: 0;
}

#s_content .guide-footer-nav {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

#s_content .guide-footer-nav h2 {
    text-align: center;
    border: none;
    padding-left: 0;
    margin-bottom: 30px;
}

#s_content .guide-footer-nav h2::before {
    display: none;
}

#s_content .feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5em 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

#s_content .feature-list li {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#s_content .feature-list img {
    width: 120px;
    height: 90px;
    border: 1px solid #ccc;
}

#s_content .feature-list p {
    margin: 0;
}

#s_content .feature-summary {
    margin-bottom: 2.5em;
}

#s_content .feature-summary h2 {
    font-size: clamp(16px, 4.5vw, 20px);
    border: none;
    padding-left: 0;
}

#s_content .feature-summary h2::before {
    display: none;
}

#s_content .feature-summary ul {
    list-style: none;
    padding-left: 0;
}

#s_content .feature-summary li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.8em;
}

#s_content .feature-summary li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #000088;
    font-weight: bold;
}

#s_content .ring-size-tables h2 {
    font-size: clamp(16px, 4.5vw, 20px);
}

#s_content .ring-size-tables table {
    width: 100%;
    margin-bottom: 1em;
    border-collapse: collapse;
}

#s_content .ring-size-tables th,
#s_content .ring-size-tables td {
    min-width: 130px;
    border: 1px solid #ccc;
    padding: 8px 12px;
    font-size: 14px;
    vertical-align: top;
    text-align: center;
}

#s_content .ring-size-tables th:nth-child(4),
#s_content .ring-size-tables td:nth-child(4) {
    text-align: left;
}

#s_content .ring-size-tables thead th {
    background-color: #f7f7f7;
    white-space: nowrap;
}

#s_content .ring-size-tables tbody tr:nth-child(odd) td {
    background-color: #fff;
}

#s_content .ring-size-tables tbody tr:nth-child(even) td {
    background-color: #fdfdfd;
}

#s_content .ring-size-tables tbody tr:nth-child(odd) td[rowspan="2"] {
    background: linear-gradient(to bottom, #fff 50%, #fdfdfd 50%);
}

#s_content .ring-size-tables tbody tr:nth-child(odd) td[rowspan="3"] {
    background: linear-gradient(
        to bottom,
        #fff 33%,
        #fdfdfd 33%,
        #fdfdfd 67%,
        #fff 67%
    );
}

#s_content .ring-size-tables th:first-child,
#s_content .ring-size-tables td:first-child {
    position: -webkit-sticky;
    position: sticky;
    left: 0;
}

#s_content .ring-size-tables thead th:first-child {
    background-color: #f7f7f7;
}

#s_content .ring-size-tables tbody tr:nth-child(odd) td:first-child {
    background-color: #fff;
}

#s_content .ring-size-tables tbody tr:nth-child(even) td:first-child {
    background-color: #fdfdfd;
}

#s_content .ring-size-tables .notes {
    font-size: 12px;
    color: #555;
    line-height: 1.6;
}

#s_content .ring-descriptions article {
    padding-bottom: 2em;
    border-bottom: 1px solid #eee;
}

#s_content .ring-descriptions article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

#s_content .page-nav {
    margin-bottom: 2.5em;
    padding: 1em 0;
}

#s_content .page-nav > h2 {
    font-size: 16px;
    margin: 0 0 15px 0;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    padding-left: 0;
    position: static;
}

#s_content .page-nav h2::before {
    display: none;
}

#s_content .page-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

#s_content .page-nav li {
    border-radius: 5px;
    transition: background-color 0.2s;
}

#s_content .page-nav a {
    display: block;
    padding: 8px 12px;
    font-weight: bold;
}

#s_content .page-nav li:hover {
    background-color: #f0f8ff;
}

#s_content .guideset-category {
    padding-bottom: 1.5em;
    margin-bottom: 2.5em;
    border-bottom: 2px solid #eee;
}

#s_content .guideset-category:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

#s_content .guideset-item {
    margin-top: 2em;
}

#s_content .guideset-item h3 {
    font-size: clamp(16px, 4.2vw, 18px);
    font-weight: bold;
    color: #333;
    margin: 0 0 1em 0;
    padding-left: 12px;
    border-left: 4px solid #ccc;
}

#s_content .guideset-item table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

#s_content .guideset-item th,
#s_content .guideset-item td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

#s_content .guideset-item th {
    background-color: #f7f7f7;
}

#s_content .guideset-item table:not(:has(thead)) {
    border-top: 1px solid #ddd;
}

#s_content .guideset-item .nbr {
    border-right: none;
}

#s_content .guideset-item .nbl {
    border-left: none;
}

#s_content .guideset-item .multi-material {
    line-height: 1.4;
}

#s_content .guideset-item .primary-material {
    display: block;
    font-weight: bold;
}

#s_content .guideset-item .secondary-material {
    display: block;
    font-size: 12px;
    color: #555;
}

#s_content .guideset-description {
    margin: 1.5em 0;
}

#s_content .notes {
    font-size: 14px;
    padding: 1em;
    background-color: #fdfdfd;
    border: 1px dotted #ccc;
    border-radius: 5px;
    margin-bottom: 2.5em;
}

#s_content .product-item {
    padding-bottom: 2em;
    margin-bottom: 2em;
    border-bottom: 2px solid #eee;
}

#s_content .product-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

#s_content .product-item .product-header {
    margin-bottom: 1.5em;
}

#s_content .product-item .product-header.image-count-3 img:not(:last-of-type) {
    margin-bottom: 10px;
}

#s_content .product-item .product-header .image-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#s_content .product-item table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

#s_content .product-item th,
#s_content .product-item td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

#s_content .product-item thead th {
    background-color: #f7f7f7;
}

#s_content .product-item tbody tr:nth-child(odd) td {
    background-color: #fff;
}

#s_content .product-item tbody tr:nth-child(even) td {
    background-color: #fdfdfd;
}

#s_content .product-item .pgs td {
    border-top: 2px solid #aaa;
}

#s_content .product-item tbody td[rowspan],
#s_content .product-item tbody td.group-label {
    background-color: #f7f7f7 !important;
    font-weight: bold;
}

/* --- ご案内ページ --- */
#c_content .page-header {
    border-bottom: 2px solid #eee;
    margin-bottom: 2em;
}

#c_content h1 {
    font-size: clamp(24px, 6vw, 36px);
}

#c_content section {
    margin-bottom: 2.5em;
}

#c_content h2 {
    font-size: clamp(18px, 5vw, 24px);
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    margin-bottom: 1em;
}

#c_content .company-info dl,
#c_content .contact-info dl,
#c_content .payment-info dl,
#c_content .shipping-info dl {
    margin: 0;
}

#c_content .company-info div,
#c_content .contact-info div,
#c_content .payment-info div,
#c_content .shipping-info div {
    padding: 1em 0;
    border-bottom: 1px solid #eee;
}

#c_content .company-info dt,
#c_content .contact-info dt,
#c_content .payment-info dt,
#c_content .shipping-info dt {
    font-weight: bold;
    margin-bottom: 0.5em;
}

#c_content .company-info dd,
#c_content .contact-info dd,
#c_content .payment-info dd,
#c_content .shipping-info dd {
    margin: 0;
}

#c_content .order-steps ul {
    list-style: disc;
    padding-left: 20px;
}

#c_content .order-steps li {
    margin-bottom: 1em;
}

#c_content .legal-notice table {
    width: 100%;
    font-size: small;
    background-color: #ffffff;
    margin-top: 10px;
}

#c_content .legal-notice th,
#c_content .legal-notice td {
    font-size: small;
    margin: 0px;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    border-right: 0px;
    vertical-align: top;
    line-height: 1.6;
    white-space: nowrap;
}

#c_content .legal-notice td.wrap-ok {
    white-space: normal;
}

#c_content .legal-notice td ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

#c_content .legal-notice td li {
    margin-bottom: 0.5em;
}

#c_content .legal-notice th {
    width: 140px;
}

/* =================================================== */
/* 6. PC表示用のスタイル (メディアクエリ)             */
/* =================================================== */

@media (min-width: 900px) {
    /* --- 基本レイアウトのPC設定 --- */
    #contener {
        width: 880px;
        background-image: url("/images/layout/main_back.gif");
    }

    #i_content,
    #s_content,
    #c_content {
        width: 700px;
        float: left;
        padding: 10px 10px 0px 0px;
    }

    #head {
        background-image: url("/images/layout/iline.gif");
        background-repeat: no-repeat;
    }

    #hamburger-btn {
        display: none;
    }

    #menu {
        display: block;
        position: static;
        width: 180px;
        height: auto;
        border-left: none;
        background-color: transparent;
        float: right;
        padding: 10px 6px 0px 6px;
        margin: 0px;
    }

    #menu .has-submenu {
        position: relative;
    }

    #menu .has-submenu:hover .submenu {
        display: block;
    }

    #menu .has-submenu.is-open > .submenu {
        display: block;
    }

    #menu .submenu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: white;
        border: 1px solid #ccc;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 5px;
        margin: 0;
        width: 155px;
        z-index: 10;
    }

    #menu .submenu li::before {
        display: none;
    }

    #i_content h1 {
        font-size: 24px;
    }

    #s_content .gtop li {
        flex-basis: calc(50% - 8px);
    }

    #i_content .hello_bg .nonbreak {
        font-size: 100%;
    }
}

@media (min-width: 768px) {
    /* --- 各ページ・部品のPC設定 --- */
    main .article-detail .image-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        align-items: end;
        justify-items: center;
    }

    main .article-detail .image-row img {
        max-width: 100%;
        width: auto;
        margin-bottom: 0;
    }

    #s_content .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    #s_content .category-grid > .category-card:last-child {
        grid-column: 1 / -1;
        padding: 20px;
        font-weight: bold;
        font-size: 1.1em;
        justify-content: center;
    }

    #s_content .category-grid > .category-card:last-child figure {
        width: 150px;
        flex: 0 0 150px;
        height: 100px;
    }

    #s_content .feature-list li {
        flex-direction: row;
        align-items: flex-start;
    }

    #s_content .feature-list img {
        flex-shrink: 0;
    }

    #s_content .guideset-description {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 0 10px;
    }

    #s_content .guideset-description img {
        max-width: 300px;
        flex-shrink: 0;
    }

    /* 画像が1枚 */
    #s_content .product-item .product-header.image-count-1 {
        display: flex;
        gap: 20px;
        align-items: flex-start;
    }

    #s_content .product-item .product-header.image-count-1 .text-content {
        flex-basis: 40%;
        flex-shrink: 0;
    }

    #s_content .product-item .product-header.image-count-1 .text-content h2 {
        white-space: nowrap;
    }

    #s_content .product-item .product-header.image-count-1 .image-gallery {
        flex-grow: 1;
        min-width: 0;
    }

    #s_content .product-item .product-header.image-count-1 .image-gallery img {
        width: auto;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }

    /* 画像が2枚 */
    #s_content .product-item .product-header.image-count-2 {
        display: flex;
        gap: 20px;
        flex-direction: column;
    }

    #s_content .product-item .product-header.image-count-2 .text-content h2 {
        white-space: normal;
    }

    #s_content .product-item .product-header.image-count-2 .image-gallery {
        display: flex;
        flex-direction: row;
        gap: 10px;
        justify-content: center;
        align-items: flex-start;
    }

    #s_content .product-item .product-header.image-count-2 .image-gallery img {
        width: calc(50% - 5px);
        height: auto;
    }

    /* 画像が3枚 */
    #s_content .product-item .product-header.image-count-3 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 15px;
        align-items: start;
    }

    #s_content .product-item .product-header.image-count-3 .text-content {
        grid-area: 1 / 1 / 2 / 2;
    }

    #s_content .product-item .product-header.image-count-3 .text-content h2 {
        white-space: normal;
    }

    #s_content .product-item .product-header.image-count-3 img:nth-of-type(1) {
        grid-area: 1 / 2 / 2 / 3;
    }

    #s_content .product-item .product-header.image-count-3 img:nth-of-type(2) {
        grid-area: 2 / 1 / 3 / 2;
    }

    #s_content .product-item .product-header.image-count-3 img:nth-of-type(3) {
        grid-area: 2 / 2 / 3 / 3;
    }

    #s_content .product-item .product-header.image-count-3 img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    #c_content .company-info div,
    #c_content .contact-info div,
    #c_content .payment-info div,
    #c_content .shipping-info div {
        display: flex;
        align-items: baseline;
    }

    #c_content .company-info dt {
        width: 120px;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    #c_content .company-info dd,
    #c_content .contact-info dd,
    #c_content .payment-info dd,
    #c_content .shipping-info dd {
        flex-grow: 1;
    }

    #c_content .contact-info dt {
        width: 80px;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    #c_content .payment-info dt,
    #c_content .shipping-info dt {
        width: 180px;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    /* haikei */
    #h1_guide.page-header {
        background-image: url("/images/layout/dscn1458.jpg");
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        padding: 30px 20px;
    }

    #h1_guide.page-header h1,
    #h1_guide.page-header p {
        color: #fafafa;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    }

    #h1_guide.page-header p {
        width: 15em;
        margin-left: 8px;
    }

    #h1_guideset.page-header {
        background-image: url("/images/layout/g23001.jpg");
        background-color: white;
        background-position: right center;
        background-size: contain;
        background-repeat: no-repeat;
        min-height: 150px;
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    #h1_guideset .text-container {
        max-width: 50%;
    }

    #h1_topguide.page-header {
        display: flex;
        align-items: flex-start;
        background-image: url("/images/layout/g22001.jpg");
        background-color: white;
        background-position: right center;
        background-size: contain;
        background-repeat: no-repeat;
        min-height: 200px;
    }

    #h1_topguide .text-container {
        max-width: 40%;
    }

    #h1_kataashi.page-header {
        background-image: url("/images/layout/hk300.jpg");
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        padding: 30px 20px;
    }

    #h1_kataashi .text-container {
        max-width: 40%;
    }

    #h1_ryouashi.page-header {
        display: flex;
        align-items: flex-start;
        background-image: url("/images/layout/hk6521.jpg");
        background-color: white;
        background-position: right center;
        background-size: contain;
        background-repeat: no-repeat;
        min-height: 200px;
    }

    #h1_ryouashi .text-container {
        max-width: 35%;
    }

    #h1_skan.page-header {
        display: flex;
        align-items: flex-start;
        background-image: url("/images/layout/gskan.jpg");
        background-color: white;
        background-position: right center;
        background-size: auto 120px;
        background-repeat: no-repeat;
    }

    #h1_skan .text-container {
        max-width: 60%;
    }

    #h1_shitte.page-header {
        display: flex;
        align-items: flex-start;
        background-image: url("/images/layout/300061.jpg");
        background-color: white;
        background-position: right center;
        background-size: contain;
        background-repeat: no-repeat;
        min-width: 250px;
    }

    #h1_shitte .text-container {
        max-width: 40%;
    }

    #h1_octopus.page-header {
        display: flex;
        align-items: flex-start;
        background-image: url("/images/layout/1300584145.jpg");
        background-color: white;
        background-position: right center;
        background-size: contain;
        background-repeat: no-repeat;
        min-width: 250px;
    }

    #h1_octopus .text-container {
        max-width: 60%;
    }

    #h1_octopus .text-container p {
        width: 55%;
    }

    #furoku_top {
        display: flex;
        flex-wrap: wrap;
        gap: 40px; /* 列の間の隙間 */
    }

    #furoku_top .furoku-header {
        width: 100%;
        margin-bottom: 0;
    }

    #furoku_top > main {
        display: flex;
        gap: 40px;
        flex: 1;
    }

    #furoku_top .furoku-nav {
        flex: 0 0 240px;
    }

    #furoku_top .furoku-list {
        flex: 1;
    }
}

@media (max-width: 600px) {
    /* --- スマホ表示の微調整 --- */
    .article-header .header-content {
        flex-direction: column;
        gap: 10px;
    }
}
