/*
Theme Name: portfolio_wp
Description: 作品サイトです
Version: 1.0
*/
/*-------------------------------------------

目次
	背景画像
	scroll
	フェードイン
	メインビュー　ズーム
	アコーディオン
	流れる文字
	ボタン
	mainviewの記述
	movieの記述
    投稿のサイト制作
-------------------------------------------*/


/*-------------------------------------------
背景画像
-------------------------------------------*/

.bg {
	position: relative;
}

.bg::before {
	position: absolute;
    content: "";
    width: 100%;
    max-width: 1080px;
    height: 1200px;
    top: -350px;
	left: 50%;
	transform: translateX(-50%);
	background-image: url(images/bg/bg_site-pc.png);
	background-repeat: repeat;
	background-size: cover;
	background-position: 30% top;
	z-index: -10;
	opacity: .6;
	pointer-events: none;  /* ← これを追加 */
}
@media screen and (max-width: 768px) {
	.bg::before {
		max-width: 768px;
		height: 1400px;
		top: -450px;
		
	}
}
@media screen and (max-width: 480px) {
	.bg::before {
		max-width: 480px;
		height: 1000px;
		top: -270px;
		background-image: url(images/bg/bg_site-sp.png);
	}
}


/*-------------------------------------------
scroll
-------------------------------------------*/
.mainview {
	position: relative;
}

.scroll {
	position: absolute;
	left: 50%;
	bottom: 2.5vw;
	height: 60px;
}
.scroll span {
	position: absolute;
	left: -21.5px;
	top: -21.5px;
}

.scroll::after {
	content: "";
	position: absolute;
	top: 0;
	width: 1px;
	height: 40px;
	background: var(--mainDark-c);
	/* アニメーション */
	animation: pathmove 1.5s ease-in-out infinite;
	opacity: 0;
}
@keyframes pathmove {
	0% {
		height: 0;
		top: 0;
		opacity: 0;
	}
	30% {
		height: 40px;
		opacity: 1;
	}
	100% {
		height: 0;
		top: 60px;
		opacity: 0;
	}
}

.slider {
	margin-top: 26px;
	display: flex;
	width: 100%;
	margin-inline: auto;
	align-items: center;
}

.slider_image {
	width: 600px;
	margin-left: 5px;
}
.slider_image img{
	width: 100%;
	height: auto;
}

/* 矢印ボタン */

/* 基本の矢印ボタンのスタイル */
.slide-arrow {
	position: absolute;
    bottom: -49px;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-style: solid;
	cursor: pointer;
	z-index: 10;
	background: none; /* 背景を消す */
	border-color: transparent;
  }
  
  /* ◀ 左矢印 */
  .prev-arrow {
	border-width: 10px 18px 10px 0;   /* 三角形の大きさ */
	border-right-color: var(--mainDark-c);
	left: 67px;
  }
  
  /* ▶ 右矢印 */
  .next-arrow {
	border-width: 10px 0 10px 18px;
	border-left-color: var(--mainDark-c);
	right: 67px;
  }

  /* ボタンのデフォルトスタイルを無効化 */
  button {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	outline: none;
	padding: 0;
	border: none;
	background: none;
  }
  

  .slick-dots {
    bottom: -38px;
}

/*-------------------------------------------
フェードイン
-------------------------------------------*/

.fade-in {
    opacity: 0;
    transform: translateY(50px); /* 50px下から開始 */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/*-------------------------------------------
メインビュー　ズーム
-------------------------------------------*/
.mainview__image {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-out;
}

.mainview__image.fade-in-top {
    opacity: 1;
    transform: scale(1);
}

/*-------------------------------------------
アコーディオン
-------------------------------------------*/
.content {
	margin-inline: auto;
    max-width: 550px;
	margin-top: 26px;
}

.accordion {
    max-width: 550px;
    margin-bottom: 7px;
    border-bottom: 2px solid #b3b3b3;
}

.accordion summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 1em 2em;
    color: #767676;
    font-weight: 600;
    cursor: pointer;
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion summary::before,
.accordion summary::after {
    width: 3px;
    height: .9em;
    border-radius: 5px;
    background-color: #b3b3b3;
    content: '';
}

.accordion summary::before {
    position: absolute;
    right: 2em;
    rotate: 90deg;
}

.accordion summary::after {
    transition: rotate .3s;
}

.accordion[open] summary::after {
    rotate: 90deg;
}

.accordion p {
    transform: translateY(-10px);
    opacity: 0;
    margin: 0;
    padding: .3em 2em 1.5em;
    color: #767676;
    transition: transform .5s, opacity .5s;
}

.accordion[open] p {
    transform: none;
    opacity: 1;
}


/*-------------------------------------------
流れる文字
-------------------------------------------*/
.fade-in-slide {
    overflow: hidden; /* コンテンツが流れる範囲外にはみ出さないようにする */
    position: relative;
    width: 100%;
	color: var(--subLight-c);
}

/* 内部テキスト */
.fade-in-slide .slide-text {
    white-space: nowrap; /* 改行を無効にする */
    display: inline-block;
    animation: slide 15s linear infinite; /* 5秒で右から左に流れるアニメーション */
}

/* テキストが右から左へ流れるアニメーション */
@keyframes slide {
    0% {
        transform: translateX(150%); /* 初めは画面の右外に */
    }
    100% {
        transform: translateX(-100%); /* 最後は画面の左外に */
    }
}
@media screen and (max-width: 768px) {
	@keyframes slide {
		0% {
			transform: translateX(100%); /* 初めは画面の右外に */
		}
		100% {
			transform: translateX(-100%); /* 最後は画面の左外に */
		}
	}
}

/*-------------------------------------------
ボタン
-------------------------------------------*/
.btn__wrap {
	text-align: center;
	margin-block: 70px;
}
.btn {
	color: #fff;
	background-color: var(--subLight-c);
	border-radius: 20px;
	display: block;
	position: relative;
	box-sizing: border-box;
	width: 200px;
	text-align: center; 
	margin-inline: auto;
	text-decoration: none;
	cursor: pointer;
	z-index:999;
	transition: all 0.3s;
	position: relative;
}
.btn::after {
	content: "";
    position: absolute;
    right: 21px;
    width: 10px;
    height: 10px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(-45deg);
    border-radius: 1px;
    top: 15px;
}


/* リンクボタンのエフェクト */
.glowing-button {
	position: relative;
	/* display: inline-block; */
	padding: 10px 20px;
	font-size: 16px;
	overflow: hidden;
  }
  
  .glowing-button::before {
	content: "";
	position: absolute;
	top: 50%;
	left: -120px;
	width: 80px;
	height: 200px;
	background-image: linear-gradient(
	  90deg,
	  hsla(0, 0%, 100%, 0),
	  hsla(0, 0%, 100%, 0.9) 80%,
	  hsla(0, 0%, 100%, 0)
	);
	transform: translateY(-50%) rotate(-25deg); /* 斜めの角度（逆向き） */
	animation: glowing 2s linear infinite;
	pointer-events: none;
  }
  
  @keyframes glowing {
	0% {
	  left: -120px;
	  opacity: 1;
	}
	20% {
	  left: 100%;
	  opacity: 1;
	}
	21% {
	  opacity: 0;
	}
	100% {
	  left: 100%;
	  opacity: 0;
	}
  }
  

/*-------------------------------------------
mainviewの記述
-------------------------------------------*/
.mainview {
	height: calc(100svh); 
}
@media screen and (max-width: 768px) {
	.mainview {
		height: calc(100svh); 
	}
}

.mainview__inner {
	height: inherit;
	padding-top: 0;
}

.mainview__title {
	display: flex;
    justify-content: center;
    align-items: center;
    height: inherit;
	background-position: center;
}

.fade-in-top {
    opacity: 1 !important;
}

.mainview__image {
    opacity: 0;  /* 初期状態: 非表示 */
    transition: opacity 1s ease-in-out;  /* opacityだけをアニメーション */
}

.mainview__image.is-active {
    opacity: 1;  /* 表示状態 */
}
/*-------------------------------------------
movieの記述
-------------------------------------------*/
.video-container {
    position: relative;
}

.video-thumbnail {
    cursor: pointer;
    width: 100%;
    height: auto;
    display: block;
}

.video-player {
    display: none; /* 初めは非表示 */
    width: 100%;
}

figcaption {
    margin-top: var(--common-margin-top);
	width: 80%;
	margin-inline: auto;
	line-height: 1.8em;
}
.video-sp {
	height: 360px;
	object-fit: contain;
}
.images__container.movie {
	align-items: center;
}
.video-container p {
	margin-top: 10px;
}
@media screen and (max-width: 768px) {
	figcaption {
		width: 100%;
	}
	.sp__mgn-top {
		margin-top: 50px;
	}
}
/*-------------------------------------------
トップページへの投稿表示
-------------------------------------------*/
.card-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 24px;
}
@media screen and (max-width: 768px) {
.card-list {
  grid-template-columns: 1fr 1fr;
}
}
.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.card a {
	display: block;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgb(0 0 0 / 10%);
}
.card-thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.card-meta {
  padding: 12px 16px;
}
.card-date {
  font-size: .85rem;
  color: #888;
  display: block;
  margin-bottom: 4px;
}
.card-title {
  font-size: 0.8em;
}
/* eastアイコン */
.east {
  content: "east";
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24;
	font-size: 24px;
	line-height: 1
}
/* もっと見るボタン */
.more-link {
  text-align: right;
  margin-top: var(--common-margin-top);
	width: fit-content;
    margin-left: auto;
	padding-right: 10px;
}
.more-link_arrow a {
/*   font-size: 0.8em; 
  letter-spacing: 0.1em; */
  color: var(--mainDark-c);
  font-weight: 400;
  display: block;
  position: relative;
  box-sizing: border-box;
  max-width: 130px;
  text-align: center; 
  padding: 4px 16px 4px 0;
  margin: 24px;
  margin-left: auto;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}

.more-link_arrow a::before {
  content: "";
  display: block;
  position: absolute;
  width: 130px;
  height: 1px;
  background: #333;
  bottom: 0;
  transition: all 0.3s;
}

.more-link_arrow a::after {
  content: "";
  display: block;
  position: absolute;
  width: 30px;
  height: 1px;
  background: #333;
  rotate: 40deg;
  right: -3px;
  bottom: 10px;
  transition: all 0.3s;
}

.more-link_arrow a:hover::after,
.more-link_arrow a:hover::before {
  translate: 20px 0;
  transition: all 0.3s;
}
.img-boder-02 {
	border: solid 1px var(--subLight-c);
	width: 100%;
	margin-inline: auto;
}
.post-navigation {
    display: flex;
    align-items: center;
	justify-content: space-evenly;
	margin-top: 50px;
}
.post-navigation__prev a,.post-navigation__next a{
	display:flex;
	align-items: center;
	gap: 5px;
}
/*-------------------------------------------
投稿のサイト制作
-------------------------------------------*/
.section-title {
	scroll-margin-top: 80px;
}
.site__inner {
	max-width: 800px;
    margin-inline: auto;
	margin-block: 50px;
}
section.site-section {
	margin-top: 80px;	
}
.u-mt {
	margin-top: var(--common-margin-top);
}
.entry-title {
	font-size: 1.5em;
	font-weight: bold;
}
.section-title {
    padding: 0.25em 0.5em;
	font-size: 1.5em;
    border-left: solid 5px var(--mainDark-c);
/* 	background-color: #9fdfba4a; */
    font-weight: bold;
}
.site-h3 {
  padding: 1rem 2rem;
  border-bottom: 6px double var(--mainDark-c);
  background: var(--subLight-c);
  color: #fff;
}
.site-img {
	width: 80px;
	flex-shrink: 0;
}
.flex-box {
 	display: flex;
	align-items: center;
	gap: 10px;
}

/* テーマファイル構成箇所 */
.site-code {
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 16px;
  border-radius: 6px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
  color: #545454;
}

/* 吹き出し左 */
.balloon2-left {
  position: relative;
  display: inline-block;
  margin-left: 10px;
  padding: 10px;
  min-width: 120px;
  max-width: 100%;
  border: solid 2px var(--subLight-c); /* 3px → 2px に変更 */
  box-sizing: border-box;
  border-radius: 5px;
  background-color: #fff
}

.balloon2-left:before {
  content: "";
  position: absolute;
  top: 50%;
  left: -19px; /* 三角の位置を調整 */
  margin-top: -10px;
  border: 10px solid transparent; /* サイズを小さく */
  border-right: 10px solid #fff; /* 内側の背景色の三角形 */
  z-index: 2;
}

.balloon2-left:after {
  content: "";
  position: absolute;
  top: 50%;
  left: -24px; /* 外側の線（2px厚） */
  margin-top: -12px;
  border: 12px solid transparent;
  border-right: 12px solid var(--subLight-c); /* 外側の枠線色 */
  z-index: 1;
}

.balloon2-left p {
  margin: 0;
  padding: 0;
}
/* 吹き出し左ここまで */
/* 吹き出し右 */
/* 右矢印にするためのクラス */
.balloon2-left.right {
  margin-left: 0;
  margin-right: 10px;
}

.balloon2-left.right::before {
  left: auto;
  right: -9px;
  border-right: none;
  border-left: 10px solid #fff;
}

.balloon2-left.right::after {
  left: auto;
  right: -12px;
  border-right: none;
  border-left: 12px solid var(--subLight-c);
}
/* 吹き出し右ここまで */
.site-h3 {
	margin-top: var(--common-margin-top);
}
.border li {
	line-height: 1.8;
	    text-indent: 1em;
}
@media screen and (max-width: 500px) {
	.border li {
	 text-indent: 0;
	}
}
.icon-flex {
	display: flex;
	align-items: center; 
	gap: 6px;
}
/* checkアイコン */
.check {
	padding-left: 20px;
}
li {
  position: relative;
		line-height: 1.8;
}
.check li:before {
  content: "check";
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24;
  position: absolute;
  left: -20px;
  top: 0;
  color: var(--tag-color);
  font-size: 18px;
}

/* infoアイコン */
.info {
  content: "info";
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24;
  color: var(--accent-info-c);
	font-size: 30px;
	padding-inline: 5px;
}
.icon-flex-box {
	display: flex;
	border-radius: 10px;
	align-items: center;
	padding: 6px;
	background-color: #9fdfba4a;
}
.border {
  position: relative;
/*   border: solid 2px var(--accent-edit-c); */
  padding: 24px 6px 10px;
  margin-bottom: 20px;
  background-color: var(--bg-c);
		border-radius: 5px;
}

/* アイコンの基本形（種類・色はサブクラスで設定） */
.border::before {
  content: "";
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg-c);
  position: absolute;
  top: -16px;
  left: 12px;
  z-index: 1;
}

/*editの場合のアイコン設定 */
.edit {
  border: solid 2px var(--accent-edit-c);
}
.edit::before {
  content: "edit"; /* アイコン名 */
  color: #fff; /* アイコン色 */
  background-color: var(--accent-edit-c); /* 丸背景色 */
}
/*inventoryの場合のアイコン設定 */
.inventory {
  border: solid 2px var(--accent-info-c);
}
.inventory::before {
  content: "inventory"; /* アイコン名 */
  color: #fff; /* アイコン色 */
  background-color:var(--accent-info-c); /* 丸背景色 */
}


/* テーブル */
.custom-table {
  width: 100%;
  max-width: 500px;
  margin-block: 20px;
  border-collapse: collapse;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.88em;
  background-color: #fff;
  border: 1px solid  var(--subLight-c);
}

.custom-table thead {
  background-color: #f0f0f0;
}

.custom-table th,
.custom-table td {
  padding: 10px 15px;
  border: 1px solid  var(--subLight-c);
  text-align: left;
}
@media screen and (max-width: 500px) {
.custom-table th,
.custom-table td {
  padding: 10px 3px;
}
}
/* 目次 */
.toc {
    border: 2px solid var(--subLight-c);
	margin-top: var(--common-margin-top);
}

.toc-title {
    font-weight: bold;
    margin-bottom: 10px;
    background-color: var(--subLight-c);  /* ← タイトル部分だけ背景色 */
	color: #fff;
	padding: 3px 10px;
}

.toc ul {
    list-style: none;
    padding-inline: 10px;
}
.toc a {
    text-decoration: none;
}

.toc a:hover {
    text-decoration: underline;
}
.toc li {
  position: relative;
  padding-left: 16px; /* 左にスペースを作る */
  margin-bottom: 8px; /* 項目間の余白 */
  list-style: none; /* デフォルトのリストマーカーは消す */
}

.toc li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: var(--subLight-c);
  border-radius: 50%; /* 丸にする */
}

/* --- カテゴリーとジャンルのバッジ風 --- */
.tax-item {
    display: inline-block;
    margin-top: 5px;
    margin-right: 5px;
    padding: 6px 10px;
    font-size: 0.85em;
    border-radius: 5px; /* 角丸5px */
    text-decoration: none;
    color: #fff;
}

.tax-item.cat {
    background-color: var(--subLight-c); /* カテゴリー用カラー */
}

.tax-item.genre {
    background-color: var(--tag-color); /* ジャンル用カラー */
}
.tax-item.post-type {
	background-color: var(--accent-edit-c); 
}
.img-boder {
	border: solid 2px var(--accent-edit-c);
	width: 80%;
	margin-inline: auto;
	border-radius: 5px;
}
/* --- アーカイブページ用 --- */
.archive-title,.taxonomy-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1.5em;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5em;
}

.archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-item {
    border-bottom: 1px solid #eee;
    padding: 1em 0;
}

.archive-item a {
    text-decoration: none;
    font-size: 1.1rem;
    color: #333;
    display: block;
    transition: color 0.3s ease;
}
.taxonomy-list {
    width: fit-content;
}

.indent {
  display: inline-block;
  margin-left: 1em; /* → を揃えるための字下げ幅。調整可能 */
  text-indent: -1em; /* 先頭の → を見た目揃えるために引き上げ */
}
.taxonomy-links {
	margin-top: 40px;
}
/* 要素が少ないとフッターが上がるのを防ぐ */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.footer {
    margin-top: auto;
}
/* 要素が少ないとフッターが上がるのを防ぐ ここまで*/
.tag-note {
  font-size: 0.9rem;
  color: #888;
  margin-top: 1rem;
  font-style: italic;
  letter-spacing: 0.5px;
}

input[type="search"], input[type="text"] {
  border: 1px solid #ccc;
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 4px;
  background-color: white;
  color: #333;
}
.search-heading {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.search-count {
  margin-bottom: 1.5rem;
  font-weight: bold;
}

.search-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--mainDark-c);
  padding-bottom: 1rem;
}

.search-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  gap: 10px
}

.search-thumb img {
  width: 150px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.search-content {
  flex: 1;
}

.search-title {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.search-excerpt {
  font-size: 0.95rem;
  line-height: 1.5;
}

.search-not-found {
  font-size: 1.1rem;
  margin-top: 2rem;
}
.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-field {
  padding: 6px 10px;
  font-size: 1rem;
  border: 1px solid var(--mainDark-c);
  border-radius: 4px;
}

.search-submit {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  font-size: 24px;
  display: flex;
  align-items: center;
}
/* 
.search-submit:hover {
  color: #6dbfa3;
} */
.search {
	color: var(--subLight-c);
}
/*-------------------------------------------
投稿のデザイン
-------------------------------------------*/
.design__inner {
	margin-block: 50px;
}
.flex-images {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}
.design-section .img-boder-02 {
	width: 100%;
}
.flex-images_text {
	font-size: 1.4em;
}
.flex-images_bargerlogo,
.flex-images_bargertext {
	width: 50%;
}
@media screen and (max-width: 768px) {
	.flex-images {
		flex-direction: column;
	}
	.flex-images_bargerlogo,
	.flex-images_bargertext {
		width: 100%;
	}
}
/*-------------------------------------------
固定ページ
-------------------------------------------*/
.page-inner {
	margin-block: 50px;
} 

