/* --- CSS Reset Start --- */

/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margin */
* {
    margin: 0;
}

/* Allow percentage-based heights in the application */
html,
body {
    height: 100%;
}

/* Add accessible line-height
   Improve text rendering */
body {
    line-height: 1.6;
    /* Good for Japanese, can be overridden by site styles */
    -webkit-font-smoothing: antialiased;
    /* Base font stack, site-specific body style will refine this */
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Hiragino Kaku Gothic ProN", Meiryo, "MS PGothic";
}

/* Improve media defaults */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* Remove built-in form typography styles */
input,
button,
textarea,
select {
    font: inherit;
}

/* Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* Create a root stacking context */
#root,
#__next {
    isolation: isolate;
}

/* Traditional reset elements for broader compatibility */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    /* margin: 0; Already covered by * { margin: 0; } */
    padding: 0;
    border: 0;
    font-size: 100%;
    /* font: inherit; Already covered by body and form elements */
    vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* --- CSS Reset End --- */

/* --- Original CSS Content Starts Below --- */

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #313131;
    max-width: 750px;
    margin: 0 auto;
    padding: 0;
}

section img {
    display: block;
    margin: 0;
    padding: 0;
    vertical-align: bottom;

    color: #313131;
    max-width: 750px;
    margin: 0 auto;
    padding: 0;
}

section {
    margin: 0px 0px -6px 0px;
}

p {
    font-size: 16px;
    margin-bottom: 1em;
    text-align: center;
}

.links {
    text-align: center;
    margin-bottom: 10px;
}

.link-item {
    display: block;
    margin: 20px 0;
    text-decoration: none;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
}

.link-item img {
    display: block;
    margin: 20px 0 40px 0;
}

.link-item:hover {
    text-decoration: underline;
    color: #e6b2d2;
}

#detail {
    background-color: #144386;
    color: #ffffff;
    padding: 70px 0 100px 0;
    text-align: center;
}

#detail img {
    margin: 0 auto;
    display: block;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    color: #313131;
    text-align: left;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    height: 70%;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    text-align: center;
}

.modal-content ul {
    padding-left: 20px;
}

.modal-content ul ul {
    padding-left: 20px;
}

.body.modal-open {
    overflow: hidden;
    /* 背景スクロールを無効化 */
}

.parent-list {
    list-style-type: disc;
    padding-left: 1em;
}

.child-list {
    list-style-type: circle;
    padding-left: 1em;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    background-color: #f9ecef;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.footer-left {
    width: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #ad0069;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
}

.footer-left:hover {
    background-color: #f3d6e0;
}

.footer-right {
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #144386;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
}

.footer-right:hover {
    background-color: #f3d6e0;
}

.footer-right .footer-icon,
.footer-left .footer-icon {
    height: 60%;
    width: auto;
}

.footer-left .footer-text {
    font-size: calc(4vh) !important;
    line-height: 1 !important;
    color: #fff !important;
    margin: 0 !important;
    display: inline-block;
}












/* Image Modal Styles */
.image-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1001;
    /* Sit on top, above existing modal and footer */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    background-color: rgba(0, 0, 0, 0.85);
    /* Dark background */
    cursor: pointer;
    /* Indicate background is clickable */
    /* display: flex; /* This will be set by JavaScript when the modal is opened */
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    display: block;
    width: 100%;
    /* Takes 100% of viewport width */
    height: auto;
    /* Height adjusts to maintain aspect ratio */
    max-width: 100vw;
    /* Ensure it can go full width */
    max-height: 100vh;
    /* Ensure it fits vertically, scales if needed */
    object-fit: contain;
    /* Scales image to fit within bounds, maintaining aspect ratio */
    cursor: default;
    /* Image itself doesn't need pointer if modal background closes */
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1002;
    /* Above the image content */
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: #ccc;
    text-decoration: none;
}

#imageModalTrigger:hover {
    opacity: 0.5;
    transition: opacity 0.3s ease-in-out;

    /* 0.3秒かけて透明度が変化 */
}



/* お知らせセクションのスタイル */
.news-section-container {
    background-color: #E8ECF3;
    /* 画像に合わせた薄いグレーの背景 */
    padding: 5px 25px 40px;
    margin: 0 0 35px 0;
}

.news-section-title {
    text-align: center;
    font-size: 24px;
    /* タイトルの文字サイズ */
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #555;
    /* タイトル下の線 */
    letter-spacing: 0.05em;
    /* 文字間隔を少し広げる */
}

.news-list {
    /* お知らせアイテムリストのコンテナ */
    background-color: #E8ECF3;
}

.news-item {
    display: flex;
    /* 日付とタイトルを横並びにする */
    align-items: flex-start;
    /* 上揃え */
    padding: 18px 5px;
    /* 各アイテムの上下パディング */
    border-bottom: 1px dotted #b0b0b0;
    /* アイテム間の区切り線 */
    background-color: #fff;
}

.news-item:last-child {
    border-bottom: none;
    /* 最後のアイテムの区切り線はなし */
}

.news-item-date {
    flex-basis: 180px;
    /* 日付表示部分の幅 */
    flex-shrink: 0;
    /* 幅が縮まないようにする */
    font-size: 20px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    /* 行間 */
    padding-left: 33px;
    /* アイコン表示用のスペース */
    position: relative;
    /* アイコンを絶対配置するための基準 */
}

/* 日付の前のアイコン (Unicodeの点字パターン文字を使用) */
.news-item-date::before {
    content: "⠿";
    /* U+2⠿ BRAILLE PATTERN DOTS-123456 (画像に近いドットパターン) */
    position: absolute;
    left: 0;
    top: -3px;
    /* アイコンの垂直位置調整 */
    font-size: 1.6em;
    /* アイコンのサイズ */
    color: #ad0069;
    /* アイコンの色 */
    line-height: 1;
    /* アイコン自体の行間 */
}

.news-item-title {
    flex-grow: 1;
    /* タイトル部分が残りの幅をすべて使うようにする */
    font-size: 20px;
    color: #333;
    line-height: 1.5;
    padding-left: 15px;
    /* 日付とタイトルの間のスペース */

}

.news-item-block-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px dotted #b0b0b0;
}

.news-item-block-link:hover {
    opacity: 0.7;
    /* マウスオーバーで全体を少し薄くする */
}


/* Hamburger Menu Styles */
.header-container {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 750px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    z-index: 10001;
}

.hamburger-button {
    display: block;
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 10001;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-button span {
    display: block;
    width: 30px;
    height: 3px;
    margin: 6px auto;
    background-color: #333;
    transition: all 0.3s ease-in-out;
}

.nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    /*max-width: 750px;*/
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 10000;
    padding: 60px 0 100px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 320px);
    justify-content: space-evenly;
    padding-bottom: 20px;
}

.nav-sns-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: auto;
    margin-bottom: 50px;
    padding: 20px 0;
    position: relative;
    bottom: 20px;
}

.nav-sns-icons img {
    width: 50px;
    height: 50px;
    transition: transform 0.2s ease;
}

.nav-sns-icons a:hover img {
    transform: scale(1.1);
}

.nav-menu li {
    text-align: center;
    margin: 8px 0;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-size: 19px;
    display: block;
    padding: 8px;
}

/* VIPルームのリンクスタイル */
.nav-menu li a[href="#vip"] {
    color: #ccc;
    pointer-events: none;
    cursor: default;
}

.nav-menu a:hover {
    background-color: #f5f5f5;
}

/* FAQ Styles */
#faq {
    margin-bottom: 50px;
}

.qa-6 {
    margin-bottom: 5px;
    border-bottom: 2px solid #e8ecf3;
}

.qa-6 summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 1em 2em 1em 3em;
    color: #333333;
    font-weight: 600;
    cursor: pointer;
}

.qa-6 summary::before,
.qa-6 p::before {
    position: absolute;
    left: 1em;
    font-weight: 600;
    font-size: 1.3em;
}

.qa-6 summary::before {
    color: #75bbff;
    content: "Q";
}

.qa-6 summary::after {
    transform: translateY(-25%) rotate(45deg);
    width: 14px;
    height: 14px;
    margin-left: 10px;
    border-bottom: 3px solid #333333b3;
    border-right: 3px solid #333333b3;
    content: '';
    transition: transform .5s;
}

.qa-6[open] summary::after {
    transform: rotate(225deg);
}

.qa-6 p {
    position: relative;
    transform: translateY(-10px);
    opacity: 0;
    margin: 0;
    padding: .3em 3em 1.5em;
    color: #333;
    transition: transform .5s, opacity .5s;
    text-align: left;
}

.qa-6[open] p {
    transform: none;
    opacity: 1;
}

.qa-6 p::before {
    color: #ff8d8d;
    line-height: 1.2;
    content: "A";
}

/* Hamburger Menu Open State */
.menu-open .hamburger-button span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-open .hamburger-button span:nth-child(2) {
    opacity: 0;
}

.menu-open .hamburger-button span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.menu-open .nav-menu {
    display: block;
}

@media (max-width: 750px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }

    p {
        font-size: 14px;
    }
    
    /* ニュース項目のレスポンシブスタイル - 完全に再定義 */
    .news-item {
        display: block;
        padding: 10px 5px;
    }
    
    .news-item-date {
        display: block;
        width: 100%;
        font-size: 14px;
        font-weight: bold;
        color: #333;
        margin-bottom: 5px;
        padding-left: 20px;
        position: relative;
        line-height: 1.2;
        height: auto;
    }
    
    .news-item-date::before {
        content: "⠿";
        position: absolute;
        left: 0;
        top: 0;
        font-size: 12px;
        color: #ad0069;
    }
    
    .news-item-title {
        display: block;
        width: 100%;
        font-size: 16px;
        color: #333;
        line-height: 1.4;
        padding: 0;
    }
}

/* 記事表示用スタイル */
.detail_main {
    max-width: 750px;
    margin: 0 auto;
    padding: 20px;
}

#detail_contents {
    margin-top: 20px;
    margin-bottom: 40px;
}

.article-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    text-align: left;
}

.article-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    text-align: left;
}

.article-content {
    line-height: 1.8;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
}

.no-article {
    text-align: center;
    padding: 50px 0;
    font-size: 18px;
    color: #666;
}

/* Sticky Header Styles for powder-l */
body.has-sticky-header {
    padding-top: 80px; /* ヘッダーの高さに合わせて調整してください。 */
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px; /* ヘッダーの高さ。適宜調整してください。 */
    background-image: url('/img/header_bg.jpg'); /* Webルートからの相対パス */
    background-repeat: no-repeat; /* 繰り返しなし */
    background-position: center center; /* 中央寄せ */
    background-size: cover; /* エリアを覆うように調整（縦横比維持） */
    z-index: 1000; /* 他の要素より手前に表示 */
    display: flex;
    justify-content: flex-end; /* ロゴコンテナを右寄せ */
    align-items: center; /* ヘッダー内の要素を垂直方向に中央揃え */
    padding-right: 20px; /* ロゴの右側の余白。適宜調整してください */
    box-sizing: border-box;
}

.logo-container {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
}

.sticky-header .logo {
    max-height: 80px; /* ヘッダーの高さ(80px)より少し小さめに設定。 */
    width: auto;
    display: block; /* 画像下の余白対策 */
}
/* End Sticky Header Styles */