/*
Theme Name: Kazuya Yamashita Photography
*/

/* -------- Fonts -------- */
@font-face {
font-family: 'AllisonSubset';
src: url('fonts/Allison-Regular-subset.woff2') format('woff2');
font-weight: normal;
font-style: normal;
font-display: swap;
}
/* Medium (500) */

@font-face {
font-family: 'NotoSansJPSubset';
src: url('fonts/NotoSerifJP-Medium-subset.woff2') format('woff2');
font-weight: 500;
font-style: normal;
font-display: swap;
}
/* SemiBold (600) */

@font-face {
font-family: 'NotoSansJPSubset';
src: url('fonts/NotoSerifJP-SemiBold-subset.woff2') format('woff2');
font-weight: 600;
font-style: normal;
font-display: swap;
}
/* -------- 全体 -------- */

*, *::before, *::after {
box-sizing: border-box;
}
html {
font-size: 93.75%;
/* 1rem = 15px */
-webkit-text-size-adjust: 100%;
}
body {
margin: 0;
-webkit-font-smoothing: antialiased;
font-family: 'NotoSansJPSubset', sans-serif;
line-height: 1.5;
font-weight: 500;
font-size: 1rem;
color: #333;
background: #F8F8F8;
}
h1, h2, h3, h4, h5 {
margin: 0;
}
img {
max-width: 100%;
height: auto;
display: block;
}
a {
color: inherit;
text-decoration: none;
}
p {
line-height: 2.1;
text-align: justify;
margin: 0;
}
p+p {
margin-top: 0.6rem;
}
ul {
padding: 0;
}
.container {
width: 92%;
max-width: 1020px;
margin: 0 auto;
}
.container-lg {
width: 92%;
max-width: 1180px;
margin: 0 auto;
}
.section-label {
font-family: 'AllisonSubset', cursive;
font-size: 4.5rem;
color: #e5e5e5;
line-height: 1.1;
font-weight: normal;
}
.section-title {
font-size: 1.3rem;
margin-bottom: 1.5rem;
}
.d-block{
display:block;
}
.d-none {
display: none;
}
.d-md-none {
display: block;
}
.d-lg-none {
display: block;
}
.text-center {
text-align: center;
}
.fw-bold {
font-weight: 600;
}
@media (min-width: 576px) {
.section-label {
font-size: 6.6rem;
}
.d-sm-none {
display: none;
}
}
@media (min-width: 768px) {
.section-label {
font-size: 8.6rem;
}
.section-title {
font-size: 1.5rem;
}
.d-md-none {
display: none;
}
.d-md-block {
display: block;
}
}
/* -------- Hero / Swiper -------- */

.hero {
padding-bottom: 30px;
}
.hero-swiper .swiper-slide img {
width: 100%;
height: 100%;
display: block;
object-fit: cover;
}
.hero-swiper .swiper-slide {
width: 87%;
max-width:1000px;
aspect-ratio: 3 / 2.2;
overflow: hidden;
}
.hero-swiper .swiper-slide::after {
content: "";
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.7);
pointer-events: none;
transition: 0.3s ease;
}
.hero-swiper .swiper-slide-active::after {
background: rgba(0, 0, 0, 0);
}
.hero-swiper .swiper-pagination {
display: flex;
justify-content: center;
gap: 10px;
}
.hero-swiper .swiper-pagination .swiper-pagination-bullet {
width: 40px;
flex: 0 0 auto;
height: 1.5px;
background: rgba(0, 0, 0, 0.1);
overflow: hidden;
opacity: 1;
margin: 0;
border-radius: 0;
}
.hero-swiper .swiper-pagination-bullet .progress-bar {
display: block;
width: 0;
height: 100%;
background: rgba(0, 0, 0, 0.35);
border-radius: inherit;
}
.hero-swiper .swiper-pagination-bullet-active .progress-bar {
animation: heroBulletFill 4s linear forwards;
/* 4s は autoplay.delay と合わせる */
}
@keyframes heroBulletFill {
from {
width: 0;
}
to {
width: 100%;
}
}
.hero-swiper .swiper-pagination {
position: relative;
/* ← これで画像の上の固定から外れる */
bottom: 0;
margin-top: 1.5rem;
/* 画像との距離を調整 */
}
.hero-swiper .swiper-button-next, .hero-swiper .swiper-button-prev {
display: none !important;
}
@media (min-width: 576px) {
.hero {
padding-bottom: 60px;
}
}
@media (min-width: 768px) {
.hero-swiper .swiper-slide {
width: 75%;
aspect-ratio: 3 / 2;
}
}
/* -------- Profile -------- */

#profile {
position: relative;
padding-bottom: 30px;
margin-bottom: 50px;
}
#profile::before {
content: "";
position: absolute;
top: 50px;
width: 90%;
height: 60%;
background: #fff;
z-index: -1;
}
.profile-inner {
display: grid;
align-items: start;
}
.profile-name {
font-weight: 600;
padding-top: 1.5rem;
margin-bottom: 2.5rem;
}
.profile-name span {
font-size: 1.4rem;
display: block;
margin-top: 0.3rem;
}
.profile-description {
margin-bottom: 20px;
}
.profile-history {
margin-top: 3rem;
}
.profile-history li {
display: flex;
flex-direction: column;
margin-bottom: 1rem;
margin-top: 0.2rem;
}

.profile-photo {
max-width: 260px;
margin-left: auto;
}
.profile-photo img {
aspect-ratio: 7 / 8;
object-fit: cover;
margin-top: 3rem;
}
.profile-text {
width: 88%;
}
@media (min-width: 576px) {
#profile {
padding-bottom: 60px;
}
.profile-text {
width: 100%;
}
.profile-name span {
font-size: 1.7rem;
margin-top: 0.5rem;
}
.profile-photo {
max-width: 100%;
}
#profile::before {
top: 70px;
left: 0;
width: 75%;
height: calc(100% - 70px);
}
.profile-inner {
grid-template-columns: minmax(0, 9fr) minmax(0, 6fr);
column-gap: 2rem;
}
.profile-history li {
flex-direction: row;
}
.profile-history .date {
width: 200px;
flex-shrink: 0;
font-size: 1rem;
}
}
@media (min-width: 768px) {
#profile::before {
top: 100px;
height: calc(100% - 100px);
}
.profile-inner {
grid-template-columns: minmax(0, 9fr) minmax(0, 5fr);
column-gap: 4rem;
}
}
/* -------- Gallery -------- */

#gallery {
position: relative;
margin-bottom: 80px;
}
#gallery::before {
content: "";
position: absolute;
top: 40px;
right: 0;
width: 90%;
height: 75%;
background: #fff;
z-index: -1;
}
#gallery h2 {
text-align: right;
}
.gallery-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 5px;
}
.gallery-grid figure {
margin: 0;
overflow: hidden;
aspect-ratio: 3 / 2;
}
.gallery-grid img {
width: 100%;
height: 100%;
object-fit: cover;
transition: all .3s ease-in-out;
cursor: pointer;
}
.gallery-grid img:hover {
opacity: 0.8;
}
#gallery02 {
padding-top: 30px;
margin-top: 30px;
}
.gallery-grid figure.view-more {
aspect-ratio: auto;
border: 1px solid #333;
}
.more-contents {
max-height: 0;
overflow: hidden;
transition: max-height 0.5s ease;
}
.more-contents.open {
max-height: auto;
/* 足りなければ増やす */
}
.hidden {
max-height: 0;
overflow: hidden;
opacity: 0;
transition: max-height 0.5s ease, opacity 0.4s ease;
}
.show {
max-height: auto;
opacity: 1;
}
.gallery-grid figure.view-more {
grid-column: 1 / -1;
margin-top: 1rem;
}
.view-more-btn {
text-align: center;
padding: 0.6rem;
font-size: 0.9rem;
display: block;
background: none;
}
@media (max-width: 767.98px) {
.view-more.has-bg {
background: none!important;
}
}
@media (min-width: 576px) {
#gallery h2 {
position: relative;
bottom: -20px;
text-align: right;
}
#gallery02 {
padding-top: 70px;
}
#gallery::before {
top: 15%;
height: 75%;
}
}
@media (min-width: 768px) {
#gallery {
margin-bottom: 100px;
}
.view-more {
position: relative;
}
.view-more.has-bg::before {
content: "";
position: absolute;
display: block;
inset: 0;
background: rgba(0, 0, 0, 0.6);
z-index: 1;
transition: all .3s ease-in-out;
}
.view-more.has-bg:hover::before {
background: rgba(0, 0, 0, 0.5);
}
.view-more-btn {
position: relative;
z-index: 2;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
padding-top: 0;
font-size: 1rem;
}
.gallery-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.gallery-grid figure.view-more {
grid-column: auto;
margin-top: 0rem;
}
}
@media (min-width: 992px) {
.gallery-grid {
gap: 10px;
}
}
/* -------- News -------- */

#news {
position: relative;
padding-bottom: 30px;
}
#news::before {
content: "";
position: absolute;
top: 40px;
width: 100%;
height: calc(100% - 40px);
background: #fff;
z-index: -1;
}
.news-list{
border-bottom: 1px dotted #ccc;
padding: 1rem 0;
display: flex;
flex-direction: column;
gap: 0.3rem;
}
.date {
font-size: 0.95rem;
}
.news-right {
flex: 1;
}
h3.news-title{
font-size:1rem;
font-weight:400;
margin-top:0.3rem;
transition: opacity 0.3s ease;
cursor: pointer;
}
h3.news-title:hover{
opacity:0.7;
}
.news-content {
display: none;
padding-top: 1.2rem;
animation: fadeIn 0.3s ease;
}

.news-content a{
text-decoration:underline;
}

.wp-block-image{
max-width:600px;
}

/* optional fade animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (min-width: 576px) {
#news {
padding-bottom: 70px;
}
#news::before {
top: 60px;
height: calc(100% - 60px);
}
h3.news-title{
margin-top:0rem;
}
.news-list {
padding: 1.5rem 0;
flex-direction: row;
gap: 1.5rem;
}
.news-list .date {
width: 120px;
flex-shrink: 0;
font-size: 1rem;
}
}
@media (min-width: 768px) {
h3.news-title {
position: relative;
padding-right: 2rem; /* アイコン分の余白 */
}
}
.toggle-icon {
position: absolute;
top: 0.6rem;
right: 0;
transform: translateY(-50%);
width: 1rem;
height: 1rem;
pointer-events: none;
}
.icon-minus {
display: none;
}
.news-list.open .icon-plus {
display: none;
}
.news-list.open .icon-minus {
display: inline-block;
}


/* -------- Instagram -------- */

#instagram {
padding: 80px 0 100px;
}
#instagram h2 {
text-align: center;
}
.insta-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.insta-grid figure {
margin: 0;
aspect-ratio: 3 / 3;
}
.insta-grid figure img {
width: 100%;
height: 100%;
object-fit: cover;
}
@media (max-width: 767.98px) {
#instagram .container {
width: 100%;
}
}
@media (min-width: 576px) {
#instagram {
padding: 120px 0;
}
}
@media (min-width: 768px) {
.insta-grid {
display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 0.5rem;
}

}
/* -------- Contact -------- */

#contact h2, #contact h3, #contact p {
text-align: center;
}
#contact h2 {
margin-bottom: -30px;
}
#contact .container {
background: #fff;
padding: 50px 0 60px;
}
#contact p a {
text-decoration: underline;
}
.contact-line {
background: #F8F8F8;
padding: 2rem 1.5rem;
margin: 2rem 0 4rem;
display: grid;
grid-template-columns: 1fr;
gap: 1.5rem;
justify-content: center;
align-items: center;
}
.line-qr {
width: 100px;
display: block;
margin: 0 auto;
}
.sns-btn {
display: inline-block;
border-radius: 1px;
text-decoration: none;
background: #555;
transition: 0.25s;
display: flex;
align-items: center;
justify-content: center;
height: 48px;
width: 100%;
max-width: 250px;
color: #fff;
border-radius: 2px;
gap: 0.5rem;
margin: 0 auto 0.5rem;
}
.sns-btn:hover {
background: #777;
color: #fff;
}
.sns-btn svg{
    width:23px;
}
.sns-btn svg path {
    fill: currentColor;
}

.inner {
max-width: 680px;
margin: 0 auto;
}
#contact form {
padding-top: 40px;
}
.form-row {
margin-bottom: 1.7rem;
}
.form-row label {
display: block;
font-weight: 600;
margin-bottom: 0.5rem;
}
.form-row input, .form-row textarea {
width: 100%;
padding: 0.8rem 1rem;
border-radius: 1px;
border: 1px solid #ddd;
font-family: inherit;
font-size: 1.1rem;
}
.privacy-note {
font-size: 0.94rem;
line-height: 1.9;
margin-bottom: 2rem;
}
.form-submit {
text-align: center;
margin-top: 2rem;
}
.form-submit button {
height: 48px;
width: 280px;
border: none;
border-radius: 2px;
background: #555;
color: #fff;
font-size: 1rem;
font-family: 'NotoSansJPSubset', sans-serif;
cursor: pointer;
transition: 0.25s;
}
.form-submit button:hover {
background: #777;
}
@media (max-width: 767.98px) {
#contact .container {
width: 100%;
}
#contact .container .inner {
padding: 0 1rem;
}
}
@media (min-width: 576px) {
#contact h2 {
margin-bottom: -40px;
}
#contact .container {
padding: 80px 0 80px;
}
}
@media (min-width: 768px) {
#contact h2 {
margin-bottom: -50px;
}
.contact-line {
background: #F8F8F8;
padding: 3rem;
margin: 3rem 0 5rem;
display: grid;
grid-template-columns: auto 250px;
column-gap: 1.5rem;
justify-content: center;
align-items: center;
}
}
/* -------- フッター -------- */

.h1 {
position: relative;
}
h1 {
position: absolute;
bottom: 55px;
text-align: center;
font-size: 0.8rem;
width: 100%;
font-weight: 400;
}
footer {
padding: 50px 0 10px;
}
.footer-sns {
display: flex;
justify-content: center;
gap: 1.5rem;
}
.footer-sns a svg {
width: 24px;
height: 24px;
}
.footer-copy {
padding-top: 70px;
font-size: 0.8rem;
text-align: center!important;
}
.footer-copy span {
font-size: 1.3rem;
vertical-align: middle;
display: inline-block;
padding-bottom: 0.1rem;
}
@media (min-width: 576px) {
.footer-copy {
padding-top: 50px;
}
}
/* -------- ヘッダー -------- */

header {
padding: 0 1.2rem;
}
.site-header {
position: sticky;
top: 0;
z-index: 1000;
background: #F8F8F8;
}
.site-header.is-menu-open {
background-color: transparent;
/* メニューOPEN中は背景を透明に */
}
.header-inner {
display: flex;
align-items: center;
height: 60px;
}
.logo {
font-family: 'AllisonSubset', cursive;
font-size: 2rem;
}
.site-header.is-menu-open .logo {
color: #fff;
}
/* ハンバーガーボタン表示 */

.hamburger {
display: inline-flex;
flex-direction: column;
justify-content: center;
gap: 11px;
/* 隙間 */
width: 30px;
height: 30px;
/* 全体の高さ */
margin-left: auto;
background: transparent;
border: none;
padding: 0;
cursor: pointer;
position: relative;
z-index: 1100;
}
.hamburger span {
display: block;
width: 30px;
/* 全て同じ幅 */
height: 1px;
/* 少し太さを持たせる方が×が綺麗 */
background: #000;
transition: opacity 0.35s ease-in-out, transform 0.3s ease, background-color 0.3s ease;
transform-origin: center;
/* ★ 中央を支点に */
}
/* OPEN中は白にする */

.site-header.is-menu-open .hamburger span {
background-color: #fff;
}
/* X状態 */

.hamburger.is-active span:nth-child(1) {
transform: translateY(12px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
transform: translateY(-12px) rotate(-45deg);
}
.header-sns {
display: flex;
gap: 2rem;
margin-top: 2rem;
}
.header-sns svg path {
fill: #fff;
}
.main-nav {
display: none;
margin: 0;
}
.main-nav a{
transition: opacity 0.3s ease;
}
.main-nav a:hover{
opacity: 0.7;
}
.main-nav.is-open {
display: flex;
flex-direction: column;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.9);
justify-content: center;
align-items: center;
gap: 1.5rem;
z-index: 900;
/* ヘッダー内のハンバーガーより背面 */
}
.main-nav.is-open a {
color: #fff;
font-size: 1.5rem;
text-decoration: none;
letter-spacing: 0.08em;
}
.header-sns a svg {
width: 26px;
height: 26px;
}

@media (min-width: 768px) {
.header-inner {
height: 82px;
}
.logo {
font-size: 2.6rem;
}
}
@media (min-width: 992px) {
/* デフォルトはPCでは非表示 */
.hamburger {
display: none;
}
header {
padding: 0 2.5rem;
}
.header-sns svg path {
fill: #000;
}
.main-nav {
display: flex;
gap: 2rem;
align-items: center;
margin-left: auto;
}
.header-sns {
margin-top: 0rem;
gap: 1.3rem;
}
.header-sns a svg {
width: 20px;
height: 20px;
}
}
/* -------- page -------- */
.page-pd{
padding-top:90px;
}
#sns-link div{
margin-bottom:2rem;
}


/* 白オーバーレイ（bodyの擬似要素） */

body::before {
content: "";
position: fixed;
inset: 0;
background: #fff;
opacity: 1;
/* ← 最初は真っ白 */
pointer-events: none;
z-index: 9999;
transition: opacity 1s ease;
/* ← フェード速度 */
}
/* 読み込み後に透明に */

body.is-loaded::before {
opacity: 0;
}
/* 初期状態：ちょい下＆透明 */

.js-fade-up {
opacity: 0;
transform: translateY(20px);
transition: opacity 0.7s ease, transform 0.7s ease;
will-change: opacity, transform;
}

/* 遅延用（必要なら秒数は調整OK） */
.js-fade-up.delay {
  transition-delay: 0.3s;
}
/* 表示状態 */

.js-fade-up.is-inview {
opacity: 1;
transform: translateY(0);
}
/* ライトボックス本体 */

#lightbox-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.93);
display: flex;
justify-content: center;
align-items: center;
z-index: 99999;
opacity: 0;
pointer-events: none;
transition: opacity .4s ease;
}
#lightbox-overlay.is-active {
opacity: 1;
pointer-events: auto;
}
/* 画像とコントロールを縦並びに */

.lb-content {
display: flex;
flex-direction: column;
align-items: center;
gap: 16px;
}
/* 拡大画像 */

.lb-img {
max-width: 90vw;
max-height: 85vh;
/* 少し余白を作ってボタンが見えるように */
object-fit: contain;
}
/* 下に並ぶ Next / Prev */

.lb-controls {
display: flex;
align-items: center;
justify-content: center;
gap: 24px;
}
.lb-controls svg {
width: 28px;
height: 28px;
}
.lb-controls button {
background: none !important;
border: none;
padding: 0;
color: #777;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
/* ← iPhoneのグレー無効 */
}
.lb-controls button:hover {
color: #fff;
}
.lb-controls button:active, .lb-controls button:focus, .lb-controls button:focus-visible {
background: none !important;
outline: none !important;
box-shadow: none !important;
}
.lb-close {
position: absolute;
top: 20px;
right: 20px;
cursor: pointer;
padding: 12px;
color: #777;
-webkit-tap-highlight-color: transparent;
}
.lb-close svg {
width: 28px;
height: 28px;
pointer-events: none;
}