/* ベース設定 */
:root {
  --bg-body: #fff5ec;          /* 全体の薄いクリーム色 */
  --bg-panel: #ffffff;
  --accent-orange: #e67e22;
  --accent-orange-light: #ffe4c4;
  --text-main: #3b3028;
  --text-muted: #6f6962;
  --border-light: #f0d8c4;
  --btn-blue: #3179b8;
  --btn-green: #32a86b;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans JP",
    "Hiragino Sans", "Yu Gothic", sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
}

/* 共通ラッパー */
.page-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 12px 24px;
}

@media (min-width: 768px) {
  .page-wrapper {
    padding: 16px 24px 40px;
  }
}

/* ヘッダー */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.header-logo {
  height: 80px;
  width: auto;
}

/* チーム名行（indexで主に使用） */
.team-name {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* セクション共通 */
.section {
  margin-top: 16px;
  background-color: var(--bg-panel);
  border-radius: var(--radius-lg);
  padding: 16px 14px 18px;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
  .section {
    padding: 20px 24px 24px;
  }
}

.section-title {
  font-size: 1.2rem;
  margin: 0 0 10px;
  color: var(--accent-orange);
}

/* メインタイトル（チームの取り組みなど） */
.main-title {
  font-size: 1.4rem;
}

/* テキストリンク */
.text-link {
  color: var(--accent-orange);
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}



/* ヒーロー（上部レイアウト：index用） */
.hero {
  margin-top: 0;
  background-color: #fffaf6;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-image img {
  display: block;
  max-width: 160px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.hero-text p {
  margin: 0 0 4px;
}

@media (min-width: 768px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
  }

  .hero-image {
    flex: 0 0 32%;
  }

  .hero-text {
    flex: 1 1 auto;
  }
}

/* 研究成果から生まれたツール（index用セクション） */
.tools-section {
  margin-top: 16px;
  background-color: #fffaf6;
}

.section-lead {
  margin: 4px 0 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 2カラムレイアウト */
.tools-columns {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tool-column-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 8px;
}

@media (min-width: 768px) {
  .tools-columns {
    flex-direction: row;
  }
  .tool-column {
    flex: 1;
  }
  .sp-only {
    display: none;
  }
}

/* ツールカード */
.tool-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 12px 12px 16px;
  border: 1px solid var(--border-light);
  text-align: center;
}

.tool-card-image:hover img {
  transform: scale(1.01);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  cursor: pointer;
}

.tool-card-image img {
  display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-radius: 12px;
  margin: 0 auto 8px;
  max-width: 150px;
}

.tool-card-body {
  font-size: 0.9rem;
}

.tool-card-title {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--text-main);
}

.tool-card-list {
  list-style: none;
  padding-left: 1.1em;
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tool-card-list li {
  margin-bottom: 4px;
  text-indent: -0.8em;
  padding-left: 0.8em;
}

.tools-section p {
  font-size: 1rem !important;
  color: var(--text-main) !important;
  line-height: 1.6;
}


/* ボタン */
.btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 600;
}

.btn-blue {
  background-color: var(--btn-blue);
}

.btn-green {
  background-color: var(--btn-green);
}

.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  cursor: pointer;
}

/* 小さめ注釈 */
.note-small {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 段落の余白 */
.section p {
  margin-top: 0;
  margin-bottom: 8px;
}
.section p:last-child {
  margin-bottom: 0;
}

/* お問い合わせセクション（index用） */
.contact-section {
  margin-top: 16px;
  text-align: left;
  background-color: #fffaf6;
}

.contact-title {
  text-align: center;
  color: var(--text-main);
}

.contact-section ul {
  list-style: none;
  margin: 4px 0 0;
  padding-left: 1.1em;
  font-size: 0.85rem;
}

.contact-section img {
  display: block;
  margin: 12px auto;
  text-align: center;
  height: auto;
  width: auto;

}

/* フッター */
.site-footer {
  margin-top: 12px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* スマホサイズでのロゴサイズ最適化 */
@media (max-width: 480px) {

  /* 上の IRIDECS ロゴ */
  .header-logo {
    max-width: 360px;
    height: auto;
  }

  /* 下の TMIG ロゴ専用サイズ */
  .tmig-logo {
    max-width: 180px;  /* ←ここを調整するとよりフィットできます */
  }
}