/* Global Settings */
:root {
  --main-color: #4169e1;
  --main-bg-color: #ffffff;
  --main-text-color: #000000;
  --header-bg-color: #000000;
  --footer-text-color: #ffffff;
  --footer-bg-color: #000000;
  --menu-link-color: var(--main-text-color, #333);
  --menu-link-hover-color: var(--link-hover-color, #1e40af);
  --menu-link-hover-bg: var(--link-hover-bg, rgba(65, 105, 225, 0.1));
  --primary-color: #4169e1;
  --primary-dark: #3a5ecc;
  --text-color: #333;
  --bg-color: #f8f9fa;
  --accent-color: #4A90E2;
  --quote-bg-color: rgba(74, 144, 226, 0.1);
  --headline-color: rgba(0,0,0,.5);
}

html {
  scroll-behavior: smooth;
}

/* baseline */
* {
  box-sizing: border-box;
}

body {
  font-feature-settings: "palt" 1;
  text-size-adjust: 100%;
  background-color: var(--main-bg-color);
  font-family: sans-serif;
  line-height: 1.6;
  color: var(--main-text-color);
  margin: 0;
}

/* header */

header {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 rem;
}

search {
  display: grid;
  text-align: right;
  /* place-items: center right; は無効な値のため修正 */
  align-items: center;
  justify-items: end;
}

.site-logo {
  display: grid;
  place-items: center start;
  padding: 0 rem;
  text-decoration: none;
}

.site-logo a:hover {
  opacity: 0.8;
}

.address {
  display: grid;
  text-align: right;
  padding-right: 1rem;
}

.site-menu {
  grid-column: span 2;
  border-bottom: 1px solid #000;
  text-align: right;
  padding: 0.5rem 0;
}

.site-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-menu li {
  display: inline-block;
  margin-right: 1rem;
}

.site-menu a {
  color: var(--menu-link-color);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: bold;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  transition: color 0.2s;
  position: relative;
}

/* モバイル対応 */
@media (max-width: 768px) {
  header {
    grid-template-columns: 1fr;
  }
  
  .site-logo {
    place-items: center;
  }
  
  search {
    text-align: center;
    justify-items: center;
  }
  
  .site-menu {
    grid-column: 1;
    text-align: center;
  }
}

/* main */

main {
  width: 90%;
  height: auto;
  margin: auto;
}

aside {
  width: 100%;
}

footer {
  width: 100%;
  text-align: center;
  padding: 1rem;
  background-color: var(--footer-bg-color);
  color: var(--footer-text-color);
  font-size: 0.9rem;
  line-height: 1.4;
}

footer a {
  text-decoration: none;
  color: #999;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--main-bg-color);
}

/* Layer 3 */

article section {
  width: 100%;
  margin-inline: auto;
}

/* Layer 4 - Typography & Headings (統合・整理済み) */

h1, h2, h3, h4 {
  font-weight: bold;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(1.25rem, 2vw, 2.5rem);
  color: var(--main-text-color);
}

/* 新デザインを適用したグローバルH2 */
h2 {
  width: 100%;
  font-size: clamp(1.25rem, 2vw, 2rem);
  color: #003366; /* 信頼感のあるネイビー */
  border-bottom: 2px solid #003366;
  padding-bottom: 10px;
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* 新デザインを適用したグローバルH3（カードヘッダー風） */
h3 {
  width: 100%;
  box-sizing: border-box;
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  background-color: #003366; /* ネイビー背景 */
  color: #fff; /* 白文字 */
  padding: 12px 20px;
  margin-top: 0;
  margin-bottom: 0; /* 下のコンテンツとくっつける */
  border-radius: 4px 4px 0 0;
  line-height: 1.4;
}

h4 {
  width: 100%;
  font-size: clamp(0.875rem, 1.2vw, 1.2rem);
  color: var(--main-text-color);
  font-weight: 600;
  border: solid 0.1rem var(--main-bg-color);
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.headline {
  position: absolute;
  top: 0.3rem;
  left: 0.3rem;
  background: var(--headline-color);
  padding: 0.3rem;
  z-index: 1;
  width: 65%;
  height: auto;
  min-height: 4rem;
}

@media (max-width: 600px) {
  .relative {
    display: flex;
    flex-direction: column-reverse;
  }

  .headline {
    position: static;
    width: 100%;
  }
}

nav {
  width: 100%;
  margin: auto;
}

.sub_navigation {
  width: 100%;
  font-size: clamp(1.25rem, 2vw, 2rem);
  padding-bottom: 0.5rem;
  margin: 0rem auto;
  color: var(--main-text-color);
  text-align: center;
  background-color: #f5f5f5;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.breadcrumbs {
  width: 100%;
}

.breadcrumbs ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: inline-block;
  margin-right: 0.5rem;
}

.breadcrumbs li::after {
  content: '>';
  padding: 0 0.2rem;
}

.breadcrumbs li:last-child::after {
  display: none;
}

p {
  width: 100%;
  margin-inline: auto;
}

figure {
  padding: 0;
  margin-top: 3rem;
  margin-bottom: 3rem;
  margin-left: 0;
  margin-right: 0;
}

figcaption {
  font-weight: bold;
  text-align: center;
}

/* Definition List inside Items/Containers */
/* カード内のリストを見やすく整形 */
.item dl, 
dl {
  padding: 1rem 1.5rem;
  margin: 0;
  /* dl自体に背景色をつける場合 */
  /* background-color: #f8f9fa; */
}

dt {
  font-weight: bold;
  color: #222;
  font-size: 1.1rem;
  margin-top: 20px;
  margin-bottom: 8px;
  padding-left: 10px;
  border-left: 4px solid #007bff; /* 青いアクセントバー */
}

/* 最初のdtは上のマージンを詰める */
dt:first-of-type {
  margin-top: 10px;
}

dd {
  margin-left: 0;
  margin-bottom: 15px;
  line-height: 1.6;
  color: #444;
  padding-left: 14px;
}

ul {
  margin: 0.5rem;
  padding: 0.5rem;
}

li {
  margin-inline: 0.3rem;
}

ol.asterisk {
  counter-reset: number;
  list-style: none;
}

ol.asterisk li:before {
  counter-increment: number;
  content: "※"counter(number)" ";
}

q, blockquote {
  font-style: italic;
  color: var(--text-color);
  background-color: var(--quote-bg-color);
  border-left: 3px solid var(--accent-color);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  position: relative;
  transition: all 0.3s ease;
  display: inline-block;
}

q::before, q::after, blockquote::before {
  font-family: Georgia, serif;
  font-size: 2.5rem;
  line-height: 0;
  position: absolute;
  color: var(--accent-color);
  opacity: 0.5;
}

q::before {
  content: open-quote;
  left: 0.5rem;
  top: 1rem;
}

q::after {
  content: close-quote;
  right: 0.5rem;
  bottom: 0;
}

blockquote::before {
  content: open-quote;
  left: 0.5rem;
  top: 0.5rem;
}

q:hover, blockquote:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

q {
  quotes: """ """ "'" "'";
}

cite {
  text-align: right;
  font-style: italic;
}


hr {
  width: 100%;
}

/* inline */

code {
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-family: monospace;
  font-weight: bold;
  padding: 2px 4px;
}


mark {
  background-image: linear-gradient(to bottom, transparent 10%, #ccff33 10%, #ccff33 90%, transparent 90%);
  padding: 0.1em;
}


caption {
  font-weight: bold;
  text-align: center;
}

pre {
  font-family: monospace;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-all;
  padding: 1rem;
  background-color: #1e1e1e;
  color: #33ff33;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1rem 0;
  box-shadow: inset 0 0 0.5rem rgba(0, 0, 0, 0.1);
  border: 1px solid #333;
}

samp {
  font-family: monospace;
  color: #00ff00;
}

iframe {
  width: 100%;
  border-style: none;
  border: 0rem;
  margin: 0rem;
}


/* ==========================================================================
   Table Formats (統合版: .t-format2)
   ========================================================================== */

/* テーブルをラップするコンテナ（スマホでの横スクロール用） */
.table-container {
  width: 100%;
  overflow-x: auto; /* 画面からはみ出る場合はスクロール */
  margin: 2rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* わずかな影 */
  border-radius: 8px; /* 角丸 */
  background-color: #fff;
  border: 1px solid #ddd; /* コンテナにも薄い枠線をつけて境界を明確に */
}

/* 統合されたテーブルクラス (.t-format2) */
.t-format2 {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background-color: #fff;
  font-size: 0.95rem;
  line-height: 1.5;
  min-width: 600px; /* スマホでもこれ以上潰れないようにし、スクロールさせる */
}

/* キャプション（表のタイトル） */
.t-format2 caption {
  padding: 1rem;
  font-weight: bold;
  font-size: 1.1rem;
  color: #003366; /* サイト共通ネイビー */
  text-align: left;
  background-color: #fff;
  border-bottom: 2px solid #003366;
}

/* ヘッダーセル (th) */
.t-format2 th {
  background-color: #003366; /* ネイビー背景 */
  color: #fff; /* 白文字 */
  font-weight: 600;
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #002244;
  white-space: nowrap; /* 見出しは改行させない */
}

/* データセル (td) */
.t-format2 td {
  padding: 12px 15px;
  border-bottom: 1px solid #e5e7eb; /* 薄いグレーの横線 */
  color: #333;
  vertical-align: middle;
}

/* 偶数行の背景色（ゼブラストライプ） */
.t-format2 tr:nth-child(even) {
  background-color: #f8f9fa;
}

/* ホバー時の強調 */
.t-format2 tr:hover td {
  background-color: #eef2f6;
  transition: background-color 0.2s ease;
}

/* 最後の行の下線処理 */
.t-format2 tr:last-child td {
  border-bottom: none;
}

/* --- ヘルパークラス --- */

/* 中央寄せ */
.t-format2 .center,
.t-format2 th.center,
.t-format2 td.center {
  text-align: center;
}

/* 右寄せ（数値など） */
.t-format2 .right,
.t-format2 th.right,
.t-format2 td.right {
  text-align: right;
}

/* 数値セル用 */
.t-format2 td.num {
  font-family: monospace;
  text-align: right;
  font-size: 1.05em;
}

/* ステータスバッジ */
.status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
}

.status.ended {
  background-color: #e9ecef;
  color: #495057;
}

.status.in-progress {
  background-color: #fff3cd;
  color: #856404;
}

.status.reserved,
.status.available {
  background-color: #d4edda;
  color: #155724;
}

.status.danger {
  background-color: #f8d7da;
  color: #721c24;
}

/* --- モバイル対応調整 --- */
@media (max-width: 768px) {
  .t-format2 th,
  .t-format2 td {
    padding: 10px;
    font-size: 0.85rem;
  }
}

.in-progress {
  background-color: #f8d7da;
  font-weight: bold;
  color: #721c24;
}

.available {
  background-color: #d4edda;
  font-weight: bold;
  color: #155724;
}

.table-container {
  overflow-x: auto;
  margin: 2rem auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.status {
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status.ended {
  background-color: #e9ecef;
  color: #495057;
}

.status.in-progress {
  background-color: #fff3cd;
  color: #856404;
}

.status.reserved {
  background-color: #d1ecf1;
  color: #0c5460;
}

.t-format3 {
  width: 100%;
  max-width: 800px;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem auto;
  border: 1px solid var(--table-border-color, #ddd);
}

.t-format3 th,
.t-format3 td {
  font-size: clamp(0.875rem, 2vw, 1rem);
  padding: 0.75rem;
  border-bottom: 1px solid var(--table-border-color, #ddd);
  text-align: center;
  vertical-align: middle;
}

.t-format3 th {
  background-color: var(--table-header-bg, rgba(255, 215, 0, 0.3));
  font-weight: 600;
  color: var(--table-header-color, #333);
}

.t-format3 tr:last-child td {
  border-bottom: none;
}

.t-format3 tr:nth-child(even) {
  background-color: var(--table-even-row-bg, #fafafa);
}

.t-format3 tr:hover {
  background-color: var(--table-hover-bg, #f0f0f0);
}

@media (max-width: 600px) {
  .t-format3 {
    font-size: 0.875rem;
  }

  .t-format3 th,
  .t-format3 td {
    padding: 0.5rem;
  }
}

.num td {
  text-align: right;
}

:root {
  --link-color: #4169e1;
  --link-hover-color: #1e40af;
  --link-hover-bg: rgba(65, 105, 225, 0.1);
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  padding: 0.1em 0.2em;
  border-radius: 3px;
  position: relative;
}

a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--link-hover-color);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

a:hover {
  color: var(--link-hover-color);
  background-color: var(--link-hover-bg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

a:focus {
  outline: 2px solid var(--link-color);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  a, a::after {
    transition: none;
  }
}

.annotation li {
  list-style:none;
}
.annotation li:before {
  content:"※"
}



.sub_menu {
  text-align: right;
}

.sub_menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sub_menu li {
  margin: 0;
  display: inline-block;
  border-right: 0.2rem solid #ddd;
  line-height: 1.5;
}

.sub_menu li:last-child {
  border-right: none;
}

.sub_menu li a {
  display: block;
  padding: 0.2rem 0.5rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.3s, color 0.3s;
}

.sub_menu li a:hover {
  background: var(--main-bg-color);
  color: var(--main-bg-color);
}

.customer {
  --customer-bg: var(--main-bg-color, #fff);
  --customer-hover-bg: #f0f0f0;
  --customer-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  list-style: none;
  margin: 0;
}

.customer li {
  flex: 0 1 calc(25% - 1rem);
  min-width: 200px;
}

.customer a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1rem;
  background: var(--customer-bg);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: var(--customer-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.customer a:hover,
.customer a:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .customer a {
    transition: none;
  }
}

.logo {
  width: auto;
  max-width: 11rem;
  height: 7rem;
  min-height: 5rem;
}

.contact {
  background-color: var(--bg-color);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin: 2rem auto;
  text-align: center;
  max-width: 800px;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact p {
  line-height: 1.6;
  margin-bottom: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background-color: var(--primary-color);
  border: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(65, 105, 225, 0.2);
}

.button:hover {
  color: #ffff00;
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(65, 105, 225, 0.3);
}

.button span {
  margin-right: 0.5rem;
}

@media (max-width: 600px) {
  .contact {
    padding: 1.5rem;
  }

  .button {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }
}


.list-center {
  display: flex;
  align-items: center;
  flex-direction: column;
}


/* Format Settings */

/* Color */
.red    {color:#dc143c;}
.blue   {color:#0000ff;}
.white  {color:#ffffff;}

/* width */
.heroimage {
  aspect-ratio: 1600 / 989;
  width: 100%;
  height: auto;
}

.width100percent {
  display: block;
  max-width: 100%;
  height: auto;
  margin: auto;
}

.width65percent {
  width: 65%;
  height: auto;
  margin: auto;
}

/* Font Weight */
.bold {
  font-weight: bold;
}

/* Text align */
.center {
  text-align: center;
}

.left {
  text-align: left;
}

.right {
  text-align: right;
}

/* video */
.video {
  position: relative;
  height: 0;
  padding: 0.3rem 0 56.25%;
  overflow: hidden;
}

.video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.symbol {
  max-width: 6rem;
  width: 8vw;
  min-width: 4rem;
  height: auto;
}

.solid {
  border: 0.1rem solid;
}



/*
 Block Layout Settings
*/

/* container */

.container2 {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1vw;
  justify-content: center;
}

/* Item Class - Merged with Topic Group styles */
/* H3とセットで使用するカード型コンテナ */
.item {
  /* Grid settings preserved for layout compatibility */
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 6;
  row-gap: 0.5rem;
  
  /* Visual styling (Card look) */
  box-sizing: border-box;
  background-color: #fff;
  border-radius: 0.5rem; /* H3の角丸と合わせる */
  border: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  padding: 0 0 1rem 0; /* 下部に余白、上部はH3が埋めるので0 */
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  overflow: hidden; /* H3の角丸をはみ出させない */
}

/* .item内のコンテンツ調整 */
.item p, 
.item > div {
  padding: 0 1rem;
}

.item img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* share */

.share {
  padding: 0.2rem;
  margin: 0 auto;
  text-align: right;
}

.share ul {
  list-style: none;
  padding: 0;
}

.share li {
  display: inline;
  margin: 0.1rem;
}

.sns_icon {
  width: 3rem;
  height: auto;
}

.social {
  margin: 0rem;
  padding: 1rem;
  text-align: center;
  background: #34495e;
}

.social h2 {
  padding: 0.5rem;
  font-weight: bold;
  /* H2グローバル設定をここで上書き解除したい場合は以下を追加 */
  border-bottom: none;
  color: #fff;
  margin-top: 0;
}

.social ul {
  list-style: none;
  padding-inline-start: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.social li {
  margin: 0.5rem;
}

.navigation-timing {
  padding: 1rem;
  background-color: var(--main-bg-color);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   メディア向けセクション用スタイル (Media Relations)
   ========================================================================== */

/* --- セクション共通設定 --- */
.media-relations,
.press-kit-area,
.media-contact-area {
  margin: 40px 0;
  padding: 30px;
  background-color: #f8f9fa; /* 読みやすい薄いグレーの背景 */
  border-radius: 8px;
}

/* --- プレスキット（ダウンロードエリア） --- */
.press-kit-area {
  background-color: #eef2f6; /* 青みがかった薄い背景 */
  border: 1px solid #dce4ec;
}

.download-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.download-list li {
  flex: 1 1 300px; /* 横並び、狭くなったら縦積み */
}

.download-list a {
  display: block;
  background-color: #fff;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  height: 100%; /* 高さを揃える */
  box-sizing: border-box;
}

.download-list a:hover {
  border-color: #003366;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  background-color: #fcfcfc;
}

.download-list strong {
  display: block;
  font-size: 1.1rem;
  color: #003366;
  margin-bottom: 5px;
  text-decoration: underline; /* リンクであることを明示 */
}

.download-list span {
  font-size: 0.9rem;
  color: #666;
}

/* --- お問い合わせエリア --- */
.media-contact-area {
  background-color: #fff;
  border: 2px solid #003366;
  text-align: center;
}

.button-primary {
  display: inline-block;
  background-color: #d9534f; /* 目立つ赤色（緊急連絡・取材依頼用） */
  color: #fff;
  font-weight: bold;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2rem;
  margin-top: 15px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease;
}

.button-primary:hover {
  background-color: #c9302c;
  transform: translateY(-2px); /* ホバー時に少し浮く */
}

/* --- ヘルパークラス --- */
.center {
  text-align: center;
}

/* --- レスポンシブ対応（スマホ調整） --- */
@media (max-width: 768px) {
  .media-relations,
  .press-kit-area,
  .media-contact-area {
    padding: 20px;
  }
  
  .download-list li {
    flex: 1 1 100%; /* スマホでは縦積み */
  }
  
  .button-primary {
    width: 100%; /* スマホではボタンを幅一杯に */
    box-sizing: border-box;
  }
}