@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Walter+Turncoat&display=swap');

*,
::before,
::after {
    box-sizing: border-box;
    border-style: solid;
    border-width: 0;
    /* min-width: 0; */
}

html {
    font-size: 10px;
}

body {
    font-size: 1.6rem;
    color: #252525
}

/* common.css に記述 */
body {
    background-image: url('image/bgimg.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
    margin-bottom: 100px;
}

body::before {
    content: '';
    position: fixed;
    /* bodyと同期して固定 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);

    z-index: -1;
}

.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    /* 水平中央揃え */
    align-items: center;
    /* 垂直中央揃え */
    position: relative;
    /* 矢印ボタンの基準位置 */
    text-align: center;
    /* background-color: #ffffff;  */
    padding: 0 20px;
    /* 左右の余白 */
    box-sizing: border-box;
}

.hero-name-en {
    font-size: 16px;
    letter-spacing: 0.1em;
    color: #5a4a3a;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #5a4a3a;
    display: inline-block;
}

.hero-name-ja {
    font-size: 14px;
    color: #5a4a3a;
    margin-bottom: 50px;
}

.hero-catchphrase {
    font-family: 'Cursive', serif;
    font-size: 8vw;
    line-height: 1;
    color: #5a4a3a;
    margin: 0;
}

.scroll-indicator {
    position: fixed;
    z-index: 99;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    border: 1px solid #5a4a3a;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #5a4a3a;
    transition: background-color 0.3s;
}

.scroll-indicator:hover {
    background-color: rgba(90, 74, 58, 0.1);
}

.arrow-icon {
    font-size: 18px;
    line-height: 1;
    transform: translateY(1px);
}

/* モバイル表示時の調整 */
@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 20px;
        right: 20px;
    }
}


h1 {
    font-size: 3.6rem;
    color: darksalmon;
    padding: 0.2em;

}

h2 {
    font-size: 2.5rem;
    color: chocolate;
    padding: 0.2em;
}

.model-flex {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 2em;
    align-items: center;
}

.model-btn {
    display: block;
    width: fit-content;
    text-align: center;
    padding: 0.5em 1em 0.5em 1em;
    font-weight: 400;
    cursor: pointer;
    border-radius: 8px;

    &.type-border {
        border: 1px solid #999;
    }
}

h3 {
    font-size: 2.4rem;
    padding: 0.2em;
    font-weight: 400;
}

#header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ヘッダーの内部コンテナ（中央寄せと最大幅を制御） */
header .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
}

/* サイトタイトル/ロゴ */
.site-title a {
    font-family: 'Walter Turncoat', cursive;
    font-size: 16px;
    font-weight: normal;
    color: #333;
    text-decoration: none;
    letter-spacing: 0.05em;
}

/* ナビゲーションメニュー */
.header-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.header-nav li {
    margin-left: 25px;
}

.header-nav a {
    font-size: 13px;
    font-family: 'Walter Turncoat', cursive;
    color: #333;
    text-decoration: none;
    letter-spacing: 0.1em;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

.header-nav a:hover {
    color: #795548;
}

@media (max-width: 768px) {
    header .header-inner {
        padding: 15px 15px;
    }

    .header-nav {
        display: none;
    }

    .site-title a {
        font-size: 14px;
    }
}

.works-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 30px;
    padding-left: 60px;
    padding-right: 60px;
    margin-top: 50px;
    /* 上部の余白 */
    margin-bottom: 80px;
    /* 下部の余白 */
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.works-grid-container img {
    width: 100%;
    height: auto;
    display: block;
}

.work-item {
    transition: opacity 0.5s ease, transform 0.5s ease;
    /* overflow: hidden; */
    max-height: 800px;
    margin-bottom: 10px;
}

.work-item.hidden {
    opacity: 0 !important;
    display: none !important;
    visibility: hidden !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: scale(0.8);
    pointer-events: none;
}

.work-tabs-menu {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 50px;
}

.work-tabs-menu ul {
    max-width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    padding: 0;
}

.tab-item {
    width: 120px;
    white-space: nowrap;
    font-size: 1.5rem;
    padding: 10px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.1ss ease;
    background-color: #f8f8f8;
    color: #5a4a3a;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 0 5px;

    /* 吹き出しの基準位置 */
    position: relative;
}

.tab-item:hover {
    background-color: #e0e0e0;
}

.tab-item.active {
    background-color: #7abedb;
    color: #fff;
    font-weight: 500;
    border-color: #7abedb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-item.active::after {
    content: '';
    position: absolute;

    /* 位置の調整 */
    bottom: -10px;
    /* タブの下端から三角形の高さ分下に配置 */
    left: 50%;
    /* 水平方向中央 */
    transform: translateX(-50%);
    /* 中央寄せ補正 */

    /* 三角形の作成 */
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 10px 0 10px;
    /* 高さ10px、幅20pxの三角形 */

    /* 吹き出しの色はアクティブ時の背景色と合わせる */
    border-color: #7abedb transparent transparent transparent;
}

.model-inner {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

#works {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* タイトルとタブメニューの間にも余裕を持たせる */
.section-title {
    margin-bottom: 40px;
    text-align: center;
}

.menu-btn {
    display: none;
    position: relative;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 200;
}

@media (max-width: 768px) {

    .menu-btn {
        display: block;
    }
}

.menu-btn span {
    display: block;
    height: 2px;
    background-color: #5a4a3a;
    position: absolute;
    width: 100%;
    left: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.menu-btn span:nth-child(1) {
    top: 5px;
}

.menu-btn span:nth-child(2) {
    top: 14px;
}

.menu-btn span:nth-child(3) {
    top: 23px;
}

.menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ★★★ モバイルメニューのスタイルも確認 ★★★ */
@media (max-width: 768px) {

    .header-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        padding-top: 80px;
        z-index: 150;
        overflow-y: auto;
    }

    .header-nav.active {
        display: block;
    }

    .header-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .header-nav li {
        margin: 20px 0;
    }
}

.no-scroll {
    overflow: hidden;
}

.work-item a {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}

.work-item a:hover {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

/* ------------------------------------- */
/* 作品情報（タイトルとタグ）の領域 */
/* ------------------------------------- */
.work-info {
    padding: 15px 15px 15px;
}

.work-title {
    font-size: 1.5rem;
    color: #333;
    font-weight: bold;
    margin-bottom: 8px;
}

/* ------------------------------------- */
/* ハッシュタグのスタイリング */
/* ------------------------------------- */
.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.work-tags .tag {
    display: inline-block;
    font-size: 1.1rem;
    color: #795548;
    background-color: #f5f0e8;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    font-weight: normal;
}

.thumbnail-frame img {
    height: 250px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.thumbnail-frame img {
    height: 400px;
    object-fit: contain;
}

.thumbnail-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.work-item.website .thumbnail-frame {
    height: 400px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.work-item.website .thumbnail-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* PROFILEセクション全体の余白 */
.profile-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* プロフィールコンテンツのレイアウト (画像とテキストの横並び) */
.profile-content {
    display: flex;
    gap: 60px;
    /* 画像とテキストの間の余白 */
    align-items: flex-start;
    /* 上端揃え */
    margin-top: 50px;
    /* セクションタイトルとの間隔 */
}

/* プロフィール画像部分 */
.profile-image {
    flex: 0 0 300px;
    /* 画像の幅を300pxに固定 */
    max-width: 300px;
    border-radius: 50%;
    /* 真円にする */
    overflow: hidden;
    /* 角丸の外にはみ出る部分を隠す */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /* 影を付ける */
}

.profile-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* 画像がボックスを覆うように調整 */
    aspect-ratio: 1 / 1;
    /* 画像のアスペクト比を1:1に固定（真円にするため） */
}

/* プロフィールテキスト部分 */
.profile-text {
    flex: 1;
    /* 残りのスペースを全て占める */
    line-height: 1.8;
    /* 行の高さを調整 */
}

.profile-item {
    margin-bottom: 30px;
    /* 各項目間の余白 */
}

.profile-item:last-child {
    margin-bottom: 0;
    /* 最後の項目は下余白なし */
}

.profile-item h3 {
    font-size: 1.8rem;
    /* 項目の見出しサイズ */
    color: #5a4a3a;
    /* 色を調整 */
    margin-bottom: 15px;
    /* 見出しと本文の間の余白 */
    padding-left: 10px;
    /* 記号分のインデント */
    position: relative;
    /* 記号の色 */
}

.profile-item h3::before {
    /* content: '';  */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    /* 四角の幅 */
    height: 6px;
    /* 四角の高さ */
    background-color: #5a4a3a;
    /* 四角の色 */
}

.profile-item p {
    font-size: 1.5rem;
    /* 本文のフォントサイズ */
    color: #333;
    margin-bottom: 10px;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .profile-content {
        flex-direction: column;
        /* 縦並びにする */
        gap: 40px;
        align-items: center;
        /* 中央揃え */
    }

    .profile-image {
        flex: none;
        /* 固定幅を解除 */
        width: 200px;
        /* モバイルでは画像を少し小さく */
        height: 200px;
        /* モバイルでは画像を少し小さく */
        max-width: 200px;
    }

    .profile-text {
        padding: 0 15px;
        /* モバイルでの左右余白 */
        text-align: center;
        /* テキストを中央寄せ (任意) */
    }

    .profile-item h3 {
        padding-left: 0;
        /* モバイルでは記号のインデントをなくす */
        text-align: center;
        /* 見出しも中央寄せ */
    }

    .profile-item h3::before {
        display: none;
        /* モバイルでは記号を非表示にする (任意) */
    }
}

/* ============================================== */
/*  モーダルウィンドウ スタイル */
/* ============================================== */

/* 1. モーダル全体（初期非表示） */
.modal-window {
    display: none;
    /* 初期状態では非表示 */
    position: fixed;
    /* 画面に固定 */
    z-index: 1000;
    /* 最前面に表示 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    /* 内容が画面より大きい場合にスクロール可能にする */
    background-color: rgba(0, 0, 0, 0.7);
    /* 半透明の黒い背景 */
    padding-top: 50px;
    /* 上部に少し余白 */
    opacity: 0;
    /* JSで.is-activeがついた時にアニメーションで表示 */
    transition: opacity 0.3s ease;
}

/* JSで表示状態にするクラス */
.modal-window.is-active {
    display: block;
    opacity: 1;
}

/* 2. モーダルの中身のコンテナ */
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    /* 画面中央、上から5%の場所 */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    /* 幅を画面の80%に設定 */
    max-width: 900px;
    /* 最大幅 */
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* 3. 閉じるボタン */
.modal-close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    border: none;
    background: none;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 15px;
}

.modal-close-btn:hover,
.modal-close-btn:focus {
    color: #333;
}

/* 4. モーダル本体のレイアウト (画像とテキストの横並び) */
.modal-body {
    display: flex;
    gap: 20px;
    padding-top: 30px;
    /* 閉じるボタンとの間隔 */
}

/* 5. 画像エリア */
.modal-image-area {
    flex: 1;
    max-width: 50%;
}

.modal-image-area img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

/* 6. テキストエリア */
.modal-text-area {
    flex: 1;
    max-width: 50%;
    line-height: 1.6;
}

#modal-title {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

#modal-tags {
    color: #888;
    margin-bottom: 15px;
}

/* 7. 詳細情報（ターゲット・ポイント）のスタイル */
#modal-detail-area {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    /* 情報の区切り線 */
}

#modal-detail-area h4 {
    font-size: 1.6rem;
    color: #5a4a3a;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
}

#modal-detail-area p {
    font-size: 1.4rem;
    line-height: 1.7;
    margin-bottom: 10px;
}


/* 8. モバイル対応 (768px以下で縦並びにする) */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 10% auto;
    }

    .modal-body {
        flex-direction: column;
        padding-top: 50px;
    }

    .modal-image-area,
    .modal-text-area {
        max-width: 100%;
    }
}

/* ============================================== */
/*  CONTACTセクションのスタイル */
/* ============================================== */

.contact-section {
    margin-top: 80px;
    /* 上部に少しスペースを取る */
    text-align: center;
    /* 全体を中央寄せ */
}

h2 {
    /* ABOUTやTOOLSなど他の見出しと同じスタイルがあればそれを適用 */
    font-size: 2.5rem;
    color: #5a4a3a;
    margin-bottom: 20px;
}

.contact-section p {
    font-size: 1.6rem;
    margin-bottom: 30px;
    color: #666;
}

/* メールアドレスリンクのスタイル */
.contact-link {
    display: inline-block;
    /* ボタンのように幅を持たせるため */
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    /* 文字色を白に */
    background-color: #7abedb;
    /* 背景色をタブのアクティブカラーに合わせる */
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    /* 下線を消す */
    transition: background-color 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    /* 影をつけて立体感を出す */
}

.contact-link:hover {
    background-color: #5d9ec8;
    /* ホバーで色を濃くする */
}