@charset "UTF-8";

/* =========================
  Base
========================= */
html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
}

img { display: block; }

.spON { display: none; }

/* =========================
  Layout
========================= */
article {
  /* 元: CONTAIN-INTRINSIC-BLOCK-SIZE: AUTO 100PX; */
  contain-intrinsic-block-size: auto 100px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 0 50px;
}

.contBox {
  margin: 0;
  padding: 50px 0 0;
}

/* =========================
  Headings
========================= */
h1 {
  position: relative;
  padding: 80px 0 21px;
  text-align: center;
  margin: 0;
  font-size: 24px;
}

h1::before {
  position: absolute;
  bottom: 0;
  left: calc(50% - 30px);
  width: 60px;
  height: 4px;
  content: "";
  border-radius: 2px;
  background: #f00;
}

h2 {
  text-align: center;
  font-size: 20px;
  border-bottom: 1px dotted #ddd;
  margin: 0 0 20px;
  padding: 0 0 10px;
}

h2 span {
  font-size: 16px;
  font-weight: normal;
}

h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: normal;
}

/* =========================
  CP Box (続きを読む)
========================= */
.cp_box,
.cp_box *,
.cp_box *::before,
.cp_box *::after {
  box-sizing: border-box;
}

.cp_box { position: relative; }

.cp_box input { display: none; }

.cp_box label {
  position: absolute;
  z-index: 1;
  bottom: 0;
  width: 100%;
  height: 80px; /* グラデーションの高さ */
  cursor: pointer;
  text-align: center;
  background: linear-gradient(to bottom, rgba(250,252,252,0) 0%, rgba(250,252,252,0.95) 90%);
}

.cp_box label::after {
  position: absolute;
  z-index: 2;
  bottom: -15px;
  left: 50%;
  transform: translate(-50%, 0);
  content: "▼ 詳細";
  background-color: #ddd;
  font-size: 12px;
  padding: 5px 8px;
  border: 1px solid #bbb;
  font-weight: bold;
}

.cp_box .cp_container {
  overflow: hidden;
  height: 170px; /* 開く前に見えている部分の高さ */
  transition: all 0.5s;
}

.cp_box input:checked + label {
  background: inherit; /* 開いた時にグラデーションを消す */
}

.cp_box input:checked + label::after {
  content: "閉じる ▲";
}

.cp_box input:checked ~ .cp_container {
  height: auto;
  transition: all 0.5s;
}

.kara { opacity: 0; }

/* =========================
  SBS (flex blocks)
========================= */
.SBS {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}

.SBS .kanjiBox {
  width: 31%;
  margin: 0 0 40px;
}

/* SBS02 */
.SBS02 {margin: 0 0 20px;}

.SBS02 div {
  width: 100%;
  max-width: 390px;
}

.SBS02 img {
  width: 100%;
  height: auto;
}

/* SBS03 */
.SBS03 {
  display: flex;
  align-items: stretch;
}

.SBS03 a {
  flex: 1;
  display: block;
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
  border-right: 1px dotted #666;
  border-bottom: 1px dotted #666;
  font-size: 16px;
  position: relative;
  height: 50px;
}

.SBS03 a p {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.SBS03 .pcON {
  margin: 0;
  font-size: 16px;
  text-align: center;
  box-sizing: border-box;
  padding: 10px;
  width: 20%;
  line-height: 1.9;
  border-right: 1px dotted #666;
  border-left: 1px dotted #666;
  border-bottom: 1px dotted #666;
  background-color: #eee;
  color: #000;
  font-weight: bold;
}

/* =========================
  Tables
========================= */
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  border: 1px solid #ddd;
}

td {
  padding: 5px;
  vertical-align: top;
}

.kanjiBoxImg td {
  width: 50%;
  border-bottom: 1px solid #ddd;
  padding: 0;
}

.kanjiBoxImg td:first-of-type {
  border-right: 1px solid #ddd;
}

.kanjiBoxImg td img {
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

.kanjiBoxTit td,
.kanjiBoxSample01 td {
  font-size: 14px;
  background-color: #ddd;
  font-weight: bold;
}

.kanjiBoxShitei02 td {
  font-size: 14px;
  color: #f00;
  font-weight: bold;
}

.kanjiBoxShitei03 td { text-align: right; }

.kanjiBoxSample02 td { padding-bottom: 20px; }
.kanjiBoxSample02_02 td { padding-bottom: 5px; }

.kanjiBoxImg p {
  margin: 0;
  color: #fff;
  background-color: #444;
  padding: 2px 0;
  text-align: center;
}

.kanjiBoxImg p:nth-child(2) {
  background-color: transparent;
  color: #f00;
  text-align: left;
  font-size: 14px;
  font-weight: bold;
  margin: 0 5px;
}

/* =========================
  Nav
========================= */
nav {
  width: 100%;
  max-width: 800px;
  background-color: #000;
  color: #fff;
  opacity: 0.7;
  font-size: 20px;
  position: fixed;
  z-index: 999999;
  transform: translateX(-50%);
  left: 50%;
}

nav a {
  color: #fff;
  text-decoration: none;
}

nav a:hover { color: #f00; }

nav .spON { display: none; }

/* =========================
  Footer / Intro
========================= */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #fff;
}

footer p {
  max-width: 800px;
  margin: 5px auto;
  text-align: center;
  font-size: 10px;
  color: #666;
}

.intro p:last-of-type {
  color: #f00;
  border: 1px dashed #f00;
  padding: 15px 20px;
  margin: 0;
}

.specialsampletit { padding: 180px 0 21px; }

section.standby {
  padding: 10px;
  background-color: #ffe6e6;
  text-align: center;
  margin: 30px 0;
  color: #f00;
  font-size: 18px;
}

/* =========================
  Accordion
========================= */
.accordion { border-bottom: 1px dotted #000; }

.accordion-content { display: none; }

.accordion p {
  margin: 0;
  padding: 0;
}

.accordion-header {
  padding: 10px 30px 10px 10px;
  margin: 0;
  transition: background 0.3s ease;
  cursor: pointer;
  position: relative;
  font-size: 16px;
  border-bottom: 1px dotted #666;
}

.accordion-header::before,
.accordion-header::after {
  position: absolute;
  content: "";
  top: 1px;
  right: 10px;
  bottom: 0;
  width: 10px;
  height: 2px;
  margin: auto;
  background: #f00;
}

.accordion-header::after {
  transform: rotate(-90deg);
  transition: transform 0.3s;
}

.accordion-header.active::after {
  transform: rotate(0deg);
}

/* 奇数行背景 */
.cont .accordion:nth-child(2n+1) .accordion-header,
.cont .accordion:nth-child(2n+1) .accordion-content {
  background-color: #eee;
}

/* =========================
  Font size menu
========================= */
.fontsize_menu {
  padding: 30px 0 0;
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  list-style: none;
  flex-wrap: wrap;
}

.fontsize_menu li {
  width: 49%;
  box-sizing: border-box;
  background-color: #ffeaea;
  margin: 0 0 15px;
}

.fontsize_menu li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  width: 100%;
  color: #f00;
  padding: 10px 10px 10px 5px;
  box-sizing: border-box;
  font-size: 14px;
}

.fontsize_menu li a::after {
  content: "›";
  font-size: 20px;
}

.fontsize_menu li:hover {
  background-color: #ffc9c9;
}

/* =========================
  Caution list (※)
========================= */
.caution {
  list-style: none;
  padding: 0 0 20px;
  margin: 0;
}

.caution li {
  position: relative;
  padding: 0px 0 5px 1.2em;
  font-size: 12px;
}

.caution li::before {
  content: "※";
  position: absolute;
  left: 0;
}

/* =========================
  Page specific spacing
========================= */
.template > div.SBS:nth-of-type(n + 2) {
  margin-top: 40px;
}

/* =========================
  文字サイズ選択に戻る
========================= */

p.return {
    margin: 40px 0 0;
    text-align: center;
}

.return a {
    color: #000;
    text-decoration: none;
    padding: 5px;
    border-bottom: 1px dashed;
}

.return a span{
  font-size: 14px;
}

/* =========================
  Responsive (<=800px)
========================= */
@media screen and (max-width: 800px) {
  article {
    padding: 0 5% 50px;
    box-sizing: border-box;
  }

  .intro { font-size: 14px; }
  .intro p:last-of-type { padding: 5%; }

  .SBS { flex-direction: column; }

  .cp_box,
  .kanjiBox {
    width: 100% !important;
    max-width: 300px;
    margin: 0 auto 30px !important;
  }

  .cp_box .cp_container { height: 200px; }

  nav {
    width: 100%;
    max-height: 100%;
    left: 0;
    transform: translateX(0);
  }

  .kara { display: none; }

  .specialsampletit { padding: 80px 0 21px; }
  .SBS02 { margin: 0; }

  .pstit { margin: 15px 0 10px; }

  /* font size menu */
  .fontsize_menu li { width: 100%; }

  /* pc/sp */
  .pcON { display: none; }
  .spON { display: block !important; }

  /* スマホだけ余白を変える */
.template > div.SBS:nth-of-type(n + 2) {
    margin-top: 20px !important;
  }
  .SBS02 div {
  width: 100%;
  max-width: none;
}

h2 {
  font-size: 18px;
}

h2 span {
  font-size: 14px;
  font-weight: normal;
}

.SBS03 a{
  font-size: 12px;
}

p.return {
    margin: 20px 0 0;
}

p.return a{
  font-size:14px;
}

.return a span{
  font-size: 12px;
}
  
}
