@charset "UTF-8";

/* ===== 1. ベース設定（全体で共通） ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Lucida Grande", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

body {
    background-color: #ddd; /* layoutの外側の色 */
}

#title-block-header, #header figure figcaption {
    display: none;
}

/* ===== 2. レイアウト構造 ===== */
#layout {
    width: 934px;
    margin: 0 auto;
    padding: 3px;
    position: relative;
    background-color: #fff;

    display:flex;
    flex-wrap:wrap;
}

#header {
    width:100%;
    padding-left: 5px;

    background-image: url("../images/770_兼六園64_yoko1.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    color: #fff;
    text-shadow: 2px 2px 4px #000;
    letter-spacing: 0.1em;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

#header h1, #header h2, #header h3 {
    padding-left: 50px;
    max-width: 700px;
}

#header h2 { font-size: 30pt; }
#header h1 { font-size: 38pt; }
#header h3 { font-size: 18pt; line-height: 1.4; }

/* サイドメニュー（PC版） */
#sidebar {
    width: 210px;
}

#menu {
    padding: 5px 0;
    width:100%;
}

#menu ul {
    list-style: none;
    text-align: center;
}

#menu li {
  line-height: 1.2;
}

#menu a {
    display: block;
    padding: 6px 0 4px 0;
    margin: 0 0 1px 0;
    font-size: 12pt;
    font-weight: bold;
    color: #fff;
    background: #89ABE3;
    border: 1px solid #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

#menu a:hover,#menu a.current {
    color: #89ABE3;
    background: #fff;
    border-color: #89ABE3;
}

#menu a:hover {
    transform: translateX(5px);
    background: lightyellow;
}

/* ===== 広告バナー ===== */
#sponsors {
    width:100%;
    min-height :300pt;
    border: 1px solid #89ABE3;
}

#sponsors h3 {
    padding: 15px 0 10px 10px;
    font-size: 12pt;
    font-weight: bold;
}

#sponsors p {
    padding: 2px 10px 5px;
    font-size: 10pt;
    font-weight: bold;
}

#sponsors p.tiny {
    padding-left: 15px;
    font-size: 8pt;
}

#sponsors img {
    width:100%;
    padding: 0;
}

/* ===== メイン ===== */
#main {
    flex:1;
    padding:5px 20px;
}

#main h2 {
    padding: 10px 0 5px 8px;
    font-size: 14pt;
    font-weight: bold;
    border-left: 8px solid #89ABE3;
    border-bottom: 1px solid #ccc; /* 見出しを分かりやすく */
    line-height: 1.2;             /* 数字を小さくすると線が文字に近づきます */
}

#main h3 {
    padding: 15px 0 0 1em;
    font-weight: bold;
}

#main h4 {
    padding: 5px 0 0 2em;
    font-style: italic;
}

#main p,
#main dl {
    padding: 5px 10px 5px 2em;
}

/* 定義リストの調整 */
#main dl {
    display: grid;
    grid-template-columns: 6em 1fr; /* 少し幅を広げて調整 */
    row-gap: 5px;
}

#main dt {
    grid-column: 1;
    font-weight: bold;
}

#main dd {
    grid-column: 2;
    margin: 0;
}

#main ol,
#main ul {
    padding: 5px 10px 5px 4em;
}

#main span#mailaddr {
    display: inline-block;
    padding: 5px 10px 5px 2em;
}

/* 装飾クラス */
#main .emphasis {
    color: #CC0000;
    font-weight: bold;
}

#main a {
    color: #990033;
    text-decoration: underline;
}

#main a:hover {
    text-decoration: none;
}

/* 位置・状態クラス */
.right { text-align: right !important; } /* 要素を限定せず，強制力を高める */
#main .forecast { color: #777; }
#main .soon { color: #3388FF; }

#main strong { font-weight: bold; }

/* リストスタイル：2段目以降に※を付ける設定 */
#main ul {
    list-style-type: disc;
}

#main ul ul {
    list-style: none;
    padding-left: 0.5em;
}

#main ul ul > li::before {
    content: "※";
    margin-left: -1em;
    padding-right: 0.2em;
}

/* ===== テーブル共通 ===== */
#main table {
    border-collapse: collapse;
    margin: 10px 0 10px 2em;
}

#main th,
#main td {
    padding: 6px 10px;
}

#main th {
    background-color: #f2f5fa !important; /* 薄い青系に変更 */
    color: #333 !important;
    border: 2px solid #89ABE3 !important;
}

#main td {
    border: 2px solid #aaa !important;
}

/* スケジュール表 価格表 */

#main table.schedule, 
#main table.price {
    border: none;
    border-top: 2px solid #89ABE3; /* 上端にテーマカラーの太線を配置 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#main table td.diagonal{
    background-image: linear-gradient(to right top, transparent calc(50% - 0.5px), #999 50%, #999 calc(50% + 0.5px), transparent calc(50% + 1px));
}

#main .price td {
    text-align: right;
}

#main .price td.notax {
    padding-right: 3.3em;
}

#main .price td.a_center {
    text-align: center;
}

/* ===== 参加登録ボタン ===== */
#main .registration-area {
    display: flex;
    flex-direction: row;       /* PC・スマホ共通で横並び */
    justify-content: center;   /* 中央寄せ */
    align-items: center;       /* 上下中央揃え */
    gap: 30px;                 /* ボタンとQRコードの間の余白 */
    margin: 30px 0;            /* 上下のブロックとの余白 */
}

#main a.btn-registration {
    display: inline-block;
    width: 150px;
    padding: 14px 0;
    font-weight: bold;
    font-size: 13pt;
    text-align: center;
    text-decoration: none;
    color: #fff !important;
    background: linear-gradient(135deg, #7a0019, #a50021);
    border-bottom: 4px solid #5a0012;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: 0.2s;
    margin: 0;
}

#main a.btn-registration:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #a50021, #7a0019);
}

#main a.btn-registration:active {
    transform: translateY(4px);
    box-shadow: none;
}
/* ===== 補助 ===== */
#main em.attention { 
    color: #CC5555; 
    font-style: normal;
    font-weight: bold;
}

#main div.info {
    margin-left: 3em;
}

iframe {
    width: 100% !important;   /* 親要素の幅いっぱいに広げる */
    max-width: 100%;          /* 画面からはみ出さないように制限 */
    aspect-ratio: 4/3;
    height: auto !important;  /* 高さを自動調整 */
    border: none;
}

/* ===== フッター ===== */
#footer {
    margin-top: 50px;
    padding: 20px;
    border-top: 1px solid #ccc;
    text-align: center;
    font-size: 10pt;
}

/* ===== 広告 ===== */
#sponsors p {
    text-align: center;    /* 画像を左寄せにする */
    margin-left: 0px;   /* 左側のラインから少し離す（お好みで） */
    margin-right: 0px;  /* 右側のラインから少し離す */
}

/* ===== 画面幅が934px以下（レスポンシブ）の設定 ===== */
@media screen and (max-width:934px){

  #layout{
    flex-direction:column;
    width:100%;
    padding:0;
  }

  /* header */
  #header{
    height:auto;
    background-size:cover;
    padding-bottom:15px;
  }

  #header h1,
  #header h2,
  #header h3{
    width:100%;
    padding:0 15px;
    text-shadow:none;
    color:#fff;
  }

  #header h2{ font-size:16pt; margin-top:10px; }
  #header h1{ font-size:20pt; margin-bottom:5px; }
  #header h3{ font-size:11pt; line-height:1.5; }

  /* sidebarを展開 */
  #sidebar{
    display:contents;
  }

  /* menu */
  #menu{
    order:1;
    width:100%;
    background:#f0f0f0;
    padding:5px 0;
  }

  #menu ul{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:2px;
  }

  #menu a{
    min-width:100px;
    padding:10px 15px;
    font-size:10pt;
    margin:0;
    transform:none !important;
  }

#menu a:hover{
    transform:none;
}

  /* main */
#main{
order:2;
margin:20px 0;
padding:0 15px;
}

/* sponsors
#sponsors{
order:3;
margin-top:20px;
width:100%;
min-height:150px;
text-align:center;
}
 */

#sponsors {
    order: 3;                        /* メインコンテンツの下に配置 */
    width: 100% !important;
    min-height: auto !important;     /* PC版の縦幅固定（300pt）を解除 */
    border-top: 1px solid #89ABE3;   /* 上だけに線を残して区切りにする */
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 15px 10px !important;

    display: flex !important;
    flex-direction: row !important;   /* 横に並べる */
    flex-wrap: wrap !important;       /* 画面幅で折り返す */
    justify-content: center !important;/* 中央に寄せる */
    align-items: center !important;   /* 縦方向の中央揃え */
    gap: 15px 20px !important;        /* 縦の隙間15px、横の隙間20px */
  }

  #sponsors h3 {
    width: 100%;                     /* 「協力企業：」の文字だけ独立して上に表示 */
    text-align: center;
    padding: 0 0 5px 0 !important;
  }

  #sponsors p {
    margin: 0 !important;            /* 縦の余計な隙間を完全にゼロにする */
    padding: 0 !important;           /* パディングもゼロにする */
    flex: 0 1 auto !important;
  }

  /* 最後の（お申し込み順）という文字の微調整 */
  #sponsors p:last-child {
    width: 100%;                     /* 改行して中央に配置 */
    text-align: center;
    margin-top: 10px !important;
  }

  #sponsors img {
    display: block !important;
    width: 130px !important;          /* 画像の横幅を130pxに固定 */
    max-width: 100% !important;
    height: auto !important;          /* 縦横比を維持 */
    padding: 0 !important;            /* ★PC版の padding-left: 15px を完全にリセット */
  }

}