@charset "utf-8";

/*
Theme Name: obinishi-portal site by DHW-Kumamoto
Author: DHW-Kumamoto
Description: obinishi-Portal site
Version: 1.0.0
*/

/* font */
@font-face {
  font-family: 'Hiragino-W3';
  src: url('./font/hiragino-kaku-gothic-W3_00.ttf') format('truetype'),
      url('./font/hiragino-kaku-gothic-W3_00.woff') format('woff');
}
@font-face {
  font-family: 'Hiragino-W5';
  src: url('./font/hiragino-kaku-gothic-W5_00.ttf') format('truetype'),
      url('./font/hiragino-kaku-gothic-W5_00.woff') format('woff');
}
@font-face {
  font-family: 'kirigirisu';
  src: url('./font/DS-kirigirisu.woff') format('woff');
}
/* font */

/* whole styles */
body {
  width: 100%;
  text-align: center;
  font-family: 'Zen Maru Gothic', sans-serif;
  box-sizing: border-box;
}
header, h1 {
  font-family: 'Zen Maru Gothic', sans-serif;
  margin:0;
}
h2 {
  font-family: 'Zen Maru Gothic', sans-serif;
}
a {
  text-decoration: none;
}
.sp_none600 {
  display: block
}
.pc_none600 {
  display: none
}
/* whole styles */

/* header */
header {
  margin: 0 auto;
}
header p.header-top{
	position: absolute;
    width: 100%;
    padding: 5px;
    background: rgba(158, 67, 169, 0.7);
    color: #fff;
    z-index: 100;
}
.header-inner {
    position: relative;
    height: calc(100vh - 120px);
    background-image: url(./images/top-header-2.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.header-inner img {
    width: 560px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
/*
.header-inner img::after {
  content: "";
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 255, .2);
  position: absolute;
  top: 0;
  left: 0;
}
*/
.header-title {
  position: absolute;
  top: 52%;
  left: 51%;
  transform: translate(-50%, -50%);
  color: white;
}
.header-title  h1.title-sub{
	font-size:1.5rem;
	margin-bottom: 10px;
}
.header-title  h1.title-main{
	font-size:3.3rem;
	line-height: 0.8;
}
.header-title  h1.title-main span{
	font-size:2rem;
}
.header-title p{
	font-size:1rem;
}

nav ul.navigation {
  width: 100%;
  height: auto;
  display: flex;

	gap: 10px;
  justify-content: center;
  list-style: none;
  text-align: center;
  font-size: 1.2rem;
  padding: 0;
}
nav ul.navigation a {
  width: 115px;
  height: 115px;
  margin: 30px 5px 0;
  padding: 36px 15px;
  border-radius:10px;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: white;
  font-size: 16px;
}
nav ul.navigation a:hover {
  opacity: 0.8;
}
nav ul.navigation li {
  display: inline-block;
}
nav ul.navigation a:first-child {
  background: url('./images/home-link.png') no-repeat center;
  background-size: cover;
}
nav ul.navigation a:nth-child(2) {
  background: url('./images/shop-link.png') no-repeat center;
  background-size: cover;
}
nav ul.navigation a:nth-child(3) {
  background: url('./images/local-link.png') no-repeat center;
  background-size: cover;
}
nav ul.navigation a:nth-child(4) {
  background: url('./images/institution-link.png') no-repeat center;
  background-size: cover;
}
nav ul.navigation a:nth-child(5) {
  background: url('./images/life-link.png') no-repeat center;
  background-size: cover;
}
nav ul.navigation a:nth-child(6) {
  background: url('./images/life-link.png') no-repeat center;
  background-size: cover;
}
nav ul.navigation a:last-child {
  background: url('./images/news-link.png') no-repeat center;
  background-size: cover;
}
nav ul.navigation a::before {
  display: block;
  content: '';
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: bottom;
  width: 45px;
  height: 30px;
  background-position: center;
  margin: 0 auto 2px;
}
nav ul.navigation a:first-child::before {
  background-image: url('./images/home-icon.png');
}
nav ul.navigation a:nth-child(2)::before {
  background-image: url('./images/shop-icon.png');
}
nav ul.navigation a:nth-child(3)::before {
  background-image: url('./images/local-icon.png');
  width: 30px;
}
nav ul.navigation a:nth-child(4)::before {
  background-image: url('./images/institution-icon.png');
}
/*
nav ul.navigation a:nth-child(5)::before {
  background-image: url('./images/life-icon.png');
}
*/
nav ul.navigation a:nth-child(5)::before {
  background-image: url('./images/history-icon.png');
}
nav ul.navigation a:last-child::before {
  background-image: url('./images/news-icon.png');
}
/* header */
/* 下層ページ header */
.child-header  .header-inner {
  height: 200px;
}
.child-header .header-title {
	position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
	margin: 0;
}
/*
.child-header .header-title {
  position: relative;
  transform: translate(-50%, -50%);
  margin: 0;
}
*/
.child-header h1.header-title::before {
    position: absolute;
    content: "";
    display: inline-block;
    width: 90px;
    height: 90px;
    background: url(./images/house.png) no-repeat;
    background-size: contain;
    left: -100px;;
    top: 30px;
}
.child-header h1.header-title::after {
    position: absolute;
    content: "";
    display: inline-block;
    width: 100px;
    height: 100px;
    background: url(./images/woman-dog.png) no-repeat;
    background-size: contain;
    top: 26px;
    right: -110px;
}

.child-header .header-title_main {
  position: relative;
  font-size: 30px;
  margin: 10px 0 5px;
  line-height: 1.3;
}
.child-header .header-title_main span{
	display: block;
    font-size: 26px;
}
.child-header .header-title_sub {
  font-size: 18px;
}

/* main */
section {
  margin: 50px auto;
}
section h1.section-title {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 10px;
  font-size: 2rem;
}
section h1.section-title::after {
    content: "";
    display: inline-block;
    width: 30px;
    height: 2px;
    background-color: #9e43a9;
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
}
section h2.section-sub {
  font-size: 1rem;
  font-family:  "游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
}
/* main */

/* news */
#news .news-wrapper {
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
  padding: 0;
}
#news .news-wrapper .news-list {
  list-style: none;
  margin: 0 auto;
  border-bottom: 1px solid #aaa;
  padding-bottom: 5px;
  font-size: 0.9rem;
  font-family: "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "MS Pゴシック", "MS PGothic", sans-serif;
}
#news .news-wrapper .news-list a {
  text-decoration: none;
  color: #000;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 0 auto;
  width: 90%;
  padding: 8px 0 2px;
}
#news .news-wrapper .news-list a:hover {
  color: #888;
}
#news .news-wrapper .news-list a time{
  font-family:  "游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
}
#news .news-wrapper .news-list a time, #news {
  padding: 0 30px;
}
#news .news-wrapper .news-list a span.news-title {
  padding: 5px 30px 5px 10px;
}
#news .news-wrapper .news-list span.news_tag {
	font-family:  "游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
    background: #9e43a9;
    color: #fff;
    width: 115px;
    line-height: 35px;
    flex-shrink: 0;
	border-radius: 10px;
}

/* news */

/* shop-list */
#shop-list {
  background-image: url('./images/shoplist-back.jpg');
  background-size: cover;
  padding: 20px 0;
  font-family: "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "MS Pゴシック", "MS PGothic", sans-serif;
}
#shop-list .shop-wrapper img {
  width: 100%;
  height: 20vw;
  object-fit: cover;
  border: 5px solid transparent;
  border-radius: 20px;
}
.shop-wrapper {
  margin-top: 30px;
}
.slick-arrow {
  display: inline-block;
  width: 50px;
  height: 50px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.slick-next {
  right: 0;
}
.slick-prev {
  left: 0;
  z-index: 2;
}
.slick-next::before, .slick-prev::before {
  color: #FFF9A0;
  font-size: 2.5rem;
}
.shop-wrapper .btn-more {
  display: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.8);
  color: #555;
  padding: 3px 5px;
  z-index: 10;
}
.shop-wrapper .btn-more:hover {
  background: rgba(0,0,0,0.7);
}
.shop-wrapper .shop-name {
  position: absolute;
  bottom: 0;
  max-width: 19vw;
  width: 100%;
  transform: translateX(5px);
  color: white;
  z-index: 10;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  padding-top: 5px;
  line-height: 50px;
  margin: 0;
  border-radius: 0 0 20px 20px;
}
.slick-center {
  display: block;
}
.slick-center::after {
  content: '';
  max-width: 19vw;
  width: 100%;
  max-height: 19vw;
  height: 100%;
  background: rgba(0,0,0,0.3);
  position: absolute;
  border-radius: 20px;
  bottom: 50%;
  transform: translate(-50%,50%);
}
.slick-center .btn-more {
  display: inline-block;
}
/* shop-list */


/* topics */
#topics {
  width: 80%;
}
#topics .topic-list {
  display: flex;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}
#topics .topic-items{
  position: relative;
  width: calc(50% - 20px);
  margin-bottom: 40px;
  overflow: hidden;
}
.topic-items:nth-of-type(2n+1) {
    margin-right: 40px;
}
#topics .topic-items a {
  color: black;
}
#topics .topic-items img {
  position: relative;
  width: 100%;
}

#topics .topic-items div.img-box{
	position: relative;
	width: 100%;
}
/*
#topics .topic-items div.img-box::before{
  content: url(./images/arrow-img.png);
  position: absolute;
  top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
*/
#topics .topic-items div.img-box::after {
	content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(180deg, transparent 0 50%, #000 110%);
    border-radius: 10px;
}

#topics .topic-items h1.topic-name {
  position: absolute;
　width: fit-content;
  margin: 0 auto;
  font-size: 1.6rem;
  bottom: 5%;
  left: 5%;
  color: #fff;
  text-align: left;
  line-height: 1.2;
}
#topics .topic-items h1.topic-name:before {
  content: '';
  width: 2px;
  height: 46px;
  background: #9e43a9;
  position: absolute;
  left: 112px;
  bottom: 0px;
  z-index: 102;	
}
#topics .topic-items:before {
  content: '';
  width: 18px;
  height: 18px;
  background: #9e43a9;
  border-radius: 50%;
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 100
}

#topics .topic-items:after {
  content: '';
  width: 6px;
  height: 6px;
  border: 0;
  border-top: solid 2px #fff;
  border-right: solid 2px #fff;
  transform: rotate(45deg);
  position: absolute;
  right: 17px;
  bottom: 16px;
  margin: auto;
  z-index: 101;
}


#topics .topic-items h1.topic-name span{
  font-size: 0.85rem;
}
#topics .topic-items h1.topic-name span.topic-subtitle{
  padding-left: 1.5em;
  font-size: 0.8rem;
}
/* topics */


/* footer */
footer {
  position: relative;
}
footer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-bottom: 1.5em;
}
footer p.copyright {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 2px;
  font-size: 0.8rem;
  width: fit-content;
  color: #9e43a9;
}

/* media query 1200px
@media screen and (max-width: 1200px) {
	.header-inner img {
		width: 60vw;
	}
}
 */
/* media query 1024px */
@media screen and (max-width: 1024px) {
  /* header */
  nav ul.navigation li {
    display: flex;
    justify-content: center;
  }
  /* footer */
  footer img {
    height: 70px;
    object-fit: cover;
  }
}

/* media query 768px */
@media screen and (max-width: 768px) {
  /* header */
 /* .header-inner img {
	width: 500px;
    object-fit: cover;
  }
*/
  .header-title {
    position: absolute;
    top: 52%;
    left: 52%;
    transform: translate(-50%, -50%);
    color: white;
    width: fit-content;
  }
  .header-title h1 {
    font-size: 2.4rem;
  }
  .header-title p {
    font-size: 1.2rem;
  }
	nav ul.navigation {
	    flex-wrap: wrap;
      margin: 30px 0 40px;
      gap: 0;
	}
  nav ul.navigation li {
    display: flex;
    text-orientation: upright;
    align-items: center;
    width: 100%;
        padding-left: 25px;
  }
  nav ul.navigation a{
    width: 31%;
    height: 10%;
	display: flex;
    grid-template-columns: repeat(auto-fit, minmax(min-content, 100px));
	margin: 10px 10px 0;
	padding: 14px 25px;
	background-size: inherit!important;
  }
  nav ul.navigation a::before {
    width: 37px;
	position: absolute;
    margin-left: 5px;
  }

  /* header */
/* 下層ページ header */
  .child-header h1.header-title::before {
	width: 80px;
    height: 80px;
	top: 20px;
	left: -90px;
  }
  .child-header h1.header-title::after {
	width: 80px;
    height: 80px;
	top: 20px;
	right: -90px;
  }
  .child-header .header-title_main {
	font-size: 24px;
  }
  .child-header .header-title_main span {
	font-size: 20px;	
  }
  .child-header .header-title_sub {
    font-size: 14px;
  }
	
  /* header */
  /* news */
  #news .news-wrapper .news-list {
    width: 100%;
  }
  #news .news-wrapper .news-list a time{
    width: 50%;
    text-align: left;
    padding: 5px 0 0 1em;
  }
  #news .news-wrapper .news-list a span.news-title{
    width: 100%;
    padding: 5px 0;
    text-align: left;
  }
  /* news */
  /* shop-list */
  .shop-wrapper .shop-name {
    max-width: 38vw;
  }
  #shop-list .shop-wrapper img {
    height: 39vw;
  }
  .slick-center::after {
    max-width: 38vw;
    min-height: 38vw;
  }
  /* shop-list */
  /* topics */
  #topics {
    width: 90%;
  }
  #topics .topic-items span.topic-subtitle {
    display: block;
  }
  /* topics */
  /* footer */
  footer p.copyright {
    bottom: -20px;
  }
  /* footer */
}

/* media query 600px */
@media screen and (max-width: 600px) {
  .pc_none600 {
	display: block
  }
  .sp_none600 {
    display: none
  }
  /* header */
	.header-inner {
	  height: calc(80vh - 120px);
	}
	.header-inner img {
	  width: 380px;
      object-fit: cover;
    }
	.header-title h1.title-sub {
		font-size: 1.2rem;
	}
	.header-title h1.title-main {
		font-size: 2rem;
		line-height: 1
	}
	.header-title h1.title-main span {
		font-size: 1.4rem;
	}
	.header-title p {
		font-size: 0.8rem;
	}
	nav ul.navigation a {
		width: 45%;
		margin: 10px 5px 0;
	}
   /* 下層ページ header */
  .child-header h1.header-title::before {
	width: 50px;
    height: 50px;
	transform: translateY(-50%);
	top:70%;
	left: -60px;
  }
  .child-header h1.header-title::after {
	width: 50px;
    height: 50px;
	transform: translateY(-50%);
	top:70%;
    right: -60px;
  }
  .child-header .header-title_main {
    font-size: 16px;
  }
  .child-header .header-title_main span {
    font-size: 14px;
  }
  .child-header .header-title_sub {
    font-size: 12px;
  }

  /* footer */
    .news-list a {
        justify-content: flex-start;
        flex-wrap: wrap;
        padding: 10px 0;
    }
	#topics .topic-list {
		display: block;
	}
	#topics .topic-items {
		width:100%;
	}
	#topics .topic-items span.topic-subtitle {
        display: inline-block;
    }
}
/* media query 480px */
@media screen and (max-width: 480px) {
  /* header */
  header p.header-top {
	font-size: 0.9em;	
  }
  .header-inner {
	height: calc(75vh - 120px);
  }
  .header-inner img {
	  width: 330px;
      object-fit: cover;
   }
  .header-title h1 {
    font-size: 1.6rem;
  }
  .header-title p {
    font-size: 0.6rem;
  }
  nav ul.navigation li {
	padding-left: 30px;	
  }
  nav ul.navigation a::before {
    width: 30px!important;
	margin-left: 0;
  }
  /* header */
  /* shop-list */
  .shop-wrapper .shop-name {
    max-width: 58vw;
  }
  #shop-list .shop-wrapper img {
    height: 59vw;
  }
  .slick-center::after {
    max-width: 58vw;
    min-height: 58vw;
  }
  /* shop-list */
  /* topics */
  #topics .topic-items article {
    width: 60%;
  }
  #topics .topic-items h1.topic-name {
	font-size:1.2rem;	
  }
  #topics .topic-items h1.topic-name:before {
	left:86px;	
  }
  #topics .topic-items h1.topic-name span.topic-subtitle {
	font-size: 0.7rem;	
  }
  /* topics */
  /* footer */
  footer {
    padding-bottom: 30px;
  }
  footer img {
    height: 60px;
    object-fit: cover;
  }
  footer p.copyright {
    bottom: 5px;
    font-size: 0.7rem;
  }
  /* footer */
}
/* media query 400px */
@media screen and (max-width: 400px) {
	/*下層ページ  header */
  .child-header .header-title_main {
    font-size: 14px;
  }
  .child-header .header-title_main span {
    font-size: 12px;
  }
  .child-header .header-title_sub {
    font-size: 10px;
  }
}
/* media query 350px */
@media screen and (max-width: 350px) {
  /* shop-list */
  .slick-center::after {
    bottom: 60%;
  }
  /* shop-list */
}
  /* page navigation */
.pagenavi {
  margin: 40px 0;
}