@charset "UTF-8";

:root {
  --transTimes: all 0.4s ease-in-out;
  --trans: 0.2s;

  --themeColor: #1c3b6d;
  --themeColorHover: #13284b;
  --sub-color: #6884b3;
}

/* 全体 */
* {
  box-sizing: border-box;
}
body:has(dialog[open]) {
  overflow: hidden;
}
#body:has(dialog[open]) {
  overflow: auto;
  scrollbar-gutter: stable;
}
#contents {
  width: min(100%, 900px);
}
a {
  color: #111111;
}
li {
  list-style: none;
}
#contents-in img {
  display: block;
}
input[type="radio"],
input[type="checkbox"] {
  width: 1.5rem;
  height: 1.5rem;
  vertical-align: -0.4rem;
  accent-color: #1e51a2;
}
select {
  width: 100% !important;
  margin: 0 !important;
  padding: 0.1rem 0.35rem;
  font-size: 1rem !important;
  line-height: 1rem;
  height: 2.5rem;
  border: solid 1px #a8a8a8;
  border-radius: 0.25rem;
}
input[type="radio"],
input[type="checkbox"],
input[type="submit"],
label,
label:has(input[type="radio"]),
label:has(input[type="checkbox"]),
button,
select,
a {
  cursor: pointer;
}
img {
  user-select: none;
}

/* カード */
.cardBox {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.card {
  position: relative; /* いいねアイコン用 */
  width: 100%;
  padding: 1rem;
  background: #ffffff;
  border: solid 3px var(--sub-color);
  border-radius: 0.5rem;
}
.card:has(+ .card) {
  margin-bottom: 1rem;
}
.card p {
  margin: 0;
}
.flexBox,
.accord_flex {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.accord_flex {
  margin-top: 1rem;
}
.accordBox {
  position: relative;
  overflow: hidden;
}
.accordBox:has(+ .allHidden) {
  margin-bottom: 4rem;
}
.accordBox.is_grad::before {
  position: absolute;
  content: "";
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    0deg,
    rgb(255 255 255 / 1) 1rem,
    rgb(255 255 255 / 0) 3rem
  );
  transition: var(--trans);
}
.card.is_open .accordBox.is_grad::before {
  background: none;
}
.flexBox.start {
  flex-direction: row-reverse;
  justify-content: start;
  gap: 0.5rem;
}
.flex_in,
.accord_in {
  width: 100%;
}
.photoBox {
  width: 15%;
}
.accordPhoto {
  width: 35%;
}
.photoBox:not(.photoBox:has(img)) {
  width: 0;
}
p.titleHead {
  font-size: 1.3rem;
  font-weight: bold;
  line-height: 1.6;
}
.trim:has(+ .trim),
.notTrim:has(+ .notTrim) {
  margin-bottom: 0.5rem;
}
.trim img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.4rem;
  aspect-ratio: 1 / 1;
}
.notTrim img {
  width: 100%;
  height: 100%;
  border-radius: 0.4rem;
}

/* ボタン */
.showDialog {
  display: block;
  text-align: center;
  line-height: 1;
  font-size: 0.9rem;
  margin: 0 auto;
  margin-top: 0.8rem;
  border: none;
  border-radius: 0.4rem;
  transition: var(--trans);
}
.showDialog {
  position: relative;
  color: #ffffff;
  background-color: #aaaaaa;
  width: 8rem;
  padding: 0.5rem 0.6rem;
  padding-right: 1.2rem;
}
.showDialog::before {
  position: absolute;
  content: "";
  top: calc(50% - (0.5rem / 2));
  right: 0.5rem;
  width: 0.9rem;
  height: 0.5rem;
  background-color: #ffffff;
  transition: var(--trans);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.card.is_open .showDialog::before {
  rotate: 180deg;
}
@media screen and (min-width: 680px) {
  .showDialog:hover::before {
    top: calc(50% - (0.2rem / 2));
  }
  .card.is_open .showDialog:hover::before {
    top: calc(50% - (0.8rem / 2));
  }
}
.contentBox p:not(.titleHead) {
  font-size: 1.1rem;
  margin-top: 0.75rem;
}
.contentBox p.titleHead {
  font-size: 1.5rem;
}
span.heading {
  display: block;
  color: var(--themeColor);
  border-bottom: solid 1px var(--themeColor);
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
p:has(.heading) {
  line-height: 1.7;
}

/* ページボタン */
.pageBtn {
  margin-top: 2rem;
}
.pageBtn ul {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
}
.pageBtn a {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  border: solid 1px #1a60bb;
  line-height: 1;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  transition: 0.2s;
}
.pageBtn a.is_here {
  color: #ffffff;
  background-color: #1a60bb;
}
@media screen and (min-width: 680px) {
  .pageBtn a:hover {
    color: #ffffff;
    background-color: #1a60bb;
  }
}

/* いいね */
.niceBox {
  position: absolute;
  content: "";
  bottom: 0.5rem;
  left: 0.45rem;
}
.niceBtn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.25rem 1rem;
  border: solid 2px #ccc;
  border-radius: 5rem;
  line-height: 1;
  font-size: 1rem;
  color: #000000;
  background-color: #ffffff;
  transition: 0.15s;
}
.niceBtn.is_clicked {
  font-weight: bold;
  color: #ff2727;
  border-color: #ff6767;
}
@media screen and (min-width: 680px) {
  .niceBtn:hover {
    background-color: #f4f4f4;
  }
  .niceBtn.is_clicked:hover {
    background-color: #fff1f1;
  }
}
.heart {
  position: relative;
  display: inline-block;
  width: 1.6rem;
  height: 1.6rem;
}
.heart::before,
.heart::after {
  position: absolute;
  content: "";
  top: 0;
  width: 50%;
  height: 80%;
  border-radius: 0.4rem 0.4rem 0 0;
  background-color: #aaaaaa;
}
.heart::before {
  left: 0.235rem;
  rotate: -45deg;
}
.heart::after {
  right: 0.235rem;
  rotate: 45deg;
}
.niceBtn.is_clicked .heart::before,
.niceBtn.is_clicked .heart::after {
  background-color: #ff3c3c;
  animation: Nice 0.2s ease-in forwards;
}
@keyframes Nice {
  0% {
    transform: scale(0.75);
  }
  80% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}
.idNum {
  display: none;
}

/* 口コミがありません */
.noneComment {
  text-align: center;
}

/* 非表示 */
.allHidden {
  display: none;
}
@media screen and (min-width: 680px) {
  .hidden {
    display: none;
  }
}

/* -------------------------------- */
/* -------------------------------- */
/* -------------------------------- */

/* SP */
@media screen and (max-width: 679px) {
  /* 全体 */
  #contents {
    width: calc(100% - 20px);
  }
  input[type="radio"],
  input[type="checkbox"] {
    vertical-align: -0.35rem;
  }
  select {
    width: inherit !important;
  }
  h1 {
    text-align: center;
    color: #ffffff;
    background-color: #009bc2;
  }

  /* カード */
  .cardBox {
    display: block;
    margin-top: 1rem;
  }
  .card {
    padding: 0.75rem;
    border: solid 3px var(--sub-color);
    margin-bottom: 1rem;
    transition: var(--transTimes);
  }
  .accord_flex {
    display: block;
  }
  .flexBox:not(.start) {
    margin-top: 0.25rem;
  }
  .card.is_open .accordBox.is_grad::before {
    background: none;
  }
  .flexBox {
    display: flex;
    justify-content: start;
    gap: 1rem;
  }
  .flex_in {
    width: 55%;
  }
  .accordPhoto {
    width: 100%;
    margin-top: 0.75rem;
  }
  p.titleHead {
    font-size: 1.2rem;
  }
  .trim {
    width: 8rem;
    height: 8rem;
  }
  .trim img {
    border-radius: 0.25rem;
  }

  /* ページボタン */
  .pageBtn ul {
    padding: 0;
  }

  /* いいね */
  .niceBtn {
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
  }
  .nice {
    display: none;
  }
  .heart {
    width: 1.2rem;
    height: 1.2rem;
  }
  .heart::before,
  .heart::after {
    border-radius: 0.3rem 0.3rem 0 0;
  }
  .heart::before {
    left: 0.2rem;
  }
  .heart::after {
    right: 0.2rem;
  }
}
