@charset "UTF-8";

/* =========================================================
   visitor_page_fixed.css
   遺産を受け取る方ページ用CSS
   ※ ul直下に残っている <div class="cleafix"></div> があっても崩れないように調整済み
   ========================================================= */

/*======================================
  font共通
======================================*/
body {
  font-family: "Yu Gothic", YuGothic, "Noto Sans JP", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  font-weight: 500;
  font-size: 18px;
}

.visitor_page h1,
.visitor_page h2,
.visitor_page h3,
.visitor_page h4,
.visitor_page h5 {
  font-weight: 700;
}

@media screen and (max-width: 768px) {
  html {
    font-size: 16px;
  }
}

@media screen and (max-width: 425px) {
  html {
    font-size: 16px;
  }

  p {
    line-height: 1.8rem;
  }
}

@media screen and (max-width: 320px) {
  html {
    font-size: 15px;
  }
}

/*======================================
  ページ全体
======================================*/
.visitor_page {
  overflow: auto;
  display: block;
  background-color: #F6F4F1;
}

/*======================================
  タイトルエリア
======================================*/
.visitor_page .title {
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 3rem 0 4rem;
  font-weight: bold;
  color: #fff;
  background-image: url("../image/common/yellow_brown_back.png");
}

.visitor_page.leave_inheritance .title {
  background-image: url("../image/common/green_back.png");
}

.visitor_page .title img {
  position: absolute;
  left: -5%;
  top: -52%;
  height: 160%;
  opacity: 0.5;
}

.visitor_page.leave_inheritance .title img {
  left: auto;
  right: -5%;
}

.visitor_page .title > div {
  position: relative;
  z-index: 1;
}

.visitor_page .title h1 {
  font-size: 3rem;
  font-weight: 600;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.visitor_page .title p {
  font-weight: bold;
  line-height: 1.5;
  font-size: 16px;
}

.visitor_page .title p span {
  display: inline-block;
}

/*======================================
  一覧エリア
======================================*/
.visitor_page section.list {
  max-width: 1100px;
  margin: 4rem auto;
  overflow-y: visible;
  padding: initial;
  max-height: initial;
  background: initial;
}

.visitor_page .list a::before {
  content: none;
}

/*
  ul直下の不要なclearfix divを無効化。
  本来はHTMLから削除するのがベストですが、
  残っていてもレイアウトが崩れないようにしています。
*/
.visitor_page section.list > ul > div.cleafix {
  display: none !important;
}

/*
  既存CSSのfloat指定を打ち消して、flexで3列制御。
*/
.visitor_page section.list > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

/* clearfix疑似要素をflexアイテム化させない */
.visitor_page section.list > ul.cleafix::after {
  content: none !important;
  display: none !important;
}

.visitor_page section.list > ul > li {
  float: none !important;
  margin: 0 !important;
  list-style: none;
  box-sizing: border-box;
}

.visitor_page section.list > ul > li a {
  display: block;
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
  height: 100%;
  padding-left: initial;
  margin: initial;
}

.visitor_page section.list > ul > li a .name {
  position: relative;
}

.visitor_page section.list > ul > li a .name h2 {
  text-align: center;
  font-size: 2rem;
  padding: 2rem 0.5rem;
}

.visitor_page section.list > ul > li a .name h2::after {
  font-family: 'icomoon';
  content: "\e907";
  display: inline-block;
  position: absolute;
  right: 3%;
  font-size: 1.3rem;
  top: 50%;
  transform: translate(0, -50%);
  color: #666;
}

.visitor_page section.list > ul > li a .check {
  padding: 1.5rem;
  box-sizing: border-box;
  background-image: url("../image/common/ash_brown_back.png");
}

.visitor_page section.list > ul > li a .check ul {
  padding: 0;
  margin: 0;
}

.visitor_page section.list > ul > li a .check ul li {
  margin-bottom: 0.8rem;
  margin-left: 1rem;
  position: relative;
  line-height: 1.6;
}

.visitor_page section.list > ul > li a .check ul li:last-child {
  margin-bottom: 0;
}

.visitor_page section.list > ul > li a .check ul li::before {
  font-family: 'icomoon';
  content: "\e911";
  color: #fff;
  font-size: 10px;
  display: inline-block;
  position: absolute;
  left: -1.2rem;
  top: 5px;
  width: 15px;
  text-align: center;
  box-sizing: border-box;
  background-color: #107A08;
}

/*======================================
  PC：3列
======================================*/
@media screen and (min-width: 769px) {
  .visitor_page section.list > ul > li {
    width: calc((100% - 3rem) / 3);
  }

  .visitor_page section.list > ul > li a .check {
    min-height: 195px;
  }
}

/*======================================
  タブレット
======================================*/
@media screen and (max-width: 1024px) {
  .visitor_page section.list {
    padding: 0 1rem;
  }

  .visitor_page section.list > ul > li a .name h2 {
    font-size: 3vw;
  }
}

@media screen and (max-width: 768px) {
  .visitor_page section.list > ul {
    display: block;
  }

  .visitor_page section.list > ul > li {
    width: 80%;
    margin: 0 auto 1.5rem !important;
  }

  .visitor_page section.list > ul > li a .name h2 {
    font-size: 2rem;
    font-weight: 500;
  }

  .visitor_page .title > div {
    padding: 0 1rem;
  }

  .visitor_page .title img {
    left: -20%;
  }

  .visitor_page.leave_inheritance .title img {
    left: auto;
    right: -20%;
  }
}

/*======================================
  スマホ
======================================*/
@media screen and (max-width: 425px) {
  .visitor_page .title h1 {
    text-align: center;
    line-height: 1.4;
    text-shadow: none;
    font-size: 1.7rem;
  }

  .visitor_page .title img {
    display: none;
  }

  .visitor_page section.list {
    margin: 2rem 0 3rem;
  }

  .visitor_page section.list > ul > li {
    width: 100%;
  }

  .visitor_page .title p {
    text-align: left;
    line-height: 1.8;
  }

  .visitor_page .title p span {
    display: inline;
  }
}
