body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
    color: #333;
}

header,
nav,
main,
footer {
    padding: 1rem;
    max-width: 1200px;
    margin: auto;
}

header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    color: #333;
    margin: 0;
    font-size: 1.2rem;
}

h2 {
    color: #333;
    margin-top: 0;
    font-size: 1.5rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    position: relative;
    width: 30px;
    height: 30px;
    padding: 0;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    position: absolute;
    left: 3px;
    transition: all 0.3s ease-in-out;
}

.hamburger {
    top: 14px;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.menu-toggle.active .hamburger {
    background-color: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

.main-nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: space-around;
    background-color: #f0f0f0;
    margin: 0;
}

.main-nav ul li a {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
}

main {
    max-width: 800px;
    margin: auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.article-header {
    margin-bottom: 1rem;
}

.meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

time {
    color: #666;
    font-size: 0.9rem;
}

.social-share {
    display: flex;
    gap: 10px;
}

.social-share a {
    display: inline-block;
}

.social-share svg {
    width: 24px;
    height: 24px;
}

.thumbnail {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    display: block;
}

.article-content p {
    margin-bottom: 1rem;
}

footer {
    text-align: center;
    background-color: #333;
    color: #fff;
    padding: 1rem;
}

/* タグのスタイル */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.tag {
    background-color: #e0e0e0;
    color: #333;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    text-decoration: none;
}

/* レスポンシブデザイン対応 */
@media (max-width: 768px) {
    .meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .tags {
        margin-top: 5px;
        margin-bottom: 5px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav ul li {
        margin-bottom: 0.5rem;
    }

    h1 {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .social-share {
        margin-top: 0.5rem;
    }
}

/* ラインマーカースタイル */
.highlight {
    background: linear-gradient(transparent 60%, #ffff66 60%);
    font-weight: bold;
}

/* 吹き出し引用ボックス */
.quote-bubble {
    display: flex;
    align-items: flex-start;
    margin: 20px 0;
}

.profile-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

.bubble-content {
    position: relative;
    background-color: #f0f8ff;
    border-radius: 10px;
    padding: 15px;
    flex: 1;
}

.bubble-content:before {
    content: "";
    position: absolute;
    left: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #f0f8ff;
}

.bubble-content p {
    margin: 0;
}

/* レスポンシブデザイン対応 */
@media (max-width: 768px) {
    .quote-bubble {
        flex-direction: row;
        /* 横並びを維持 */
        align-items: flex-start;
        /* 上揃えに変更 */
    }

    .profile-image {
        width: 40px;
        /* モバイルで少し小さく */
        height: 40px;
        margin-right: 10px;
    }

    .bubble-content {
        padding: 10px;
    }

    .bubble-content:before {
        left: -8px;
        top: 15px;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-right: 8px solid #f0f8ff;
    }
}

.share-section {
    margin-top: 2em;
    text-align: center;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1em;
}

.share-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
}

.twitter {
    background-color: #1DA1F2;
}

.facebook {
    background-color: #4267B2;
}

.line {
    background-color: #00B900;
}

.copy-url {
    background-color: #6c757d;
}

.author-note {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 1em;
    border-radius: 5px;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1em;
}

/* Updated styles for index.html with smaller thumbnails */
.article-list {
    max-width: 1200px;
    margin: 0 0 auto;
    padding: 20px;
}

.article-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 20px;
    transition: box-shadow 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.article-card h2 {
    margin-top: 0;
    color: #333;
    font-size: 1.4rem;
}

.article-card .meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.article-card .excerpt {
    margin-bottom: 15px;
    color: #444;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.article-thumbnail {
    width: 300px;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.article-card .read-more {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.article-card .read-more:hover {
    color: #0056b3;
}

#loading {
    text-align: center;
    padding: 20px;
    display: none;
    color: #666;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .article-list {
        padding: 10px;
    }

    .article-card {
        padding: 15px;
    }

    .article-card h2 {
        font-size: 1.2rem;
    }

    .article-thumbnail {
        width: 300px;
        height: 100%;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .article-list {
        padding: 10px;
    }

    .article-card {
        padding: 15px;
    }

    .article-card h2 {
        font-size: 1.2rem;
    }
}

.article-list article {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.article-list h3 {
    margin-top: 0;
}

.article-list a {
    color: #333;
    text-decoration: none;
}

.article-list a:hover {
    text-decoration: underline;
}

/* 記事ナビゲーション */
.visual-summary {
    margin: 2em 0;
    padding: 1em;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.visual-summary h2 {
    margin-bottom: 1em;
    text-align: center;
    color: #333;
}

.visual-summary svg {
    max-width: 100%;
    height: auto;
}

.visual-summary svg {
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 0 auto;
    display: block;
}

/* 記事ナビゲーション */
.article-navigation {
    display: flex;
    justify-content: space-between;
    margin: 2em 0;
    padding: 1em 0;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
}

.nav-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #333;
    max-width: 45%;
}

.nav-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 0.5em;
}

.article-title {
    font-weight: bold;
}

.prev-article {
    text-align: left;
}

.next-article {
    text-align: right;
}

@media (max-width: 600px) {
    .article-navigation {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-link {
        max-width: 100%;
        margin-bottom: 1em;
    }
}

.blog-logo {
    display: block;
    width: 100%;
    /* ロゴの幅を100%に設定 */
    height: auto;
    margin: 0 auto 20px;
    /* 上下の余白を設定 */
    max-width: 1200px;
    /* 必要に応じて最大幅を設定 */
}

@media (max-width: 768px) {
    .blog-logo {
        margin: 0 0 10px;
        /* モバイル端末での余白を調整 */
    }
}

/* インスタグラムフォローセクション */
.instagram-follow {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.instagram-button {
    display: inline-block;
    background-color: #E1306C;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.instagram-button:hover {
    background-color: #C13584;
}

.instagram-button i {
    margin-right: 5px;
}

/* ナビゲーションバーのインスタグラムアイコン */
.main-nav ul li a i.fa-instagram {
    color: #E1306C;
}

/* レスポンシブデザイン調整 */
@media (max-width: 768px) {
    .instagram-follow {
        padding: 15px;
    }

    .instagram-button {
        padding: 8px 15px;
    }
}

/* 関連記事セクションのスタイル */
.related-articles {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
}

.related-articles h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #495057;
}

.related-articles ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.related-articles li {
    margin-bottom: 0.5rem;
}

.related-articles a {
    display: block;
    padding: 0.5rem;
    color: #495057;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.related-articles a:hover {
    background-color: #e9ecef;
    border-radius: 0.25rem;
}

/* レスポンシブデザイン */
@media (min-width: 768px) {
    .related-articles {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .related-articles h2 {
        width: 100%;
    }

    .related-articles ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        width: 100%;
    }

    .related-articles li {
        width: calc(50% - 0.5rem);
    }
}

/* article-navigationとの統一感を出すための追加スタイル */
.article-navigation,
.related-articles {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.article-navigation .nav-link,
.related-articles a {
    font-weight: 500;
}

.article-navigation .nav-label,
.related-articles h2 {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* コーヒーマッチアプリのバナーのスタイル */
.coffee-match-banner {
    text-align: center;
    /* margin-bottom: 20px; */
}

.coffee-match-banner img {
    max-width: 1200px;
    height: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991px) {
    .coffee-match-banner img {
        max-width: 100%;
        height: auto;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
}

.article-image {
    margin: 2em 0;
    text-align: center;
}

/* 記事内画像のスタイル */
.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.article-image figcaption {
    margin-top: 0.5em;
    font-style: italic;
    color: #666;
}

/* コードブロック全体のスタイル */
pre {
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    border-left: 3px solid #994724;
    color: #666;
    page-break-inside: avoid;
    font-family: monospace;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 1.6em;
    max-width: 100%;
    overflow: auto;
    padding: 1em 1.5em;
    display: block;
    word-wrap: break-word;
}

/* インラインコードのスタイル */
code {
    background-color: #f4f4f4;
    border-radius: 3px;
    color: #666;
    font-family: monospace;
    font-size: 0.9em;
    padding: 0.2em 0.4em;
}

/* コードブロック内のコードスタイル */
pre code {
    background-color: transparent;
    border: none;
    padding: 0;
}

/* コードブロックのスクロールバースタイル */
pre::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

pre::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

pre::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* レスポンシブデザイン */
@media screen and (max-width: 600px) {
    pre {
        font-size: 14px;
        padding: 0.8em 1.2em;
    }
}

/* オプション: 行番号のスタイル (必要な場合) */
.line-numbers {
    counter-reset: line;
}

.line-numbers code {
    counter-increment: line;
}

.line-numbers code:before {
    content: counter(line);
    display: inline-block;
    padding-right: 0.5em;
    margin-right: 0.5em;
    color: #888;
    border-right: 1px solid #ddd;
}

/* ブロッククォートのスタイル */
blockquote {
    background-color: #f9f2e7;
    /* 薄いベージュ色の背景 */
    border-left: 4px solid #6f4e37;
    /* コーヒー色の左ボーダー */
    margin: 1.5em 0;
    padding: 1em 1.5em;
    position: relative;
    border-radius: 0 8px 8px 0;
    /* 右側に丸みを持たせる */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    /* 軽い影をつける */
}

blockquote::before {
    content: '"';
    /* 引用符 */
    font-size: 3em;
    position: absolute;
    left: 10px;
    top: -10px;
    color: #6f4e37;
    /* コーヒー色 */
    opacity: 0.3;
}

blockquote p {
    margin: 0 0 10px 0;
    font-style: italic;
    color: #333;
    line-height: 1.6;
}

blockquote a {
    display: block;
    text-align: right;
    color: #6f4e37;
    /* リンクもコーヒー色に */
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    margin-top: 10px;
}

blockquote a:hover {
    text-decoration: underline;
}

/* レスポンシブデザイン対応 */
@media (max-width: 768px) {
    blockquote {
        padding: 1em;
        margin: 1em 0;
    }

    blockquote::before {
        font-size: 2em;
        top: -5px;
    }
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
}

.checkbox-container label {
    font-weight: bold;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-radius: 3px;
    outline: none;
    transition: all 0.3s;
}

.checkbox-container input[type="checkbox"]:checked {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.checkbox-container input[type="checkbox"]:checked::before {
    content: '\2714';
    display: block;
    text-align: center;
    color: white;
    font-size: 16px;
    line-height: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
    font-family: Arial, sans-serif;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f2f2f2;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
}

table tr:nth-child(even) {
    background-color: #f8f8f8;
}

table tr:hover {
    background-color: #e9e9e9;
}

@media screen and (max-width: 600px) {
    table {
        font-size: 14px;
    }

    table th,
    table td {
        padding: 8px;
    }
}

/* PC表示用のスタイル */
@media (min-width: 992px) {
    .content-wrapper {
        display: flex;
        justify-content: space-between;
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }

    .main-content {
        width: 70%;
    }

    .sidebar {
        width: 25%;
    }

    .sidebar-section {
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
        margin-left: 20px;
        padding: 15px;
        font-size: 14px;
    }

    .sidebar-section h3 {
        margin-top: 0;
        margin-bottom: 10px;
        font-size: 0.8rem;
        color: #333;
        line-height: 1.3;
        max-height: 2.6em;
        /* padding-bottom: 5px; */
        /* border-bottom: 1px dashed #ccc; */
        /* 破線を追加 */
    }

    .sidebar-section ul {
        list-style-type: none;
        padding: 0;
        margin-top: 10px;
        /* ulの上部にマージンを追加 */
    }
    
    .sidebar-section li {
        margin-bottom: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sidebar-section a {
        color: #007bff;
        text-decoration: none;
    }

    .sidebar-section a:hover {
        text-decoration: underline;
    }
}

/* モバイル表示用のスタイル */
@media (max-width: 991px) {
    .sidebar {
        display: none; /* モバイルでは非表示 */
    }
}

.sidebar-article-item {
    display: flex;
    margin-bottom: 15px;
}

.sidebar-article-link {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.sidebar-article-thumbnail {
    width: 50px;
    height: 50px;
    overflow: hidden;
    margin-right: 10px;
}

.sidebar-thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-article-info {
    flex: 1;
}

.sidebar-article-title {
    font-size: 14px;
    margin: 0 0 5px 0;
}

.sidebar-article-date {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.internal-link-article-item {
    display: flex;
    margin-bottom: 15px;
    background-color: #f4f4f4;
    padding: 5px;
}

.internal-link-article-link {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.internal-link-article-thumbnail {
    width: 50px;
    height: 50px;
    overflow: hidden;
    margin-right: 10px;
}

.internal-link-thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.internal-link-article-info {
    flex: 1;
}

.internal-link-article-title {
    font-size: 14px;
    margin: 0 0 5px 0;
}

.internal-link-article-date {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* 画像表示の基本調整 */
.thumbnail,
.article-thumbnail,
.article-image img {
    max-width: 100%;
    height: auto;
}

/* スマートフォン向けのスタイル */
@media (max-width: 600px) {
    .thumbnail[data-mobile-src],
    .article-thumbnail[data-mobile-src],
    .article-image img[data-mobile-src] {
        opacity: 0;
        transition: opacity 0.3s;
    }
}

.blog-logo {
    width: 100%;
    max-width: 1200px;
    height: auto;
}

.twitter-follow {
    background-color: #f8f9fa;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
}

.twitter-follow h3 {
    color: #1DA1F2;
    margin-bottom: 1rem;
}

.twitter-button {
    display: inline-flex;
    align-items: center;
    background-color: #1DA1F2;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.twitter-button:hover {
    background-color: #0c85d0;
}

.twitter-button svg {
    margin-right: 10px;
    width: 24px;
    height: 24px;
}

.amazon-product {
    background: #ffffff;
    border: 1px solid #ddd;
    padding: 10px;
    margin: 20px 0;
    display: flex;
    max-width: 600px;
    font-family: Arial, sans-serif;
    transition: all 0.3s ease;
}

.amazon-product-image {
    flex: 0 0 200px;
    margin-right: 20px;
}

.amazon-product-image img {
    max-width: 100%;
    height: auto;
}

.amazon-product-details {
    flex: 1;
}

.amazon-product-details h2 {
    margin: 0 0 10px 0;
    color: #0066c0;
    font-size: 18px;
}

.amazon-product-details p {
    margin: 0 0 5px 0;
    color: #555;
    font-size: 14px;
}

.amazon-product-details .price {
    color: #B12704;
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
}

.amazon-product-details .rating {
    color: #FFA41C;
    font-size: 16px;
    margin-bottom: 10px;
}

.amazon-product-details a {
    background: #FFD814;
    border: 1px solid #FCD200;
    padding: 8px 30px;
    border-radius: 20px;
    color: #0F1111;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    font-size: 14px;
}

/* スマホ表示向けのメディアクエリ */
@media (max-width: 768px) {
    .amazon-product {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .amazon-product-image {
        margin: 0 0 20px 0;
    }

    .amazon-product-image img {
        max-width: 60%;
        height: auto;
    }

    .amazon-product-details a {
        padding: 10px 20px;
    }
}

