@charset "utf-8";

/* reset css */
* {
  padding: 0;
  margin: 0;
}

body {
  line-height: 1;
  font-family: "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

ul {
  list-style: none;
}

a {
  display: block;
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  vertical-align: bottom;
  /* heightの初期値 */
  height: auto;
}


/* ======全ページ共通======= */
/* common css */

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 10px;

  display: flex;
  justify-content: space-between;
}

/* header */

/* display:flex;は上揃えである */
/* 縦方向中央寄せ */
header {
  background-color: #365699;
  color: white;
  padding: 20px 0;
}

/* flex containerでalign-item:center;を指定する事 */
header>.container {
  align-items: center;
}

/* h1 line-height:50px以上でないと欠けてしまう */
/* height:50px;だと文字が上に揃ってしまう */
header h1 {
  font-size: 22px;
  background: url(../img/logo-1.png) no-repeat left center;
  line-height: 50px;
  padding-left: 53px;
}

header p {
  line-height: 1.3;
}

/* Global Navigation PC*/
.pcnav .container {
  padding: 20px 10px;
  gap: 20px;
  justify-content: left;
}

.pcnav a {
  /* あらかじめborder-bottomをtransparentにしておく */
  border-bottom: 5px solid transparent;
  padding-bottom: 5px;
  transition: 300ms;
}

.pcnav a:hover {
  border-bottom-color: #365699;
}

.pcnav .current,
.pcnav .current :hover {
  border-bottom: 5px solid #f60;
}

.button,
.spnav {
  display: none;
}

/* floating button */
.top {
  width: 50px;
  height: 50px;
  color: #365699;
  background-color: white;
  border: 1px solid #365699;
  border-radius: 5px;
  text-align: center;
  font-size: 35px;

  position: fixed;
  right: 5px;
  bottom: 5px;

  cursor: pointer;
  z-index: 10;
}

/* .topクラスのwidth heightに合わせる */
.top i {
  line-height: 50px;
  display: block;
}

.box4 {
  padding: 2px 19px;
  /* margin: 2em 0; */

  color: #2c2c2f;
  background: #cde4ff;
  border-top: solid 5px #5989cf;
  border-bottom: solid 5px #5989cf;
}

.box4 p {
  margin: 0;
  padding: 0;
}


/* common footer */

footer {
  background-color: #375697;
  padding: 30px 0;
  color: white;
  text-align: center;
}



/* common media query */
@media screen and (max-width:743px) {


  /* デバイスが小さくなっても改行しないfont-sizeにする */
  h1 {
    font-size: 18px;
  }



  /* Hamburger button */
  .button {
    display: block;
    height: 70px;
    text-align: center;
    line-height: 70px;
    font-size: 40px;
    color: #365699;
    background: linear-gradient(#cdf, #fff);
    /* font-awesomne二つ並ぶのでoverflow:hiddenで隠す */
    overflow: hidden;
  }

  .button i {
    display: block;
    /* 親クラスのbuttonのheightが70pxのためiタグ70pxにする。
      あふれたコンテンツは隠される(overflow:hidden;) */
    line-height: 70px;
  }

  .up i:first-child {
    display: none;
  }



  /* global naigation */
  .pcnav {
    display: none;
  }

  .spnav {
    /* slideToggleの関数でdisplay:blockにする */
    /* display:none; */
    position: absolute;
    width: 100%;

    background: rgba(30, 100, 200, 0.8);
  }

  .spnav li {
    line-height: 70px;
    color: white;
    text-align: center;
    font-size: 1.3em;
    border-bottom: 1px solid white;

  }

  .spnav li a:hover {
    background-color: bisque;
    color: #365699
  }

}

@media screen and (max-width:549px) {

  header {
    padding: 10px 0;
  }

  header>.container {
    display: block;
  }

  h1 {
    width: fit-content;
    margin: 0 auto;
  }

  header p {
    display: none;
  }

}



/* Top Page CSS */

#home .keyVisual {
  line-height: 1.3;
  text-align: center;
  /* Heightではなくfont-sizeとpaddingで画像の高さを決める */
  padding: 70px 0;
  font-size: 3em;
  color: white;
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  text-shadow: 2px 2px 2px #000;

  background: url(../img/keyVisual.jpg) no-repeat center top;
  background-size: cover;
}

#home .mall {
  padding: 80px 0;
}

#home h2 {
  color: white;
  background-color: #375697;

  /* 6文字なのでwidth:6emでよいか？→ギリギリになる */
  /* width:fit-content;はコンテンツ幅に合わせる 文字数によってwidthも変わる*/
  width: fit-content;
  /* boxを中央揃えにしてmargin-bottomを50pxにする。 */
  margin: 0 auto 50px;

  padding: 5px 40px;
  border-radius: 5px;
}

/* flex containerでflex-itemのgapを指定 */
#home .mall .container {
  gap: 10px;
}

#home .mall section {
  /* flex itemが3つの為 */
  width: calc(100% / 3);
}



#home .mall a {
  padding: 10px;
  /* .moreでfloat:right;がかかった為 */
  overflow: hidden;
  transition: 300ms;
}


#home .mall a:hover {
  background-color: #fea;
}

#home .mall h3 {
  font-size: 18px;
  border-left: 5px solid orange;
  padding-left: 5px;
}

/* 高さは違うのにheightだけ200pxと統一したため画像が伸びてしまう */
/* object-fit:cover;縮尺（縦横比）を変えずに画像を変える */
#home .mall img {
  margin: 10px 0;
  height: 200px;
  object-fit: cover;
}

#home .more {
  float: right;
  padding: 5px 20px;
  border-radius: 5px;
  background-color: orange;
  color: white;
  transition: 300ms;
}

#word .more {
  padding: 5px 20px;
  border-radius: 5px;
  background-color: blue;
  color: white;
  transition: 300ms;
  width: 50px;
  text-align: center;
  margin-top: 30px;
}

#word .more:hover {
  background-color: red;
}

#home .mall a:hover .more {
  background-color: red;
}

#home .mall a p:first-of-type {
  line-height: 1.5;
  margin-bottom: 20px;
}



/* Top Page media query */
@media screen and (max-width:743px) {


  #home .mall {
    padding: 20px 0;
  }

  /* commomn css */
  #home .mall .container {
    display: block;
  }


  #home .mall section {
    width: auto;
  }

  #home .mall section+section {
    margin-top: 20px;
  }

  #home h2 {
    margin-bottom: 20px;
  }

  #home .mall a {
    padding: 0;
  }

  /* object-fit:cover;は画像の縦横比を一定にしてボックスを
  完全に埋めるサイズに調整して表示される。 */
  #home .mall img {
    height: 400px;
    width: 100%;
  }

  #home .mall a p:first-of-type {
    margin-bottom: 10px;
  }


  #home .more {
    float: none;
    text-align: center;
    padding: 20px 0;
    border-radius: 5px;
    background-color: orange;
    font-size: 1.5em;
  }

}

@media screen and (max-width:549px) {


  #home .keyVisual {
    padding: 30px 0;
    font-size: 1.3em;
  }

  #home .mall img {
    height: 250px;
  }

}




/* mall page CSS */

#word main h2 {
  text-align: center;
  padding: 50px 0;
  color: white;


  background-size: cover;

  font-weight: bold;
  font-size: 36px;
  /* backgroundもtextも色の明度が高いので,
  text-shadowを入れる。 */
  text-shadow: 2px 2px 2px black;

}

/* ページ毎にKeyVisualを指定 */

#word h2 {
  background: url(../img/keyVisual.jpg) no-repeat center center;
}

#word .shiodome h2 {
  background: url(../img/keyVisual.jpg) no-repeat center center;
}


#word main .container {
  padding: 30px 10px 50px;
}

#word .main {
  width: calc(100% * 600/960);
}

#word .sidebar {
  width: calc(100% * 300/960);
}

/* 隣接セレクタ */
#word .main section+section {
  margin-top: 30px;
}


#word .main h3 {
  color: #059;
  background: url(../img/mall-mark.png) no-repeat 10px center;
  background-color: #cef;
  padding: 20px 0 20px 50px;
  margin-bottom: 20px;
}

/* 段落行高 */
#word .main p {
  line-height: 1.5;
}

#word main p+p {
  margin-top: 10px;
}

#word .main img {
  float: left;
  width: 180px;
  padding: 5px;
  border: 1px solid #aaa;
  margin-bottom: 10px;
}

#word .shopinfo {
  float: right;
  width: 440px;
  width: calc(100% - 210px);

}

#word .main h4 {
  margin-bottom: 20px;
  margin-top: 20px;
  border-left: 15px solid #f60;
  padding: 10px 0 10px 10px;
  line-height: 1.3;
}

#word .main table {
  border-collapse: collapse;
  font-size: 14px;
  width: 100%;
}

#word .main th,
#word .main td {
  border: 1px solid #aaa;
  padding: 5px;
}

#word .main th {
  font-weight: normal;
  background: #ddd;
  /* 幅を揃える */
  width: 30%;
}

#word .main td {
  line-height: 1.3;
}

#word .comment {
  clear: both;
  font-size: 12px;
  color: white;
  background-color: #0cf;
  width: fit-content;
  margin-bottom: 5px;
  line-height: 1;
  border-radius: 50%;
  padding: 0.7em 1.5em;
}

#word .commentBox {
  border: 2px solid #0cf;
  padding: 1em;
}

/* mall page sidebar */

#word .sidebar h3 {
  background: #008ec2;
  color: white;
  padding: 10px;
}

h3 {
  margin-top: 10px;
}

#word .sidebar h3 span {
  border-left: 3px solid white;
  padding-left: 7px;
}

#word .sidebar ul {
  background: #cef;
  padding: 20px;
  margin-bottom: 30px;
}

#word .sidebar ul a {
  padding: 15px;
  color: #333;
  border-top: 1px dotted #555;
  transition: 300ms;
}

#word .sidebar li:first-child a {
  border-top: none;
}

#word .sidebar li a:hover {
  background: #0695d7;
  color: white;
}

#word .button {
  display: none;
}

@media screen and (max-width:743px) {



  #word .button {
    display: block;
  }


  #word main .container {
    display: block;
    padding: 20px 10px 30px;
  }


  #word .main {
    width: auto;
    margin-bottom: 20px;
  }

  #word .main section+section {
    margin-top: 20px;
  }

  #word .sidebar {
    width: auto;
  }

  /* #word .sidebar a{
      text-align: center;
    } */

  #word .sidebar h3 {
    margin-bottom: 20px;
  }

  #word .sidebar ul {
    background: none;
    margin-bottom: 20px;

  }


  #word .sidebar ul a {
    background: #cef;
  }

  #word .sidebar img {
    display: block;
    margin: 0 auto;
  }
}