/* ==========================================================================
    Variables & Base Styles
========================================================================== */
:root {
    --bg-color: #ffffff;
    --main-color: #1a1a1a;
    --accent-color: #55A5A3;
    --accent-hover: #438786;
    --light-gray: #f7f7f7;
    --border-color: #ccc;
    --text-muted: #5f5f5f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style-type: none;
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Montserrat', 'Noto Sans JP', '游ゴシック体', YuGothic, sans-serif !important;
    color: #1a1a1a;
    letter-spacing: 0.06rem;
    line-height: 1.8;
    text-align: left;
}

a {
    color: #1a1a1a;
}

.site-header {
    display: none;
}



body {
    font-family: 'Montserrat', 'Noto Sans JP', '游ゴシック体', YuGothic, sans-serif !important;
    line-height: 1.8 !important;
    letter-spacing: 0.1rem;
    color: #1a1a1a;
    width: auto;
    font-size: clamp(11px, 3.1vw, 13px);
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* ヘッダーの高さに合わせて数値を変更してください */
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}


/* ==========================================================================
           Layout
           ========================================================================== */
.article-template {}

.article-container {
    background: #fff;
    max-width: 1000px;
    margin: 0 auto;
}

/* ==========================================================================
           Components
           ========================================================================== */
/* Breadcrumb */
.breadcrumb {
    font-size: clamp(9px, 2.6vw, 11px);
    color: var(--text-muted);
    width: 90%;
    margin: 0 auto 20px;
}

.breadcrumb strong {
    display: inline-block;
    font-weight: 700;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Article Header */
.article-header {
    width: 90%;
    margin: 0 auto 20px;
}

.article-title {
    font-size: clamp(21px, 5.9vw, 24px);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: clamp(11px, 3.1vw, 13px);
    color: var(--main-color);
}

/* Hero Image */
.hero-image {
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    aspect-ratio: 5 / 3;
    object-fit: cover;
}

/* Lead Text */
.lead-text {
    font-size: clamp(13px, 3.6vw, 15px);
    color: var(--text-muted);
    width: 90%;
    margin: 0 auto 20px;
}

.lead-text span {
    display: inline-block;
font-size: clamp(11px, 3.1vw, 13px);
margin: 20px auto 0px;
}

/* Table of Contents (TOC) */
.toc {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 0px;
    width: 90%;
    margin: 0 auto 40px;
}

.toc-title {
    cursor: pointer;
    position: relative;
    font-size: clamp(13px, 3.6vw, 15px);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    cursor: pointer;
}

.toc-title::before,
.toc-title::after {
    content: "";
    position: absolute;
    top: 50%;
    background-color: #333;

    /* 開閉時のアニメーション設定 */
    transition: transform 0.3s ease;
}

/* 1. 横線（常にそのまま表示） */
.toc-title::before {
    right: 0;
    width: 12px;
    height: 2px;
    margin-top: -7px;
    /* 高さの半分を引いて縦位置を中央に */
}

/* 2. 縦線（回転させて「ー」と「＋」を切り替え） */
/* 閉じている時は横に90度倒し、横線に重ねて「ー」にする */
.toc-title::after {
    right: 5px;
    /* ちょうど中央にくるように計算 (12px - 2px) ÷ 2 */
    width: 2px;
    height: 12px;
    margin-top: -12px;
    /* 高さの半分を引いて縦位置を中央に */
    transform: rotate(90deg);
}

/* --- 開いた状態の「＋」 --- */
.toc[open] .toc-title::after {
    /* 倒れていた縦線を起き上がらせて「＋」にする */
    transform: rotate(0deg);
}

.toc-list {
    list-style: none;
    margin-top: 20px;
}

.toc-list li {
    margin-bottom: 12px;
}

.toc-list li:last-child {
    margin-bottom: 0;
}

.toc-list a {
    position: relative;
    font-size: clamp(11px, 3.1vw, 13px);
    color: var(--main-color);
    display: flex;
    align-items: baseline;
    gap: 10px;
    line-height: 1.5;
    text-decoration: underline !important;
    padding-left: 20px;
}

.toc-list a::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 0;

    /* ▼ここからが三角形を作るコード▼ */
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    /* 上の透明な枠線（高さの半分） */
    border-bottom: 6px solid transparent;
    /* 下の透明な枠線（高さの半分） */
    border-left: 7px solid var(--accent-color);
    /* 左の枠線（ここで「色」と「横幅」を指定） */
}

.toc-list a:hover {
    color: var(--accent-color);
}

.toc-number {
    font-size: clamp(11px, 3.1vw, 13px);
    color: var(--accent-color);
    font-weight: bold;
}

.toc-list-more {
  display: none;
}

.toc-list-more.is-open {
  display: block;
}

.toc-more-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  border: 0px solid #ccc;
  background-color: var(--light-gray);
  color: #333;
  font-size: clamp(13px, 3.6vw, 15px);
  font-weight: bold;
  cursor: pointer;
}

.toc-more-button::after {
  content: "";
  position: relative;
      top: -1px;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s;
}

.toc-more-button.is-open::after {
  transform: rotate(225deg);
      top: 2px;
}

/* Section */
.article-section {
        border-top: 0px solid #ccc;
    padding-top: 40px;
    width: 90%;
    margin: 0 auto 40px;
}

.section-header {
    margin-bottom: 20px;
}

.section-number {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(17px, 4.6vw, 19px);
    font-weight: 700;
    line-height: 1.5;
}

.section-image {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 0px;
    overflow: hidden;
}

.section-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.section-image .swiper-button-prev, .section-image .swiper-button-next {
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    z-index: 10;
    transition: opacity 0.2s ease;
    background-image: none !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    top: 55%;
    transform: translateY(-50%);
}

.section-image .swiper-button-prev::after, .section-image .swiper-button-next::after {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
}
.section-image .swiper-button-prev::after {
    border-top: 1px solid #1a1a1a;
    border-left: 1px solid #1a1a1a;
    transform: rotate(-45deg);
    margin: 0 0 0 5px;
}
.section-image .swiper-button-next::after {
    border-top: 1px solid #1a1a1a;
    border-right: 1px solid #1a1a1a;
    transform: rotate(45deg);
    margin: 0 5px 0 0;
}

.swiper-pagination-fraction {
    background-color: rgba(255, 255, 255, 0.55);
    padding: 0px 6px;
    border-radius: 5px;
    top: 10px;
    bottom: auto !important;
    left: auto !important;
    right: 10px;
    width: auto !important;
}

.thumbnail {
    display: none !important;
}

.swiper-slide p {
    display: none;
}

.section-text {
    font-size: clamp(11px, 3.1vw, 13px);
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* Product Card */
.product-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: 0px;
    padding: 20px;
    background-color: #fff;
    transition: box-shadow 0.3s ease;
}

.product-card-inner {
    display: flex;
    gap: 20px;
}

.product-image {
    width: 120px;
    min-width: 120px;
    aspect-ratio: 1;
    object-fit: cover;
    background-color: var(--light-gray);
    border-radius: 0px;
}

.product-info {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: space-between;
}

h3 {
    font-size: clamp(13px, 3.6vw, 15px) !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
}

h4 {
    font-size: clamp(11px, 3.1vw, 13px);
    font-weight: 700;
    margin-bottom: 10px;
    clear: none;
    display: -webkit-box;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    word-break: break-word;
}

.product-price {
    text-align: right;
    font-size: clamp(15px, 4.1vw, 17px);
    font-weight: bold;
}

/* Button */
.btn {
    font-size: clamp(11px, 3.1vw, 13px);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 7px 10px;
    background-color: var(--accent-color);
    color: #fff;
    font-weight: bold;
    border-radius: 4px;
    text-align: center;
    transition: background-color 0.3s ease;
    width: 100%;
    gap: 7px
}

.btn::after {
    content: "";
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-top: 0.2rem solid #ffffff;
    border-right: 0.2rem solid #ffffff;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.btn:hover::after {
    transform: translateX(6px) rotate(45deg);
}

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

.all-btn {
    display: flex;
    justify-content: center;

}

.all-btn .all {
    background: #1a1a1a !important;
    width: 50%;
    border-radius: 100px;
}

#summary {
    border-top: 1px solid #ccc;
    padding-top: 40px;
}

/* -------------------------------------
   ページトップへ戻るボタン
------------------------------------- */
.page-top-btn {
    position: fixed;
    right: 15px;
    /* ハンバーガーメニューと同じ右余白 */
    bottom: 20px;
    /* 下からの距離 */
    width: clamp(42px, 11.5vw, 48px);
    /* ハンバーガーより少し小さめに調整 */
    height: clamp(42px, 11.5vw, 48px);
    background-color: #ffffff;
    border: 1px solid #1a1a1a;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    /* ハンバーガーメニュー（10001）の下に配置 */
    /* 初期状態は非表示（ハンバーガーメニューと同じ挙動） */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .5s all;
}

/* JSで付与される表示用クラス */
.page-top-btn.is__show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* 上向きの矢印（CSSで作成） */
.page-top-btn .arrow {
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #1a1a1a;
    border-right: 2px solid #1a1a1a;
    transform: rotate(-45deg);
    margin-top: 4px;
    transition: .5s all;
    /* 矢印を少し下にずらして中央に見せる */
}

/* ホバー時の挙動（PC用） */
@media screen and (min-width: 768px) {
    .page-top-btn {
        right: 30px;
        /* PC版は少し内側に */
        bottom: 30px;
        width: 50px;
        height: 50px;
    }

    .page-top-btn:hover {
        background: #55A5A3;
    }

    .page-top-btn:hover .arrow {
        border-top: 2px solid #fff;
        border-right: 2px solid #fff;
    }
}


/* ==========================================================================
           Media Queries (PC Desktop)
           ========================================================================== */
@media (min-width: 768px) {
    .product-card-inner {
        flex-direction: row;
        align-items: stretch;
    }

    .article-template {
        border-bottom: 1px solid #ccc;

    }

    .site-header {
        display: block;
    }

    #hum {
        display: none;
    }

    .article-container {
        border-right: 1px solid #ccc;
        border-left: 1px solid #ccc;
        background: #fff;
        max-width: 1000px;
        margin: 0 auto;
        padding: 40px 80px 40px;
    }

    /* ==========================================================================
       Layout
       ========================================================================== */
    .article-template {}

    .article-container {}

    /* ==========================================================================
       Components
       ========================================================================== */
    /* Breadcrumb */
    .breadcrumb {
        width: 100%;
        font-size: 12px;
    }

    .breadcrumb strong {}

    .breadcrumb a {}

    .breadcrumb a:hover {}

    /* Article Header */
    .article-header {
        width: 100%;
    }

    .article-title {
        font-size: 28px;
    }

    .article-meta {
        font-size: 14px;
    }

    /* Hero Image */
    .hero-image {
            margin-bottom: 40px;
    }

    .hero-image img {}

    /* Lead Text */
    .lead-text {
        width: 100%;
        font-size: 16px;
            margin: 0 auto 40px;
    }

    /* Table of Contents (TOC) */
    .toc {
        width: 100%;
    }

    .toc-title {
        font-size: 18px;
    }

    .toc-title::before,
    .toc-title::after {}

    .toc-title::before {}

    .toc-title::after {}

    .toc[open] .toc-title::after {}

    .toc-list {}

    .toc-list li {}

    .toc-list li:last-child {}

    .toc-list a {
        font-size: 14px;
    }

    .toc-list a::before {}

    .toc-list a:hover {}

    .toc-number {
        font-size: 14px;
    }

    /* Section */
    .article-section {
    padding-top: 50px;
        width: 100%;
        margin-top: 50px;
    }

    .section-item {
        display: flex;
        gap: 40px;
        margin-bottom: 40px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-number {}

    .section-title {
        font-size: 24px;
    }

    .section-image {
        margin-bottom: 0px;
    }

    .section-image img {
        width: 400px;
        max-width: auto;
        aspect-ratio: 1 / 1;
    }

    .section-text {
        font-size: 14px;
        width: 100%;
        margin-bottom: 0px;
    }

    /* Product Card */
    .product-card {}

    .product-card:hover {}

    .product-card-inner {}

    .product-image {
        width: 200px;
    }

    .product-info {}

    .product-text {
        line-height: 1;
        margin-top: 20px;
    }

    h3 {
        font-size: 18px !important;
    }

    h4 {
        font-size: 16px;
    }

    .product-price {
        font-size: 24px;
    }

    /* Button */
    .btn {
        width: 100%;
        align-self: flex-start;
        padding: 10px 0px;
    }


    .btn::after {
        content: "";
        display: inline-block;
        width: 5px;
        height: 5px;
        border-top: 2px solid #ffffff;
        border-right: 2px solid #ffffff;
        transform: rotate(45deg);
        transition: transform 0.2s ease;
    }

    .all-btn {
        margin: 80px 0 40px;
        display: flex;
        justify-content: center;

    }

    .all-btn .all {
        background: #1a1a1a !important;
        width: 300px;
        border-radius: 100px;
    }

    /* Summary Section */
    #summary {
        border-top: 1px solid #ccc;
        padding-top: 50px;
    }

}