/* --- CSS Variables & Reset --- */
:root {
    --primary-color: #ff9900;
    --text-color: #333;
    --bg-color: #f9f9f9;
    --white: #ffffff;
    --accent-blue: #007185;
    --gray: #666;
    --border-color: #eee;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: rgb(1,1,1);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    padding-top: 60px; 
}
html { scroll-padding-top: 60px;}
a { text-decoration: none; color: inherit; transition: 0.3s; }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; display: block; }

/* --- Header  --- */
.header{background-color:#111;position:fixed;top:0;left:0;width:100%;height:60px;z-index:1000;box-shadow:0 2px 5px rgba(0,0,0,.5)}.header-inner{max-width:1320px;width:100%;height:100%;margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:0 20px}.logo{font-family:Impact,Haettenschweiler,'Arial Narrow Bold',sans-serif;font-weight:600;font-size:1.4rem;color:#fff;white-space:nowrap}.header-actions{display:flex;align-items:center;height:100%;gap:15px}.instagram{height:36px;width:36px;display:block}.instagram img{height:100%;width:100%;object-fit:contain}.header-btn{background-color:transparent;color:#fff;font-size:1.8rem;padding:0;line-height:1;border:none;cursor:pointer;display:flex;align-items:center}.admission{width:70px;height:60px;text-align:center;background-color:#e80000;display:flex;flex-direction:column;align-items:center;justify-content:center;margin-right:-20px;color:#fff}.admission img{width:24px;height:24px;margin-bottom:4px}.admission p{margin:0;font-size:10px;line-height:1;font-weight:700}.menu{background:#000;position:fixed;top:0;right:-250px;width:250px;height:100%;z-index:2000;transition:.3s;padding-top:60px;box-shadow:-2px 0 5px rgba(0,0,0,.5);overflow-y:auto}.menu a{display:flex;align-items:center;padding:15px 20px;font-size:16px;color:#fff;border-bottom:1px solid #333;transition:background .3s}.menu a:hover{background:#0b43dc}.overlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);z-index:1500;backdrop-filter:blur(2px)}

/* --- Breadcrumb --- */
.breadcrumb {
    max-width: 1100px;
    margin: 20px auto 0;
    padding: 0 20px;
    font-size: 0.8rem;
    color: var(--gray);
}
.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 0;
}
.breadcrumb li {
    display: inline-flex;
    align-items: center;
}
.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin: 0 8px;
    color: #ccc;
    font-size: 0.7rem;
}
.breadcrumb a { color: white; text-decoration: underline; }
.breadcrumb li:last-child { color: yellow; font-weight: 500; pointer-events: none; }

/* --- Layout --- */
.container {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 20px;
    display: block; 
}

@media (min-width: 1000px) {
    .container {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 40px;
        margin-top: 30px;
    }
}

/* --- Main Content --- */
main {
    min-width: 0; 
    max-width: 100%;
}

.article-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    width: 100%;
}

@media (min-width: 769px) {
    .article-card { padding: 40px; }
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}
@media (min-width: 769px) { h1 { font-size: 2rem; } }

.meta-info {
    color: var(--gray);
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #ddd;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}
/* --- 記事内画像の共通スタイル --- */
figure.post-image {
    margin: 30px 0;        /* 上下の余白 */
    text-align: center;    /* 画像とキャプションを中央寄せ */
    padding: 0;
}

figure.post-image img {
    max-width: 100%;       /* 親要素からはみ出さない（スマホ対応） */
    height: auto;          /* 比率を保って縮小 */
    border-radius: 8px;    /* 角を少し丸くする（お好みで） */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* ほんのり影をつける（お好みで） */
    vertical-align: bottom; /* 画像下の隙間消し */
}

/* キャプションのデザイン */
figure.post-image figcaption {
    font-size: 0.85em;     /* 文字を少し小さく */
    color: #666;           /* 文字色をグレーに */
    margin-top: 10px;      /* 画像との隙間 */
    line-height: 1.4;
}

/* --- Comparison Table --- */
.table-scroll {
    width: 100%; 
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 30px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-radius: 8px;
    background: #fff;
    border: 1px solid #eee;
}

.compare-table {
    width: 100%;
    min-width: 600px; 
    border-collapse: collapse;
    font-size: 0.9rem;
}

.compare-table th {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 10px;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.compare-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    color: var(--text-color);
    vertical-align: middle;
    text-align: center;
}
.compare-table a{
    color: var(--accent-blue);
}
.compare-table td:first-child {
    text-align: left;
    font-weight: bold;
    min-width: 160px;
    position: sticky;
    left: 0;
    background: inherit;
}

.compare-table tr:nth-child(even) { background-color: #fcfcfc; }

.table-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    margin: 0 auto 5px;
    display: block;
    border-radius: 4px;
}

.btn-table {
    display: inline-block;
    background: #333;
    color: #fff !important;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
}

/* --- Other Styles --- */
.toc {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 5px;
    margin: 30px 0;
    border: 1px solid #ddd;
}
.toc-title { font-weight: bold; margin-bottom: 10px; display: block; }
.toc ul { list-style: none; padding-left: 0; }
.toc li { margin-bottom: 8px; padding-left: 15px; position: relative; }
.toc li::before { content: "•"; color: var(--primary-color); position: absolute; left: 0; }
.toc a { color: var(--accent-blue); text-decoration: underline; }

h2 {
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
    margin: 40px 0 20px;
    font-size: 1.4rem;
    background: #fffaf0;
    padding: 10px 15px;
    color: black;
}

p { margin-bottom: 20px; font-size: 1rem; }

/* Lists */
.content-body ul { list-style: none; padding: 0; margin: 20px 0 30px; }
.content-body ul li { position: relative; padding-left: 1.5em; margin-bottom: 0.8em; line-height: 1.6; }
.content-body ul li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; background: var(--primary-color); border-radius: 50%; }

.content-body ul.check-list li { padding-left: 2em; font-weight: bold; border-bottom: 1px dashed #eee; padding-bottom: 0.5em; }
.content-body ul.check-list li:last-child { border-bottom: none; }
.content-body ul.check-list li::before { background: transparent; border-radius: 0; width: 12px; height: 6px; border-left: 3px solid var(--primary-color); border-bottom: 3px solid var(--primary-color); transform: rotate(-45deg); top: 0.4em; }

.content-body ul.box-list { background: #fffaf0; border: 2px solid var(--primary-color); border-radius: 8px; padding: 20px 20px 10px 20px; }
.content-body ul.box-list li { border-bottom: none; }

.ol-design-a {
    counter-reset: number; /* 数字のカウントをリセット */
    list-style: none;      /* デフォルトの数字を消す */
    padding: 0;
    margin: 20px 0;
}

.ol-design-a li {
    position: relative;    /* 基準位置 */
    padding-left: 2.5em;   /* 数字が入るスペースを空ける */
    margin-bottom: 15px;   /* 行間の調整 */
    line-height: 1.6;      /* 読みやすい行間 */
}

.ol-design-a li::before {
    counter-increment: number;  /* 数字を1つ進める */
    content: counter(number);   /* 数字を表示 */
    
    /* 数字の見た目 */
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5em;               /* 丸の幅 */
    height: 1.5em;              /* 丸の高さ */
    background-color: #bf0000;  /* ★背景色（楽天ボタンと合わせました） */
    color: #fff;                /* 数字の色 */
    font-weight: bold;
    text-align: center;
    line-height: 1.5em;         /* 上下中央揃え */
    border-radius: 50%;         /* 丸くする */
}

/* プロダクトボックス */
.product-box {
    max-width: 320px;       /* ボックスの最大幅 */
    margin: 20px auto;      /* 中央寄せと余白 */
    border: 1px solid #e0e0e0; /* 薄い枠線 */
    border-radius: 8px;     /* 角を丸く */
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* ほんのり影をつける */
    text-align: center;     /* 中身を中央揃え */
    font-family: sans-serif;
}
.product-image img {
    width: 100%;            /* 横幅いっぱい */
    height: auto;
    border: none !important;
    margin-bottom: 10px;
}
.product-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 10px 0 15px;    /* 上下の余白 */
    line-height: 1.4;
}
.rakuten-btn {
    display: block;
    width: 100%;            /* 幅いっぱい */
    padding: 12px 0;        /* ボタンの縦幅 */
    background-color: #bf0000; /* 楽天カラーの赤 */
    color: #ffffff;         /* 文字色 白 */
    text-decoration: none;  /* 下線を消す */
    font-weight: bold;
    border-radius: 5px;     /* ボタンの角丸 */
    transition: opacity 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.rakuten-btn:hover {
    opacity: 0.8;           /* カーソルを乗せると少し透明に */
}
.product-box > img[width="1"] {
    display: none; /* レイアウト崩れ防止のため非表示（計測はされます） */
}

/* リンクデザイン*/
.link-design-a {
    color: #0073e6;         /* 通常時の色（少し落ち着いた青） */
    text-decoration: none;  /* デフォルトの下線を消す */
    font-weight: 500;       /* 少しだけ太くして視認性アップ */
    border-bottom: 1px solid transparent; /* 透明な下線を準備 */
    transition: all 0.3s ease; /* 0.3秒かけて滑らかに変化 */
}
.link-design-a:hover {
    color: #005bb5;         /* ホバー時の色（少し濃く） */
    border-bottom-color: #005bb5; /* 下線を表示 */
    opacity: 0.8;
}

/* イメージ＋文章ボックス*/
.text-image-block{margin:50px 0}@media(min-width:769px){.text-image-block{display:flex;align-items:center;gap:40px}.text-image-block.reverse{flex-direction:row-reverse}.block-img-wrap{flex:0 0 45%}.block-text-wrap{flex:1}}.block-img-wrap img{width:100%;height:auto;border-radius:4px;box-shadow:0 4px 15px rgba(0,0,0,0.1);margin-bottom:20px}@media(min-width:769px){.block-img-wrap img{margin-bottom:0}}.block-text-wrap h3{font-family:'Oswald',sans-serif;font-size:1.3rem;margin-bottom:15px;color:#222;text-transform:uppercase;letter-spacing:1px;border-bottom:2px solid var(--primary-color);display:inline-block;padding-bottom:5px}.block-text-wrap p{margin-bottom:15px;font-size:1rem;color:#444}.block-text-wrap p:last-child{margin-bottom:0}

/* Sidebar & Footer */
aside { margin-top: 40px; }
@media (min-width: 1000px) { aside { position: sticky; top: 100px; margin-top: 0; } }

.sidebar-widget { background: var(--white); padding: 20px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.widget-title { font-size: 1.1rem; font-weight: bold; margin-bottom: 15px; border-bottom: 2px solid var(--primary-color); padding-bottom: 5px; display: inline-block; }

.profile-img { width: 80px; height: 80px; border-radius: 50%; background: #ccc; margin: 0 auto 10px; }
.profile-name { text-align: center; font-weight: bold; }

.recommend-list { list-style: none; }
.recommend-list li { margin-bottom: 15px; border-bottom: 1px dashed #eee; padding-bottom: 15px; }
.recommend-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.recommend-list a { display: flex; align-items: center; gap: 15px; }
.rec-thumb { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; background: #eee; flex-shrink: 0; }
.rec-title { font-size: 0.9rem; line-height: 1.4; font-weight: 500; }

/* --------------------
Footer Styles (Mobile First Optimized)
-------------------- */
.footer{background-color:#111;color:#ccc;padding:50px 0 20px;margin-top:60px;font-size:.9rem;border-top:3px solid #222}.footer-inner{max-width:1200px;margin:0 auto;padding:0 20px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:40px}.footer-col{flex:1;min-width:280px}.footer-title{color:#fff;font-size:1.1rem;font-weight:700;margin-bottom:20px;border-left:4px solid #e80000;padding-left:12px;letter-spacing:.05em}.footer-logo{font-family:Impact,sans-serif;color:#fff;font-size:1.8rem;margin-bottom:15px;line-height:1}.footer-desc{margin-bottom:20px;font-size:.85rem;color:#aaa}.footer-sns{display:flex;gap:15px}.footer-sns a{width:44px;height:44px;transition:opacity .3s}.footer-nav{list-style:none;padding:0;columns:2;column-gap:20px}.footer-nav li{margin-bottom:12px}.footer-nav a{color:#ccc;text-decoration:none;display:block;transition:color .3s;font-size:.9rem}.footer-nav a:hover{color:#e80000}.shop-details{margin-bottom:20px}.address{color:#fff;margin-bottom:15px;line-height:1.6}.hours-box{display:inline-block;background:#222;padding:8px 15px;border-radius:4px;margin-bottom:15px;border:1px solid #333}.hours-box .label{color:#e80000;font-weight:700;font-size:.8rem;margin-right:8px}.hours-box .time{color:#fff;font-weight:700}.tel-btn{display:flex;align-items:center;justify-content:center;background-color:#fff;color:#000;font-weight:700;text-decoration:none;padding:12px;border-radius:50px;margin-top:10px;max-width:260px;transition:background .3s;box-shadow:0 4px 6px rgba(0,0,0,.3)}.tel-btn:hover{background-color:#ddd;opacity:1}.tel-btn .icon{margin-right:10px;font-size:1.2rem}.map-container{width:100%;margin:20px 0;border-radius:8px;overflow:hidden;box-shadow:0 4px 10px rgba(0,0,0,.5);background:#222}.map-container iframe{vertical-align:bottom;filter:grayscale(20%) contrast(1.1)}.access-text{margin-top:15px;font-size:.85rem}.access-item{margin-bottom:12px;border-bottom:1px dashed #333;padding-bottom:12px}.access-item:last-child{border-bottom:none}.access-item strong{color:#fff;display:block;margin-bottom:4px}.access-item p{color:#aaa;margin:0;line-height:1.5}.footer-bottom{margin-top:40px;padding-top:20px;border-top:1px solid #222;text-align:center}.copyright{color:#555;font-size:.75rem;margin:0}@media(min-width:768px){.footer-col.info-col{flex:1.3}.footer-nav{columns:1}.tel-btn{display:inline-flex;width:auto;padding:10px 25px}}