@charset "UTF-8";

/* 贈り物豆知識 新レイアウト共通CSS
   PC/SP両テーマで既存CSSの後に読み込む想定です。 */

.mame-article {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 18px 56px;
  color: #2f2a24;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0;
}

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

.mame-article img {
  max-width: 100%;
  height: auto;
}

.mame-article a {
  color: #7b4d17;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.mame-article__header {
  margin: 0 0 28px;
}

.mame-article__category {
  margin: 0 0 8px;
  color: #8f6f34;
  font-size: 0.9em;
  letter-spacing: 0.08em;
}

.mame-article__title {
  margin: 0 0 16px;
  color: #2f2a24;
  font-family: "a-otf-ryumin-pr6n", "heisei-mincho-std", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.45;
}

.mame-article__lead {
  margin: 0 0 14px;
  font-size: 1.05em;
}

.mame-article__meta {
  margin: 0;
  color: #777;
  font-size: 0.9em;
}

.mame-article__eyecatch {
  margin: 0 0 28px;
}

.mame-article h2 {
  margin: 40px 0 16px;
  padding: 0 0 8px;
  border: none;
  border-bottom: 1px solid #d8c08a;
  background: none;
  color: #3b2d1a;
  font-family: "a-otf-ryumin-pr6n", "heisei-mincho-std", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.45em;
  font-weight: 700;
  line-height: 1.5;
}

.mame-article h3 {
  margin: 28px 0 10px;
  color: #4a3820;
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1.6;
}

.mame-article p {
  margin: 0 0 1em;
}

.mame-article ul,
.mame-article ol {
  margin: 0 0 1.4em;
  padding-left: 1.5em;
}

.mame-article li {
  margin: 0 0 0.45em;
}

.mame-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 28px;
}

.mame-article th,
.mame-article td {
  border: 1px solid #e2d5b8;
  padding: 10px 12px;
  vertical-align: top;
}

.mame-article th {
  background: #f8f1df;
  color: #3b2d1a;
  font-weight: 700;
}

.mame-toc,
.no_bullets {
  display: block;
  border: 1px solid #e2d5b8;
  background: #faf7ef;
  padding: 18px 20px;
  margin: 28px 0 34px;
}

.mame-toc__title {
  margin: 0 0 10px;
  color: #5a3f18;
  font-weight: 700;
}

.mame-toc ol,
.no_bullets ul {
  margin: 0;
  padding-left: 1.4em;
}

.mame-toc li,
.no_bullets li {
  margin: 0 0 0.55em;
  list-style: decimal;
}

.answer-box {
  border: 2px solid #d8c08a;
  background: #fffaf0;
  padding: 18px 20px;
  margin: 24px 0;
  line-height: 1.9;
}

.answer-box p {
  margin: 0 0 10px;
}

.answer-box p:last-child {
  margin-bottom: 0;
}

.faq-box {
  border: 2px solid #d8c08a;
  background: #fffaf0;
  padding: 20px 22px;
  margin: 32px 0;
  line-height: 1.9;
}

.faq-box__title {
  margin: 0 0 16px;
  padding: 0 0 10px;
  border: none;
  border-bottom: 1px solid #d8c08a;
  background: none;
  color: #5a3f18;
  font-size: 1.35em;
  font-weight: 700;
}

.faq-box__item {
  margin: 0 0 18px;
  padding: 0 0 18px;
  border-bottom: 1px dashed #d8c08a;
}

.faq-box__item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.faq-box__question {
  position: relative;
  margin: 0 0 8px;
  padding-left: 1.8em;
  color: #5a3f18;
  font-size: 1.05em;
  font-weight: 700;
  line-height: 1.7;
}

.faq-box__question::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.35em;
  height: 1.35em;
  border-radius: 50%;
  background: #d8c08a;
  color: #fff;
  font-size: 0.82em;
  line-height: 1.35em;
  text-align: center;
}

.faq-box__answer {
  position: relative;
  margin: 0;
  padding-left: 1.8em;
}

.faq-box__answer::before {
  content: "A";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 1.35em;
  height: 1.35em;
  border-radius: 50%;
  background: #8f6f34;
  color: #fff;
  font-size: 0.82em;
  line-height: 1.35em;
  text-align: center;
}

.mame-recommend {
  border-left: 4px solid #d8c08a;
  background: #fbfaf6;
  padding: 18px 20px;
  margin: 36px 0;
}

.editor-box {
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 16px 0;
  margin: 32px 0;
  color: #555;
  font-size: 0.95em;
  line-height: 1.8;
}

.editor-box p {
  margin: 0 0 8px;
}

@media screen and (max-width: 767px) {
  .mame-article {
    padding: 24px 15px 44px;
    font-size: 15px;
  }

  .mame-article__title {
    font-size: 1.55rem;
  }

  .mame-article h2 {
    margin-top: 32px;
    font-size: 1.28em;
  }

  .mame-article table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .answer-box {
    padding: 16px 15px;
    margin: 22px 0;
  }

  .faq-box {
    padding: 16px 15px;
    margin: 28px 0;
  }

  .faq-box__title {
    font-size: 1.2em;
  }
}
