@charset "utf-8";
/* CSS Document */

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.8;
  color: #333;
  margin: 0;
  padding: 0;
}

.detail-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  gap: 2rem;
}

/* メインコンテンツ */
.detail-main {
  flex: 1;
  max-width: 900px;
}

.detail-header {
  text-align: left;
  margin-bottom: 2rem;
}

.detail-header h1 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.detail-header .subtitle {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.detail-header .main-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 見出し */
.interview h2 {
  font-size: 1.4rem;
  margin: 3.5rem 0 1.5rem;
  border-left: 5px solid #6706CE;
  padding-left: 0.5rem;
  color: #333;
  scroll-margin-top: 80px; /* 固定ヘッダーの高さに合わせる */	
}

/* Q&A */
.qa {
  margin-bottom: 2rem;
}

.qa .question {
  font-weight: bold;
  color: #6706CE;
  margin-bottom: 0.5rem;
}

.qa .answer {
  margin: 0;
  color: #444;
}

/* インライン画像 */
.inline-image {
  margin: 2rem 0;
  text-align: center;
}

.inline-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.inline-image .caption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

/* ページ下部リンク */
.detail-footer {
  display: flex;
  justify-content: space-between;
  margin: 3rem 0 2rem;
}

.detail-footer a {
  text-decoration: none;
  font-weight: bold;
  color: #6706CE;
}

.detail-footer a:hover {
  text-decoration: underline;
}

/* 右サイドバー目次 */
.toc-sidebar {
  flex: 0 0 220px;
  position: sticky;
  top: 2rem;
  height: fit-content;
  align-self: flex-start;
}

.toc {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  background: #fff;
}

.toc h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: #6706CE;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.toc li {
  margin-bottom: 0.5rem;
}

.toc a {
  text-decoration: none;
  color: #333;
}

.toc a:hover {
  text-decoration: underline;
}

/* 文字＋画像横並び（PC:画像左・文字右） */
.text-image {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap; /* レスポンシブで縦並び */
  margin: 2rem 0;
}

.text-image .image {
  order: -1; /* 画像を左に表示 */
  flex: 1 1 300px;
}

.text-image .text {
  flex: 1 1 300px;
}

.text-image img {
  max-width: 90%;  /* 大きすぎないように調整 */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* 画像2枚横並び＋キャプション */
.image-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.image-row .image-item {
  flex: 1 1 45%; /* 2枚横並び */
  text-align: center;
  margin-bottom: 1rem;
}

.image-row .image-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.image-row .caption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

/*印刷*/
@media print {
  a::after {
    content: " (" attr(href) ")";
    font-size: smaller;
  }
}

/* レスポンシブ対応 */
@media screen and (max-width: 900px) {
  .detail-container {
    flex-direction: column;
  }

  .toc-sidebar {
    order: -1;            /* 本文より前に配置 */
    position: relative;   /* 固定を解除 */
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .detail-main {
    order: 0; /* 本文は通常の順序 */
  }

  /* 文字＋画像縦並び */
  .text-image {
    flex-direction: column;
  }

  /* 画像2枚縦並び */
  .image-row .image-item {
    flex: 1 1 100%;
  }
}
	
	
}