@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;500&family=Shippori+Mincho:wght@400;500&display=swap');

:root {
  --bg: #fcfaf5;
  --text: #2c1e11;
  --accent: #d4af37;
  --sub-text: #888;
  --white: #ffffff;
  --serif: 'Shippori Mincho', 'Noto Serif JP', serif;
  --sans: "Helvetica Neue", Arial, "Hiragino Sans", sans-serif;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 2;
  letter-spacing: 0.06em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Header --- */
.site-header {
  padding: 40px 0;
  text-align: center;
  width: 100%;
  z-index: 100;
}

/* index.html の時だけ absolute にするためのクラス */
.header-absolute {
  position: absolute;
  top: 0;
}

.site-header h1 {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.4em;
  font-weight: 500;
  margin: 0;
  color: var(--text);
}

/* --- Hero (Index only) --- */
.hero-statement {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero-bg-image {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('assets/images/top1.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 3s ease-in-out;
  z-index: 1;
}
.hero-bg-image.is-visible { opacity: 0.3; }

.statement-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 300px;
  z-index: 10;
}
.statement-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  text-align: center;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 2.4;
  opacity: 0;
  transition: opacity 2.5s ease-in-out;
  pointer-events: none;
}
.statement-text.is-active { opacity: 1; pointer-events: auto; }

/* --- Section Label --- */
.section-label {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--sub-text);
  margin: 100px 0 60px;
}
.section-label::after { content: ""; height: 1px; flex-grow: 1; background: rgba(0,0,0,0.08); }

/* --- Article Detail (fujiwara.htmlなど) --- */
.article-container {
  max-width: 800px; 
  margin: 80px auto 160px;
}

.article-header {
  text-align: center;
  margin-bottom: 60px;
}

.article-title {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.6;
  margin: 20px 0;
  font-weight: 500;
}

.article-main-visual {
  margin-bottom: 80px;
}

.article-main-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.article-body {
  font-size: 1.05rem;
}

.article-body h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin: 80px 0 40px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.article-body p {
  margin-bottom: 2.5em;
}

.figure-natural {
  margin: 60px 0;
}

.figure-natural img {
  width: 100%;
  height: auto;
}

.figure-natural figcaption {
  font-size: 0.8rem;
  color: var(--sub-text);
  margin-top: 15px;
  text-align: center;
}

.article-footer {
  margin-top: 100px;
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 60px;
}

.back-home {
  display: inline-block;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  border: 1px solid var(--text);
  padding: 12px 40px;
  transition: all 0.3s;
}

.back-home:hover {
  background: var(--text);
  color: var(--white);
}

/* --- Index Grid --- */
.feature-area { margin-bottom: 160px; }
.feature-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.feature-img-wrapper {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #eee;
}
.feature-img-wrapper img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s ease;
}
.feature-card:hover img { transform: scale(1.05); }

.feature-content h3 { font-family: var(--serif); font-size: 1.8rem; margin: 0 0 30px; line-height: 1.6; }
.btn-read { font-size: 0.8rem; border-bottom: 1px solid var(--text); padding-bottom: 5px; }

.log-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 50px;
  margin-bottom: 140px;
}
.log-item { text-decoration: none; color: inherit; display: block; }
.log-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 20px;
  display: block;
}

footer { 
  padding: 100px 0 240px;
  border-top: 1px solid rgba(0,0,0,0.05); 
  text-align: center; 
  font-size: 0.7rem; 
  color: var(--sub-text); 
}

/* --- Fixed Footer Button --- */
.fixed-footer-cta {
  position: fixed;
  bottom: 40px;
  left: 0;
  width: 100%;
  z-index: 2000;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: opacity 1.5s cubic-bezier(0.33, 1, 0.68, 1), 
              transform 1.5s cubic-bezier(0.33, 1, 0.68, 1),
              visibility 1.5s;
}

.fixed-footer-cta.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cta-container {
  width: 100%;
  max-width: 500px;
  text-align: center;
  background: rgba(252, 250, 245, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.03);
}

.cta-link {
  display: block;
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 16px 0;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.1em;
  border-radius: 4px;
  transition: transform 0.2s, background 0.2s;
}

.cta-email {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--sub-text);
  letter-spacing: 0.05em;
}

/* --- スマホ・タブレット向け調整 --- */
@media (max-width: 900px) {
  .container { padding: 0 25px; }
  .site-header { padding: 30px 0; }
  .site-header h1 { font-size: 0.85rem; letter-spacing: 0.2em; }
  
  .statement-text { font-size: 1.3rem; line-height: 2.2; width: 85%; }
  
  .feature-card { grid-template-columns: 1fr; gap: 30px; }
  .feature-content h3 { font-size: 1.4rem; margin-bottom: 15px; }
  
  .article-container { margin: 40px auto 100px; }
  .article-title { font-size: 1.4rem; }
  .article-body h2 { font-size: 1.25rem; margin: 60px 0 30px; }
  
  .fixed-footer-cta { bottom: 20px; }
}
/* 記事ページの余白修正 */
.article-container {
padding-left: 25px !important;
padding-right: 25px !important;
box-sizing: border-box !important;
}

/* スマホ用タイトルの調整 */
@media (max-width: 900px) {
.article-title {
font-size: 1.4rem !important;
padding: 0 !important;
}
}