@charset "UTF-8";

/* =========================================================
   QUIET j. - Common CSS
========================================================= */

/* --- 1. Variables (カラー変数) --- */
:root {
    --bg-color: #FDFDFB;
    --text-color: #2C2C2C;
    --accent-color: #4A5D54; /* Sage Green */
    --accent-light: #7A8F85;
    --border-color: #E0E0E0;
    --gold: #A69160;
    --white: #FFFFFF;
    --gray-light: #F2F2F2;
}

/* --- 2. Base Reset (基本設定) --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    font-weight: 300;
    font-feature-settings: "palt";
    overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

h1, h2, h3, .serif { font-family: 'Noto Serif JP', serif; }
.en-serif { font-family: 'Cormorant Garamond', serif; }

a { text-decoration: none; color: inherit; transition: opacity 0.3s ease; }
a:hover { opacity: 0.7; }
img { max-width: 100%; height: auto; display: block; object-fit: cover; }
ul, ol { list-style: none; }

/* --- 3. Layout Containers (幅の制御) --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }
.article-container, .contact-container { max-width: 800px; margin: 0 auto; padding: 0 25px 100px; }

/* --- 4. Header & Footer (共通パーツ) --- */
header {
    position: relative;
    padding: 30px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 60px;
    z-index: 1000;
    background-color: var(--bg-color);
    transition: all 0.4s ease;
}
/* トップページ用の固定ヘッダー */
header.is-fixed { position: fixed; top: 0; left: 0; width: 100%; margin-bottom: 0; }
header.scrolled {
    background-color: rgba(253, 253, 251, 0.98);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    padding: 15px 0;
}

.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 600; letter-spacing: 0.05em; }
.logo span { font-style: italic; color: var(--accent-color); margin-left: 2px;}
.back-link { font-size: 0.8rem; color: #888; letter-spacing: 0.1em; display: flex; align-items: center; gap: 5px; width: 120px;}

.g-nav ul { display: flex; gap: 30px; }
.g-nav a { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500; position: relative; }
.g-nav a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0%; height: 1px; background: var(--accent-color); transition: width 0.3s; }
.g-nav a:hover::after { width: 100%; }
.header-utils { display: flex; gap: 20px; font-size: 1rem; cursor: pointer; width: 120px; justify-content: flex-end;}

footer { background-color: #202020; color: #999; padding: 80px 0 30px; font-size: 0.85rem; }
/* 記事ページ等の簡易フッター用 */
footer.simple-footer { background-color: var(--bg-color); border-top: 1px solid #eee; padding: 50px 0 30px; color: #999; }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: #fff; display: block; margin-bottom: 20px;}
.footer-flex { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 60px;}
.footer-col h4 { color: #fff; margin-bottom: 20px; font-weight: normal; letter-spacing: 0.1em; }
.footer-col ul li { margin-bottom: 10px; }

/* --- 5. Animation (共通アニメーション) --- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 1.2s ease, transform 1.2s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   Pages Styles
========================================================= */

/* --- トップページ --- */
.hero { height: 90vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 120%; object-fit: cover; z-index: -1; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); }
.hero-content { position: relative; z-index: 10; padding: 20px; }
.hero-title { font-family: 'Cormorant Garamond', serif; font-size: 4.5rem; line-height: 1; margin-bottom: 20px; }
.hero-subtitle { font-size: 0.9rem; letter-spacing: 0.2em; opacity: 0.9; }

.section-header { text-align: center; margin-bottom: 60px; }
.sec-title-en { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; color: var(--accent-color); font-style: italic; }
.sec-title-jp { display: block; font-size: 0.8rem; color: #999; letter-spacing: 0.1em; margin-top: 10px; }

.latest-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; height: 600px; }
.story-card { position: relative; overflow: hidden; display: block; height: 100%; color: #fff; }
.story-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
.story-card:hover img { transform: scale(1.05); }
.story-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; }
.card-cat { font-size: 0.7rem; letter-spacing: 0.15em; background: var(--gold); color: #fff; padding: 4px 10px; display: inline-block; margin-bottom: 15px; align-self: flex-start; }
.card-title { font-family: 'Noto Serif JP', serif; font-size: 1.8rem; line-height: 1.4; margin-bottom: 10px; }
.card-date { font-family: 'Cormorant Garamond', serif; font-size: 0.9rem; opacity: 0.8; }
.latest-sub-col { display: grid; grid-template-rows: 1fr 1fr; gap: 40px; }
.latest-sub-col .card-title { font-size: 1.3rem; }

.cat-scroll-wrap { overflow-x: auto; padding-bottom: 30px; -ms-overflow-style: none; scrollbar-width: none; }
.cat-scroll-wrap::-webkit-scrollbar { display: none; }
.cat-list { display: flex; gap: 30px; width: max-content; padding: 0 25px; }
.cat-card { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; }
.cat-card-img { height: 200px; margin-bottom: 15px; border-radius: 2px; overflow: hidden; }
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.cat-card:hover .cat-card-img img { transform: scale(1.05); }
.cat-label { font-family: 'Cormorant Garamond', serif; font-size: 0.8rem; color: var(--accent-color); border-bottom: 1px solid var(--accent-color); align-self: flex-start; margin-bottom: 10px; text-transform: uppercase; }
.cat-card-title { font-family: 'Noto Serif JP', serif; font-size: 1.1rem; font-weight: 500; line-height: 1.5; margin-bottom: 10px; }

/* ポップアップ */
.popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: rgba(0, 0, 0, 0.75); z-index: 9999; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 1.2s ease; }
.popup-overlay.active { opacity: 1; visibility: visible; }
.popup-content { background-color: #111111; max-width: 800px; width: 90%; max-height: 80vh; padding: 0 50px 50px; position: relative; overflow-y: auto; box-shadow: 0 10px 40px rgba(0,0,0,0.8); opacity: 0; transform: translateY(30px); transition: opacity 1s ease 0.3s, transform 1s ease 0.3s; }
.popup-overlay.active .popup-content { opacity: 1; transform: translateY(0); }

/* CLOSEボタンをコンテンツ内で固定（スクロールに追従） */
.popup-close-wrapper { position: sticky; top: 0; background-color: #111111; padding: 20px 0; margin-bottom: 10px; z-index: 10; display: flex; justify-content: flex-end; border-bottom: 1px solid rgba(255,255,255,0.05); }
.popup-close { font-size: 1.5rem; color: #888; cursor: pointer; transition: color 0.3s ease; display: flex; align-items: center; gap: 5px; }
.popup-close span { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
.popup-close:hover { color: #ffffff; }

.popup-title { font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: #ffffff; text-align: center; margin-bottom: 5px; letter-spacing: 0.1em; }
.popup-subtitle { text-align: center; font-family: 'Noto Serif JP', serif; font-size: 1.1rem; margin-bottom: 30px; letter-spacing: 0.1em; color: #cccccc; }
.popup-text { font-size: 0.95rem; line-height: 2.2; color: #eeeeee; text-align: justify; }
.popup-text p { margin-bottom: 1.5em; }

/* --- 記事ページ共通 --- */
.article-header { text-align: center; margin-bottom: 50px; }
.article-cat { display: inline-block; font-family: 'Cormorant Garamond', serif; color: var(--accent-color); letter-spacing: 0.15em; border: 1px solid var(--accent-color); padding: 5px 15px; font-size: 0.8rem; margin-bottom: 25px; }
.article-title { font-size: 2.2rem; font-weight: 500; line-height: 1.4; margin-bottom: 15px; }
.article-subtitle { font-size: 1.1rem; color: #666; font-family: 'Noto Serif JP', serif; margin-bottom: 20px; line-height: 1.6; }
.main-visual { width: 100%; height: 500px; object-fit: cover; margin-bottom: 60px; filter: brightness(0.95) contrast(1.05); }

.article-body { line-height: 2.2; }
.article-body p { margin-bottom: 2.2em; text-align: justify; font-size: 1.05rem; }
.drop-cap::first-letter { float: left; font-size: 3.8rem; line-height: 0.8; font-weight: 500; font-family: 'Noto Serif JP', serif; color: var(--accent-color); padding-right: 12px; margin-top: 5px; }
.article-body h2, .article-body h3 { font-size: 1.5rem; margin-top: 80px; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 1px solid var(--accent-light); letter-spacing: 0.05em; color: var(--text-color); }

.inline-image { margin: 60px -40px; width: calc(100% + 80px); }
.inline-image img { width: 100%; }
.caption { font-size: 0.8rem; color: #888; margin-top: 10px; text-align: right; display: block; padding-right: 40px;}
blockquote { position: relative; font-family: 'Noto Serif JP', serif; font-size: 1.25rem; color: var(--text-color); background: #F4F6F5; padding: 40px; margin: 60px 0; font-style: italic; text-align: center; }
blockquote::before { content: '“'; position: absolute; top: 10px; left: 20px; font-size: 4rem; color: rgba(74, 93, 84, 0.15); font-family: serif; }

.question { font-weight: 500; color: var(--accent-color); background: rgba(74, 93, 84, 0.05); padding: 20px 25px; border-left: 3px solid var(--accent-color); margin-bottom: 2em !important; }

/* 記事補足エリア (Profile / Data) */
.appendix-section { background-color: #F9F9F7; padding: 60px 50px; margin-top: 80px; border-top: 3px solid var(--accent-color); }
.appendix-box { margin-bottom: 50px; }
.appendix-box:last-child { margin-bottom: 0; }
.appendix-title { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: var(--text-color); margin-bottom: 20px; letter-spacing: 0.1em; border-bottom: 1px solid #e0e0e0; padding-bottom: 10px; }
.appendix-text { font-size: 0.9rem; color: #555; line-height: 2; text-align: justify; }

/* --- About Us --- */
.about-hero { position: relative; height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); margin-bottom: 100px; }
.about-hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85); z-index: -1; }
.about-hero-title { font-family: 'Cormorant Garamond', serif; font-size: 4rem; letter-spacing: 0.1em; margin-bottom: 15px; }
.concept-title { font-size: 2rem; color: var(--accent-color); margin-bottom: 40px; line-height: 1.5; text-align: center;}
.concept-text { font-size: 1.05rem; color: #444; line-height: 2.4; text-align: justify; margin-bottom: 2em; }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.cat-item { background-color: #F9F9F7; padding: 40px; transition: transform 0.3s ease; }
.cat-item:hover { transform: translateY(-5px); }

/* --- Contact Form --- */
.contact-header { text-align: center; margin-bottom: 60px; }
.contact-title { font-family: 'Cormorant Garamond', serif; font-size: 3rem; color: var(--accent-color); letter-spacing: 0.05em; margin-bottom: 10px; }
.form-group { margin-bottom: 40px; }
.form-label { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--accent-color); margin-bottom: 10px; }
.form-control { width: 100%; background: transparent; border: none; border-bottom: 1px solid #D6D6D6; padding: 15px 0; font-size: 1rem; color: var(--text-color); outline: none; border-radius: 0; transition: border-color 0.3s ease;}
.form-control:focus { border-bottom-color: var(--accent-color); }
.submit-btn { background-color: var(--accent-color); color: var(--white); font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; letter-spacing: 0.1em; padding: 15px 60px; border: none; cursor: pointer; transition: all 0.4s ease; }
.submit-btn:hover { background-color: #2F3E37; }

/* Responsive */
@media (max-width: 768px) {
    .g-nav, .header-utils { display: none; }
    .hero-title { font-size: 3rem; }
    .latest-grid { grid-template-columns: 1fr; height: auto; grid-template-rows: 400px auto; }
    .latest-sub-col { grid-template-rows: 300px 300px; }
    .footer-flex { flex-direction: column; }
    .popup-content { padding: 40px 25px; }
    .article-title { font-size: 1.8rem; }
    .main-visual { height: 300px; }
    .inline-image { margin: 40px 0; width: 100%; }
    .caption { padding-right: 0; }
    .article-body p { font-size: 1rem; }
    .appendix-section { padding: 40px 25px; }
    .cat-grid { grid-template-columns: 1fr; }
}