/* ------------------------------
 common - width: all
------------------------------ */
/**
* YUI 3.5.0 - reset.css (http://developer.yahoo.com/yui/3/cssreset/)
* http://cssreset.com
* Copyright 2012 Yahoo! Inc. All rights reserved.
* http://yuilibrary.com/license/
*/
/*
TODO will need to remove settings on HTML since we can't namespace it.
TODO with the prefix, should I group by selector or property for weight savings?
*/
html {
  color: #000;
  background: #FFF;
  font-family: "kozuka-gothic-pr6n", sans-serif;
  font-weight: 500;
  font-style: normal;
  -webkit-font-feature-settings: "palt";
          font-feature-settings: "palt";
  font-size: 100%;
}

/*
TODO remove settings on BODY since we can't namespace it.
*/
/*
TODO test putting a class on HEAD.
- Fails on FF.
*/
main,
article,
section {
  display: block;
}

* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
textarea,
p,
blockquote,
th,
td {
  margin: 0;
  padding: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

fieldset,
img {
  border: 0;
}

/*
TODO think about hanlding inheritence differently, maybe letting IE6 fail a bit...
*/
address,
caption,
cite,
code,
dfn,
em,
strong,
th,
var {
  font-style: normal;
  font-weight: normal;
}

ol,
ul {
  list-style: none;
}

caption,
th {
  text-align: left;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: normal;
}

q:before,
q:after {
  content: "";
}

abbr,
acronym {
  border: 0;
  font-variant: normal;
}

/* to preserve line-height and selector appearance */
sup {
  vertical-align: text-top;
}

sub {
  vertical-align: text-bottom;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}

/*to enable resizing for IE*/
input,
textarea,
select {
  *font-size: 100%;
}

/*because legend doesn't inherit in IE */
legend {
  color: #000;
}

/* YUI CSS Detection Stamp */
#yui3-css-stamp.cssreset {
  display: none;
}

.cf:after {
  content: "";
  clear: both;
  display: block;
}

.ajtxt {
  text-align: justify;
  text-justify: inter-ideograph;
}

a:hover {
  opacity: 0.6;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.pc {
  display: block !important;
}

.sp {
  display: none !important;
}

/* ------------------------------
 common - width all
------------------------------ */
html,
body {
  min-width: 1360px;
}

* {
  letter-spacing: 0.1em;
}

.contentsbox {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  border: 2px solid #e83740;
  border-radius: 60px;
  padding: 13px;
  background-color: #fff;
}
.contentsbox::before {
  content: "";
  display: block;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  position: absolute;
  top: 3px;
  right: 3px;
  border: 2px solid #e83740;
  border-radius: 56px;
}
.contentsbox::after {
  content: "";
  display: block;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  position: absolute;
  top: 8px;
  right: 8px;
  right: 8px;
  border: 2px solid #e83740;
  border-radius: 52px;
}
.contentsbox .ribbon {
  width: 149.5px;
  display: block;
  position: absolute;
  top: -60px;
  right: -35px;
  z-index: 2;
}
.contentsbox .contents {
  border: 2px solid #e83740;
  border-radius: 48px;
  padding: 63px;
  position: relative;
  z-index: 1;
}
.contentsbox .contents::before {
  content: "";
  display: block;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  position: absolute;
  top: 3px;
  right: 3px;
  border: 2px solid #e83740;
  border-radius: 44px;
}

/* ------------------------------
 common - width < $width-1
------------------------------ */
@media screen and (max-width: 860px) {
  html,
  body {
    min-width: 375px;
  }
  * {
    letter-spacing: 1px;
  }
  .pc {
    display: none !important;
  }
  .sp {
    display: block !important;
  }
  .contentsbox {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    border: 1px solid #e83740;
    border-radius: 36px;
    padding: 8px;
    background-color: #fff;
  }
  .contentsbox::before {
    content: "";
    display: block;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    position: absolute;
    top: 2px;
    right: 2px;
    border: 1px solid #e83740;
    border-radius: 33px;
  }
  .contentsbox::after {
    content: "";
    display: block;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    position: absolute;
    top: 5px;
    right: 5px;
    border: 1px solid #e83740;
    border-radius: 30px;
  }
  .contentsbox .ribbon {
    width: 75px;
    display: block;
    position: absolute;
    top: -30px;
    right: -15px;
    z-index: 2;
  }
  .contentsbox .contents {
    border: 1px solid #e83740;
    border-radius: 27px;
    padding: 20px;
    position: relative;
    z-index: 1;
  }
  .contentsbox .contents::before {
    content: "";
    display: block;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    position: absolute;
    top: 2px;
    right: 2px;
    border: 1px solid #e83740;
    border-radius: 24px;
  }
}
/* ------------------------------
 width: all
------------------------------ */
body {
  background-color: RGB(240, 234, 212);
  background-image: url(../images/d0101.jpg);
  background-size: 1800px auto;
  background-position: top 0 center;
  background-repeat: repeat-y;
}

main section.s01 {
  padding: 120px 0;
}
main section.s01 .wrapper {
  width: 1280px;
  margin: 0 auto;
}
main section.s01 .wrapper h1 {
  background-color: #e83740;
  border-radius: 20px;
  text-align: center;
  color: #fff;
  font-size: 47px;
  line-height: 100%;
  padding: 50px 0;
}
main section.s01 .wrapper .itemlist {
  margin-top: 60px;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 90px 55px;
}
main section.s01 .wrapper .itemlist.itemlist02 {
  display: block;
}
main section.s01 .wrapper .itemlist.itemlist02 li {
  margin: 0 auto;
}
main section.s01 .wrapper .itemlist li {
  width: 390px;
  border: 2px solid #e83740;
  padding: 9px;
  border-radius: 34px;
  position: relative;
}
main section.s01 .wrapper .itemlist li::before {
  content: "";
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  position: absolute;
  top: 2px;
  right: 2px;
  border: 2px solid #e83740;
  border-radius: 30px;
}
main section.s01 .wrapper .itemlist li::after {
  content: "";
  display: block;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  position: absolute;
  top: 6px;
  right: 6px;
  border: 2px solid #e83740;
  border-radius: 26px;
}
main section.s01 .wrapper .itemlist li .box01 .ttl {
  background-image: url(../images/d0102.jpg);
  background-size: cover;
  background-position: center center;
  padding: 18px 0 18px 25px;
  border-radius: 26px 26px 0 0;
}
main section.s01 .wrapper .itemlist li .box01 .ttl img {
  display: block;
  height: 36px;
}
main section.s01 .wrapper .itemlist li .box01 .box02 {
  background-color: #fff;
  padding: 20px;
}
main section.s01 .wrapper .itemlist li .box01 .box02 .photo {
  width: 100%;
  display: block;
}
main section.s01 .wrapper .itemlist li .box01 .box02 .t01 {
  font-weight: bold;
  font-size: 18px;
  margin-top: 23px;
}
main section.s01 .wrapper .itemlist li .box01 .box02 .t02 {
  font-size: 14px;
  line-height: 180%;
  margin-top: 40px;
}
main section.s01 .wrapper .itemlist li .box01 .box02 .linkbox {
  margin-top: 20px;
  position: relative;
  z-index: 2;
}
main section.s01 .wrapper .itemlist li .box01 .box02 .linkbox a {
  display: inline-block;
  vertical-align: top;
  text-decoration: none;
  border: 1px solid #e83740;
  border-radius: 20px;
  color: #000;
  line-height: 100%;
  font-size: 14px;
  padding: 6px 12px;
}
main section.s01 .wrapper .mapbox {
  width: 1000px;
  background-color: #fff;
  border-radius: 40px;
  margin: 110px auto 0;
  padding: 35px 30px 35px;
}
main section.s01 .wrapper .mapbox .map {
  width: 876px;
  display: block;
  max-width: 100%;
}
main section.s01 .wrapper .mapbox .map.map02 {
  width: 877.5px;
}
main section.s01 .wrapper .mapbox .btn01 {
  width: 376px;
  display: block;
  text-align: center;
  font-size: 21px;
  color: #e83740;
  text-decoration: none;
  line-height: 100%;
  padding: 10px 0;
  border-radius: 50px;
  border: 2px solid #e83740;
  background-color: #fff;
  margin: 20px auto 0;
  position: relative;
  z-index: 1000;
}

/* ------------------------------
 width < $width-1
------------------------------ */
@media screen and (max-width: 860px) {
  body {
    background-color: RGB(240, 234, 212);
    background-image: url(../images/d0101.jpg);
    background-size: 150% auto;
    background-position: top 0 center;
    background-repeat: repeat-y;
  }
  main section.s01 {
    padding: 50px 20px 0;
  }
  main section.s01.s0102 {
    padding-bottom: 50px;
  }
  main section.s01 .wrapper {
    width: 100%;
    margin: 0 auto;
  }
  main section.s01 .wrapper h1 {
    background-color: #e83740;
    border-radius: 12px;
    text-align: center;
    color: #fff;
    font-size: 20px;
    line-height: 150%;
    padding: 10px 20px;
  }
  main section.s01 .wrapper .itemlist {
    margin-top: 30px;
    display: block;
  }
  main section.s01 .wrapper .itemlist.itemlist02 {
    display: block;
  }
  main section.s01 .wrapper .itemlist.itemlist02 li {
    margin: 0 auto;
  }
  main section.s01 .wrapper .itemlist li {
    width: 100%;
    border: 2px solid #e83740;
    padding: 9px;
    border-radius: 34px;
    position: relative;
  }
  main section.s01 .wrapper .itemlist li + li {
    margin: 20px auto 0 !important;
  }
  main section.s01 .wrapper .itemlist li::before {
    content: "";
    display: block;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    position: absolute;
    top: 2px;
    right: 2px;
    border: 2px solid #e83740;
    border-radius: 30px;
  }
  main section.s01 .wrapper .itemlist li::after {
    content: "";
    display: block;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    position: absolute;
    top: 6px;
    right: 6px;
    border: 2px solid #e83740;
    border-radius: 26px;
  }
  main section.s01 .wrapper .itemlist li .box01 .ttl {
    background-image: url(../images/d0102.jpg);
    background-size: cover;
    background-position: center center;
    padding: 18px 0 18px 25px;
    border-radius: 26px 26px 0 0;
  }
  main section.s01 .wrapper .itemlist li .box01 .ttl img {
    display: block;
    height: 29px;
  }
  main section.s01 .wrapper .itemlist li .box01 .box02 {
    background-color: #fff;
    padding: 20px;
  }
  main section.s01 .wrapper .itemlist li .box01 .box02 .photo {
    width: 100%;
    display: block;
  }
  main section.s01 .wrapper .itemlist li .box01 .box02 .t01 {
    font-weight: bold;
    font-size: 18px;
    margin-top: 23px;
  }
  main section.s01 .wrapper .itemlist li .box01 .box02 .t02 {
    font-size: 14px;
    line-height: 180%;
    margin-top: 40px;
  }
  main section.s01 .wrapper .itemlist li .box01 .box02 .linkbox {
    margin-top: 20px;
    position: relative;
    z-index: 2;
  }
  main section.s01 .wrapper .itemlist li .box01 .box02 .linkbox a {
    display: inline-block;
    vertical-align: top;
    text-decoration: none;
    border: 1px solid #e83740;
    border-radius: 20px;
    color: #000;
    line-height: 100%;
    font-size: 14px;
    padding: 6px 12px;
  }
  main section.s01 .wrapper .mapbox {
    width: 100%;
    background-color: #fff;
    border-radius: 20px;
    margin: 40px auto 0;
    padding: 20px 15px 20px;
  }
  main section.s01 .wrapper .mapbox .map {
    width: 876px;
    display: block;
    max-width: 100%;
  }
  main section.s01 .wrapper .mapbox .map.map02 {
    width: 877.5px;
  }
  main section.s01 .wrapper .mapbox .btn01 {
    width: 240px;
    display: block;
    text-align: center;
    font-size: 14px;
    color: #e83740;
    text-decoration: none;
    line-height: 100%;
    padding: 10px 0;
    border-radius: 50px;
    border: 1px solid #e83740;
    background-color: #fff;
    margin: 15px auto 0;
    position: relative;
    z-index: 1000;
  }
}