/* Updated font: stylish and readable */
body {
    font-family: 'Yu Gothic', '游ゴシック', 'Hiragino Kaku Gothic Pro', Meiryo, sans-serif;
}


/* ===== Updated highlight underline near text ===== */
.highlight {
  background: none;
  text-decoration: underline;
  text-decoration-color: #fffa8b;
  text-decoration-thickness: 0.4em;
  text-underline-offset: 0.1em;
  padding: 0;
}


/* フォント設定 */
body {
  font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
}
.site-title {
  color: #fff;
}
/* ========== style.css ========== */

/* リセット／ベーススタイル */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ページ全体幅 */
.container {
  width: 1200px;
  margin: 0 auto;
}

/* ヘッダー */
.site-header {
  background-color: #c0392b;
  color: #fff;
  padding: 1rem 0;
}

/* サイトタイトル */
.site-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

/* サイト説明文 */
.site-description {
  text-align: center;
  font-size: 0.9rem;
}

/* ナビゲーションバー */
.main-nav {
  background-color: #000;
}
.main-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav li {
  flex: 1;
  text-align: center;
}
.main-nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 1rem;
  font-weight: bold;
}

/* バナー画像 */
.banner {
  width: 100%;
  display: block;
}

/* 主要コンテンツ */
.main-content {
  padding: 2rem 0;
}

/* ブログサイドバー */
.sidebar {
  border: 1px solid #ccc;
  padding: 1rem;
  margin-left: auto;
}

/* フッター */
footer {
  background-color: #a93226;
  color: #eee;
  padding: 1rem;
  text-align: center;
}

/* ===== Stylish Site Title ===== */
.site-title {
  font-size: 2.5rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

/* ===== Description Single Line ===== */
.site-description {
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Navigation No Wrap ===== */
.main-nav ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-around;
}
.main-nav a {
  font-size: 0.9rem;
  padding: 0.75rem 0.5rem;
  white-space: nowrap;
}


/* ===== Description smaller ===== */
.site-description {
  font-size: 0.7rem; /* Reduced further */
}

/* ===== Content two-column layout ===== */
.main-content .content-wrapper {
  display: flex;
  gap: 1rem;
}
.main-content .main-column {
  flex: 8;
}
.main-content .sidebar-column {
  flex: 2;
  position: sticky;
  top: 2rem;
}

/* ===== Unified heading sizes ===== */
.entry-title,
.sp-wp-post-list h3 a {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #000;
  text-decoration: none;
}


/* ===== Page background and container styling ===== */
body {
  background-color: #888888;
}
.container {
  background-color: #ffffff;
}

/* ===== Column gap adjustment ===== */
.content-wrapper {
  gap: 1cm; /* approximate 1cm gap between columns */
}

/* ===== Stylish design for introduction text ===== */
.stylish-top {
  background-color: #fdf6f0;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

/* Ensure paragraphs inside stylish-top are well spaced */
.stylish-top p {
  margin: 0.5rem 0;
}


/* ===== Section underline for headings ===== */
.section-title::after {
  content: "";
  display: block;
  border-bottom: 2px solid #c0392b;
  margin: 0.5rem 0;
}

/* ===== Issue list styling ===== */
ul.issue-list {
  background-color: #e8f4fd;
  border: 1px solid #aed6f1;
  border-radius: 8px;
  padding: 1rem;
  list-style: none;
}
ul.issue-list li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.5rem;
}
ul.issue-list li::before {
  content: "►";
  position: absolute;
  left: 0;
  color: #3498db;
}




/* ===== Footer constrained to container width ===== */
footer {
  width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ===== Container padding for interior whitespace ===== */
.container {
  /* 内側余白をリセット */
  padding: 0;
}


/* ===== main-content 内の余白を確保 ===== */
.main-content {
  padding: 0 1rem;
}


/* ===== Move blog (sidebar) slightly right ===== */
.sidebar-column {
  margin-left: 5mm;
}

/* ===== News date and text on one line ===== */
#sp-wp-post-list-1 dl {
  white-space: nowrap;
}
#sp-wp-post-list-1 dl dt,
#sp-wp-post-list-1 dl dd {
  display: inline;
  margin: 0;
  padding: 0;
}
#sp-wp-post-list-1 dl dd::before {
  content: ' ';
}


/* ===== Update blog sidebar style ===== */
.sidebar-column {
  margin-left: 10mm; /* Further shift to the right */
}
.sidebar-column h3 a {
  background-color: #f2f2f2;
  display: block;
  padding: 0.75rem;
  margin: 0;
  font-size: 1.5rem;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #ddd;
}
.sidebar-column ul {
  list-style: disc inside;
  margin: 0.5rem 0 0;
  padding-left: 1rem;
}
.sidebar-column ul li {
  margin-bottom: 0.5rem;
}

/* ===== Add whitespace before footer ===== */
.main-content {
  padding-bottom: 2rem;
}


/* ===== Space between banner and content ===== */
.banner {
  margin-bottom: 1rem;
}
.main-content {
  margin-top: 1rem;
}


/* ===== Navigation hover effect ===== */
.main-nav li:hover a {
  background-color: #e74c3c; /* Change background on hover */
  color: #fff; /* Ensure text remains white */
  transition: background-color 0.3s ease;
}


/* ===== Enhanced Greeting Letter Style ===== */
#greeting-content {
  background-color: #fffaf0; /* subtle parchment color */
  border: 2px dashed #e0d8c3; /* decorative dashed border */
  border-radius: 8px;
  padding: 2rem;
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  position: relative;
  margin-bottom: 2rem;
}
#greeting-content::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  width: 4px;
  height: calc(100% - 1rem);
  background: #e0d8c3;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}
/* Signature right aligned */
.signature {
  text-align: right !important;
  margin-top: 1.5rem;
  margin-right: 2rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
}


/* Facebook widget styles */
.facebook-widget {
  display: flex;
  flex-wrap: wrap;
  margin-top: 2em;
  border: 1px solid #ddd;
  padding: 1em;
}
.facebook-widget__text {
  flex: 1 1 240px;
}
.facebook-widget__logo {
  flex: 0 0 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.facebook-widget__logo img {
  width: 60px;
}
.facebook-widget__text a {
  display: inline-block;
  margin-top: 0.5em;
  color: #1877f2;
  text-decoration: none;
}


/* キャッチフレーズスタイル */
.catchphrase {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 1rem;
  text-align: center;
}


/* ===== Top page lead and catchphrase styling ===== */
.lead {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}
.catchphrase {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0.5rem 0 1rem;
}

/* ===== Activity list styling ===== */
.activity-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}
.activity-list li {
  margin-bottom: 0.75rem;
}

/* ===== Link list styling ===== */
.link-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.link-list li a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #c0392b;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}
.link-list li a:hover {
  opacity: 0.8;
}


/* ===== 赤枠部分の洗練されたおしゃれデザイン v15 ===== */

/* キャッチコピー装飾 */
.catchphrase {
  position: relative;
  font-family: "Yu Mincho", serif;
  font-size: 2rem;
  font-weight: bold;
  color: #2c3e50;
  text-align: center;
  margin: 2rem 0;
}
.catchphrase::before,
.catchphrase::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 100px;
  height: 4px;
  background: #b02e0c;
  transform: translateX(-50%);
}
.catchphrase::before {
  top: -1rem;
}
.catchphrase::after {
  bottom: -1rem;
}

/* クイックリンク */
.quick-links {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}
.quick-links li {
  display: inline-block;
}
.quick-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #b02e0c;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.3s;
}
.quick-links a:hover {
  background: #8e2310;
}

/* ハイライト用 */
.highlight {
  color: #b02e0c;
}

/* Remove the top decoration line above catchphrase */
.catchphrase::before {
  display: none !important;
  content: none !important;
}

/* Remove all catchphrase decorative lines */
.catchphrase::before,
.catchphrase::after {
  display: none !important;
  content: none !important;
}


/* ===== User overrides: updated font and background ===== */
body {
    font-family: 'Yu Gothic', '游ゴシック', 'Hiragino Kaku Gothic Pro', Meiryo, sans-serif !important;
}
.stylish-top {
    background-color: #e0f7fa !important;
}


/* ===== Custom bullets for activity list ===== */
.activity-list {
    list-style: none;
}
.activity-list li {
    position: relative;
    padding-left: 1.5em;
}
.activity-list li strong::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #007ACC; /* bullet color */
}


/* ===== Adjusted light-blue background to be even lighter ===== */
.stylish-top {
    background-color: #f0fcfd !important;
}

/* ===== Thinner highlight underline ===== */
.highlight {
    text-decoration-thickness: 0.2em !important;
}


/* ──────────────────────────
   経歴タイムライン：年表示部分を狭くして中央揃え
────────────────────────── */
.timeline-table {
  table-layout: fixed;
  width: 100%;
}
.timeline-table th {
  width: 80px;
  text-align: center;
  vertical-align: top;
  padding: 0.5em 0;
}


/* ──────────────────────────
   経歴タイムライン：年表示部分をさらに狭く（約5mm相当）＋中央揃え
────────────────────────── */
.timeline-table {
  table-layout: fixed !important;
}
.timeline-table th {
  width: 60px !important;  /* 約5mm狭めたサイズ */
  text-align: center !important;
  vertical-align: top !important;
  padding: 0.5em 0 !important;
}

/* CreateHope.png サイズ調整 */
.intro-image-container {
  max-width: 200px;   /* 青枠相当の幅に固定 */
  float: right;       /* 右寄せ */
  margin: 0 0 1em 1em;
}
.intro-image {
  width: 100%;
  height: auto;
  display: block;
}


/* CreateHope画像を3cm上に移動 */
.intro-image-container {
  position: relative !important;
  top: -3cm !important;
}


/* ──────────────────────────
   レスポンシブ対応
────────────────────────── */
/* 全体の最大幅を制限 */
.main-content, .sp-block-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* メインとサイドバーのレイアウト切り替え */
@media (max-width: 768px) {
  .main-column, .sidebar-column {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
  }
  #content {
    order: 1;
  }
  .sidebar-column {
    order: 2;
    margin-top: 1em;
  }
}

/* ナビゲーションの横並び対応 */
.navigation-main ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.navigation-main li {
  flex: 1 1 auto;
  text-align: center;
}

/* 画像やテーブルのはみ出し防止 */
img, table {
  max-width: 100%;
  height: auto;
}


/* ご挨拶ページ：プロフィール画像回り込み調整 */
.intro-photo-container {
  float: right;
  margin: 0 0 1em 1em;
  max-width: 150px; /* 適切なサイズに調整 */
}
.intro-photo {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 768px) {
  .intro-photo-container {
    float: none;
    margin: 0 auto 1em;
    max-width: 50%;
  }
}

/* Adjust spacing between quick-links and news section */
.quick-links {
    margin-bottom: 0 !important;
}
#sp-wp-post-list-1 {
    margin-top: 0.5rem !important;
    margin-bottom: 2rem !important;
}

/* Sub-page banner styling for alternative_tokyotama */
.sub-banner {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 1rem auto;
    box-sizing: border-box;
}

/* Prevent line break in activity description */


/* Improved no-wrap for activity description */
.no-wrap {
    display: block;
    white-space: nowrap;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

/* === 活動紹介の本文表示設定（上書き） === */
.activity-description {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    line-height: 1.4 !important;
}
.no-wrap {
    display: inline !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* === 活動紹介見出し＆本文の行間調整（上書き） === */
.no-wrap,
.activity-description {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

/* === 活動紹介 セクション 統一行間 === */
.activity-description {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}
.no-wrap {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}
.activity-list li {
    line-height: 1.4 !important;
}

/* === stylish-topセクション: 背景いっぱいまでテキストを展開 === */
.stylish-top {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}
.stylish-top p,
.stylish-top h2,
.stylish-top ul {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* === 活動紹介エリアを画像floatの影響下から解放 === */
.activity-list,
.section-title {
    clear: both !important;
}

/* === 活動紹介 見出し＆本文を背景幅いっぱいに広げる === */
.activity-list li {
  clear: both !important;
  width: 100% !important;
}

.activity-list li strong.no-wrap {
  display: block !important;
  margin-bottom: 0.25em !important;
  white-space: normal !important;
}

.activity-list li .activity-description {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

/* ===== Remove blank gap caused by intro-image shift ===== */
.intro-image-container {
  margin-bottom: -3cm !important;
}

/* ===== Remove left dashed border in greeting section ===== */
#greeting-content {
  border-left: none !important;
}


/* ===== Remove vertical solid line in greeting section ===== */
#greeting-content::before {
  display: none !important;
  content: none !important;
}

/* ===== Restore dashed border, hide only solid line ===== */
#greeting-content {
  border: 2px dashed #e0d8c3 !important;
}

#greeting-content::before {
  display: none !important;
  content: none !important;
}

/* ===== Contact box styling ===== */
.contact-box {
  border: 2px solid #007bff;
  padding: 1rem;
  margin: 1rem 0;
}
.contact-links {
  text-align: center;
  margin-bottom: 1rem;
}
.contact-links a {
  display: inline-block;
  margin: 0 1rem;
  text-decoration: none;
  color: #333;
}
.contact-logo {
  width: 32px;
  vertical-align: middle;
  margin-right: 0.5rem;
}
.contact-image img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* 新規: サービスカードデザイン */
.services {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 40px 0;
}
.service-card {
    background: #e0f7fa;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.service-card h3 {
    margin-bottom: 10px;
    font-size: 1.5em;
    color: #333;
}
.service-card p {
    color: #555;
    line-height: 1.6;
}

/* サービスセクションの h2 タイトルをオシャレに */
.services h2 {
    font-size: 1.75em;
    color: #2a7f62;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.services h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #a8e6cf, #56c596);
    border-radius: 2px;
}


/* ---------- Service page flex rows ---------- */
.service-row{
  display:flex;
  gap:40px;
  margin:40px 0;
  align-items:flex-start;
}
.service-row.reverse{
  flex-direction:row-reverse;
}
.service-image{
  flex:0 0 260px;
}
.service-image img{
  width:100%;
  height:auto;
  border-radius:4px;
}
.service-content{
  flex:1 1 auto;
}
@media(max-width:768px){
  .service-row,
  .service-row.reverse{
    flex-direction:column;
  }
  .service-image{
    flex:0 0 auto;
  }
}

/* ===== Responsive additions 2025-05-05 ===== */
img{max-width:100%;height:auto}
/* generic container tweak */
body,html{overflow-x:hidden;}

@media(max-width:1024px){
  .site-main,.container, .sp-content-wrapper{padding:0 1rem;max-width:100%;}
}

@media(max-width:768px){
  /* Flex rows column */
  .alt-row,
  .alt-row.row-reverse,
  .service-row,
  .service-row.reverse,
  .act-row,
  .act-row.row-reverse{
    flex-direction:column;
  }
  .alt-image,.service-image,.act-image{
    flex:0 0 auto;
    width:100%;
  }
  .alt-image img,
  .service-image img,
  .act-image img{
    width:100%;
    height:auto;
  }
  /* Typography adjustments */
  h1,h2,h3{line-height:1.3}
  /* Navigation collapse (basic) */
  .navigation-main .menu-toggle{display:block}
  .navigation-main ul{display:none}
  .navigation-main.open ul{display:block}
}

/* ==== Responsive Enhancement v4 (2025-05-05) ==== */
@media (max-width: 768px){
  html, body{
    overflow-x:hidden;
  }
  /* Fluid wrappers */
  .wrapper, .container, .site-main, .content, .sp-main, .sp-part-top, .site-content{
    width:100% !important;
    max-width:100% !important;
    padding-left:16px;
    padding-right:16px;
    box-sizing:border-box;
  }
  /* Flex rows switch to column */
  .alt-row, .service-row, .act-row, .row{
    flex-direction:column !important;
    gap:20px !important;
  }
  /* Fluid media */
  img, video, iframe{
    max-width:100% !important;
    height:auto !important;
  }
  .alt-image, .service-image, .act-image, .service-image img, .alt-image img, .act-image img{
    width:100% !important;
    max-width:100% !important;
    flex:0 0 auto !important;
  }
  /* pre & table overflow */
  table{display:block;width:100%;overflow-x:auto;}
  pre{white-space:pre-wrap;word-break:break-word;}
}

/* ===== Responsive Design Adjustments ===== */
@media (max-width: 768px) {
  .container {
    width: 100%;
    padding: 0 15px;
  }
  
  .main-nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  .main-nav a {
    padding: 0.5rem;
    font-size: 1rem;
  }
  
  .main-content .content-wrapper {
    flex-direction: column;
  }

  .main-content .sidebar-column {
    position: static;
    width: 100%;
    margin-top: 1rem;
  }
  
  .site-title {
    font-size: 1.8rem;
  }
  
  .site-description {
    font-size: 0.8rem;
    white-space: normal;
  }
  
  .entry-title, .sp-wp-post-list h3 a {
    font-size: 1.5rem;
  }

  .banner {
    height: auto;
  }
}

/* スマートフォン用画像調整 */
@media (max-width: 768px) {
  img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto; /* 中央揃えで上下に余白を設定 */
  }
}

/* 再調整：画像がテキストに重ならないように設定 */
@media (max-width: 768px) {
  .main-content img {
    margin: 20px auto;  /* 上下の余白を大きくし、テキストと重ならないように */
    position: relative;
    display: block;
    clear: both;
  }

  .main-content p, .main-content h1, .main-content h2, .main-content h3 {
    overflow: visible;
    position: relative;
    margin-bottom: 20px; /* テキスト間にも適度な余白を設ける */
  }
}

/* 修正：画像がテキストの横に回り込むよう調整 */
@media (max-width: 768px) {
  .intro-image-container {
    float: right;
    width: 50%;
    margin: 0 0 10px 10px;
  }

  .intro-image-container img {
    width: 100%;
    height: auto;
  }

  .main-content p {
    overflow: visible;
    margin-bottom: 15px;
  }
}

/* 修正：スマートフォンで画像をテキストの下に配置 */
@media (max-width: 768px) {
  .intro-image-container {
    float: none;
    width: 100%;
    margin: 20px auto 0 auto;
  }

  .intro-image-container img {
    width: 100%;
    height: auto;
    display: block;
  }

  .main-content p {
    overflow: visible;
    margin-bottom: 15px;
  }
}

/* 最終調整：テキスト直下に画像を配置 */
@media (max-width: 768px) {
  .intro-text {
    display: block;
    margin-bottom: 10px;
  }

  .intro-image {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 10px;
  }
}

/* PC向けのおしゃれなデザイン調整 */
@media (min-width: 769px) {
  .intro-text {
    background-color: #f5fafd;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 600px;
  }

  .intro-image {
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
}
