@charset "UTF-8";
/*
Theme Name:真田宗仁郎WEBサイト
Theme URI: 
Description: 真田宗仁郎WEBサイト
Version: 1.0
Author: sawanodaichi
*/


body{
  font-family: "Noto Sans JP", sans-serif;
  background-color: #f0f0f0;
  height: 100vh;
  margin: 0;
  letter-spacing: 0.5px;
}



.head{
	width: 100%;
	border-bottom: solid 1px;
	position: fixed;
	background-color: #F0F0F0;
	padding-top: 20px;
	overflow: auto;
	padding-bottom: 20px;
	z-index: 99999;
}

.logo{
	float: left;
	margin-left: 0px;
}

a .logo{
	color: black;
}


h1{
	line-height: 0;
	padding-bottom: 10px;
	font-size: 22px;
	padding-top: 20px;
}


.container{
	width: 95%;
	max-width: 900px;
	margin: 0 auto;
	padding-top: 100px;
}

.fv{
	padding-top: 50px;
	padding-bottom: 50px;
	font-size: 15px;
}



.hh1{
	font-weight: 900;
}


.hh2{
	font-weight: 100;
}



.content{
	padding-top: 30px;
	padding-bottom: 50px;
	line-height: 1.7em;
}


.content a{
	text-decoration: underline;
	color: black;
}


.sns{
	padding-top: 30px;
	padding-bottom: 100px;
	text-align: center;
}

.sns img{
	width: 30px;
}


footer{
	font-size: 12px;
	padding-bottom: 30px;
	text-align: center;
}


.menu{
	padding-top: 35px;
	float: right;
}

.menu a{
	color: black;
	text-decoration: none;
	margin-right: 20px;
}


.pc{
	display: block;
}

.sp{
	display: none;
}


@media screen and (max-width: 768px) {


.pc{
	display: none;
}

.sp{
	display: block;
}


.menu{
	padding-top: 5px;
	float: left;
	width: 100%;
	text-align: center;
	font-size: 12px;
}

.menu a{
	color: black;
	text-decoration: none;
	margin: 0 7px;
}	


.sns{
	padding-top: 20px;
	padding-bottom: 50px;
	text-align: center;
}

.sns img{
	width: 30px;
}


footer{
	font-size: 12px;
	text-align: center;
}
	
}


.slide{
	width: 100%;
	margin-top: 60px;
}

.slide img{
	width: 100%;
}


.tittle{
	padding-top: 50px;
	font-size: 22px;
}

.en{
	font-size: 12px;
}

.cate{
	overflow: auto;
	width: calc(100% - 30px);
	padding-top: 30px;
	margin-left: 30px;
}

.cate img{
	width: 33%;
}

.w1{
	position: relative;
}

.w2{
	position: relative;
	margin-left: -30px;
}

.w3{
	position: relative;
	margin-left: -30px;
}

.cate a:hover{
}


.catename{
	background-color: black;
	color: white;
}




/* Gallery grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  padding: 10px 0;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.thumbnail {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 100%; /* 1:1 aspect ratio */
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.thumbnail img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Animation keyframes */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal styling */
/* Modal styling */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  max-width: 90%; /* 横幅を画面の90%以内に制限 */
  max-height: 90%; /* 高さを画面の90%以内に制限 */
  overflow: hidden; /* コンテンツがはみ出さないようにする */
}

.modal-content img {
  width: auto; /* 横幅を自動調整 */
  height: auto; /* 高さを自動調整 */
  max-width: 100%; /* 横幅が親要素を超えない */
  max-height: 100%; /* 高さが親要素を超えない */
  display: block;
  margin: auto;
}

.caption {
  color: white;
  margin-top: 10px;
  font-size: 1rem;
  text-align: center;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}


.work_unit{
	width: 100%;
	overflow: auto;
	padding: 30px 0;
	border-top: solid 1px gray;
	border-bottom: solid 1px gray;
}

.work_left{
	margin-bottom: 10px;
	}

.work_right{
s
}


.w_date{
	font-size: 12px;
}



/* フォーム全体 */
.wpcf7 {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 8px;
}

/* ラベル */
.wpcf7 label {
  font-weight: bold;
  display: block;
  margin-bottom: 8px;
  color: #333;
}

/* テキスト入力、メール、電話番号フィールド */
.wpcf7-form-control {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

/* フォーカス時のスタイル */
.wpcf7-form-control:focus {
  border-color: #0056b3;
  box-shadow: 0 0 5px rgba(0, 86, 179, 0.3);
  outline: none;
}

/* テキストエリア */
.wpcf7-textarea {
  resize: vertical;
  min-height: 120px;
}

/* 送信ボタン */
.wpcf7-submit {
  background-color: gray;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* 送信ボタンのホバー状態 */
.wpcf7-submit:hover {
  background-color: #003f8a;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* レスポンスメッセージ */
.wpcf7-response-output {
  margin-top: 15px;
  padding: 10px;
  font-size: 14px;
  border-radius: 5px;
  display: none;
}

/* エラーメッセージ */
.wpcf7-response-output[aria-hidden="false"] {
  display: block;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* スクリーンリーダー用レスポンス */
.screen-reader-response {
  display: none;
}



.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding: 10px 0;
    border-top: 1px solid #ddd;
    width: 100%;
}

.post-navigation .prev-post,
.post-navigation .next-post {
    flex: 1;
    text-align: left; /* 左端に配置 */
    font-size: 16px;
}

.post-navigation .next-post {
    text-align: right; /* 右端に配置 */
}

.post-navigation a {
    text-decoration: none;
    color: #000; /* 黒い文字 */
    font-size: 16px;
    display: block; /* リンクを領域全体でクリック可能に */
}

.post-navigation a:hover {
    color: #555; /* ホバー時の文字色を変更 */
}

@media screen and (max-width: 768px) {
    .post-navigation {
        flex-direction: column;
        text-align: center;
    }

    .post-navigation .prev-post,
    .post-navigation .next-post {
        text-align: center; /* モバイルでは中央揃え */
        margin-bottom: 10px;
    }
    


    
}


.work_copy{
	text-align: left;
	font-size: 15px;
	padding:30px;
	background-color: #cfcfcf;
}


@media screen and (max-width: 768px) {

	text-align: left;
	font-size: 10px;
	padding:20px;
	background-color: #cfcfcf;	

	}



.manta_banner{
	background-color: #e1e1e1;
	overflow: auto;
	padding: 30px;
	margin-top: 50px;
}

.manta_left{
	float: left;
	width: 30%;
}

.manta_left img{
	width: 100%;
}

.manta_right{
	float: right;
	width: 65%;
}


@media screen and (max-width: 768px) {

.manta_banner{
	background-color: #e1e1e1;
	overflow: auto;
	padding: 30px;
	margin-top: 50px;
}

.manta_left{
	float: left;
	width: 100%;
	text-align: center;
	padding-bottom: 30px;
}

.manta_left img{
	width: 80%;
	margin: 0 auto;
}

.manta_right{
	float: right;
	width: 100%;
}	
	
}



.komoji{
	font-size: 10px;
	line-height: 20px;
	vertical-align: middle;
	text-align: right;
	margin-left: 30px;
}


h3{
	border-bottom: solid 1px black;
	padding-bottom: 20px;
	margin-bottom: 50px;
}



.head_inner{
	width: 80%;
	margin: 0 auto;
	max-width: 900px;
}


.pc_eigo{
	font-size: 12px;
	margin-top: 10px;
}


@media screen and (max-width: 768px) {


.head{
	width: 100%;
	border-bottom: solid 1px;
	position: fixed;
	background-color: #F0F0F0;
	padding-top: 20px;
	overflow: auto;
	padding-bottom: 15px;
	z-index: 99999;
}


    .logo{
	width: 100%;
	overflow: auto;
	padding-bottom: 10px;
	}
	
	.logo a{
		color: black;
		text-decoration: none;
	}




	.head_inner{
	width: 90%;
	padding: 0px;
	margin: 0 auto;
	}
	
	
	
.sp_title{
	float: left;
	margin-left: 8px;
}
	
.sp_eigo{
	font-size: 10px;
	float: right;
	margin-top: 10px;
}	


	
}	



.news img{
	width: 100%;
	height: auto;
}


.logo_gazo img{
	height: 60px;
}


@media screen and (max-width: 768px) {
.logo_gazo img{
	height: 40px;
}
	
	
	}
	


.cd-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 16px;
    background-color: black;
    justify-content: center;
}

.cd-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cd-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

.cd-name {
    margin-top: 8px;
    font-size: 12px;
    color: #fff;
    font-weight: bold;
}

@media (max-width: 768px) {
    .cd-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        justify-content: center;
    }
}

.hida{
	text-align: left;
}




.cd_mi{
	color: white;
	text-align: center;
	width: 100%;
	padding: 10px 0;
	background-color: black;
	padding-top: 20px;
	margin-top: 30px;
	font-size: 16px;
}




.haisin {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* PCでは4列 */
    gap: 24px; /* PC時の余白を広めに */
    justify-content: center;
    align-items: center;
    padding: 24px;
    background-color: black;
}

/* 画像が1つだけのときは中央に配置 */
.haisin:has(a:nth-child(1):nth-last-child(1)) {
    grid-template-columns: 1fr; /* 画像が1つのときは1列でセンタリング */
    place-items: center;
}

.haisin a {
    display: flex;
    justify-content: center;
    align-items: center;
}

.haisin img {
    width: 100%;
    max-width: 160px; /* PC時のアイコンサイズを大きく */
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.haisin img:hover {
    transform: scale(1.1);
}

/* スマホ用（幅768px以下のとき） */
@media (max-width: 768px) {
    .haisin {
        grid-template-columns: repeat(2, 1fr); /* スマホでは2列 */
        gap: 16px; /* スマホでも少し広めの余白 */
        padding: 16px;
    }

    /* 画像が1つだけのときはスマホでも中央配置 */
    .haisin:has(a:nth-child(1):nth-last-child(1)) {
        grid-template-columns: 1fr;
    }

    .haisin img {
        max-width: 130px; /* スマホ時のアイコンサイズを大きく */
    }
}


.smalle{
	font-size: 80%;
}






@media (max-width: 768px) {
	

.forcus{
	font-size: 30px;
	font-weight: bold;
	text-align: center;
	margin-bottom: 20px;
}
	
	
.for{
	padding: 0 0px;
	padding-bottom: 0px;
}
}


@media (min-width: 768px) {
	

.forcus{
	font-size: 35px;
	font-weight: bold;
	text-align: center;
	margin-bottom: 20px;
}
	
	
.for{
	padding: 0 60px;
	text-align: justify;
	padding-bottom: 30px;
	font-size: 16px;
}
}




.for span{
	font-weight: normal;
	font-style: italic;
	font-size: 15px;
}




.topic_unit a {
    display: flex;              /* 横並びにする */
    gap: 1.5em;                 /* 日付との間の余白 */
    align-items: flex-start;    /* 上揃え */
    text-decoration: none;
    color: #333;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}

.topic_date {
    white-space: nowrap;        /* 日付の改行を禁止 */
    font-weight: 600;
}

.topic_title {
    flex: 1;                    /* タイトルが残り幅に自然に伸びる */
    line-height: 1.6;
}


.topic_unit a {
    position: relative;
}

.topic_unit a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: #333;
    transition: width 0.25s ease;
}

.topic_unit a:hover::before {
    width: 100%;
}





.news_list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.news_item a {
  display: block;
  text-decoration: none;
  color: #000;
}

.news_thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eee;
}

.news_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.news_item a:hover .news_thumb img {
  transform: scale(1.05);
}

.news_body {
  margin-top: 12px;
}

.news_date {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}

.news_title {
  font-size: 14px;
  line-height: 1.6;
}

@media screen and (max-width: 768px) {
  .news_list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .news_title {
    font-size: 13px;
  }
}