@charset "UTF-8";

/* ページ内リンクを滑らかに移動させる */
html {
    scroll-behavior: smooth;
}

/* ===================================
   基本設定
   =================================== */
body {
    margin: 0;
    padding: 0;
    font-family: "Shippori Mincho B1", serif;
    color: #333;
    background-color: #fff;
}

h1, h2, h3, p, ul, li, figure {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   レイアウト（サイドバー + メイン）
   =================================== */
.wrapper {
    /* Flexboxは削除し、marginでレイアウト制御します */
    width: 100%;
    overflow-x: hidden;
}

/* サイドメニュー（外側の枠：asideタグを特定） */
aside.sidemenu {
    width: 250px;
    position: fixed; /* 画面に完全固定 */
    top: 0;
    left: 0;
    height: 100vh;
    
    /* 重要：サブメニューを飛び出させるために visible に設定 */
    /* 注意：これによりサイドバー自体のスクロールはできなくなります */
    overflow: visible; 
    
    background-color: #f9f9f9;
    border-right: 1px solid #eee;
    z-index: 1000; /* 最前面に */
}

/* 生成される内部ナビゲーション（navタグ）のリセット */
nav.sidemenu {
    /* 外側のasideですでに固定されているため、中身は固定しない */
    position: static;
    width: 100%;
    height: auto;
    border: none;
    background: transparent;
    
    /* 中身の配置設定 */
    padding: 30px 20px;
    box-sizing: border-box;
    text-align: left;
}

/* メインコンテンツエリア */
main {
    /* サイドバーの幅分だけ右にずらす */
    margin-left: 250px;
    width: auto;
    position: relative;
}

/* ===================================
   サイドメニュー内部の装飾
   =================================== */

/* ロゴ画像 */
.sidemenu > a img {
    width: 200px;
    margin: 40px auto 40px; /* ロゴの下の余白 */
    display: block;      /* 中央寄せのためにブロック化 */
}

/* ハンバーガーボタン（PC時は非表示） */
#js-hamburger {
    display: none;
}

/* ナビゲーションメニュー */
.sidemenu nav ul {
    margin-bottom: 40px;
}

.sidemenu nav li {
    margin-bottom: 18px;
}

.sidemenu nav a {
    font-size: 16px;
    font-family: "M PLUS Rounded 1c", Arial, sans-serif;
    letter-spacing: 0.1em;
    display: block;
    color: #333;
}

.sidemenu nav a:hover {
    color: #aaa;
    opacity: 1;
}

/* ===================================
   子階層（ドロップダウン/サブメニュー）
   =================================== */

.sidemenu nav li {
    position: relative;
}

/* サブメニュー本体 */
.sidemenu nav ul ul {
    position: absolute;
    top: -10px;
    left: 100%;        /* 親の右側に配置 */
    margin-left: 10px; /* 少し離す */
    
    /* ★修正箇所：幅を固定せず、文字数に合わせて広げる（最低180pxはキープ） */
    width: max-content; 
    min-width: 180px;
    
    background-color: #fff;
    padding: 20px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 2000;     /* サイドバーよりさらに前面へ */

    /* アニメーション */
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* 修正：ホバー判定の拡張（透明な架け橋）*/
.sidemenu nav ul ul::before {
    content: "";
    display: block;
    position: absolute;
    
    /* 位置とサイズの設定 */
    top: 0;
    left: -20px;  /* 親メニュー側に20px張り出させる */
    width: 20px;  /* 張り出し幅 */
    height: 100%; /* 高さはサブメニューいっぱい */
    
    /* 背景色は透明（デバッグ時は red などにすると見えます） */
    background-color: transparent; 
}

/* ホバー時の表示 */
.sidemenu nav li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

/* ＞マークの追加 */
.sidemenu nav li.has-child > a {
    position: relative;
    padding-right: 20px;
}

.sidemenu nav li.has-child > a::after {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    border-top: 1px solid #333;
    border-right: 1px solid #333;
    transform: rotate(45deg);
    position: absolute;
    top: 50%;
    right: 0; /* 位置調整 */
    margin-top: -4px;
    transition: border-color 0.3s;
}

.sidemenu nav li.has-child > a:hover::after {
    border-color: #aaa;
}

/* サブメニュー内のスタイル */
.sidemenu nav ul ul li {
    margin-bottom: 12px;
}
.sidemenu nav ul ul li:last-child {
    margin-bottom: 0;
}

.sidemenu nav ul ul a {
    font-size: 0.9rem;
    color: #666;
    /* ★修正箇所：文字が長くても絶対に改行させない */
    white-space: nowrap; 
}
.sidemenu nav ul ul a:hover {
    color: #333;
    background-color: #fafafa;
}

/* --- Instagramアイコン --- */
.instagram-link {
    width: 24px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.instagram-link:hover {
    opacity: 1;
}

/* ===================================
   ヒーローセクション（スライドショー＋テキスト）
   =================================== */
.hero-section {
    width: 100%;
    /* height: 100vh; は削除し、中身に合わせて高さを可変にする */
    margin-bottom: 100px; /* 下のセクションとの余白 */
}

/* --- スライドショーエリア（上部） --- */
.hero-slideshow {
    position: relative; /* 通常の配置に戻す */
    width: 100%;
    height: 100vh; /* 高さを画面の65%程度に設定（お好みで調整可） */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slideshow img {
    position: absolute;
    width: auto;
    height: 95%;
    object-fit: cover;
    opacity: 0;
    animation: slideAnime 25s infinite;
}

/* アニメーション設定（以前と同じ） */
.hero-slideshow img:nth-of-type(1) { animation-delay: 0s; }
.hero-slideshow img:nth-of-type(2) { animation-delay: 5s; }
.hero-slideshow img:nth-of-type(3) { animation-delay: 10s; }
.hero-slideshow img:nth-of-type(4) { animation-delay: 15s; }
.hero-slideshow img:nth-of-type(5) { animation-delay: 20s; }

@keyframes slideAnime {
    0% { opacity: 0; }
    4% { opacity: 1; }
    24% { opacity: 1; }
    28% { opacity: 0; }
    100% { opacity: 0; }
}

/* --- ヒーローテキストエリア（下部） --- */
.hero-text {
    /* 重ねるための設定を解除 */
    position: relative;
    padding-top: 120px;
}

/* キャッチコピー */
.hero-copytext h1 {
    font-size: 30px;
    font-weight: 100;
    letter-spacing: 0.05em;
    margin: 0 0 60px 15%; /* メッセージとの間隔 */
    /* 縦書き設定は削除し、横書きに戻す */
    writing-mode: horizontal-tb;
}

/* メッセージエリア */
.hero-message {
    /* 背景色設定などは削除 */
    display: flex;
    flex-direction: column; /* スマホも考慮して一旦縦並びをベースに */
    gap: 20px;
    text-align: left; /* 本文は左揃えで見やすく */
    margin: 300px auto 200px auto;
    max-width: 100%;
}

/* PC画面ではメッセージのタイトルと本文を横並びにする */
@media screen and (min-width: 768px) {
    .hero-message {
        flex-direction: row;
        gap: 40px;
    }
}

.hero-message-title {
    width: auto;
    height: 40px;
    margin-left: 45%;
    border-bottom: 1px solid #888;
}

.hero-message-text {
    width: 100%;
    text-align: left;
}

.hero-message-title p {
    font-family: "Shippori Mincho B1", serif;
    font-size: 20px;
    padding-bottom: 5px;
    white-space: nowrap;
    color: #888;
}

.hero-message-text p {
    font-size: 16px;
    font-family: "Shippori Mincho B1", serif;
    letter-spacing: 0.rem;
    line-height: 2.2;
    margin-bottom: 36px;
}

.hero-message-text p:last-child {
    margin-bottom: 0;
}

/* ===================================
   共通スタイル（タイトル・ボタン）
   =================================== */

/* セクションタイトル（Plan, Galleryなど） */
.section-title {
    font-size: 40px;
    font-family: "M PLUS Rounded 1c", Arial, sans-serif;
    font-weight: 400;
    text-align: center;
    margin-bottom: 0px;
    letter-spacing: 0.1em;
    margin-bottom: 30px;
}

/* Moreボタン */
.more-btn {
    display: inline-block;
    width: auto;        /* 幅は中身に合わせる */
    height: 34px;
    padding: 0 15px;    /* 左右に15pxずつ余白 = 合計30px広くなる */
    border-bottom: 1px solid #333;
    transition: all 0.3s;
    text-align: center;
}

.more-btn p {
    font-size: 14px;
    font-family: "M PLUS Rounded 1c", Arial, sans-serif;
    font-weight: 500;
}

/* ホバー時に文字色と不透明度を変更 */
.more-btn:hover {
    color: #aaa;
    border-bottom-color: #aaa; /* 線も一緒に薄くするなら追加 */
    opacity: 1;
}

/* ===================================
   Plan セクション
   =================================== */
.home-plan-section, .home-gallery-section {
    width: 90%;
    margin: 0 auto 200px auto;
}

/* タイトルは横幅いっぱいを使って上部に配置 */
.home-plan-section .section-title,
.home-gallery-section .section-title {
    width: 100%;
    text-align: center;
}

/* 画像エリア（左側） */
.home-plan-section img,
.home-gallery-section img {
    width: 45%; /* 画面の半分強 */
    height: auto;
    margin: 0 auto; /* 中央寄せ */
}

/* テキストエリア（右側） */
.home-plan-text, .home-gallery-text {
    text-align: center; /* 左揃え */
    padding-top: 30px;
}

/* テキストの微調整 */
.home-plan-text p, .home-gallery-text p {
    margin-bottom: 20px; /* ボタンとの余白 */
}

.home-plan-text .more-btn, .home-gallery-text .more-btn {
    height: 25px;
}

/* ===================================
   Guide & Contact セクション
   =================================== */
.home-guide-contact-section {
    width: 80%;
    margin: 0 auto 150px; /* 下の余白 */    
    /* 横並び設定 */
    display: flex;
    justify-content: center; /* 全体を中央寄せ */
    gap: 40px; /* GuideとContactの間隔 */
}

.home-guide,
.home-contact {
    flex: 1; /* 幅を均等にする */
    text-align: center;
    padding: 20px 20px;
    border: 1px solid #aaa;
}

.home-guide p,
.home-contact p {
    margin-bottom: 40px; /* テキストとボタンの間隔 */
    line-height: 2.2;    /* 行間を広めに */
    font-size: 16px;
}

.home-guide .more-btn p,
.home-contact .more-btn p {
 font-size: 14px;
}

/* ===================================
   フッター
   =================================== */
.copyright {
    text-align: center;
    padding-bottom: 30px;
    font-size: 12px;
    color: #999;
    letter-spacing: 0.05em;
    font-family: Arial, sans-serif;
}

/* ===================================
   下層ページ共通
   =================================== */
.page-title {
    font-size: 40px;
    font-family: "M PLUS Rounded 1c", Arial, sans-serif;
    font-weight: 400;
    text-align: center;
    margin: 120px 0 120px;
    letter-spacing: 0.1em;
}

.page-section-title {
    font-size: 32px;
    font-family: "M PLUS Rounded 1c", Arial, sans-serif;
    font-weight: 400;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 0.1em;
}

.about-section {
    width: 85%;
    max-width: 1000px;
    margin: 0 auto 150px;
}

/* ===================================
   Profile セクション
   =================================== */
.profile-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.profile-img {
    width: 50%;
}

.profile-img img {
    width: 100%;
}

.profile-text {
    width: 50%;
    padding-top: 20px;
}

.profile-text h3 {
    font-size: 22px;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    display: inline-block;
}

.profile-text p {
    line-height: 2.2;
    margin-bottom: 30px;
    text-align: justify;
}

/* ===================================
   Studio セクション
   =================================== */
.about-studio {
    text-align: center;
}

.about-studio > p {
    margin-bottom: 40px;
    line-height: 2.2;
}

.studio-images {
    margin-bottom: 60px;
}
.studio-images img {
    margin: 0 auto;
    width: 80%; /* 画像を少し控えめなサイズに */
}

.about-studio-access {
    text-align: left;
}

/* Access周り */
.about-studio h3 {
    font-family: "M PLUS Rounded 1c", Arial, sans-serif;
    font-weight: 500;
    font-size: 24px;
    display: inline-block;
}

.about-studio hr {
    width: 100%;
    margin: 10px auto 10px;
    border: none;
    border-top: 1px solid #333;
}

.schedule-content {
    width: 100%;
    text-align: center;
}

.studio-map {
    text-align: center;
}

/* ===================================
   Contact セクション（Aboutページ内）
   =================================== */
.about-contact {
    text-align: center;
    background-color: #fafafa;
    padding: 80px 20px;
    width: 100%; /* 背景色は画面いっぱいにする場合 */
    box-sizing: border-box;
    margin-bottom: 100px;
}

.contact-info {
    margin: 40px 0;
    font-size: 18px;
    line-height: 2;
}

/* インスタグラムボタン */
.home-inst-btn a {
    display: inline-block;
    border: 1px solid #333;
    padding: 15px 60px;
    background-color: #fff;
    transition: all 0.3s;
}

.home-inst-btn a:hover {
    background-color: #333;
    color: #fff;
}

.home-inst-btn p {
    font-family: 'Times New Roman', serif;
    letter-spacing: 0.1em;
}

/* ===================================
   Contactボタン（Email & Instagram）
   =================================== */

/* ボタンを横並びにする枠 */
.contact-links {
    display: flex;
    justify-content: center; /* 中央寄せ */
    gap: 30px; /* ボタン同士の間隔 */
    margin-top: 40px;
    flex-wrap: wrap; /* 画面が狭いときは折り返す */
    margin-bottom: 40px;
}

/* ボタン共通スタイル */
.contact-btn a {
    display: block;
    width: 220px;       /* ボタンの幅を統一 */
    padding: 15px 0;    /* 上下の余白 */
    border: 1px solid #333;
    background-color: #fff;
    text-align: center;
    transition: all 0.3s;
    box-sizing: border-box;
}

.contact-btn p {
    font-family: 'Times New Roman', serif;
    letter-spacing: 0.1em;
    font-size: 16px;
    margin: 0;
}

/* ホバー時の動き */
.contact-btn a:hover {
    background-color: #333;
    color: #fff;
}

/* ===================================
   Galleryページ (モーダル・カテゴリ等)
   =================================== */
.gallery-intro {
    text-align: center;
    font-size: 14px;
    line-height: 2;
    letter-spacing: 0.1em;
    margin-bottom: 80px;
}

.gallery-category {
    width: 85%;
    max-width: 1000px;
    margin: 0 auto 120px;
}

.category-title {
    font-family: "M PLUS Rounded 1c", Arial, sans-serif;
    font-size: 24px;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    border-left: 4px solid #333; /* 左側にアクセントライン */
    padding-left: 15px;
}

.category-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 40px;
    padding-left: 20px; /* タイトルのラインと位置関係を調整 */
}

/* ギャラリーの画像グリッド */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* PC版は4列 */
    gap: 20px; /* 画像間の隙間 */
}

/* 画像アイテム */
.gallery-item {
    overflow: hidden; /* ホバー拡大時のはみ出し防止 */
    position: relative;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1; /* 正方形にする */
    object-fit: cover; /* はみ出た部分をトリミング */
    cursor: pointer;
    transition: transform 0.5s ease;
}

/* ホバー時に画像をゆっくり拡大 */
.gallery-item:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

/* ===================================
   ギャラリー拡大表示（モーダル）
   =================================== */

/* モーダル全体の背景（黒・半透明） */
.modal {
    display: none; /* 初期状態は非表示 */
    position: fixed;
    z-index: 10000; /* 最前面に表示 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9); /* 背景色 */
    display: flex; 
    justify-content: center; /* 左右中央 */
    align-items: center;     /* 上下中央 */
}

/* 拡大画像 */
.modal-content {
    display: block;
    width: auto;      /* 幅はなりゆきで */
    max-width: 90%;   /* 画面幅の90%まで */
    height: auto;     /* 高さはなりゆきで */
    max-height: 90vh; /* 画面高さの90%まで */
    object-fit: contain; /* アスペクト比を保って収める */
    animation: zoomIn 0.3s;
    transition: opacity 0.2s;
}

/* 拡大アニメーション */
@keyframes zoomIn {
    from {transform:scale(0.9); opacity:0} 
    to {transform:scale(1); opacity:1}
}

/* 閉じるボタン (×) */
.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10001;
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* 前へ・次へボタン */
.prev-btn, .next-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px; /* 縦中央寄せ */
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 10001;
}

/* 次へボタンは右側に配置 */
.next-btn {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* 前へボタンは左側に配置 */
.prev-btn {
    left: 0;
    border-radius: 3px 0 0 3px;
}

/* ボタンホバー時 */
.prev-btn:hover, .next-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* スマホ対応（ボタン配置調整） */
@media only screen and (max-width: 700px) {
    .modal-content {
        width: 95%;
    }
    .prev-btn, .next-btn {
        padding: 10px;
        font-size: 20px;
    }
}