/* ======================================
   Root専用・年齢認証ページ改善CSS
====================================== */

/* タイトル書体 */
p.style3 {
    font-family: Impact, sans-serif;
    font-size: 59px;
    color: #FFFFFF;
    font-style: italic;
    text-align: center;
	margin: 4px 0 0 0 !important;
}

/* =====================
   PCレイアウト（デフォルト）
   ===================== */


.outer-right {
    width: 96%;
    text-align: right;   /* 全体を右に寄せる */
}

.inner-fixed {
    width: 700px;        /* PCで中央の縦コンテンツ幅 */
    margin-right: 5%;    /* モデル画像との空間 */
    display: inline-block;
    text-align: left;    /* 中身は左寄せ（age-block内で調整） */
    vertical-align: top;
}

/* タイトルの行 */
.top-title {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}


/* スマホ ------------------------------- */
@media screen and (max-width: 640px) {
/* ==== Body 全体の背景設定 ==== */
    img.flag {
        display: none !important;
    }
body {
    position: relative;
    background: url(tbg.jpg) no-repeat left top;
	background-position: calc(-15px) top;
    background-size: auto;
    background-color: #000;
    color: #fff;
    z-index: 1;
}
body::before {
    content: "";
    position: fixed;         /* ← 背景として固定 */
    width: 100%;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(0, 0, 0, 0.45); 
    z-index: -1;            /* ← 背景として背面に送る */
}
    .age-block:not(.jp) {
        display: none !important;
    }
	

    .inner-fixed {
        width: 95% !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    .top-title {
        flex-direction: column;
        text-align: center;
    }

    .top-title img {
        margin-top: 4px;
		width: 80%;
    }

	
}


/* トップページ共通テーブルや要素の中央寄せ */
.top-table {
    margin: 0 auto !important;
    width: 90% !important;
    border-collapse: collapse;
    float: none !important;
    text-align: center !important;
}

.top-table td {
    text-align: center !important;
    vertical-align: middle;
}

.top-table img {
    display: block;
    margin: 0 auto;
}

/* ===== PCレイアウト（スマホ以外） ===== */
@media screen and (min-width: 641px) {

/* ==== Body 全体の背景設定 ==== */
body {
    background-image: url(tbg.jpg);
    background-repeat: no-repeat;
    background-position: left top;
    background-position: calc(1px) top !important;
    background-size: auto;
    background-color: #000000;
    color: #FFFFFF;
}

    /* 外枠：右寄せしたいのならそのままOK */
    .outer-right {
        text-align: right;
        padding-right: 60px;
    }

    /* 中身は幅固定で中央寄せ */
    .inner-fixed {
        width: 1000px;
        margin-right: 0; 
        margin-left: auto; 
        text-align: center;
    }

    /* 上部タイトル（画像＋文字）横並び */
    .top-title {
        display: flex;
        align-items: center;
        justify-content: center; /* ★ここが重要：中央寄せ */
        gap: 20px;
        margin-bottom: 1px;
		margin-top:0px;
		border-color;#ffffff";
    }

    /* 左にテキスト、右に画像 */
    .title-text {
        text-align: center;
    }
	
	.top-title img {
    height: 130px;
}

    .title-img img {
        height: 130px; /* 適宜調整可能 */
        display: block;
    }
	img.flag {
    width: 40px;
}

    /* 18歳テキスト部分の幅固定 */
    .root-inner {
        width: 800px;
        margin: 0 auto;
        text-align: center;
    }
.age-block {
    display: flex;
    align-items: flex-start;
    gap: 14px;                /* 国旗と文章の間隔 */
    margin-bottom: 20px;      /* 次の国のブロックとの隙間 */
}

/* 国旗 */
.age-block .flag {
    width: 50px;
    flex-shrink: 0;
}

/* 文章 */
.age-block p {
    flex: 1;
    text-align: left;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}


    /* まず age-btn-group を中央揃えに */
    .age-btn-group {
        text-align: center;
        margin-top: 5px;
    }

    /* ボタン共通（中央に並ぶ） */
    .age-btn,
    .age-btn-deny {
        display: inline-block;   /* 横並びにする */
        vertical-align: middle;
        margin: 0 12px;          /* ←★ 左右の間隔を広げる */
    }


    a.age-btn {
        display: inline-block;
        padding: 7px 18px;
        font-size: 18px;
		background: rgba(8, 115, 123, 0.55); /* ← 背景だけ半透明！ */
        color: #ffbbbb;
        border-radius: 8px;
        border: 2px solid #f6f7ed;
        margin: 4px 43px;
        text-decoration: none;
        font-weight: bold;
    }

    a.age-btn-deny {
        display: inline-block;
        padding: 8px 16px;
        font-size: 16px;
        background: rgba(8, 0, 0, 0.55); /* ← 黒背景を半透明 */
        color: #ffbbbb;
        border-radius: 8px;
        border: 2px solid #ffd861;
        margin: 4px 24px;
        text-decoration: none;
        font-weight: bold;
    }
    /* ボタン間を広げる */
    .age-btn-group a + a {
        margin: 0 40px; 
    }
	
}



/* ━━━━━━━━━━━━━━━━━━━━━━━━
   640px 以下（スマホ基本）
━━━━━━━━━━━━━━━━━━━━━━━━ */
@media screen and (max-width: 640px) {

body {
    font-family: sans-serif;
    line-height: 1.5;
    font-size: 16px;
}
/* タイトル書体 */
p.style3 {
    font-family:sans-serif;
    font-size: 37px;
	font-style: italic;
    color: #FFFFFF;
    text-align: center;
	margin: -5px 0 0 0 !important;
}


/* テーブル・コンテンツ幅最適化 */
table {
    width: 100% !important;
    margin: 0 auto !important;
    max-width: 650px !important;
}

td {
    padding: 12px !important;
}


/* 承諾ボタン */
a.age-btn {
    display: block;
    width: 90%;
    font-size: 16px;
    padding: 7px;
    margin: 14px auto;
    font-weight: bold;
    text-align: center;
    background: #08737b;
    color: #fff04c;
	border-radius: 10px;
    text-decoration: none;
    border: 2px solid #f6f7ed;
}

a.age-btn:hover {
    opacity: 0.85;
}

/* 同意しないボタン（否認） */
a.age-btn-deny {
    display: block;
    width: 90%;
    font-size: 16px;
    padding: 7px;
    margin: 14px auto;
    font-weight: bold;
    text-align: center;
    background: #000;
    color: #fff04c;
    border-radius: 10px;
    text-decoration: none;
    border: 2px solid #ffd861;
}

a.age-btn-deny:hover {
    opacity: 0.85;
}


/* 国旗アイコン */
img.flag {
    width: 50px;
    height: auto;
    margin-bottom: 8px;
}

/* top-table のスマホ最適化 */
.top-table {
    width: 100% !important;
}

}

/* ━━━━━━━━━━━━━━━━━━━━━━━━
   600px 以下（小型スマホ）
━━━━━━━━━━━━━━━━━━━━━━━━ */
@media screen and (max-width: 600px) {

body {
    font-size: 15px;
}

td {
    padding: 10px 5px !important;
}

img.flag {
    width: 60px;
}

a.age-btn {
    padding: 5px;
    font-size: 20px;
}

}




/* footer 全体 */
.footer-container {
    width: 100%;
    text-align: center;
    margin-top: 8px;
}

/* footer 本体 */
.footer {
    width: 100%;
    margin: 0 auto;
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
}

@media screen and (max-width: 640px) {
  .footer {
      width: 92%;
      font-size: 13px;
  }
}
