/* AdSence */

.ad-spacer {
    margin: 40px auto;
    text-align: center;
    max-width: 900px;
    min-height: 100px;
    background: transparent;
    overflow: hidden;
}

.ad-spacer::before {
    content: "スポンサーリンク";
    display: block;
    font-size: 10px;
    color: #bbb;
    margin-bottom: 5px;
}

/* opening animation -------------------------------------------------- */

/* オープニングの土台 */
.opening-animation {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #fdfbfb; /* サイトの雰囲気に合わせた淡色 */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* ロゴの初期状態とアニメーション */
.opening__logo {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s forwards 0.5s;
  color: #8e8383;
  letter-spacing: 0.1em;
  font-family: "serif";
}

/* 読み込み完了後に付与するクラス */
.is-loaded {
  opacity: 0;
  visibility: hidden;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* bg -------------------------------------------------- */

.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2; /* コンテンツの背面に配置 */
  background: #fffafa; /* ベースの淡いピンクホワイト */
  overflow: hidden;
}

.bg-gradient::before,
.bg-gradient::after {
  content: "";
  position: absolute;
  width: 100vmax;
  height: 100vmax;
  border-radius: 50%;
  opacity: 0.5;
  filter: blur(60px); /* ぼかしを強くしてふわふわ感を演出 */
  animation: drift 20s infinite alternate ease-in-out;
}

/* 1つ目のピンクの塊 */
.bg-gradient::before {
  background: radial-gradient(circle, #ffe4e1 0%, transparent 70%);
  top: -20%;
  left: -10%;
}

/* 2つ目の少し濃いピンクの塊 */
.bg-gradient::after {
  background: radial-gradient(circle, #ffdbdb 0%, transparent 70%);
  bottom: -20%;
  right: -10%;
  animation-duration: 25s;
  animation-direction: alternate-reverse;
}

/* ゆっくりと漂うような動き */
@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(10%, 15%) scale(1.1);
  }
}

.bubble-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* 背景とコンテンツの間に配置 */
  pointer-events: none; /* マウス操作を邪魔しない */
}

/* header -------------------------------------------------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 40px; /* 上下の余白を広めにとり、優雅さを演出 */
  z-index: 100;
  box-sizing: border-box;
  overflow: hidden;
  transition: transform 0.5s ease, opacity 0.5s ease;
  transform: translateY(0);
  opacity: 1;
}

.header--hidden {
  transform: translateY(-100%); /* 上に追い出す */
  opacity: 0;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  z-index: -1;
  animation: breathing-white 8s ease-in-out infinite;
  backdrop-filter: blur(5px); 
}

@keyframes breathing-white {
  0%, 100% {
    opacity: 0.2; /* 一番薄い時（ほぼ背景が見える） */
  }
  50% {
    opacity: 0.8; /* 一番濃い時（文字がハッキリ読める） */
  }
}

.header__list {
  display: flex;
  justify-content: center; /* 中央寄せ（左寄せなら flex-start） */
  align-items: center;
  list-style: none;
  gap: 30px; /* 項目間の距離 */
  margin: 0;
  padding: 0;
}

.header__list li a {
  text-decoration: none;
  color: #8e8383;
  font-family: "serif"; /* 清楚な明朝体系 */
  font-size: 10px;      /* 小さめの文字サイズ */
  letter-spacing: 0.2em;   /* 文字間隔を広げて読みやすく */
  transition: opacity 0.3s ease;
}

/* ホバー時に少し薄くする演出 */
.header__list li a:hover {
  opacity: 0.5;
}

/* SNSリンクに少し変化をつけたい場合の指定 */
.header__sns a {
  font-style: italic; /* SNSのみ斜体にするなど、微細なニュアンス */
}

/* モバイル対応：画面が狭い場合は少し間隔を詰める */
@media (max-width: 768px) {
  .header {
    padding: 20px;
  }
  .header__list {
    gap: 15px;
    flex-wrap: wrap; /* 折り返しを許可 */
  }
}

/* top -------------------------------------------------- */

.top {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh; /* 画面いっぱいに表示 */
  padding-top: 80px; /* ヘッダーと被らないように調整 */
  box-sizing: border-box;
}

.top__inner {
  text-align: center;
}

/* ロゴのスタイルとアニメーション */
.top__logo {
  opacity: 0;
  transform: translateY(20px);
  animation: fadetop 1.5s forwards;
  /* オープニングが終わる1.5秒後からアニメーション開始 */
  animation-delay: 4.5s; 
  margin-bottom: 30px; /* H1との間隔 */
}

.top__logo img {
  max-width: 100%; /* 親要素からはみ出さないように */
  height: auto;
}

/* H1（テキスト）のスタイルとアニメーション */
.top__title {
  opacity: 0;
  transform: translateY(20px);
  animation: fadetop 1.5s forwards;
  animation-delay: 1.8s; 
  color: #8e8383; /* ヘッダーと同じグレー */
  font-family: "serif";
  font-size: 24px; /* 適切な大きさに調整してください */
  font-weight: normal;
  line-height: 1.6;
  letter-spacing: 0.15em;
}

@media (max-width: 768px) {
  .top__title {
    font-size: 18px;
  }
}

/* H1内のサブテキスト（小さく） */
.top__title-sub {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .top__title-sub {
    font-size: 10px;
  }
}

/* ふわっと現れるアニメーションの定義 */
@keyframes fadetop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* blog -------------------------------------------------- */

/* --- Blog Section --- */
.blog {
  padding: 120px 0;
}

@media (max-width: 768px) {
  .blog {
  padding: 60px 0;
  }
}

.blog__title {
  text-align: center;
  color: #8e8383;
  font-family: "serif";
  font-size: 18px;
  font-weight: normal;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 80px;
  text-align: center;
}

.blog__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .blog__list {
    padding: 20px 0; /* タップしやすい広さを確保 */
    display: flex;
    flex-direction: column; /* 日付、タイトルの順に縦並び */
    align-items: center; /* センター寄せ */
    text-align: center;
  }
}

.blog__link {
  text-decoration: none;
  display: block;
}

@media (max-width: 768px) {
  .blog__image {
    display: none;
  }
}

.blog__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 20px;
  background-color: #f9f9f9;
}

.blog__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 20px;
  background-color: #f9f9f9;
}

@media (max-width: 768px) {
  .blog__image {
    display: none;
  }
}

.blog__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog__date {
  font-family: "serif";
  font-size: 13px;
  color: #8e8383;
  letter-spacing: 0.1em;
  font-style: italic;
}

@media (max-width: 768px) {
  .blog__date {
    margin-bottom: 15px;
    font-size: 11px;
  }
}

.blog__item-title {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  font-weight: normal;
}

@media (max-width: 768px) {
  .blog__item-title {
    font-size: 14px;
    margin-top: 5px;
    line-height: 1.4;
  }
}

.blog__link:hover .blog__image img {
  transform: scale(1.05);
}

.blog__link:hover .blog__item-title {
  color: #8e8383;
}

.blog__view-more {
  text-align: center;
  margin-top: 60px;
}

/* スマホ用（768px以下） */
@media screen and (max-width: 768px) {
  .blog__list {
    grid-template-columns: 1fr; /* スマホは1列でしっかり見せる */
    gap: 40px;
  }
  
  .blog {
    padding: 80px 0;
  }
}

/* gallery -------------------------------------------------- */

.gallery {
  position: relative;
  height: 500vh;
  padding: 0;
}

/* 画面内に固定するエリア */
.gallery__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  justify-content: center; /* 上下中央に配置 */
  align-items: center;
}

.gallery__inner {
  width: 100%;
  margin: 0 auto;
}

.gallery__title {
  text-align: center;
  color: #8e8383;
  font-family: "serif";
  font-size: 18px;
  font-weight: normal;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 80px;
  text-align: center;
}

.gallery__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  padding-left: 15%;
  gap: 50px;
  padding-left: calc(50vw - (360 / 2) - (50 / 2));
  will-change: transform;
}

.gallery__item {
  flex-shrink: 0;   /* 横スクロール中に潰れないように固定 */
  width: 360px;     /* 横幅360px */
  height: 360px;    /* 縦幅360px（これで正方形になります） */
  border-radius: 20px; /* 角丸（お好みで数値を変えてください） */
  overflow: hidden; /* 画像が角丸からはみ出さないようにする */
  background-color: #f0f0f0;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 重要！縦横比を維持したまま枠いっぱいに広げます */
}

.gallery__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4; /* 縦長で上品な比率 */
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease-out; /* 戻る時の滑らかさ */
  will-change: transform;
}

.gallery__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* about -------------------------------------------------- */

.about {
  padding: 150px 0;
  background-color: transparent; /* 背景のシャボン玉を見せるため */
}

.about__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
}

.about__container {
  display: flex;
  align-items: center;
  gap: 80px;
}

@media screen and (max-width: 768px) {
  .about__container {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
  }
}

.about__image {
  flex: 1;
  max-width: 400px;
}

.about__image img {
  width: 100%;
  height: auto;
}

.about__content {
  flex: 1;
  color: #8e8383;
}

.about__title {
  color: #8e8383;
  font-family: "serif";
  font-size: 18px;
  font-weight: normal;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 80px;
}

@media (max-width: 768px) {
  .about__title {
    text-align: center;
  }
}

.about__name {
  font-size: 16px;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
}

@media (max-width: 768px) {
  .about__name {
    text-align: center;
  }
}

.about__sub {
  font-family: "serif";
  font-size: 12px;
  font-style: italic;
  opacity: 0.8;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .about__sub {
    text-align: center;
  }
}

.about__text {
  font-size: 14px;
  line-height: 2;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .about__text {
    text-align: center;
  }
}

.about__text--en {
  font-family: "serif";
  font-size: 12px;
  font-style: italic;
  opacity: 0.8;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .about__text--en {
    text-align: center;
  }
}

.about__history {
  margin-top: 150px; /* 本文からしっかり距離をとる */
  text-align: center;
}

.history__title {
  color: #8e8383;
  font-family: "serif";
  font-size: 18px;
  font-weight: normal;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 80px;
}

.history__list {
  display: flex;
  flex-direction: column;
  gap: 30px; /* 項目間の縦の隙間 */
  align-items: center;
}

.history__item {
  display: flex;
  flex-direction: column; /* 縦に並べてタイポグラフィを強調 */
  gap: 8px;
}

@media (min-width: 768px) {
  .history__item {
    flex-direction: row;
    gap: 20px;
    align-items: baseline;
  }
}

.history__year {
  font-family: "serif";
  font-size: 13px;
  color: #8e8383;
  letter-spacing: 0.1em;
  font-style: italic; /* 少し斜体にするのが参考サイト風 */
}

@media (min-width: 768px) {
  .history__year {
    width: 80px;
    text-align: right;
  }
}

.history__text {
  font-size: 14px;
  color: #666;
  margin: 0;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

/* スクロール出現アニメーション用のクラス */
.js-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* banner -------------------------------------------------- */

.banner {
  width: 100%;
  margin-top: 40px;
  position: relative;
}

@media screen and (max-width: 768px) {
  .banner {
    margin-top: 0px;
  }
}

.banner-image {
  width: 100%;
  height: 240px;           /* 画面の高さの60%程度にする（お好みで調整） */
  position: relative;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .banner-image {
    height: 40vh;
  }
}

.banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* 枠に合わせて画像を綺麗に切り抜く */
  object-position: center; /* 画像の中心を基準にする */
}

/* works -------------------------------------------------- */

.works {
  padding: 120px 0;
}

.works__title {
  color: #8e8383;
  font-family: "serif";
  font-size: 18px;
  font-weight: normal;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 80px;
  text-align: center;
}

/* グリッドレイアウト（PC版：3列） */
.works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px; /* 画像同士の隙間 */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.works__item {
  display: block;
  text-decoration: none;
  overflow: hidden;
  position: relative;
}

.works__image {
  aspect-ratio: 1 / 1; /* 正方形に統一（参考サイト風） */
  overflow: hidden;
  position: relative;
  background-color: #f0f0f0;
}

.works__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ホバー時のオーバーレイ（ふわっと暗くなる） */
.works__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2); /* ほんのり暗く */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.works__category {
  color: #fff;
  font-family: "serif";
  font-size: 12px;
  letter-spacing: 0.1em;
  border-bottom: 1px solid #fff;
  padding-bottom: 4px;
}

/* ホバーアクション */
.works__item:hover .works__image img {
  transform: scale(1.08); /* 画像を少し拡大 */
}

.works__item:hover .works__overlay {
  opacity: 1; /* カテゴリ表示 */
}

/* View More ボタン */
.works__view-more {
  text-align: center;
  margin-top: 60px;
}

.view-more-btn {
  font-family: "serif";
  font-size: 13px;
  color: #8e8383;
  text-decoration: none;
  letter-spacing: 0.1em;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
  transition: all 0.3s;
}

.view-more-btn:hover {
  color: #333;
  border-bottom-color: #333;
}

/* --- レスポンシブ（768px以下） --- */
@media screen and (max-width: 768px) {
  .works__grid {
    grid-template-columns: repeat(2, 1fr); /* スマホは2列 */
    gap: 10px;
  }
  
  .works {
    padding: 80px 0;
  }

  .works__title {
    margin-bottom: 40px;
  }
}

/* © -------------------------------------------------- */

.footer {
  margin-top: 20px;
  grid-row-start: 2;
  grid-row-end: 3;
  width: 100%;
}

.footer_text {
  font-weight: 500;
  font-size: 12px;
  color: var(--text-gray-color);
  margin-top: 16px;
  text-align: center;
  padding-bottom: 8px;
  letter-spacing: 0.08em;
  font-family: "serif";
  color: #8e8383;
}
