:root {
    --text-gradient: linear-gradient(102.46deg, #3A281A 0%, #855732 50%, #3A281A 100%);
    --main-color: #F3E2B0;
    --font-color: #fff;
    --main-font: "Zen Old Mincho", serif;
    --sub-font: "Noto Sans JP", sans-serif;
    --text-shadow: 0px 4px 4px rgb(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
    line-height: 1.5;
}

p {
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

main {
    background: url(bg-tex2.png), #1f0d00;
    background-size: min(700%, 1000px);
    padding: 0 0 2em;
}

body {
    margin: 0;
    font-family: var(--main-font);
    font-feature-settings: "palt";
    letter-spacing: .05em;
}

a {
    display: block;
}

img {
    width: 100%;
    min-width: 0;
    display: block;
    object-fit: cover;
}

.bp {
    display: inline-block;
}

.btn-1 {
    display: block;
    width: min(80%, 400px);
    line-height: 1.4em;
    margin: 1em auto;
    padding: 10px 30px;
    border: 1px solid var(--main-color);
    color: var(--main-color);
    text-decoration: none;
    height: fit-content;
    position: relative;
    background: rgb(0 0 0 / .3);
    transition: transform .2s;
}

.btn-1:hover {
    transform: scale(.95);
}

.btn-1::after {
    position: absolute;
    content: '';
    width: 10px;
    aspect-ratio: 1 / 1;
    border-top: solid 1px var(--main-color);
    border-right: solid 1px var(--main-color);
    transform: rotate(45deg);
    bottom: 16px;
    right: 16px;
}

.btn-1 p {
    font-size: 12px;
    padding-top: 10px;
}

.btn-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(100%, 400px);
    flex-basis: 50%;
    padding: 16px 0;
    margin: 1em auto;
    font-family: var(--sub-font);
    color: #ffffff;
    background: var(--text-gradient);
    text-decoration: none;
    border-radius: 100vh;
    box-shadow: 4px 4px 8px rgb(0 0 0 / .2);
    transition: transform .2s;
}

.btn-2:hover {
    transform: scale(1.05);
}

.gradient-text {
    margin: 0;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    font-weight: 500;
}

#local h2,
#spots h2,
#collection h2 {
    width: 100%;
    max-width: 320px;
    margin: 80px auto 40px;
    padding: 16px 0px;
    text-align: center;
    font-size: 18px;
    letter-spacing: 0.1rem;
    font-weight: 600;
    color: var(--main-color);
    background: linear-gradient(102.46deg, #3A281A 0%, #5B422E 50%, #3A281A 100%);
    border: 1px solid #3A281A;
}

/******

    FV

******/

#fv {
    height: 100vh;
    max-height: 375px;
    background-image: url(fv.jpg);
    background-size: min(200%, 700px);
    background-repeat: no-repeat;
    background-position: 65% 60%;
    position: relative;
}

#fv .product {
    display: flex;
    gap: 24px;
    width: fit-content;
    margin: 0 auto 6px;
    font-size: clamp(16px, 1.2vw, 18px);
}

#fv .name {
    width: 100%;
    padding: 6px 0;
    text-align: center;
    font-size: clamp(32px, 3vw, 40px);
    border-top: 1px solid #855732;
    border-bottom: 1px solid #855732;
}

#fv .catch {
    width: fit-content;
    max-width: 700px;
    margin: auto auto 0;
    position: absolute;
    height: fit-content;
    bottom: 0;
    left: 0;
}

#fv .catch p.main {
    width: fit-content;
    font-size: clamp(22px, 3.5vw, 36px);
    margin: 0 .5rem .5em;
    line-height: 1.5;
    padding: 10px 20px;
    background: linear-gradient(90deg, rgba(26, 18, 8, 0.88), rgba(58, 40, 26, 0.88), rgba(26, 18, 8, 0.88));
    border: 1px solid #FFD98E;
    border-radius: 4px;
    color: #FFE9B8;
    text-shadow: 2px 2px 8px rgb(0, 0, 0, 0.9), 0 0 20px rgba(255, 217, 142, 0.35);
    box-shadow: 0 4px 16px rgb(0, 0, 0, 0.5);
}

#fv .catch p.main b {
    font-size: 1.3em;
    letter-spacing: .07em;
}

#fv .catch p.animation{
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.5s ease-out forwards;
}

@keyframes fadeUp{
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

#fv .catch p.sub {
    margin: 0 auto;
}

#fv .catch p.sub span {
    display: block;
    width: min(80%, 300px);
    text-align: center;
    font-size: clamp(16px, 3vw, 20px);
    color: #fff;
    margin: .5em auto;
    padding: 4px 16px;
    line-height: 1;
    background: #355F3B;
    box-shadow: 6px 6px 4px rgb(0, 0, 0, 1);
}

@media (min-width: 576px) {
    #fv .catch {
        margin: auto auto 0 0;
    }
}

@media (min-width: 768px) {
    #fv {
        height: 100vh;
        max-height: 800px;
        background-size: cover;
        background-position: 65% top;
    }

    #fv .catch {
        padding: 1em;
    }

    #fv .catch > p {
        margin: 2em 0;
    }
}

/******

    about

******/
#about {
    padding: 0 10px;
    max-width: 1100px;
}

@media (min-width: 768px) {
    #about {
        display: flex;
        gap: 32px;
        margin: 2em auto;
    }
    #about .project {
        flex-shrink: 0;
        flex-grow: 1;
    }
}
@media (min-width: 1000px) {
    #about {
        gap: 4em;
    }
}
/** project **/

#about .project {
    color: var(--main-color);
    margin: 1em auto;
}

#about .project .catch {
    text-align: center;
}

/*
.project h1::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    margin: 0 0 20px;
    background: var(--main-color);
    box-shadow: var(--text-shadow);
}*/

.project hgroup {
    margin: 4em 0;
    text-shadow: var(--text-shadow);
}

.project h1 {
    margin: 0.5em 0;
    text-align: center;
}

.project h1 span {
    font-size: clamp(24px, 4vw, 40px);
    line-height: 1.2;
}

.project hgroup p {
    font-size: clamp(16px, 1.2vw, 20px);
    text-align: center;
    letter-spacing: 10%;
    max-width: fit-content;
    margin: 0 auto;
}

/* .project hgroup p {
    display: flex;
    flex-flow: row nowrap;
    font-size: 20px;
    font-size: 20px;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.project hgroup p::before,
.project hgroup p::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: var(--main-color);
    box-shadow: var(--text-shadow);
}

.project hgroup p span {
    flex-shrink: 0;
} */

@media (min-width: 768px) {

    #about .project {
        margin: 0 auto;
        flex-basis: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 32px 0;
    }

    .project hgroup {
        margin: 0;
    }

    .project h1::before {
        margin: 0 0 36px;
    }

    .project h1 {
        margin: 0 0 1em 0;
    }
}

/** access **/
.access {
    max-width: 640px;
    margin: 0 auto;
    
}

.access-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "karuisawa"
        "tokyo"
        "kousoku";
}

.access-list li {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background: var(--text-gradient);
}

.access-list li:last-child {
    border-top: 1px dashed #ffffff;
    align-items: flex-start;
}

.access-list .karuisawa {
    --text-gradient: linear-gradient(180deg, #FFFFFF 99.99%, #999999 100%);
    grid-area: karuisawa;
    background: linear-gradient(90deg, #355F3B 0%, #4D9357 50%, #355F3B 100%);
    border-bottom: 1px dashed #FFFFFF;
}

.access-list .karuisawa p {
    display: block;
    margin: 0 auto;
}

.access-list .tokyo {
    grid-area: tokyo;
}
.access-list .kousoku {
    grid-area: kousoku;
}

.access-list .tokyo p,
.access-list .kousoku p {
    margin: 0;
    word-break: keep-all;
    color: #ffffff;
    text-align: left;
    --text-gradient: linear-gradient(180deg, #FFFFFF 66.25%, #FFD7B9 82.76%), #FFFFFF;
}

.access-list li:last-child p {
    margin: 0 auto;
}

.access-list li .inner {
    width: 90%;
    text-align: center;
    margin: auto;
}

.access-list li .big {
    font-size: clamp(32px, 3vw, 40px);
    word-break: break-all;
}

.access-list li .differ {
    font-size: clamp(40px, 3vw + 0.8rem, 60px);
    --text-gradient: linear-gradient(125.53deg, #DCBE69 10.94%, #FBC42A 46.71%, #FFE59A 65.58%, #766638 92.71%);
}

#about .access .catch-list {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    padding: 0;
    margin: 2em auto;
    list-style: none;
}

#about .access .catch-list li {
    width: 100%;
    padding: 8px;
    margin-bottom: 2px;
    text-align: center;
    color: #ffffff;
    font-size: clamp(16px, 1.2vw, 18px);
    font-weight: 500;
    line-height: 1.2;
    background: linear-gradient(90deg, #92783E 0%, #B5A371 50%, #A48E58 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#about .access .catch-list li:nth-of-type(2) {
    grid-column: 2 / 4;
}

#about .access .catch-list li:nth-of-type(4) {
    grid-column: 1 / 3;
}

#about .access .catch-list li:nth-of-type(5) {
    grid-column: 3 / 5;
}

#about .access .catch-list li:last-child {
    margin-bottom: 0;
}

@media (min-width:600px) {
    .access-list {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        grid-template-areas:
            "karuisawa karuisawa"
            "tokyo kousoku";
    }

    .access-list li:last-child {
        border-top: 0;
        border-left: 1px dashed #ffffff;
        align-items: flex-start;
    }

    .access-list li:last-child p {
        margin: 0;
    }
}

@media (min-width: 768px) {
    .access {
        flex-basis: 50%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    #about .access .catch-list {
        margin: 2em auto 0 auto;
        height: 50%;
    }
    
    #about .project .catch-list li {
        padding: 8px 20px;
        height: 100%;
    }
}

.btn-1.intro {
    margin: 1em auto;
    padding: 16px;
    background-color: #2B1C13;
    line-height: 1.4em;
    position: relative;
    text-align: center;
    width: 92%;
}

.btn-1.intro::after {
    width: 15px;
    bottom: 40px;
    right: 18px;
}

@media (min-width: 768px) {

    .access .btn-1 {
        width: 100%;
        font-size: 1.2em;
        margin: 16px auto 0 auto;
    }

    .access .btn-1::after {
        bottom: 54px;
        right: 18px;
    }

    .access .btn-1 p {
        font-size: 16px;
        margin-top: 12px;
    }
}

/******

    property

******/
#property {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 10px;
}

#property ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#property ul li {
    margin: 1em;
}

#property ul li a {
    position: relative;
    color: var(--main-color);
    text-decoration: none;
    padding: 10px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.0144) 0%, rgba(0, 0, 0, 0.048) 50%, rgba(0, 0, 0, 0.042) 100%), linear-gradient(94.13deg, rgba(0, 15, 8, 0.85) 0%, rgba(0, 15, 8, 0.5) 50%, #000F08 100%);
    background-size: cover;
}

#property ul li:nth-child(1) a {
    background-image: url(k5/k5-1.jpg);
    background-position: 50% 46%;
}

#property ul li:nth-child(2) a {
    background-image: url(k7/k7-1.jpg);
    background-position: 50% 30%;
}

#property ul li .border-wr {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--main-color);
    padding: 10px;
    height: 260px;
    background: rgb(0 0 0 / .4);  
}

#property h2 {
    margin: 0;
    line-height: 1.4em;
    text-shadow: var(--text-shadow);
}

#property .inner {
    margin: 2em 0 0;
}

#property .inner .desc {
    display: none;
    margin-top: 1em;
    line-height: 200%;
    letter-spacing: -1px;
    color: var(--font-color);
    text-shadow: var(--text-shadow);
}

#property ul li .btn-1 {
    background: rgba(20, 35, 28, 0.8);
    margin: 0 auto;
    bottom: 12px;
    width: 100%;
}

#property ul li .btn-1::after {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

#property ul li .btn-1:hover {
    transform: scale(1);
}

#property ul li a:hover .btn-1 {
    transform: scale(.95);
}

/* 未公開のカードのcss */

#property ul li.unpublished p.intro {
    display: block;
    width: fit-content;
    padding: 0 1em;
    margin-bottom: 8px;
    border: solid 1px var(--main-color);
    color: var(--main-color);
}

#property ul li.unpublished {
    position: relative;
    z-index: 10;
}

#property ul li.unpublished a .btn-1 {
    text-align: center;
}

#property ul li.unpublished a:hover .btn-1 {
    transform: unset;
}

#property ul li.unpublished a .btn-1::after {
    display: none;
}

@media (min-width: 600px) {
    #property ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2em;
    }
    
    #property ul li {
        flex-basis: calc(50% - 1em);
        margin: 0;
    }

    #property ul li .border-wr {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        padding: 10px 24px;  
    }

    #property .inner .desc {
        margin-top: 2em;
        letter-spacing: 3px;
    }

    #property ul li .btn-1 {
        padding: 16px 40px;
    }
}

/******

    LOCAL

******/
#local {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 10px;
}

#local .box {
    color: var(--font-color);
    margin: 50px 0;
}

#local .box h3 {
    display: flex;
    align-items: center;
    gap: 30px;
    word-break: keep-all;
    font-weight: 400;
    letter-spacing: 0.1rem;
    color: #D6AE58;
}

#local .box h3::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: #D6AE58;
}

#local .box ul > li {
    font-size: 18px;
    margin: 20px 0;
    line-height: 1.2;
    letter-spacing: 0.1rem;
}

@media (min-width:500px) {
    #local .box ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    #local .box ul > li {
        margin: 0;
    }
}

/******

    観光案内

******/


/* スライダー */

.slider-container {
    overflow: hidden;
    width: 100%;
    position: relative;
	padding-left: 10px;
}

@media (min-width:360px) {
	.slider-container {
		padding-left: 30px;
	}
}

.slider {
    display: flex;
    gap: 30px;
    transition: transform 1s ease-in-out;
    width: calc((300px + 30px) * (totalSlides + 2)); /* クローン分を含める */
	cursor: pointer;
}

.slider li {
    list-style: none;
    color: white;
    min-width: 300px;
    width: 300px;
    transition: transform .2s;
}

.slider li:hover {
    transform: scale(0.98);
}

.slider li .img-wr::before {
	content: '';
	position: absolute;
	width: 32px;
	height: 32px;
	bottom: 8px;
	right: 8px;
	background: url(cross.svg);
	background-size: contain;
}

.slider li .img-wr {
    aspect-ratio: 6 / 7;
	position: relative;
    margin-bottom: 16px;
    box-shadow: var(--text-shadow);
}

.slider li .img-wr img {
    background-color: #ededed;
    height: 100%;
	object-fit: cover;
}

.slider li > p {
    line-height: 1.4em;
}

.popup {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #2B1C13;
    color: white;
	padding: 20px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
	z-index: 1000;
    max-height: 80vh;
	overflow: auto;
	overscroll-behavior-y: contain;
	width: min(85%, 1000px);
}

.popup-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 999;
}

.popup-overlay .close {
	width: 44px;
    position: absolute;
    content: "";
    top: 5%;
    right: 2%;
    transform: rotate(45deg);
    cursor: pointer;
}

.popup img {
    margin: 0 auto;
	object-fit: contain;
	width: min(50%, 500px);
}

.popup .popup-content hgroup {
	margin: 20px 0;
	line-height: 1.4;
}

.popup .popup-content hgroup h3 {
	font-size: 28px;
    padding: 0 .5em .2em;
    border-bottom: solid 1px white;
    margin-bottom: .5em;
    width: fit-content;
}

.popup .popup-content hgroup p {
	font-size: 20px;
}


@media (min-width: 768px) {

    .popup-overlay .close {
		top: 12%;
        right: 7%;
	}

	.journal .popup {
		padding: 40px 20px;
	}

	.journal .popup .popup-inner {
		display: flex;
        gap: 16px;
	}
}


/******

    collection

******/
#collection {
    max-width: 1100px;
    margin: 2em auto;
    padding: 0 10px;
}

#collection ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
    padding: 0;
    gap: 24px 12px;
    color: var(--main-color);
}

#collection ul li img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

#collection .btn-1 {
    margin: 1em auto;
    padding: 16px;
    background-color: #2B1C13;
    line-height: 1.4em;
    position: relative;
    text-align: center;
    width: 92%;
}

#collection .btn-1::after {
    width: 15px;
    bottom: 40px;
    right: 18px;
}

@media (min-width: 500px) {
    #collection .btn-1::after {
        bottom: 30px;
    }
}

@media (min-width: 768px) {
    #collection .btn-1 {
        width: 100%;
        padding: 20px;
        font-size: 1.2em;
    }

    #collection .btn-1::after {
        bottom: 46px;
        right: 18px;
    }

    #collection .btn-1 p {
        font-size: 16px;
        margin-top: 12px;
    }
}


/******

    HEADER

******/
header {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 100;
}

header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    padding: 10px;
    margin: 0 auto;
}

header .inner img {
    max-width: 60px;
}

header .inner .contact {
    display: none;
    width: min(90%, 300px);
    text-align: center;
    padding: 10px 30px;
    background: rgb(255 255 255 / 50%);
    border: 1px solid #000000;
    backdrop-filter: blur(2px);
    border-radius: 100vh;
    text-decoration: none;
    color: #000000;
}

@media (min-width: 768px) {
    header {
        position: fixed;
    }

    header .inner .contact {
        display: block;
    }
}

/******

    FOOTER

******/

footer {
    font-family: var(--main-font);
    /* background-image: url(back.png); */
    background-color: #000000;
}

footer .foot-wr {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 10px;
}

footer a {
    text-decoration: none;
}

footer .foot-main,
footer .foot-copy {
    display: flex;
    justify-content: space-between;
    color: #fff;
    margin: 2em auto;
}

footer .foot-main .ac-box img {
    max-width: 100px;
}

footer .foot-main .ac-box p {
    margin-top: 1em;
    line-height: 1.6;
}

footer .foot-main .ac-box ul {
    margin: 0;
}

footer .foot-main .ac-box a.information {
    color: var(--font-color);
    text-decoration: underline;
}

footer .other-list {
    padding: 0;
    list-style: none;
    display: flex;
    flex-flow: column;
    justify-content: space-evenly;
    flex-basis: 50%;
    gap: 16px;
}

footer .other-list li {
    max-width: 240px;
}

footer .other-list li img {
    aspect-ratio: 3 / 2;
}

footer .other-list li a {
    color: #fff;
}

footer .foot-copy {
    align-items: flex-end;
}

@media (min-width:768px) {
    footer .other-list {
        flex-flow: row;
    }
}