@charset "UTF-8";
/* ==========================================
   共通設定（全ページ共通）
========================================== */
html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  background: #f7f7f5;
  color: #333;
  line-height: 1.8;
}

body.has-fixed-header {
  padding-top: 52px;
}



/* ==========================================================================
   Islemoa 共通レイアウト（各ページ上部のタイトル・サブタイトル）
   ========================================================================== */
/* ページ大見出し（上部の淡い背景の帯エリア） */

.title ,
.title2{
  margin-top: 70px;
  margin-bottom: 20px;
  font-size: 2.0rem;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 40px 20px 30px 20px;
  background: #e9ede8;
  color: #2b363b;
  font-weight: bold;
}

/* サブタイトル */
.subtitle,
.subtitle2 {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
  text-align: center;
  color: #555;
  font-weight: normal;
  letter-spacing: 0.02em;
}
/* ==========================================================================
   Islemoa 高機能スライドショー（JS連動・デザイン昇華版）
   ========================================================================== */
.slider {
  width: 100%;
  max-width: 780px;
  margin: 0 auto 20px auto; /* 下のドットとの位置調整 */
  position: relative;
}

.slides {
  position: relative;
  height: 350px;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(47, 58, 52, 0.15); /* 重い黒から、Islemoaの淡い空気感に溶け込む影へ */
}

.slides img,
.slides shadow, /* 未来の互換性用 */
.slides video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1.2s ease, visibility 1.2s ease; /* じわっと切り替わる 1.2 秒を維持 */
}

.slides img.active,
.slides video.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.slides video {
  object-fit: contain !important;
  background: #e9ede8; /* 真黒から、Aboutタイトルと同じ静かな緑がかったグレー背景へ */
}
/* スマートフォン表示対応 */
@media (max-width: 768px) {
  .slides { height:250px; }
  
  .slide-caption-box {
    bottom: 10px;
    left: 15px;
    padding: 8px 20px;
    max-width: 85%;
  }
  .slide-caption-box h3 { font-size: 0.9rem; }
  .slide-caption-box p { font-size: 0.7rem; }

  .thumbs img { width: 65px; height: 42px; }
  .about-title { font-size: 1.6rem; padding: 30px 20px; }
}

/* ===================================================
   ✨ 「まあるい見出し枠」の設定（レイアウト・アニメーションのみ）
   =================================================== */

/* 1. 見出し枠のベース（デフォルトは【背景：白】） */
.slide-caption-box {
  position: absolute;
  bottom: 20px; /* 画像の下側からの位置 */
  left: 25px;   /* 左側からの位置 */
  z-index: 10;
  
  /* 枠の基本デザイン（サイズ・形） */
  background-color: #ffffff; /* 基本となる白だけ残しています */
  padding: 14px 35px;        
  border-radius: 9999px;     /* 完全にまあるい形 */
  box-sizing: border-box;
  display: inline-block;

  /* 初期状態（普段は隠しておく） */
  opacity: 0;
  visibility: hidden;
  transform: translate3d(-40px, 0, 0);
}

/* 画像・動画に「active」がついた時だけ連動してフェードイン */
.slides img.active + .slide-caption-box,
.slides video.active + .slide-caption-box {
  visibility: visible;
animation: slideInOutLeft 3.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 0.4s;
}

/* 2. テキストの基本設定（サイズ・太さのみ） */
.slide-caption-box h3 {
  margin: 0 0 2px 0;
  font-size: 1.1rem;
  font-weight: 400; 
  color: #222222; /* デフォルトの文字色 */
}
.slide-caption-box p {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 400;
  color: #666666; /* デフォルトの説明文色 */
}

/* 3. 左からまっすぐフェードインするアニメーション */
@keyframes slideInOutLeft {
  /* 0s〜0.4s：すばやくフェードイン（約12%） */
  0% {
    opacity: 0;
    transform: translate3d(-40px, 0, 0);
  }
  12% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  /* 0.4s〜2.4s（2秒間）：表示状態を固定（約75%まで） */
  75% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  /* 2.4s〜3.2s：左へ消える（100%） */
  100% {
    opacity: 0;
    transform: translate3d(-20px, 0, 0);
  }
}

/* ===================================================
   ✨ ここまで
   =================================================== */


/* ドットナビゲーション */
.dots {
  text-align: center;
  margin-top: 15px;
  margin-bottom: 20px;
}

.dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 6px;
  background: #cbd3cb;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.dots .active {
  background: #2f3a34;
}

/* サムネイルエリア */
.thumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  margin-bottom: 60px;
}

.thumbs img {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s;
}

.thumbs img.active {
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(47, 58, 52, 0.2);
}

/* ==========================================
   Header
========================================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 6px #00000010;
  z-index: 1000;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

header h1 {
  margin: 0;
  font-size: 26px;
  color: #3a7f5a;
}

header h1 a,
nav a {
  text-decoration: none;
  color: #3a7f5a;
  font-weight: bold;
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 1;
}

nav a {
  padding: 0 4px;
}

.divider {
  width: 1px;
  height: 18px;
  background: #c8d8d0;
}

/* ===========================
   追加：2段構造ヘッダー用
=========================== */

/* 上段：ロゴ / ゲーム切り替え / グローバルナビ */
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 15px 20px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* 左ブロック */
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

header h1 {
  margin: 0;
  font-size: 26px;
  color: #3a7f5a;
}

header h1 a {
  text-decoration: none;
  color: #3a7f5a;
  font-weight: bold;
  white-space: nowrap;
}

/* 中央：ゲーム切り替え */
.game-switcher {
  display: flex;
  gap: 8px;
  margin: 0 auto;
}

.switch-btn {
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

/* 右：グローバルナビ（既存 nav を上書きしない範囲で調整） */
header nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

header nav a {
  padding: 0 4px;
  color: #3a7f5a;
  font-weight: bold;
  white-space: nowrap;
}

/* 区切り線 */
.divider {
  width: 1px;
  height: 18px;
  background: #c8d8d0;
}

/* ==========================================
   Footer
========================================== */
.footer {
  text-align: center;
  padding: 20px 0;
  background: #e9ede8;
  margin-top: 20px;
}

.footer-link {
  display: inline-block;
  color: #6b756f;
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 6px;
  
  /* 真ん中基準から左へ移動させる設定 */
  transform: translateX(-70px); /* ★数字を大きくするとさらに左へ動きます */
}

.footer-link:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.footer-text {
  margin: 0;
  color: #6b756f;
  font-size: 0.9rem;
}

/* ==========================================
   index.html
========================================== */
.hero-title {
  text-align: center;
  margin: 100px 0 30px;
}

.hero-title h2 {
  font-size: 28px;
  color: #2f6f4f;
  margin-bottom: 10px;
}

.hero-title p {
  color: #4a8f6a;
}

/* カード3つ */
.info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin: 2rem auto;
  width: 100%;
  max-width: 1000px;
  align-items: center;
}

.card {
  background: #fafafa;
  padding: 1.4rem 1.6rem;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  width: 100%;
  max-width: 1000px;
}

.card h3 {
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.card li {
  margin-bottom: 0.45rem;
  line-height: 1.55;
  font-size: 0.95rem;
}

/* 各項目の間に少し隙間を作る */
.card li {
  margin-bottom: 16px; 
}

/* 上に配置する日付のスタイル */
.card .date {
 display: block;      /* これで日付の後ろを強制的に改行します */
 font-size: 0.85em;   /* 文字を少し小さく */
 color: #666666;      /* 文字色を少し薄いグレーに */
 margin-bottom: 2px;  /* 日付と下の内容の間の隙間 */
 font-weight: bold;   /* 日付を少し太字にして強調（お好みで） */
}

/* ==========================================================================
 About / Log 共通
========================================================================== */
/* コンテンツ全体の包み（中央寄せ・最大幅） */
.about-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* 各セクションの塊 */
.about-section {
  margin-bottom: 60px;
}

/* 左側に静かな縦線が入る見出し（理念 / 年別区切り） */
.section-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #2f3a34;
  border-left: 4px solid #a8b8ac;
  padding-left: 12px;
  font-weight: bold;
  line-height: 1.2;
}

/* 本文テキストのベース */
.about-text {
  margin-bottom: 20px;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.log-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.log-item {
  margin-bottom: 40px;
  padding-left: 12px;
}
.log-date {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.log-item-title {
  margin: 0 0 10px 0;
  font-size: 1.1rem;
  color: #2f3a34;
  font-weight: 600;
}
/* ==========================================================================
   Daily Solaceページ専用：パーソナル日記（写真対応・スマホ完全最適化版）
========================================================================== */
/* 日記1日分のカード（ノートの紙片のような質感） */
.diary-card {
  background: #fafbfc; 
  border: 1px solid #eaf0ec; 
  border-radius: 6px; /* 角をほんの少しだけ丸めて優しい印象に */
  padding: 35px;
  margin-bottom: 55px; 
  box-shadow: 0 4px 15px rgba(168, 184, 172, 0.03); 
}

.diary-card:last-child {
  margin-bottom: 0;
}

/* 日記のヘッダー部分（日付や天気） */
.diary-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 1px dashed #dbe3de; 
  padding-bottom: 12px;
}

.diary-date {
  font-size: 0.9rem;
  color: #8fa094; 
  letter-spacing: 0.12em;
  font-weight: 500;
}

.diary-weather {
  font-size: 0.9rem;
  color: #a8b8ac;
}

/* 上質なノートに写真を貼ったようなフォトフレーム */
.diary-photo-frame {
  width: 100%;
  margin-bottom: 25px; /* 写真と下の文章との間の余白 */
  border-radius: 4px;   /* 写真の角を少し丸める */
  overflow: hidden;
  background-color: #f0f3f1; /* 画像が読み込まれる前の薄い土台色 */
}

/* フレームの中の写真そのもののデザイン */
.diary-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  opacity: 0.93;        /* ほんの少しだけ透かして全体に馴染ませる */
  transition: opacity 0.3s ease;
}

/* 写真にマウスを乗せたときに優しく鮮明にする演出 */
.diary-photo-frame:hover .diary-img {
  opacity: 1;
}

/* 日記の本文エリア */
.diary-body p {
  font-size: 0.95rem;
  color: #444; 
  line-height: 1.85; 
  letter-spacing: 0.05em;
  margin: 0;
  white-space: pre-wrap; /* 改行をそのまま画面に反映させる */
}

/*========================================================*/
/* 全体のボックス計算の崩れを予防 */
*, *::before, *::after {
  box-sizing: border-box;
}

/* タイムライン全体の幅 (記事一覧用) */
.diary-timeline {
  max-width: 580px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 0 120px 0;
}

/* セクションブロック */
.diary-section {
  margin-bottom: 75px;
}

/* 「／ 日常のブログ」「／ 日常のつぶやき」の見出し */
.section-heading {
  font-family: "Georgia", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 1.15rem;
  color: #4a544e;
  font-weight: 500;
  margin: 0 0 35px 0;
  letter-spacing: 0.08em;
  border-bottom: 1.5px solid #a8b8ac;
  padding-bottom: 8px;
}

/* --------------------------------------------------------------------------
   日常のブログ用（画像付き・カード全体リンク型）
   -------------------------------------------------------------------------- */
.diary-blog-card {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
  background: #fafbfc;
  border: 1px solid #eaf0ec;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 35px;
  box-shadow: 0 4px 15px rgba(168, 184, 172, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.diary-blog-card:last-child {
  margin-bottom: 0;
}

.diary-blog-card:hover {
  transform: translateY(-4px);
  border-color: #dbe3de;
  box-shadow: 0 10px 25px rgba(168, 184, 172, 0.12);
}

.diary-thumbnail {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #f0f3f1;
}

.diary-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.diary-blog-card:hover .diary-thumbnail img {
  transform: scale(1.03);
}

.diary-blog-content {
  padding: 30px 35px 25px 35px;
}

.diary-blog-content .diary-meta {
  margin-bottom: 15px;
  border-bottom: none;
  padding-bottom: 0;
}

.diary-blog-title {
  font-size: 1.18rem;
  font-weight: 500;
  color: #333d37;
  line-height: 1.5;
  margin: 0 0 12px 0;
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
}

.diary-blog-card:hover .diary-blog-title {
  color: #6b7c70;
}

.diary-excerpt {
  font-size: 0.92rem;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

.diary-category-wrapper {
  margin-top: 15px;
  display: flex;
  justify-content: flex-end;
  padding-right: 5px;
  padding-bottom: 5px;
}

.diary-category {
  font-family: "Georgia", serif;
  font-size: 0.75rem;
  color: #7a8b80;
  background-color: #f0f4f1;
  border: 1px solid #dce5df;
  padding: 3px 12px;
  border-radius: 12px;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
}

.diary-blog-card:hover .diary-category {
  background-color: #7a8b80;
  color: #ffffff;
  border-color: #7a8b80;
}
/*================================================
game clip
==================================================*/
.intro-text {
  max-width: 780px;
  margin: 20px auto 0;
  font-size: 1.15rem;
  color: #024027;
  text-align: center;
}

/* ==========================================================================
  Worksページ専用：準備中段階（位置を真ん中の上側に調整）公開するとき入れ替える
 ========================================================================== */

/* テキストやローダーを画面の「真ん中の上側」に配置するための枠 */
.works-simple-center {
  text-align: center;
  /* 上の余白を詰め、下の余白を大幅に広げて全体を上方に押し上げます */
  padding: 60px 20px 260px 20px; 
}

/* 高級感のあるオリジナル砂時計ローダー */
.works-hourglass-loader {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 28px auto; /* 準備中の文字との間隔 */
  position: relative;
  border: 1px solid #a8b8ac; 
  border-radius: 50%;        
  animation: mini-rotate 4s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

/* 丸い枠線の内側にある、1本のごく細い中心線 */
.works-hourglass-loader::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 1px;
  height: 18px;
  background-color: #a8b8ac;
  transform: translateX(-50%);
}

/* 「準備中」の文字デザイン */
.works-status-text {
  font-size: 2.2rem;   
  color: #3f4a43;       
  letter-spacing: 0.25em; 
  font-weight: 500;
  margin: 0 0 20px 0;   
}

/* 日本語サブタイトル */
.works-sub-text {
  font-size: 0.85rem;   
  color: #8fa094;       
  letter-spacing: 0.3em; 
  margin: 0;
  display: block;
}

/* 静かに1回転して静止するアニメーション */
@keyframes mini-rotate {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(180deg); } 
  50% { transform: rotate(180deg); } 
  75% { transform: rotate(360deg); } 
  100% { transform: rotate(360deg); } 
}

/* ==========================================
   contact.html
========================================== */
.content {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px;
}

.section {
  margin-bottom: 60px;
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #2f3a34;
  border-left: 4px solid #a8b8ac;
  padding-left: 12px;
}

.text {
  margin-bottom: 20px;
  color: #444;
}

.sns-list {
  list-style: none;
  padding: 0;
}

.sns-list li {
  margin-bottom: 10px;
}

.sns-list a {
  color: #2f3a34;
  text-decoration: none;
  border-bottom: 1px solid #a8b8ac;
  padding-bottom: 2px;
}

.sns-list a:hover {
  opacity: 0.7;
}

/*==============================================
403,404エラーページ
==============================================*/
 /* --- エラー表示領域（少し下に下げて中央配置） --- */
main.error-wrapper {
  min-height: 700px; 
  padding-top: 60px;
  padding-bottom: 40px;
  display: flex;
  justify-content: center; /* 左右中央 */
  align-items: center;     /* 上下中央 */
  box-sizing: border-box;
}

.error-container {
  text-align: center;
  max-width: 480px;
  width: 100%;
}

.error-code {
  font-size: 6rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.08em;
  color: #8a9a86; /* セージグリーン */
  margin-bottom: 24px;
}

.title-box {
  background-color: rgba(233, 238, 232, 0.7); /* 少し透けるセージグレー */
  display: inline-block;
  padding: 16px 36px;
  margin-bottom: 32px;
}

.error-title {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #2f3531;
}

.error-description {
  font-size: 0.88rem;
  line-height: 1.9;
  color: #6c756b;
  margin-bottom: 40px;
}

.error-btn {
  display: inline-block;
  padding: 12px 40px;
  border: 1px solid #6c756b;
  color: #2f3531;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  transition: all 0.3s ease;
  background-color: transparent;
}

.error-btn:hover {
  background-color: #8a9a86;
  color: #ffffff;
  border-color: #8a9a86;
}


/* ==========================================================================
スマホ版：完全統合・最適化CSS（2026.8月更新）
========================================================================== */
@media (max-width: 768px) {
  
  /* 0. 基本設定：スマホ向けリセット */
  html, body {
    touch-action: manipulation !important;
    overflow-x: hidden !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    -webkit-text-size-adjust: 100% !important;
  }

  body {
    padding-top: 140px !important; /* ヘッダー分を確保 */
    box-sizing: border-box !important;
  }

  /* 1. ヘッダー：左寄せ・固定 */
  header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: #fff !important;
    z-index: 1000 !important;
    padding: 15px !important;
    box-sizing: border-box !important;
  }

  .header-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
  }

  .header-left {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin-bottom: 10px !important;
  }

  /* 2. ナビゲーション：3個×2段（合計6個） */
  header nav {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    width: 100% !important;
    row-gap: 12px !important;
    column-gap: 0px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
  }

  header nav a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 33.33% !important;
    padding: 6px 0 !important;
    font-size: 11px !important;
    font-weight: bold !important;
    position: relative !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
  }

  /* 縦線（｜）の作成と、右端（3の倍数番目）の非表示をまとめて指定 */
  header nav a::after {
    content: "" !important;
    position: absolute !important;
    right: 0 !important;
    top: 15% !important;
    bottom: 15% !important;
    width: 1px !important;
    background-color: #ccc !important;
  }
  header nav a:nth-of-type(3n)::after {
    display: none !important;
  }

  /* 不要な元セパレーターの非表示 */
  header nav .divider, 
  header nav span { display: none !important; 
  }

  /* 3. サムネイル・コンテンツ */
  .thumbs {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    padding: 0 15px !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
  }

  .thumbs img {
    width: calc(25% - 6px) !important;
    max-width: 90px !important;
    aspect-ratio: 90 / 60 !important;
    border-radius: 4px !important;
  }

  main, .content, .about-content {
    width: 100% !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
  }

  /* 4. カード枠（info-cards / card） */
  .info-cards {
    width: calc(100% - 30px) !important;
    margin: 1rem auto !important;
    gap: 1rem !important;
  }

  .card {
    width: 100% !important;
    padding: 1.2rem !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
  }

  /* 見出し・テキスト */
  .hero-title, .title2 { margin-top: 95px !important; }
  .title { margin-top: 60px !important; }

  .intro-text {
  text-align: justify;
  line-height: 1.8 !important;
  padding: 0 15px !important;
  /* 追加：単語の途中での改行を防ぎ、文字の破綻を抑える */
  word-break: normal;
  overflow-wrap: normal;
  }

  /* 5. フッター */
  footer {
    padding: 20px 15px !important;
    text-align: center !important;
  }

  /* ==========================================================================
 スマホ対応（画面幅が768px以下のとき）：全体崩れ補正 ＆ Daily Solace最適化
  ========================================================================== */
/* --- 1.メインコンテンツの横揺れ・はみ出し防止 --- */
  .about-content {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 20px !important;  
    padding-right: 20px !important;
    box-sizing: border-box;
  }

  /* --- 2. ヘッダー・ナビゲーションの折り返し崩れ防止 --- */
  header .header-inner {
    flex-direction: column; 
    gap: 12px;
    padding: 15px 10px;
    text-align: center;
  }

  header .header-left {
    justify-content: center; 
  }

  header nav {
    flex-wrap: wrap;         
    justify-content: center; 
    gap: 8px;                
  }

  header nav .divider {
    display: none; /* スマホでは縦線「|」をすっきり非表示に */
  }

  header nav a {
    font-size: 0.9rem;       
    padding: 4px 8px;        
  }

  /* --- 3. Daily Solace（日記タイムライン）のスマホ最適化 --- */
  .diary-timeline {
    padding: 20px 5px 80px 5px;
  }
  
  .diary-card {
    padding: 22px; /* スマホの画面に合わせて内側の余白をキュッと縮める */
    margin-bottom: 40px;
  }
  
  .diary-meta {
    margin-bottom: 20px;
  }

  .diary-photo-frame {
    margin-bottom: 18px; /* 写真と文字の間隔を少し詰める */
  }
  
  .diary-body p {
    font-size: 0.9rem;
    line-height: 1.75;
  }
}