body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
    background-color: #ffffff;
}

/* Header Section */
.header {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #ffffff;
}

.header h1 {
    font-size: 2.5em;
    color: #ff4081;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.header p {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.header .sub-points {
    margin-top: 20px;
}

.header .sub-points ul {
    list-style: none;
    padding: 0.5rem;
    display: inline-block; /* To center the list items */
    text-align: left;
    background-color: #E8F3DD;
    /* border-left: 5px solid #00bcd4; */
    /* border-radius: 4px; */
}

.header .sub-points li {
    padding: 5px 15px;
    margin: 0.5rem 0;
    font-size: 1.1em;
    color: #0F1B34;
}

/* TOC Contents */
.toc {
    /* padding: 40px 0; */
    background-color: #fff;
    margin-bottom: 30px;
}

.toc h2 {
    text-align: center;
    font-size: 1.4em;
    margin-bottom: 30px;
}

.toc ul {
    list-style: none;
    /* border-radius: 8px; */
    /* display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px; */
}

.toc > ul {
    margin: 0;                  /* デフォルトの上下左右マージンを消す */
    padding: 0 1.5rem;                 /* インデントを消す */
}

.toc li {
    background-color: #f0f0f0;
    padding: 0.5em 1em;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.toc li:hover {
    background-color: #e0e0e0;
}

.toc li ul {
    margin-top: 10px;
    margin-left: 5px;
    display: block; /* Override grid for nested list */
    list-style: disc; /* Use disc for sub-items */
    font-size: 0.80em;
    gap: 5px;
}
.toc li ul li {
    background-color: transparent;
    border-left: none;
    padding: 5px 0;
    margin-bottom: 0;
    box-shadow: none;
    border-radius: 0;
}


/* Section Styling */
.section {
    padding: 0 0 20px 0;
    background-color: #ffffff;
    margin: 3rem 0;
    /* border-radius: 8px; */
    /* box-shadow: 0 2px 5px rgba(0,0,0,0.05); */
}

.red {
    color: #FC0047;
}

.underline {
    text-decoration:underline;
}

.section-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    text-align: left;
}

.section-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 8px;
    background-color: #FFDA48;
    /* margin: 10px auto 0; */
    border-radius: 8px;
}

.section-content {
    padding: 0 20px;
    margin-top: 20px;
}

.section-content p {
    margin-bottom: 15px;
}

.section-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    padding-left: 0; /* Adjust for proper bullet alignment */
}

.section-content ul li {
    margin-bottom: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.image-hero {
    text-align: center;
}

.image-hero img {
    max-width: 100%;
    height: auto;
}

.image-center {
    text-align: center;
    margin: 1.5rem 0;
}

.image-center img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#rankingImage {
    width: 60%;
    height: auto;
    margin: 0 0 30px 0;
}

.point-box {
    /* background-color: #d4edda; */
    /* border-radius: 8px; */
    /* padding: 20px; */
    margin: 1.5rem 0;
    border: 1px solid #ddd;
    /* box-shadow: 0 2px 5px rgba(0,0,0,0.1); */
}

.point-box h3 {
    background-color: #5EB873;
    text-align: center;
    color: white;
    font-size: 1.4em;
    padding: 10px;
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.point-box h3::before {
    content: '💡'; /* Lightbulb emoji */
    margin-right: 10px;
}

.point-box.good {
    background-color: #F0F5FF;
}

.point-box.good h3 {
    background-color: #D1DDFF;
    color: #333;
}

.point-box.good h3::before {
    content: '👍️'; /* Thumbs up emoji for good points */
}

.point-box.bad {
    background-color: #ffebee;
}

.point-box.bad h3 {
    background-color: #ffcdd2;
    color: #333;
}

.point-box.bad h3::before {
    content: '👎️'; /* Thumbs down emoji for bad points */
}

.point-box ul {
    list-style: disc;
    padding-left: 35px;
    margin: 0;
}

.point-box ul li {
    margin-bottom: 10px;
}

/* Specific Section Styles */
#douruinc-highlight {
    text-decoration: none;
}

.douruinc-highlight {
    background-color: #ffe0b2;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.2em;
    font-weight: bold;
    color: #e65100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

/* Table Styling */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden; /* Ensures rounded corners apply to content */
}

.info-table th, .info-table td {
    border: 1px solid #ddd;
    padding: 0.8rem;
    text-align: left;
}

.info-table th {
    background-color: #f0f0f0;
    font-weight: bold;
}

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

.info-table tr:hover {
    background-color: #f1f1f1;
}

/* スマホサイズで縦並び */
@media (max-width: 767px) {
  /* table を縦並びにする */
  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
    table-layout: fixed;
  }

  .info-table tr {
    border: 1px solid #ddd;
  }

  .info-table th {
    background: #f2f2f2; /* グレー背景 */
    font-weight: bold;
    padding: 10px;
    border: none;
  }

  .info-table td {
    background: #fff; /* 白背景 */
    padding: 10px;
    border: none;
    border-top: 1px solid #ddd; /* 項目と詳細の区切り */
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

/* Book Image */
.book-section {
    text-align: center;
    margin: 40px 0;
}

.book-section h3 {
    font-size: 1.5em;
    color: #3f51b5;
    margin-bottom: 20px;
}

.book-section img {
    max-width: 300px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sticky-note {
    background-color: #fffacd; /* Light yellow */
    border-left: 5px solid #ffd700; /* Gold */
    padding: 15px;
    margin: 20px 0;
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    border-radius: 4px;
}
.citation {
    font-size: 0.8em;
    color: #777;
    vertical-align: super;
}

.agency-box {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1rem;
    margin: 2rem 0;
    background: #fafafa;
}

.liver-agency-title {
    font-size: 1.6em;
    text-decoration:underline;
}

.agency-image {
    max-height: 300px;
}

.remarks {
    font-size: 0.8em;
}

/* FAQセクション全体 */
.faq-section {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

/* FAQアイテム */
.faq-item {
  border-bottom: 1px solid #ddd;
  margin-bottom: 1rem 0;
  padding-bottom: 1rem;
  position: relative;
}

.faq-item input {
  display: none;
}

/* 質問部分 */
.faq-question {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #444;
  cursor: pointer;
  padding: 0.8rem;
  position: relative;
  transition: color 0.3s;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  font-size: 1.2rem;
  color: #f43f5e;
  transition: transform 0.3s;
}

/* 開いたときのスタイル */
.faq-item input:checked + .faq-question {
  color: #f43f5e;
}

.faq-item input:checked + .faq-question::after {
  content: "−";
  transform: rotate(180deg);
}

/* 回答部分 */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  color: #555;
}

.faq-answer p {
  padding: 0.8rem;
}

.faq-item input:checked ~ .faq-answer {
  max-height: 500px;
  padding-top: 0.5rem;
}


@media screen and (max-width: 768px) {
    .toc ul {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 1.6rem;
    }

    .header p {
        font-size: 1em;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .section-content {
        padding: 0;
    }

    .point-box h3 {
        font-size: 1rem;
    }

    .ranking-list li {
        width: calc(100% - 20px);
    }

    .info-table th, .info-table td {
        font-size: 0.9rem;
        padding: 0.6rem;
    }

    .agency-box {
        padding: 0.8rem;
    }
　
    .toc > ul {
        padding: 0;
    }
}

@media screen and (max-width: 480px) {
    .header h1 {
        font-size: 1.4rem;
    }

    body {
        font-size: 0.9rem;
    }

    .section {
        margin: 2rem 0;
    }
}

#writerImage {
    width: 80%;
    max-width: 600px;
    height: auto;
    margin: 0;
}


/* ============================
    Footer
=============================*/
footer {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    overflow: hidden;
    padding: 0;
}

.copywriter {
    text-align: center;
    color: #666;
}

@media (max-width: 767px) {
    footer {
        position: inherit;
    }
}
