/*  ========================
    *********  web page additional css  *********
=============================================  */

/*dmから引用*/
.box_type01__cta {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	width: fit-content;
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	transition: color var(--transition-fast), border-color var(--transition-fast);
	color: var(--black);
	font-size: var(--font-size-14);
}

.box_type01__cta:hover {
	color: var(--primary-color);
	border-color: var(--primary-color);
}

.box_type01__arrow {
	margin-left: 0.25em;
	transition: transform var(--transition-fast);
}

.box_type01__cta:hover .box_type01__arrow {
	transform: translateX(4px);
}

/* .page__sub .wrap__w800 .wdt-fx {
	width: 104%;
} */

html {
    scroll-behavior: smooth;
}

.page__sub {
	overflow-x: hidden;
}

.sub_sec .inner .wide {
	justify-content: center;
}

.box_area .box01__item .flex .txtbox-follow {
	margin-left: auto;
}

.box_area .box01__item .flex .txtbox-follow:hover .box_type01__arrow {
    fill: #950006;
}

.area-web-all {
    background-color: #fcfcfa;
    width: 100%;
	margin-top: 128px;
	padding: 128px 0;
}

.area-web-all-top {
    display: flex;
	justify-content: center;
	padding-bottom: 56px;
}

.box01__item .flex .flex-header {
	font-size: 0.87rem;
	font-weight: normal;
	letter-spacing: 1px;
	margin-bottom: -24px;
}

.box01__item .flex .textbox {
	color: #919191;
	font-weight: lighter;
	font-size: 0.87rem;
	letter-spacing: 1px;
	margin-top: -24px;
}

.area-web-all .web_dm {
	margin-top: 105px;
	display: flex;
	justify-content: center;
}

.box_area  .box01__item .flex .sp-only {
	display: none;
}

.box01__item {
    display: flex;
    flex-direction: column;
    gap: var(--gutter-4x);
}


/* int_studio */

.int_studio {
	margin-top: 128px;
	margin-bottom: 128px;
}

.int_studio .page__ttl .sub_ttl {
    align-self: flex-start;
    padding-left: 72px;
}

.int_studio .boxx_area {
	margin-bottom: var(--gutter-5x);
	padding: 108px 0;
}

.box_area {
	gap: 80px var(--gutter-4x);
	padding: 0 var(--gutter-2x);
}

.int_studio .page__ttl picture {
    padding: 0 var(--gutter-2x);
}
.box01__item img {
	border-radius: 0;
}


/* model area */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow-y: scroll;
	/* IE Edge */
	-ms-overflow-style: none;
  	/* Firefox */
  	scrollbar-width: none;
}
/* chrome safari */
.modal-container::-webkit-scrollbar{
  display:none;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-container {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; 
}


.modal-mega {
    width: 860px;
    height: auto;
}

.modal-kitchen {
    width: 860px;
    height: auto;
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 90px;
    height: 90px;
    background-color: #000;
    border: none;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    transition: background-color 0.2s ease, opacity 0.5s ease;
    border-radius: 0 0 0 16px;
    overflow: hidden;
    opacity: 1;
}

.modal-close::before,
.modal-close::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: white;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    transform-origin: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-close-text {
    color: white;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 3px;
    margin-top: 48px; 
    transition: opacity 0.3s ease;
    text-transform: lowercase;
    opacity: 1;
    pointer-events: none;
    z-index: 1;
}

.modal-close.closing {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.modal-close.closing::before,
.modal-close.closing::after {
    transform: translate(-50%, -50%) rotate(0deg) scale(0.8);
    opacity: 0;
}

.modal-close.closing .modal-close-text {
    opacity: 0;
}

.modal-content {
    padding: 112px 120px !important;
    width: 100%;
}

.modal-body img {
    display: block;
    width: 100%;
    margin: 0 auto;
    height: auto;
}

.modal-body .modal-topimg img {
    width: 50%;
}

.modal-body .modal-roomimg img {
    width: 59%;
}

.modal-bottomimgs {
    display: flex;
    gap: 48px;
    margin-top: 32px;
}

.modal-bottomimgs > div {
    flex: 1;
}

.modal-text,
.modal-bottomtext {
    margin: 48px 0;
    text-align: left;
}

.modal-bottomimgs .modal-bottomtext p {
    margin-top: -32px;
}


.modal-body .blanc-top img {
    width: 74%;
}

.blanc-vw-padd {
    padding: 110px 136px !important;
    width: 100%;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {

    .modal-container {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; 
}

    .modal-container {
        max-width: 100%;
        max-height: auto;
        margin: 10px;
    }

    .modal-mega,
    .modal-kitchen {
        width: 100%;
        height: auto;
        min-height: 80vh;
        max-height: 95vh;
    }

    .modal-close {
        width: 75px;
        height: 75px;

    }

    .modal-close::before,
    .modal-close::after {
        width: 50px;
    }


    .modal-close-text {
        font-size: 12px;
    }

    .modal-content {
    padding: 96px 40px !important;
    width: 100%;
}

.modal-body .modal-topimg img {
    width: 100%;
}

.modal-body .modal-roomimg img {
    width: 100%;
}

.modal-bottomimgs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

}


.modal-open {
	/* overflow: hidden; */
}

@media (prefers-reduced-motion: no-preference) {
    .modal-overlay {
        transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .modal-container {
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}

@media (prefers-reduced-motion: reduce) {
    .modal-overlay,
    .modal-container,
    .modal-close::before,
    .modal-close::after {
        transition: none;
    }
    
    .modal-container {
        transform: none;
    }
    
    .modal-overlay.active .modal-container {
        transform: none;
    }
}


/*  photography section */

.photo-sub {
    padding-bottom: 48px;
}

.photography-section {
    display: block;
}

.photography-section .box01__item:first-of-type .flex {
    align-items: flex-start; 
}

.photography-section .box01__item .flex p img {
    width: 1.6rem;
}

.photography-section .flex > p {
    display: flex;
    align-items: center;
    gap: 0.5rem; 
}

.photography-section .book-icon img {
    width: 1.6rem;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

.photography-section .box01__item {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 80px;
}

.photography-section .flex {
    flex: 1 1 40%;
    min-width: 280px;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    flex-wrap: nowrap;
}

.photography-section .txtbox {
    margin-top: 0;
    flex: 1;
}

.photography-section .image-group {
    flex: 1 1 55%;
    display: grid;
    width: 100%;
}

.photography-section .image-group.row-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.photography-section .image-group.row-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.photography-section .image-group img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius-small); 
}

.box_area.photography-section {
    position: relative;
    z-index: 1; 
}

.box_area.photography-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw; 
    height: 100%;
    background-color: #fcfcfa;
    z-index: -1;
    transform: translateX(-50%);
    left: 50%;
}

.box_area.photography-section .page__ttl {
    padding: 8rem 0 3.5rem 0;
}

@media (max-width: 1100px) {
    .photography-section .box01__item {
        flex-direction: column;
    }

    .photography-section .image-group.row-2,
    .photography-section .image-group.row-3 {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .photography-section .flex {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }


}

.box_type01__cta {
	align-items: flex-start;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .portfolio {
        padding: 40px 15px;
    }

    .main-title {
        font-size: 24px;
        margin-bottom: 40px;
    }

    .category {
        margin-bottom: 60px;
    }

    .image-grid,
    .image-grid.three-cols {
        flex-direction: column;
        gap: 20px;
    }

    .image-item.large,
    .image-item.small {
        width: 90%;
        height: 100%;
        margin: 0 auto;
    }

    .category-title {
        font-size: 15px;
    }

    .category-description {
        font-size: 13px;
        margin-bottom: 25px;
    }
}


/*  ========================
    *********  SP Responsive  *********
=============================================  */

@media screen and (max-width: 768px) {
	.sub_sec .inner .wide {
		justify-content: flex-start;
	}

    .box_area img{
        width: 100%;
    }

	.area-web-all {
        background-color: #fcfcfa;
        width: 100%;
        margin-top: 64px;
        padding: 80px 0;
	}

	.area-web-all .area-web-all-top h2 {
		display: flex;
		justify-content: center;
	}

	.area-web-all .box01__item .flex {
		margin-bottom: 48px;
	}

	.area-web-all-top {
    padding-bottom: 32px;
}

	.area-web-all .web_dm {
    margin-top: 32px;
}

	.box_area  .box01__item .flex .textbox {
		font-size: 0.81rem;
}

	.area-web-all .web_dm img {
		width: 80.53%;
		display: flex;
		margin: 0 auto;
}


.box_area  .box01__item .flex .sp-only {
		display: inline;
}

.area-web-all .box_area {
	display: block;
	grid-template-columns: 1fr;
	width: 90%;
	gap: var(--gutter-6x);
}

.int_studio .page__ttl .sub_ttl {
    display: flex;
    flex-direction: column;
    text-align: center;   
    align-items: center;
    padding-left: 0;
    margin: 0 auto;
}

.int_studio {
    margin-top: 64px;
    margin-bottom: 64px;
}

.box_area.photography-section .page__ttl {
    padding: 5rem 0 2.5rem 0;
}

}




