@charset "UTF-8";

/* ==========================================================================
   01. 全体設定（変数）
   カラーやフォントのベースとなる設定です。ここを変更するとサイト全体に反映されます。
   ========================================================================== */
:root {
    /* カラーパレット */
    --color-bg-light: #f5f5f5;      /* 薄いグレーの背景色 */
    --color-bg-white: #ffffff;      /* 白の背景色 */
    --color-bg-dark: #1a1a1a;       /* 暗い背景色 */
    --color-text-main: #111111;     /* メインテキスト色（黒系） */
    --color-text-muted: #666666;    /* サブテキスト色（グレー系） */
    --color-gold: #c5a059;          /* アクセントカラー（ゴールド系） */
    --color-border: #e0e0e0;        /* 境界線の色 */
    
    /* フォントファミリー */
    --font-serif: 'Cormorant Garamond', serif;                  /* セリフ体（見出し・英語用） */
    --font-sans: 'Helvetica Neue', Arial, 'Noto Sans JP', sans-serif; /* サンセリフ体（本文・日本語用） */
}

/* ==========================================================================
   02. ベーススタイル
   ブラウザのデフォルトスタイルをリセットし、基本的な文字設定を行います。
   ========================================================================== */
html { 
    scroll-behavior: smooth; /* ページ内リンクを滑らかにスクロール */
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: 1.8;
    letter-spacing: 0.05em;
    overflow-x: hidden; /* 横揺れを防止 */
}

h1, h2, h3, h4 { 
    margin: 0; 
    line-height: 1.2; 
    font-weight: normal; 
}

a { 
    text-decoration: none; 
    color: inherit; 
}

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

/* ==========================================================================
   03. 共通モジュール・アニメーション
   複数のセクションで使用する共通の部品や動きの定義です。
   ========================================================================== */
/* セクション英語ラベル */
.label-en {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.2rem);
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 2rem;
}

/* フェードインアニメーション（JSと連動） */
.fade-in {
    opacity: 0;
    transform: translateY(30px); /* 初期位置は少し下 */
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0); /* 元の位置に戻る */
}

/* ==========================================================================
   04. ヘッダー (Header)
   ========================================================================== */
.header {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%;
    padding: 1.5rem 4%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    color: #ffffff; /* デフォルトは白文字 */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

/* スクロールして白背景エリアに入った際のスタイル（JSで制御） */
.header.scrolled {
    color: var(--color-text-main);
    text-shadow: none;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

/* ナビゲーションリンクのホバー下線アニメーション */
.nav-links a {
    position: relative;
}
.nav-links a::after {
    content: ''; 
    position: absolute; 
    bottom: -4px; 
    left: 0; 
    width: 0; 
    height: 1px;
    background: currentColor; 
    transition: width 0.3s;
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after { 
    width: 100%; 
}

/* ヘッダー右上のコンタクトボタン */
.btn-contact {
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    padding: 8px 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    text-shadow: none;
}
.btn-contact:hover {
    background: #ffffff;
    color: #000000;
}

/* 白背景エリアでのコンタクトボタンスタイル */
.header.scrolled .btn-contact {
    border-color: rgba(0, 0, 0, 0.3);
}
.header.scrolled .btn-contact:hover {
    background: var(--color-text-main);
    color: #ffffff;
}

/* スマホ表示時は標準メニューを非表示にする（インラインのハンバーガー設定へ委譲） */
@media (max-width: 768px) {
    .nav-links { display: none; } 
}

/* ==========================================================================
   05. ヒーローセクション (Hero Section)
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-bg-white);
}

/* 全体を覆う黒い半透明のオーバーレイ */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* 透明度の調整はこちら（0.0〜1.0） */
    z-index: 5;
    pointer-events: none;
}

/* 背景画像のコンテナ */
.hero-images {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    pointer-events: none;
}

/* 各画像の共通スタイル */
.hero-img {
    position: absolute;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    border-radius: 4px;
    object-fit: cover;
    filter: brightness(0.85); /* 画像を少し暗くしてテキストを目立たせる */
}

/* 各画像の個別配置と角度（PCサイズ） */
.hero-img.img1 { width: 35vw; height: 50vh; top: 10%; left: 5%; transform: rotate(-8deg); z-index: 1; }
.hero-img.img2 { width: 45vw; height: 60vh; top: 15%; right: 5%; transform: rotate(5deg); z-index: 2; }
.hero-img.img3 { width: 30vw; height: 40vh; bottom: -10%; left: 20%; transform: rotate(-4deg); z-index: 3; }
.hero-img.img4 { width: 25vw; height: 45vh; bottom: -15%; right: 8%; transform: rotate(7deg); z-index: 4; }

/* ヒーローセクションのテキストエリア */
.hero-text {
    position: absolute;
    bottom: 8%;
    left: 4%;
    z-index: 10;
    text-align: left;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-sub {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}
.hero-sub span { 
    color: var(--color-gold); 
    font-style: italic; 
    font-family: var(--font-serif); 
}

.hero-main {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 12vw, 12rem);
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin: 0;
}
.hero-main i { font-style: italic; }

.hero-desc {
    margin-top: 2rem;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    letter-spacing: 0.1em;
    opacity: 0.9;
}

/* スマホ表示時のヒーローレイアウト調整 */
@media (max-width: 768px) {
    .hero-img.img1 { width: 70vw; top: 15%; left: -10%; }
    .hero-img.img2 { width: 80vw; top: 35%; right: -10%; }
    .hero-img.img3 { display: none; } /* 画面が狭いため非表示 */
    .hero-img.img4 { display: none; } /* 画面が狭いため非表示 */
    
    /* スマホではテキストを画面中央に配置 */
    .hero-text {
        position: relative;
        bottom: auto;
        left: auto;
        text-align: center;
        width: 100%;
        padding: 0 5%;
        box-sizing: border-box;
    }
}

/* ==========================================================================
   06. セクション1: アバウト (About)
   ========================================================================== */
.about {
    background-color: var(--color-bg-white);
    padding: 6rem 5%;
}

.about-container {
    position: relative; 
    z-index: 1;         
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
}

.about-left { flex: 1; }

.about-title {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--color-text-main);
}

.about-en {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    letter-spacing: 0.05em;
}

@media (max-width: 900px) {
    .about-container { flex-direction: column; }
}

/* ==========================================================================
   07. セクション2: ギャラリー (Gallery)
   ========================================================================== */
.gallery {
    background-color: var(--color-bg-light);
    padding: 8rem 0;
    position: relative;
}

/* 背景で自動スクロールするテキスト */
.marquee-container {
    position: absolute;
    top: -5vw; /* セクション境界に配置 */
    left: 0;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.marquee-text {
    font-family: var(--font-serif);
    font-style: normal;
    font-size: 10vw;
    line-height: 1;
    white-space: nowrap;
    color: var(--color-text-main);
    opacity: 1; 
    letter-spacing: 0.05em;
    animation: marquee 30s linear infinite; /* 30秒かけてスクロール */
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.gallery-container {
    position: relative;
    z-index: 1;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* ギャラリーのグリッド設定 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

/* 偶数番目の画像を下にずらしてリズムを作る */
.gallery-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}
.gallery-item:nth-child(even) {
    margin-top: 8rem;
}

/* ギャラリー画像のホバー拡大アニメーション */
.gallery-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}
.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-family: var(--font-serif);
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: 1fr; gap: 4rem; }
    .gallery-item:nth-child(even) { margin-top: 0; } /* スマホではズレを解除 */
}

/* ==========================================================================
   08. セクション3: サービス (Services)
   ========================================================================== */
.services {
    background-color: var(--color-bg-light);
    padding: 10rem 5%;
    border-top: 1px solid var(--color-border);
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
}

.services-header {
    margin-bottom: 6rem;
}
.services-title {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

/* サービス内容のグリッド設定 */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    position: relative;
}

/* 左右を分ける中央の区切り線 */
.services-grid::after {
    content: '';
    position: absolute;
    top: 0; 
    left: 50%;
    width: 1px; 
    height: 100%;
    background-color: var(--color-border);
    transform: translateX(-50%);
}

.service-col {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.service-num {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--color-text-main);
    white-space: nowrap;
}

.service-content h3 {
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.service-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.service-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text-main);
    margin-bottom: 2rem;
}

/* タグのデザイン */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.tag {
    border: 1px solid #dcdcdc;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    background: transparent;
    transition: all 0.3s;
}
.tag:hover {
    border-color: var(--color-text-main);
    color: var(--color-text-main);
}

@media (max-width: 900px) {
    .services-grid { grid-template-columns: 1fr; gap: 4rem; }
    .services-grid::after { display: none; } /* スマホ・タブレットでは区切り線を消す */
}
@media (max-width: 600px) {
    .service-col { flex-direction: column; gap: 1rem; }
}

/* ==========================================================================
   09. セクション4: スタッフ (Staff) - ダークモードベース
   ========================================================================== */
.staff {
    background-color: var(--color-bg-dark);
    color: #ffffff;
    padding: 10rem 5%;
}

.staff-container {
    max-width: 1400px;
    margin: 0 auto;
}

.staff-header .label-en {
    color: rgba(255, 255, 255, 0.5);
}

.staff-list {
    margin-top: 4rem;
}

.staff-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.staff-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.staff-info {
    flex: 1;
    padding-right: 2rem;
}

.staff-num {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    margin-bottom: 1rem;
}

.staff-role {
    font-size: 0.9rem;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.staff-name {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

.staff-desc {
    font-size: 0.95rem;
    color: #aaaaaa;
    line-height: 1.8;
    max-width: 600px;
}

/* スタッフ画像のホバー設定（モノクロからカラーへ） */
.staff-img {
    width: clamp(250px, 30vw, 400px);
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 4px;
}
.staff-img img {
    width: 100%; 
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    filter: grayscale(30%); /* 通常時は少しモノクロ */
}
.staff-item:hover .staff-img img {
    transform: scale(1.05);
    filter: grayscale(0%); /* ホバー時にカラーへ */
}

@media (max-width: 900px) {
    .staff-item { flex-direction: column-reverse; align-items: flex-start; gap: 2rem; }
    .staff-img { width: 100%; aspect-ratio: 16/9; }
    .staff-info { padding-right: 0; }
}

/* ==========================================================================
   10. フッター (Footer)
   ========================================================================== */
.footer {
    background-color: #111111;
    color: #ffffff;
    padding: 8rem 5% 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 4rem;
    margin-bottom: 2rem;
}

.footer-left .footer-sub {
    font-size: 0.9rem;
    color: #888888;
    margin-bottom: 1rem;
}

.footer-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1;
    margin-bottom: 1rem;
}

.footer-note {
    font-size: 0.9rem;
    color: #666666;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3rem;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666666;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}
.footer-links a:hover { 
    color: #ffffff; 
}

@media (max-width: 900px) {
    .footer-container { flex-direction: column; align-items: flex-start; gap: 4rem; }
    .footer-right { align-items: flex-start; }
}