@charset "utf-8";
/* CSS Document */


/*
Theme Name: TONGARIMARU
Theme URI: https://tongarimaru.com
Description:my HP theme
Author: TAKEMOTO YUKI
Author URI: https://tongarimaru.com
Version: 1.0
Text Domain: TONGARIMARU
*/

/* -----全体共通----- */

body,div,dl,dt,dd,ul,ol,li,
h1,h2,h3,h4,h5,h6,pre,form,
fieldset,input,textarea,p,
blockquote,th,td {
	margin:0;
	padding:0;
	font-family:"Open Sans","游ゴシック Medium","游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", noto-sans-cjk-jp,"Yu Gothic Medium","游ゴシック","Yu Gothic","游ゴシック体",YuGothic,"ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","メイリオ",Meiryo,sans-serif;
	color:#2d2d2d;
	word-wrap: break-word; 
	}

h1:before,h2:before,h3:before,h4:before,h5:before{
	content:'';
	display:block;
	height:calc(100vh * (80 / 1080));
	margin-top: calc(100vh * (80 / 1080) * -1);
}

p span,h2 span,h3 span,h4 span{
	display: inline-block;
}

a{
	color:#556b2f;
	text-underline-offset: 4px;
}

a:visited{
	color:#708090;
}

a:hover{
	color:#006400;
}

li{
	list-style-position: inside;
}

strong {
	font-weight: 900;
}

html {
	overflow-y:scroll;
	height: 100%;
	-webkit-appearance: none !important;
    font-size:62.5%;
	}

body {
	background-color: #fffafa;
	height: 100%;
	width:100%;
	font-size:1.4em;
}

#ex-wrap{
	width:100%;
	padding-top: calc(100vh*(80 / 1080));

}

#wrap{
	max-width: 1200px;
    width:90%;
	margin:0 auto;
}

main{
	max-width: 1200px;
	width:100%;
	margin:0 auto;
}

#totalcover{
	/*height: 100%;
	margin-top: calc(100vh * (80 / 1080));*/
	min-height: 100%;
}

#totalcover:has(> .default-page-layout){
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

#totalcover:has(> .default-page-layout) > .default-page-layout{
	flex: 1 0 auto;
}

#totalcover:has(> .default-page-layout) > footer{
	flex-shrink: 0;
}

.contact-page-title{
	text-align: center;
}

.contact-page-layout #breadcrumb{
	margin-top: -10px;
}

.default-page-title{
	width: 100%;
	margin: 0 0 40px;
	text-align: left;
}

.width100{
	width: 100%;
}

.imagetrim{
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center; 
}

img{
	max-width: 100%;
    height: auto;
    width: 100%;
}

/* -----Header----- */
header{
	display: block;
	position: -webkit-sticky;
	position: fixed;
	top: 0;
	text-align: center;
	width:100%;
	height: calc(100vh * (80 / 1080));
	background-color: #FFF;
	z-index: 1;
	box-shadow: 0px 10px 10px -11px #777777;
}

.header-area{
    height:100%;
}

/*--ここからヘッダーロゴ--*/

.header-area .toplogo-area{
	text-align: left;
	margin:1vh 0 1vh 1vh;
	float:left;
    height:70%;
    width:auto;
    max-height:70px;
    display:inline-block;
}

.toplogo-a{
    display: flex;
    height: 100%;;
    padding-left: 1vh;
}

.toplogo{
   height: 100%;
   display:flex;
   align-items: center;
   width:auto;
   max-width:calc(100vw - 70px);
}

.toplogo-img {
    height:60%;
    width:auto;
	margin:auto;
}

.toplogo-txt{
    padding-left:1vh;
    height:45%;
    width:auto;
}

/*--ここまでヘッダーロゴ--*/

/*--ここからヘッダーメニュー--*/
.header-right{
    float:right;
	height:100%;
	width:50%;
}

.topmenu{
	text-align: center;
	margin: 0;
	line-height: 100%;
	position: absolute;
	top: 50%;
	right: 1vw;
	transform: translateY(-50%);
}

.topmenu li{
	list-style: none;
  display: inline-block;
  padding: 10px;
}

.topmenu a{
	text-decoration: none;
	color:#2d2d2d;
    font-size: 1em;
}

.topmenu li :hover{
	color:#006400;
    border-bottom: 1px solid #006400;
}
/*--ここまでヘッダーメニュー--*/

/*--ここからスマホヘッダーメニュー--*/
@media screen and (max-width: 768px) and (min-width:451px) {
	#ex-wrap{
		padding-top:calc(100vh * (80 / 1080)*2);
	}

	header{
		height:calc(100vh * (80 / 1080)*2);
	}

	.header-area .toplogo-area{
		float:none;
		height:35%;
		width:100%;
	}

	.header-right{
		float:none;
		height:50%;
		width:100%;
		margin-top:5px;
	}

	.topmenu{
		position: static;
		top:auto;
		right:auto;
		transform: none;
	}

	.topmenu li{
		width:20%;
		margin:auto 1%;
		padding:10px 0.5%;
		border:solid 0.5px #2d2d2d; 
		border-radius: 5%;
	}

	.topmenu li:hover{
		border:solid 1px #006400;
		border-bottom:none;
		background-color: #006400;
	}

	.topmenu li:hover a{
		color:#FFF;
	}

	.topmenu a{
		font-size: 1.2em;
	}

	.topmenu li > a{
		display: block;
	}

}

@media screen and (max-width: 450px) {
	.pc-nav{
		display: none;
	}

	.sp-nav{
		display: block;
		height: 100%;
	}

	.topmenu{
		right:0;
		transform:none;
		top:0;
	}

	.menu-btn {
		display: flex;
		height: 100%;
		width: 60px;
		justify-content: center;
		align-items: center;
		z-index:90;
		position:relative;
	}

	.menu-btn span,
	.menu-btn span:before,
	.menu-btn span:after {
		content: '';
		display: block;
		height: 3px;
		width: 25px;
		border-radius: 3px;
		background-color: #2d2d2d;
		position: absolute;
	}

	.menu-btn span:before {
		bottom: 8px;
	}

	.menu-btn span:after {
		top: 8px;
	}

	#menu-btn-check:checked ~ .menu-btn span {
		background-color: #ffffff;/*メニューオープン時は真ん中の線を透明にする*/
	}

	#menu-btn-check:checked ~ .menu-btn span::before {
		bottom: 0;
		transform: rotate(45deg);
	}

	#menu-btn-check:checked ~ .menu-btn span::after {
		top: 0;
		transform: rotate(-45deg);
	}

	#menu-btn-check {
		display: none;
	}

	.topnavi {
		width: 11em;
		height: 100%;
		position: fixed;
		z-index: 80;
		background-color: #fff;
		top:calc(100vh * (80 / 1080));
		right:-20em;
		text-align: right;
		transition: all 0.5s;/*アニメーション設定*/
		box-shadow: -6px 0px 7px -7px #777777;
	}
	.topnavi ul {
		padding: 0 10px 0;
	}
	.topnavi ul li {
		border-bottom: solid 1px #ffffff;
		display: block;
		padding-bottom:15px;
	}
	.topnavi ul li a {
		display: block;
		width: 100%;
		font-size: 15px;
		box-sizing: border-box;
		color:#2d2d2d;
		padding: 0px 0px 6px 0;
		position: relative;
		border-bottom: solid 1px #2d2d2d;
	}

	.topnavi ul li a::after{
		content:"＞";
		padding-left:.5em;
	}

	#menu-btn-check:checked ~ .topnavi {
    right:0;/*メニューを画面内へ*/
	}

	.topnavi p{
		padding: 20px 20px 0;
		font-size: 1.5em;
		margin-bottom: 1em;
	}
}



/*--ここまでスマホヘッダーメニュー--*/

/* -----Footer----- */
footer{
	-webkit-appearance: none;
	bottom: 0;
	color:white;
	clear: both;
	float: none;
	top:100%;
	width:100%;
}

#foot{
	width: 100%;
	padding:20px 0;
	background-color: white;
}

/*--ここからフッターメニュー--*/
.footmenu{
	line-height: 100%;
	margin-top: 2em;
	margin-bottom: 1em;
	display: flex;
	justify-content: center;
	-webkit-align-items: center;
	align-items: center;
	flex-direction: column;
}

.footmenu li{
	list-style: none;
  display: inline-block;
  padding: 0 15px 1em;
}

.footmenu a{
	text-decoration: none;
	color:#2d2d2d;
	font-size:1em;
}

.footmenu a:hover{
	text-decoration: underline;
	text-underline-offset:0.5em;
	color:#006400;
}

.foot-yvh{
	margin:2em auto;
}

.foot-yvh:before{
	padding-right: .5em;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: '\f35d';
    padding-top: 0.1em;
}

footer .cpr{
	margin-top:3em;
	font-size: 0.3em;
	text-align: center;
	color:#2d2d2d;
	-webkit-appearance: none;
}

/*-----------all button-----------*/
.buttton-black1{
	background-color: black;
	color: #fff;
	padding: 10px 30px;
	text-decoration: none;
	font-size: 1em;
	box-shadow: 0 5px 0 #d2d2d2;
	display: inline-block;
	transition: .3s;
}

.buttton-black1:hover{
	color: #fff;
	transform: translateY(5px);
	box-shadow: 0 0 0 #d2d2d2;
}

.button-black1>a{
	text-decoration: none;
	color: #fff;
}

/*-----------フォーム共通-----------*/
.wpcf7 fieldset.hidden-fields-container {
	border: none;
	margin: 0;
	padding: 0;
}

.wpcf7 input[type="submit"]{
	background-color: black;
	color: #fff;
	padding: 10px 30px;
	text-decoration: none;
	font-size: 1em;
	box-shadow: 0 5px 0 #d2d2d2;
	display: inline-block;
	transition: .3s;
	margin:2em auto;
}

.wpcf7 input[type="submit"]:hover{
	color: #fff;
	transform: translateY(5px);
	box-shadow: 0 0 0 #d2d2d2;
}

.wpcf7 input[type="submit"]:active{
	background-color: #FFF;
	color:#2d2d2d;
}

.form{
	margin-top:2em;
}

.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="url"], .wpcf7 textarea{
	margin-top:.5em;
	background-color:#fff;
	border:1px solid #2d2d2d;
	max-width: 1200px;
    width: 45%;
	padding:0.5em 1em;
}

.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="url"]{
	height:1em;
}

.wpcf7-form-control-wrap{
	display: block;
}

.doui{
	margin-bottom:1em;
}

@media screen and (max-width: 600px) {
	.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="url"], .wpcf7 textarea{
		width:65%;
	}
}

/*ジャンプ位置調整*/
:target::before {
    content:"";
    display:block;
    height:calc(100vh * (80 / 1080));       /* 移動する距離。 私の場合は、height:3rem; 　高さは調節してくださいね。*/
    margin-top:calc(0 - 100vh * (80 / 1080));  /* heightのマイナス値と0　0。 私の場合は、margin:-3rem 0 0; */
}

/*-----------all RESPONSIVE-----------*/
    .phone-only{
        display: none;
    }

	.sp-nav{
		display: none;
	}

@media screen and (max-width: 768px) {
    .phone-none{
        display: none;
    } 

	.tab-only{
		display: block;
	}

}

@media screen and (max-width: 450px) {
	.pc-nav{
		display: none;
	}

	.sp-nav{
		display: block;
	}

    .phone-only{
        display: block;
    }
}

/* =========================================
   共通パーツ・追加装飾
========================================= */

/* セクションタイトル (h2) のスタイル */
section h2 {
  text-align: center;
  font-size: 2.4rem;
  letter-spacing: 0.1em;
  margin-bottom: 40px;
  font-weight: normal;
}

/* =========================================
   TOPページ用 (front-page)
========================================= */

/* メインビジュアル用の隙間調整 */
.front-page h1::before {
  display: none;
}
.front-page h1 {
  line-height: 0;
  margin: 0;
  padding: 0;
}

/* サービス／Work カードレイアウト */
.work-card-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 80px;
}
.work-card {
  display: flex;
  flex-direction: column;
  background-color: #F8F8F8;
  margin-bottom: 0px;
  align-items: stretch;
}
.work-card-img {
  width: 100%;
}
.work-card-img img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.work-card-text {
  width: 100%;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-grow: 1;
}
.work-card-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: normal;
  letter-spacing: 0.1em;
}
.work-card-text p {
  line-height: 1.8;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

/* TOPのSNSアイコン */
.top-sns-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}
.top-sns-icons a {
  font-size: 50px;
  text-decoration: none;
  transition: .3s;
}
.top-sns-icons a img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}
.top-sns-icons a.fa-facebook,
.top-sns-icons a.fa-facebook-square { color: #1877F2; }
.top-sns-icons a.fa-linkedin { color: #0A66C2; }
.top-sns-icons a.fa-instagram {
  background: -webkit-linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.top-sns-icons a.fa-x-twitter,
.top-sns-icons a.fa-twitter-square { color: #000; }
.top-sns-icons a:hover {
  transform: scale(1.1);
}

/* TOPの記事リスト */
.front-posts-list {
  max-width: 800px;
  margin: 0 auto 60px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}
.front-posts-list .post-item {
  display: flex;
  padding: 25px 0;
  border-bottom: 1px solid #ccc;
}
.front-posts-list .post-item:last-child {
  border-bottom: none;
}
.front-posts-list .post-date {
  width: 140px;
  flex-shrink: 0;
  color: #333;
  font-size: 1.4rem;
}
.front-posts-list .post-title {
  flex-grow: 1;
}
.front-posts-list .post-title a {
  color: #000;
  text-decoration: none;
  font-size: 1.4rem;
}
.front-posts-list .post-title a:hover {
  color: #556b2f;
  text-decoration: underline;
}

/* =========================================
   各種ページコンポーネント
========================================= */

/* Hero共通 (ページ上部背景画像) */
.page-hero {
  position: relative;
  height: 400px;
  margin-bottom: 40px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-hero::before {
  content:'';
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.4);
}
.page-hero h1 {
  position: relative;
  color: #FFF;
  font-size: 3rem;
  letter-spacing: 0.1em;
  text-align: center;
  font-weight: normal;
}
.page-hero h1 small {
  display: block;
  font-size: 1.4rem;
  margin-top: 10px;
}

@media screen and (max-width: 768px) {
  .page-about .page-hero,
  .page-works .page-hero {
    background-position: left center;
  }
}

/* Contactセクション (TOPと共通) */
.front-contact p {
  text-align: center;
  line-height: 1.8;
  margin-bottom: 10px;
  font-size: 1.4rem;
}

/* レスポンシブ追加設定 */
@media screen and (max-width: 768px) {
  .work-card-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .work-card-text {
    padding: 30px 20px;
  }
  .front-posts-list .post-item {
    flex-direction: column;
  }
  .front-posts-list .post-date { margin-bottom: 10px; }
  .top-sns-icons {
    gap: 20px;
  }
  .top-sns-icons a {
    font-size: 40px;
  }
}

/* =========================================
   ABOUT / WORKS ページスタイル
========================================= */

.about-profile h2, .about-career h2, .about-works h2, .about-sns h2, .about-hobby h2 {
  text-align: left;
  font-size: 2.2rem;
  margin-bottom: 25px;
}
.about-contact {
  text-align: center;
}
.about-contact h2, .post-contact h1, .front-contact h2 {
  text-align: center;
}
.about-block p {
  line-height: 2;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.about-profile, .about-career, .about-works, .about-contact, .about-sns, .about-hobby {
  margin-bottom: 80px;
}

.works-anchor-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 60px;
}
.works-anchor-links a {
  margin-bottom: 0px;
}

.works-section {
  margin-bottom: 80px;
}
.works-section h2 {
  text-align: left;
  border-bottom: 1px solid #ccc;
  padding-bottom: 15px;
  font-size: 2.4rem;
  margin-bottom: 30px;
}
.works-content-block p {
  line-height: 2;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.works-portfolio h3 {
  font-size: 1.8rem;
  margin: 40px 0 15px;
  font-weight: normal;
}
.works-portfolio ul {
  list-style: none;
  font-size: 1.4rem;
  line-height: 2;
}

@media screen and (max-width: 768px) {
  .works-anchor-links {
    flex-direction: column;
    align-items: center;
  }
  .works-anchor-links a {
    width: 90%;
    text-align: center;
  }
  .page-works .works-anchor-links {
    width: 100%;
    box-sizing: border-box;
  }
  .page-works .works-anchor-links a {
    box-sizing: border-box;
    max-width: 100%;
  }
  .about-profile h2, .about-career h2, .about-works h2, .about-contact h2, .about-sns h2, .about-hobby h2,
  .works-section h2, .post-contact h1 {
    font-size: 2rem;
  }
}

/* =========================================
   シングルページ (single.php) 2カラムレイアウト
========================================= */

.single-page-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 40px;
  gap: 40px;
}
.single-page-layout > .div_main {
  width: 70%;
}
.single-page-layout > #side {
  width: 25%;
}
.post-h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-weight: normal;
}
article#normal_post h2 {
  font-size: 2.2rem;
  margin: 40px 0 20px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
  text-align: left;
}
article#normal_post h3 {
  font-size: 1.8rem;
  margin: 30px 0 15px;
  font-weight: normal;
}
article#normal_post p {
  line-height: 2;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

@media screen and (max-width: 900px) {
  .single-page-layout {
    flex-direction: column;
  }
  .single-page-layout > .div_main, .single-page-layout > #side {
    width: 100%;
  }
  .single-page-layout > #side {
    margin-top: 60px;
    border-top: 2px solid #eee;
    padding-top: 40px;
  }
}

/* =========================================
   パンくずリスト
========================================= */
.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0 0 20px 0;
  font-size: 1.2rem;
}
.breadcrumb li {
  display: flex;
  align-items: center;
}
.breadcrumb li:not(:last-child)::after {
  content: '>';
  margin: 0 10px;
  color: #666;
}

/* =========================================
   カスタムボタンショートコード ([btn])
========================================= */
.btn-wrap {
  margin: 1.5em 0;
  text-align: center;
}
.btn {
  display: inline-block;
  padding: 0.8em 2em;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn a {
  color: inherit;
  text-decoration: none;
  display: block;
}
.btn.ghost {
  border: 2px solid #2d2d2d;
  background-color: transparent;
  color: #2d2d2d;
}
.btn.ghost:hover {
  background-color: #2d2d2d;
  color: #fff;
}
.btn.ghost a:hover {
  color: #fff;
}
