* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: "Zen_Kaku_Gothic_New";
    line-height: 1.6;
    background-color: #edf0b6;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'genBold';
    /* ★ここで好きな名前をつけます（例：MyCustomFont） */
    src: url('../font/GenInterfaceJP-Regular.ttf') format('truetype');
    /* ★フォントファイルへのパス */
    /* .ttf の場合は format('truetype') になります */
}

/* 角ゴシック */
@font-face {
    font-family: 'Zen_Kaku_Gothic_New';
    /* ★ここで好きな名前をつけます（例：MyCustomFont） */
    src: url('../font/Noto_Sans_JP,Zen_Kaku_Gothic_New,Zen_Maru_Gothic/Zen_Kaku_Gothic_New/ZenKakuGothicNew-Regular.ttf') format('truetype');
    /* ★フォントファイルへのパス */
    /* .ttf の場合は format('truetype') になります */
}

/* 丸ゴシック（太字） */
@font-face {
    font-family: 'Zen_Maru_Gothic-Bold';
    /* ★ここで好きな名前をつけます（例：MyCustomFont） */
    src: url('../font/Noto_Sans_JP,Zen_Maru_Gothic/Zen_Maru_Gothic/ZenMaruGothic-Bold.ttf') format('truetype');
    /* ★フォントファイルへのパス */
    /* .ttf の場合は format('truetype') になります */
}

/* 丸ゴシック（標準） */
@font-face {
    font-family: 'Zen_Maru_Gothic';
    /* ★ここで好きな名前をつけます（例：MyCustomFont） */
    src: url('../font/Noto_Sans_JP,Zen_Maru_Gothic/Zen_Maru_Gothic/ZenMaruGothic-Regular.ttf') format('truetype');
    /* ★フォントファイルへのパス */
    /* .ttf の場合は format('truetype') になります */
}


/* =========================
   ヘッダー
========================= */

header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background-color: #088648;
    height: 70px;
}

.header-container {
    max-width: 1200px;
    height: 100%;

    margin: 0 auto;
    padding: 0 30px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list a {
    text-decoration: none;
    color: #e6ebac;
    font-size: 14px;
    font-weight: 700;
    transition: 0.3s;
}

.nav-list a:hover {
    opacity: 0.7;
}

.navi_logo {
    width: auto;
    height: 3rem;
    position: sticky;
    left: 3vw;
}

/* =========================
   ヒーロー
========================= */

.hero {
    background: #edf0b6;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 100px 20px;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
}

.hero img {
    width: 100%;
    display: block;
}

.img-area {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-area img {
    width: 80vw;
    height: auto;
}

/* =========================
   PROJECTとは
========================= */

#naiyou {
    display: flex;
    flex-direction: column;
    background: #edf0b6;
}

#naiyou h2 {
    color: #300205;
    justify-content: center;
}

#OUTLINE {
    margin: 7vh 10vw;
}

#proIs {
    color: #300205;
    font-size: 16px;
    margin: 3vh 0;
}

#PROJECTS h1 {
    display: flex;
    justify-content: center;
    color: #300205;
    font-family: 'Zen_Maru_Gothic-Bold';
    margin-top: 30vh;
    font-size: 80px;
}

#PROJECTS h2 {
    color: #300205;
    font-family: 'Zen_Kaku_Gothic_New';
    display: flex;
    justify-content: center;
    font-size: 15px;
    margin-bottom: 20vh;
}

.about {
    background: #088648;
    color: white;

    padding: 120px 0;
}

.about-container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
}

.about h2 {
    font-size: 56px;
    margin-bottom: 40px;
}

.about p {
    font-size: 16px;
    margin-bottom: 15px;
}

/* =========================
   PROJECTS
========================= */

.projects {
    background: #089647;
    padding: 120px 0;
}

.projects h2 {
    text-align: center;
    font-size: 72px;
    font-weight: 900;
    color: black;
}

.projects-subtitle {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 70px;
    color: black;
}

.project-grid {
    width: 90%;
    max-width: 1400px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 40px;
}

/* =========================
   カード
========================= */

.project-card {
    text-decoration: none;

    display: flex;

    flex-direction: column;

    color: white;

    background: white;

    border-radius: 20px;

    overflow: hidden;

    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);

    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    flex: 1;
    background: #e5e5e5;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    background: #088648;
    padding: 15px;
    min-height: 120px;
    box-sizing: border-box;
}

.project-info h3 {
    font-family: 'Zen_Maru_Gothic';
    font-size: 18px;
    margin-bottom: 5px;
}

.project-info p {
    font-family: 'Zen_Kaku_Gothic_New';
    font-size: 14px;
}

/* =========================
   FLOOR MAP
========================= */

.FLOOR {
    display: flex;
    color: #300205;
}

#MAP h1 {
    font-size: 80px;
    font-family: 'Zen_Maru_Gothic-Bold';
    justify-content: center;
    margin-top: 10vh;
}

#MAP h2 {
    font-size: 18px;
    font-family: 'Zen_Kaku_Gothic_New';
    justify-content: center;
    margin-bottom: 3vh;
}

.map-area {
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin: 0 auto;
    margin-bottom: 20px;
    width: 80vw;
}

.tab-area ul {
    display: flex;
    margin: 0;
    padding: 0;
    width: 100%;
}

.tab-area li {
    flex: 1;
    /* ★親の幅をタブの数（今回は2つ）で均等に分ける */
    padding: 2vh 0;
    /* ★左右のvwをやめて、上下だけにする */
    text-align: center;
    /* ★文字を中央に配置する */
    list-style: none;
    border: 1px solid #FFFFFF;
    box-sizing: border-box;
}

.tab-area li.tab-active {
    background-color: #FFFFFF;
}

.map-Display {
    width: 100%;
}

.map-Display img {
    width: 100%;
    height: auto;

}

.no-display {
    display: none;
}

/* =========================
    ACCESS
========================= */

.ACCESS {
    display: flex;
    color: #300205;
}

#ACCESS h1 {
    color: #300205;
    font-size: 60px;
    font-family: 'Zen_Maru_Gothic-Bold';
    justify-content: center;
    margin-top: 10vh;
    display: flex;
}


/* ========================
   モーダル全体の背景（暗くなる部分）
   ======================== */

.modal {
    position: fixed;
    /* 画面に固定 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* 背景を半透明の黒に */

    /* 初期状態は非表示 */
    display: none;

    /* 中身を画面の中央に配置するための設定 */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* 他の要素より一番手前に表示 */
}

/* ★ JavaScriptで "active" クラスが付いた時の設定 */
.modal.active {
    display: flex;
    /* 非表示（none）から、表示（flex）に切り替わる */
}

/* ========================
   モーダルの中身（白いカード部分）
   ======================== */
.modal-content {
    background: #fff;
    width: 80%;
    max-width: 600px;

    max-height: 90dvh;
    overflow-y: auto;

    padding: 30px;

    /* 角を丸くする */
    border-radius: 8px;

    /* ×ボタンの配置の基準にするため必要 */
    position: relative;

    /* 少し影をつける */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.modal-content h2, h3 {
    font-family: 'Zen_Maru_Gothic-Bold';
}

/* ========================
   ×ボタンのデザイン
   ======================== */
.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    /* マウスを乗せたら指マークにする */
}

.close:hover {
    color: #ff0000;
    /* マウスを乗せたら赤くする */
}

.modal-btn {
    flex: 1;
    display: inline-block;
    /* 余白を持たせるために必要 */
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #088648;
    /* サイトのテーマカラー */
    color: white;
    text-decoration: none;
    /* リンクの下線を消す */
    border-radius: 5px;
    /* 少し丸く */
    font-weight: bold;
    transition: 0.3s;
    /* テキストを中央揃え */
    text-align: center;
    /* ボタンの幅を均等に */
    box-sizing: border-box;
}

.button-area {
  display: flex;
  gap: 10px;
  width: 100%;
}

.modal-btn:hover {
    background-color: #067336;
    /* マウスを乗せたら少し暗い緑にする */
    transform: translateY(-2px);
    /* ほんの少し浮き上がる動き */
}

/* キャッチコピー */
#modal-catchphrase {
    margin-top: 15px;
    font-weight: bold;
}

/* プロジェクト概要文 */
#modal-description {
    margin-top: 10px;
    line-height: 1.5;
}

/* キーワード */
#modal-keywords {
    margin-top: 15px;
    color: #087596;
    font-weight: bold;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* =========================
   フッター
========================= */

footer {
    background: #111;
    color: white;

    text-align: left;

    padding: 20px;
}

footer h3 {
    font-size: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.f-link{
    color: white;
}

/* =========================
   レスポンシブ
========================= */

@media (max-width: 900px) {

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects h2,
    .floor-map h2 {
        font-size: 50px;
    }

    .about h2 {
        font-size: 40px;
    }
}

@media (max-width: 600px) {

    .img-area {
        height: 40vh;
    }

    .navi_logo {
        height: 2rem;
        left: 20px;
    }

    .nav-list {
        gap: 12px;
    }

    .nav-list a {
        font-size: 12px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .projects h2,
    .floor-map h2 {
        font-size: 36px;
    }

    .about h2 {
        font-size: 30px;
    }

    .floor-tabs {
        flex-direction: column;
    }

    .floor-tab {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        padding: 16px;
    }

    #modal-title {
        font-size: 1.8rem;
    }

    #modal-area {
        font-size: 0.9rem;
    }

    #modal-catchphrase {
        font-size: 1.2rem;
        margin-top: 10px;
    }

    #modal-description {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    #modal-keywords {
        font-size: 0.9rem;
        gap: 6px;
    }

    .modal-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
        margin-top: 12px;
    }

    .button-area {
        flex-direction: column;
    }

    .project-image img {
        height: auto;
        object-fit: unset;
    }

    #PROJECTS h1 {
        margin-top: 0vh;
        font-size: 60px;
    }

    #MAP h1 {
        font-size: 60px;
    }

}
