/* ---------------------------------------------------- */
/* CozyWeb 推奨フォント（Noto Sans JP + Montserrat + Poppins） */
/* ---------------------------------------------------- */
body {
    font-family: 'Noto Sans JP', 'Montserrat', 'Poppins', sans-serif;
    line-height: 1.7;
    letter-spacing: 0.03em;
    color: var(--main-color);
}

/* 見出し（英字強め → Montserrat） */
h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', 'Poppins', 'Noto Sans JP', sans-serif;
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* ロゴ */
.icon {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* ナビ（英字多めなので Montserrat 優先） */
.navarea a {
    font-family: 'Montserrat', 'Poppins', sans-serif;
}

/* ハンバーガーメニュー文字 */
.hamburger-content nav ul li a {
    font-family: 'Montserrat', 'Poppins', sans-serif;
}

/* カードのタイトル */
h3, h4 {
    font-family: 'Montserrat', 'Poppins', 'Noto Sans JP', sans-serif;
    font-weight: 600;
}

/* ---------------------------------------------------- */
:root {
    /* 色設定 */
    --bg-color: #ebd9ca;
    --hamburger-color: #fce2ce;
    --main-color: #4a3f35;
    --sub-color: #f5efe9;
    --accent-color: #b48a5a;
    --border-color: #d6c6b8;
    --coffee-color: #6b4f3b;

    /* サイズ設定 */
    --nav-height: 75px;
    --navarea-width: 30%;
}

/* 共通 */
.navarea a {
    color: var(--sub-color);
}

h1 {
    font-size: 6rem;
    white-space: nowrap;
}

/* ------------------- */
/* ヘッダー・ナビ */
/* ------------------- */
.navarea {
    position: fixed;
    z-index: 99;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(235, 217, 202, 0.7);
}

.navarea .icon {
    font-size: 2rem;
    margin-left: 2rem;
    color: var(--main-color);
}

/* ハンバーガーボタン */
.navarea .hamburger {
    width: 55px;
    height: 55px;
    margin-right: 2rem;
    border-radius: 999%;
    border: 1.5px solid var(--main-color);
    position: relative;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hamburger span {
    height: 2px;
    width: 40px;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--main-color);
    transform-origin: center;
    transition: all 0.6s ease;
}

.hamburger span:nth-child(1) { top: 30%; }
.hamburger span:nth-child(2) { top: 50%; }
.hamburger span:nth-child(3) { top: 70%; }

.hamburger.open {
    border: none;
}

.hamburger.open span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-315deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(315deg);
}

/* ハンバーガーメニュー */
.hamburger-content {
    position: fixed;
    z-index: 100;
    right: 0;
    bottom: 0;
    background-color: var(--bg-color);
    width: var(--navarea-width);
    height: 100vh;
    transform: translateX(3000px);
}
.hamburger-content::before{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%; 
    z-index: 1;
    background-color: var(--coffee-color);
}

.hamburger-content nav ul {
    position: absolute;
    bottom: 1rem;
    left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 999;
}

.hamburger-content nav ul li {
    list-style: none;
}

.hamburger-content nav ul li a {
    font-size: 3rem;
    position: relative;
}

.hamburger-content nav ul li a::after {
    content: "";
    position: absolute;
    display: block;
    width: 0;
    height: 3px;
    background-color: var(--sub-color);
    transition: all 0.5s ease;
}

.hamburger-content nav ul li a:hover::after {
    width: 100%;
}

/* オーバーレイ */
.overlay.open {
    position: fixed;
    width: calc(100% - var(--navarea-width));
    height: 100%;
    z-index: 1000;
    background-color: black;
    opacity: 0;
    cursor: pointer;
}

/* ------------------- */
/* ファーストビュー */
/* ------------------- */
.firstview {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.firstview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.firstview-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -20%);
    width: 80%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 4rem;
}

.firstview-card .maintitle {
    text-align: left;
    color: var(--sub-color);
}

.firstview-card .maintitle div {
    text-align: right;
}

.firstview-card p {
    font-size: 2rem;
    color: var(--sub-color);
    white-space: nowrap;
}

.first-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.first-button button {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 7.5px;
    background: var(--accent-color);
}

/* ------------------- */
/* イントロダクション */
/* ------------------- */
.introduction {
    position: relative;
    text-align: center;
    padding-top: 3rem;
}

.introduction .introduction_contents {
    max-width: 1140px;
    margin: auto;
}

.introduction .introduction_contents h2 {
    color: var(--sub-color);
    font-size: 3rem;
}

/* カード共通 */
.cards .concept,
.cards .service {
    margin-top: 2rem;
    max-height: 300px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* Conceptカード */
.conncept-img {
    border-radius: 10px;
    max-height: 300px;
    width: 100%;
}

.conncept-img img {
    display: block;
    object-fit: cover;
    height: 100%;
    margin: auto;
    overflow: hidden;
    border-radius: 10px;
}

.conncept-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.8rem;
}

.conncept-body h3 {
    color: var(--sub-color);
    font-size: 2.5rem;
    position:relative;
    border-bottom: 1px solid var(--sub-color);
}


.conncept-body .body {
    text-align: left;
    width: 70%;
    margin: 0 auto;
    position: relative;
}
.concept .body::before{
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    background-color: #AC7349;
    z-index: -1;
    opacity: 0.7;
}

.conncept-body p {
    color: var(--sub-color);
    font-size: 1.2rem;
}

.conncept-body button a {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background-color: var(--accent-color);
    padding: 3px 3rem;
}

/* Serviceカード */
.service-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.8rem;
}

.service-body h3 {
    color: var(--main-color);
    font-size: 2.5rem;
    border-bottom: 1px solid var(--main-color);
}

.service-body .body{
    text-align: left;
    width: 70%;
    margin: 0 auto;
}


.service-body p {
    color: var(--main-color);
    font-size: 1.2rem;
}


.service-body button a {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background-color: var(--accent-color);
    padding: 3px 3rem;
}

.service-img {
    overflow: hidden;
    max-height: 300px;
    width:100%;;
}

.service-img img {
    display: block;
    object-fit: cover;
    height: 100%;
    margin: auto;
    border-radius: 10px;
}

/* 波SVG */
.custom-shape-divider-top-1765340839 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: -1;
}

.custom-shape-divider-top-1765340839 svg {
    position: relative;
    display: block;
    width: calc(300% + 1.3px);
    height: 500px;
    transform: rotateY(180deg);
}

.custom-shape-divider-top-1765340839 .shape-fill {
    fill: #AC7349;
}

/* ------------------- */
/* ワークス */
/* ------------------- */
/* -------------------------
  Works セクション
-------------------------- */
.works {
    margin-top: 3rem;
    text-align: center;
    background-color: var(--bg-color);
}

.works h2 {
    color: var(--main-color);
    font-size: 3rem;
    position: relative;
}

.works p {
    color: var(--main-color);
}

/* -------------------------
  Popup（背景含む）
-------------------------- */
.popup {
    width: 100%;
    max-width: 1140px;
    margin: auto;
    min-height: 400px;
    background-image: url('../images/works_background.png');
    background-size: cover;
    background-position: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* -------------------------
  コンテンツ：PCは3列
-------------------------- */
.contents {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.slidebutton{
    display: none;
}

/* -------------------------
  カード
-------------------------- */
.card {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    background: var(--sub-color);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card-img {
    margin: auto;
    width: 100%;
    max-width: 300px;
    height: auto;
    overflow: hidden;
    position: relative;
}

.card-img::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0;
    cursor: pointer;
    transition: all 0.5s ease;
    pointer-events: none;
}

.card-img:hover::before {
    opacity: 0.3;
}

.card-img img {
    cursor: pointer;
    width: 100%;
}

.card-title {
    color: var(--main-color);
}

.card p a {
    color: var(--accent-color);
    position: relative;
    border-bottom: 1px solid var(--accent-color);
}


/* ------------------- */
/* フッター */
/* ------------------- */
footer {
    min-height: 80px;
    background-color: #3A2F2F;
    color: var(--sub-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

footer h5 {
    font-size: 1.2rem;
}

footer nav ul {
    display: flex;
    gap: 1rem;
}

footer nav ul li {
    position: relative;
}

footer nav ul li:not(:last-child)::after {
    content: "｜";
    position: absolute;
    color: var(--sub-color);
}

footer .myinformation {
    display: flex;
    align-items: center;
    gap: 1rem;
}

footer .myinformation dl {
    display: flex;
    gap: 0.5rem;
}

footer .myinformation dl dt {
    font-weight: normal;
}

footer .myinformation .instagram {
    width: 26px;
    height: 26px;
}

footer .myinformation .instagram a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    aspect-ratio: 1 / 1;
    display: block;
}

footer button {
    background-color: #5a4639;
    border-radius: 999px;
    padding: 7px 20px;
}

footer button:hover {
    background-color: #47372d;
}

/* ------------------- */
/* コーヒー波キャンバス */
/* ------------------- */
#coffeeCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    pointer-events: none;
    z-index: 10;
    color: var(--coffee-color);
}


/* ------------------------------
   PC（小）
------------------------------ */
@media screen and (max-width: 1200px) {

}

/* ------------------------------
   タブレット（横）
------------------------------ */
@media screen and (max-width: 1024px) {
    .service-body { order: 2; }
    .service-img { order: 1; }

    /* .hamburger-content nav ul {
    gap: 2rem;
    } */
    .hamburger-content nav ul li a {
        font-size: 2.5rem;
    }
}

/* ------------------------------
   タブレット（縦）
------------------------------ */
@media screen and (max-width: 916px) {
    /* カード共通 */
    .cards .concept,
    .cards .service {
        margin-top: 2rem;
        max-height: none;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        border-radius: 10px;
    }

    .conncept-img,
    .service-img {
        max-height: none;
        height: 480px;
        width: 90%;
        margin: auto;
    }
    .conncept-img img,
    .service-img img {
        width: 100%;
    }

    .conncept-body h3{
        border-bottom: 1px solid var(--main-color);
    }
    .conncept-body h3,
    .conncept-body p {
        color: var(--main-color);
    }
    .concept .body::before{
    width: 0;
    height: 0;
}

}

/* ------------------------------
   890px
------------------------------ */
@media screen and (max-width: 890px) {
    .maintitle h1 { font-size: 4rem; }
}

/* ------------------------------
   790px
------------------------------ */
@media screen and (max-width: 790px) {
    .firstview-card p { font-size: 1.8rem; }
        /* .hamburger-content nav ul {
    gap: 2rem;
    } */
    .hamburger-content nav ul li a {
        font-size: 2rem;
    }
}

/* ------------------------------
   700px
------------------------------ */
@media screen and (max-width: 700px) {
    .firstview-card p { font-size: 1.6rem; }
    .hamburger-content nav ul {
        bottom: 1rem;
        left: 1rem;
    }
    /* .hamburger-content nav ul li a {
        font-size: 1.5rem;
    } */
}

/* ------------------------------
   600px（スマホ大）
------------------------------ */
@media screen and (max-width: 600px) {

    /* firstview タイトル */
    .maintitle h1 { font-size: 3rem; }
    .firstview-card p { font-size: 1.4rem; }
    .firstview-card { gap: 2rem; }

    /* Conceptカード：背景をぼかす */
    .conncept-img,
    .service-img {
        display: none;
    }

    .concept,
    .service {
        flex: none;
        position: relative;
        border-radius: 0px;
        height: 300px;
    }

    .concept::before,
    .service::before {
        content: "";
        position: absolute;
        inset: 0;
        height: 300px;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: 1;
        filter: blur(2.5px);
    }
    .concept::before {
        background-image: url("../images/conncept.jpg");
    }
    .service::before {
        background-image: url("../images/service.jpeg");
    }

    .conncept-body,
    .service-body {
        width: 70%;
        margin: auto;
        background: rgba(255, 255, 255, 0.8);
        padding: 0.5rem 0.7rem;
        border-radius: 10px;
        z-index: 2;
        position: relative;
    }

    .conncept-body .body,
    .service-body .body {
        width: 100%;
    }

    /* Works：1枚だけ表示 */
    .contents > *:nth-child(n+4) {
        display: none;
    }

    .contents {
        display: block;
        margin: auto;
        position: relative;
    }

    .slidebutton {
        position: absolute;
        display: block;
        z-index: 2;
        font-size: 2rem;
        border: 1px solid var(--main-color);
        height: 3rem;
        width: 3rem;
        border-radius: 50%;
        top: 50%;
    }

    .slidebutton::before {
        content: "";
        position: absolute;
        inset: 0;
        background-color: white;
        opacity: 0.8;
        z-index: -1;
        filter: blur(5px);
    }

    .slidebutton.prev {
        left: 0;
        transform: translateX(-1rem);
    }
    .slidebutton.next {
        right: 0;
        transform: translateX(1rem);
    }

    .card {
        width: 100%;
        height: 400px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        position: relative;
    }

    .card-img {
        margin: 0 auto;
        height: auto;
    }

    .card h4 {
        margin-top: 4rem;
    }
    .hamburger-content nav ul li a {
        font-size: 1.3rem;
    }
}

/* ------------------------------
   550px以下
------------------------------ */
@media screen and (max-width: 550px) {
    .firstview-card p { font-size: 1.1rem; }
}

/* ------------------------------
   480px以下（スマホ小）
------------------------------ */
@media screen and (max-width: 480px) {
    .maintitle h1 { font-size: 2.5rem; }
}

/* ------------------------------
   430px
------------------------------ */
@media screen and (max-width: 430px) {
    .firstview-card p { font-size: 1rem; }
    .hamburger-content nav ul li a {
        font-size: 1.1rem;
    }
}

/* ------------------------------
   380px
------------------------------ */
@media screen and (max-width: 380px) {
    .firstview-card p { font-size: 0.9rem; }
}
