@charset "utf-8";

/* 画像 */
.photo, 
.photojoin {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: -1em;
}
.photo {
  margin-right: -3px;
}
.photo figure, 
.photojoin figure {
  display: table;
  margin-bottom: 1em;
}
.photo figure {
  margin-right: 3px;
}
.photo img, 
.photo video {
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
}
figcaption {
  display: table-caption;
  caption-side: bottom;
}
.photo figcaption, 
.photojoin figcaption, 
p.caption {
  font-size: 1.4rem;
  line-height: 1.4;
}
.photo figure .turn {
  display: block;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.photo figure .turn::after {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #f2eeee;
}
#photopre:checked ~ .turn::after, 
.photopre:checked ~ .turn::after {
  top: 100%;
  transition: top 5s linear;
}
/* 塗りつぶしマップ */
.mapfill figure {
  display: table;
  margin-bottom: 1em;
}
.mapfill img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
}
.mapfill figcaption {
  margin-top: 1rem;
  margin-left: 3px;
}
.mapfill figcaption p {
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 1.8rem solid;
  line-height: 1.2;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* 会話 */
.speak {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
.speak p {
  padding: 2px 5px 2px 3.8rem;
  border-radius: 6px;
  text-indent: -3rem;
  font-size: 0rem;
}
.speak > p * {
  font-size: 1.5rem;
}
.speak > p > span:nth-child(2)::before, 
.speak > p > span:nth-child(2)::after {
  color: #333;
}
.speak > p > span:nth-child(2)::before {
  content: "「";
}
.speak > p > span:nth-child(2)::after {
  content: "」";
}

/* ルール箇条書き */
ul.rule, 
ul.itemize {
  padding-left: 2.4rem;
  list-style: disc;
}

/* 距離比較 */
.compare {
  margin-left: 0.8rem;
}
.compare dl {
  display: table;
}
.compare dt, 
.compare dd {
  display: table-cell;
  vertical-align: middle;
}
.compare dt {
  width: 6rem;
}
.compare dd {
  font-size: 1.6rem;
  font-weight: bold;
}

/* ルート */
.route {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
}
.route img {
  flex: 0 0 auto;
  margin-right: 10px;
  max-width: 30%;
}
.route dl {
  font-size: 0rem;
  color: #666;
}
.route dt, 
.route dd {
  font-size: 1.2rem;
}
.route dt {
  font-weight: bold;
}
.route dd {
  display: inline;
}
.route dd:not(:first-of-type)::before {
  padding-left: 2px;
  padding-right: 2px;
  content: "―";
  color: #ccc;
}
.route dd.note {
  display: block;
}
.route dd.note::before {
  content: none;
}

/* サイコロ */
.dice {
  display: inline-block;
  vertical-align: middle;
  width: 1.6em;
  height: 1.6em;
  box-sizing: border-box;
  border-radius: 10%;
  border: 1px solid #ccc;
  background-color: #fff;
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
}
.dice.d1 {
  background-image: 
    radial-gradient(circle, #f00f 30%, #0000 33%);
}
.dice.d2 {
  background-image: 
    radial-gradient(circle closest-side at 28% 72%, #000f 49%, #0000 52%), 
    radial-gradient(circle closest-side at 72% 28%, #000f 49%, #0000 52%);
}
.dice.d3 {
  background-image: 
    radial-gradient(circle closest-side at 25% 75%, #000f 49%, #0000 52%), 
    radial-gradient(circle closest-side at 50% 50%, #000f 25%, #0000 27%), 
    radial-gradient(circle closest-side at 75% 25%, #000f 49%, #0000 52%);
}
.dice.d4 {
  background-image: 
    radial-gradient(circle closest-side at 25% 25%, #000f 49%, #0000 52%), 
    radial-gradient(circle closest-side at 25% 75%, #000f 49%, #0000 52%), 
    radial-gradient(circle closest-side at 75% 25%, #000f 49%, #0000 52%), 
    radial-gradient(circle closest-side at 75% 75%, #000f 49%, #0000 52%);
}
.dice.d5 {
  background-image: 
    radial-gradient(circle closest-side at 25% 25%, #000f 49%, #0000 52%), 
    radial-gradient(circle closest-side at 25% 75%, #000f 49%, #0000 52%), 
    radial-gradient(circle closest-side at 50% 50%, #000f 25%, #0000 27%), 
    radial-gradient(circle closest-side at 75% 25%, #000f 49%, #0000 52%), 
    radial-gradient(circle closest-side at 75% 75%, #000f 49%, #0000 52%);
}
.dice.d6 {
  background-image: 
    radial-gradient(circle closest-side at 25% 18%, #000f 67%, #0000 70%), 
    radial-gradient(circle closest-side at 25% 50%, #000f 50%, #0000 53%), 
    radial-gradient(circle closest-side at 25% 82%, #000f 67%, #0000 70%), 
    radial-gradient(circle closest-side at 75% 18%, #000f 67%, #0000 70%), 
    radial-gradient(circle closest-side at 75% 50%, #000f 50%, #0000 53%), 
    radial-gradient(circle closest-side at 75% 82%, #000f 67%, #0000 70%);
}
.compare dd .dice {
  font-size: 1.5rem;
  font-weight: normal;
}

@media screen and (min-width:241px) {
  /* 最小表示幅240px マージン可変にするためのポイント */
  /* 画像 */
  .photo {
    margin-right: -1.30208333333333vw;
    margin-right: calc(-10 / 768 * 100vw);
  }
  .photo figure {
    margin-right: 1.30208333333333vw;
    margin-right: calc(10 / 768 * 100vw);
  }
  /* 塗りつぶしマップ */
  .mapfill figcaption {
    margin-left: 1.30208333333333vw;
    margin-left: calc(10 / 768 * 100vw);
  }
}

@media screen and (min-width:456px) {
  /* 記事内画像幅最大420pxにするためのポイント */
  .photo img, 
  .photo video {
    max-width: 420px;
  }
}

@media screen and (min-width:768px) {
  /* マージンを固定するためのポイント */
  /* 画像 */
  .photo {
    margin-right: -10px;
  }
  .photo figure {
    margin-right: 10px;
  }
  .mapfill figcaption {
    margin-left: 10px;
  }
}

/* カラー設定 */
/* 画像 */
.photo figcaption, 
.photojoin figcaption, 
p.caption {
  background-color: #f2eeee;
}
/* 会話 */
.speak p:not([class]) {
  color: #000;
  background-color: #fcf2f2;
}
.speak .brackets {
  color: #333;
}
.shacho { /* 社長 */
  color: #03c;
  background-color: #f4f9ff;
}
.ahiru { /* あひる */
  color: #060;
  background-color: #f7ffef;
}
.navi { /* ナビ子さん */
  color: #ff1493;
  background-color: #fff1f6;
}
.nodomama { /* のどママ */
  color: #90c;
  background-color: #fff4ff;
}
.nodo { /* のどさん */
  color: #eb6101;
  background-color: #fff8e9;
}
.paru { /* ぱるくん */
  color: #078;
  background-color: #f0fbfc;
}
.haha { /* 母 */
  color: #b22222;
  background-color: #fff6ec;
}
.all { /* 複数 */
  color: #f00;
  background-color: #fff4ea;
}
.person { /* その他のひと */
  color: #8b4513;
  background-color: #fffae4;
}

@media print {
  /* 画像 */
  .photo, 
  .photojoin {
    display: block;
    font-size: 0rem;
  }
  .photo {
    margin-right: -10px;
  }
  .photo figure, 
  .photojoin figure {
    display: inline-table;
    font-size: 1.5rem;
    margin-top: 1em;
    margin-bottom: 0;
    vertical-align: top;
    page-break-inside: avoid;
  }
  .photo figure {
    margin-right: 10px;
  }
  .photo figure .turn::after {
    background-color: transparent;
  }
  .photo img, 
  .photo video {
    max-width: 368px;
    max-height: 368px;
    width: auto;
    height: auto;
  }
  .mapfill {
    page-break-inside: avoid;
  }
  /* 会話 */
  .speak {
    display: block;
  }
  .speak p {
    padding-top: 0;
    padding-bottom: 0;
    page-break-inside: avoid;
  }
  .speak * {
    background-color: #fff !important;
  }
  /* ルート */
  .route {
    display: block;
    page-break-inside: avoid;
  }
  .route img {
    margin-right: 0;
  }
  .route dl {
    margin-top: -135px;
    margin-left: 160px;
    min-height: 135px;
  }
}
