/* ========================================
   基本設定・レイアウト・構造
   ファイル名: base.css
======================================== */

/* リセット・基本設定 */
* {
    margin: 0;
    padding: 0;
}

img {
    border: 0;
}

html {
    scroll-behavior: smooth;
}

/* base.cssの body設定を修正 */
body {
    background: #eee;
    font-size: 100%;
    font-family: 'メイリオ', Meiryo, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', 'MS UI Gothic', sans-serif;
    padding-top: 80px; /* デスクトップ用 */
    margin: 0;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* メニュー開閉時の調整を削除または修正 */
body.menu-open {
    overflow: hidden;
    /* padding-rightの行を削除 */
}

/* フォーカス時のアクセシビリティ */
a:focus,
button:focus {
    outline: 2px solid #3b65bf;
    outline-offset: 2px;
}

/* レイアウト・構造 */
#wrapper {
    max-width: 1000px; /* widthをmax-widthに変更 */
    width: 100%; /* 追加 */
    margin: 0 auto;
    padding: 30px 20px; /* 左右のpaddingを調整 */
    background: #fff;
    box-sizing: border-box; /* 追加 */
}

#contents {
    font-size: 85%;
    line-height: 1.8;
}

#header {
    margin-bottom: 30px;
    padding-bottom: 20px;
}

#nav {
    float: left;
    width: 240px;
    margin-right: 40px;
}

#main {
    float: right;
    width: 600px;
}

#footer {
    clear: both;
    padding: 10px 0;
}

#footer_contetents {
    width: 840px;
    margin: 0 auto;
    padding: 20px;
    border: 2px solid #ccc;
    background: #eee;
}

/* クリアフィックス */
.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.clearfix {
    display: inline-block;
}

* html.clearfix {
    height: 1%;
}

.clearfix {
    display: block;
}

/* h1の修正 */
h1 {
    width: 100%; /* 固定幅を削除 */
    max-width: 980px; /* 最大幅を設定 */
    margin: 10px auto;
    padding: 30px 20px; /* 左右のpaddingを調整 */
    font-size: 180%;
    font-weight: normal;
    text-align: center;
    line-height: 2;
    border: double 6px #ffffff;
    background: #3b65bf;
    color: white;
    box-sizing: border-box;
}

h2 {
    position: relative;
    margin: 40px 0 20px 0;
    padding: 20px 15px;
    background: linear-gradient(135deg, #3b65bf, #2a4d8a);
    color: white;
    font-size: 125%;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(59, 101, 191, 0.3);
}

h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #fff, transparent);
    border-radius: 8px 8px 0 0;
}

#nav h2 {
    padding: 10px 5px;
    background: #069;
    font-size: 120%;
    color: #fff;
}

h3 {
    margin: 20px 0 15px 0;
    font-size: 115%;
    border-bottom: 1px solid #3498db;
}

/* リスト・テキスト要素 */
ul li {
    list-style: disc;
    margin-left: 1.5em;
    line-height: 2;
    font-size: 95%;
}

ol li {
    margin-left: 1.5em;
    line-height: 2;
}

dl {
    margin-top: 10px;
}

dt {
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 110%;
}

dd {
    margin-bottom: 15px;
}

/* テーブル */
.table-container {
    width: 100%;
    overflow-x: auto; /* 横スクロールを許可 */
    margin: 20px 0;
    box-sizing: border-box;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* テーブルの基本設定修正 */
table.border {
    width: 100%;
    min-width: 600px; /* 最小幅を設定 */
    border-spacing: 0;
    border-collapse: collapse;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

table.border th {
    background: linear-gradient(135deg, #3b65bf, #2a4d8a);
    color: white;
    font-weight: bold;
    padding: 15px 10px;
    border: none;
    text-align: center;
}

table.border td {
    padding: 12px 10px;
    border: 1px solid #e9ecef;
    background: white;
    transition: background-color 0.3s ease;
}

table.border tr:nth-child(even) td {
    background: #f8f9fa;
}

table.day td {
    font-size: 90%;
    line-height: 2;
}

table.hotel th td {
    font-size: 90%;
    line-height: 2;
}

/* ユーティリティクラス */
.section {
    margin-bottom: 15px;
}

.attention {
    color: #f00;
}

.red {
    color: red;
}

.small {
    font-size: 85%;
}

.large {
    font-size: 120%;
}

.title {
    font-size: 120%;
}

.center {
    text-align: center;
}

.right {
    text-align: right;
}

.left {
    text-align: left;
}

.t_under {
    text-decoration: underline;
}

.margin_top10 {
    margin-top: 10px;
}

.margin_top20 {
    margin-top: 20px;
}

.marginTop10 {
    margin-top: 10px;
}

.index {
    padding-right: 10px;
}

.kntlogo {
    float: right;
}

.footer_primary {
    text-align: center;
    font-size: 90%;
}

/* ボックス・コンテナ */
.box {
    padding: 15px;
    border: 2px solid #ccc;
    background: #eee;
}

.ten {
    border: dotted 0.5px #000000;
    padding: 15px;
    width: auto;
    margin: 15px;
}

.obi1 {
    background-color: #FFFCED;
}

.obi2 {
    background-color: #FFEEFE;
}

/* 画像・アイテム */
#knt {
    margin-top: 5px;
}

#image {
    margin: 0 0 20px 0;
    text-align: center;
}

.item{
    text-align:center;
	margin: 10px;
}

.item p{
    margin-top:8px;
    font-size:14px;
    line-height:1.5;
}

.center img{
    max-width: 100%;
    height: auto;
}

/* アニメーション */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* フレックスレイアウト */
@media only screen and (min-width: 501px) {
    .flex_block {
        display:flex;
        justify-content:space-between;
        gap:20px;
    }

    .item{
        text-align:center;
        width:33%;
    }

    .item img{
        width:80%;
        margin:0 auto;
        display:block;
    }
}

@media only screen and (max-width: 500px) {
    .flex_block {
        display: block;
        width: 100%;
        text-align: center;
    }

    .item{
        text-align:center;
    }

    .item img {
        display:block;
        width:80%;
        margin:10px auto;   /* ←これが重要（中央） */
    }
	
    .kntlogo {
        float: none;        /* float解除 */
        text-align: center; /* 中央寄せ */
		margin-top: 20px;
    }

    .kntlogo img{
        width: 80%;         /* スマホで少し縮小 */
        max-width: 200px;
        height: auto;
    }
	
	  .center img{
        width: 90%;
        max-width: 350px;
        height: auto;
    }
}