/* カスタムCSS - HTMLから分離 */

.splash {
    height: 100%;
    width: 100%;
    background: #FFF;
    z-index: 9999;
    position: fixed;
    top: 0;
    left: 0;
}

.splash img {
    max-width: 500px;
    width: 100%;
    transform: translate(-50%, -50%);
    position: absolute;
    top: 50%;
    left: 50%;
}

/* ヘッダーメニューのスタイル */
header {
    padding: 0px 0;
}

.header-contents-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    height: 60px;
}

.header-logo-wrap {
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.header-logo {
    width: 150px;
}

.header-nav {
    flex: 1;
    display: contents;
    margin-left: 40px;
}

.header-main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
    align-items: center;
    height: 100%;
}

.header-main-menu li {
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.header-main-menu a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 100%;
}

.header-main-menu a:hover {
    background-color: #f0f0f0;
    color: #0066cc;
}

.header-menu {
    flex-shrink: 0;
    display: flex;
    gap: 10px;
    height: 100%;
    align-items: center;
}

/* モバイルナビゲーション */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
}

.mobile-nav .nav-contents-wrap {
    background: white;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 20px;
}

/* メインコンテンツを全幅に調整 */
#main {
    width: 100% !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.wrap {
    width: 100% !important;
    max-width: none !important;
}

/* 既存の2カラムレイアウトのCSSを無効化 */
.home_main {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* スマホ版で全文表示 */
@media (max-width: 767px) {
	img.jyushoku.sp-only {
    top: 10px;
    position: relative;
}
    .home-hello-module .txt {
        height: auto !important;
        overflow: visible !important;
    }
    
    .pHello__scroll {
        display: none !important;
    }
}

/* 毎月のお言葉セクションのスタイル */
.monthly-words {
    padding: 20px 0;
}

.haiku-section {
    margin: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
   
}

.haiku-text {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.8;
    text-align: center;
    color: #333;
    margin-bottom: 15px;
    font-family: 'Hannari', serif;
}

.haiku-meaning {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    text-align: left;
    margin: 0;
}

/* ページトップボタンのスクロール追従 */
#page-top-pc {
    position: fixed !important;
    bottom: 30px !important;
    top: auto !important;
    right: 30px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

#page-top-pc.show {
    opacity: 1;
    visibility: visible;
}

#page-top {
    position: fixed !important;
    bottom: 20px !important;
    top: auto !important;
    right: 20px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

#page-top.show {
    opacity: 1;
    visibility: visible;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .header-nav {
        display: none;
    }
    
    .haiku-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .haiku-text {
        font-size: 16px;
    }
    
    .haiku-meaning {
        font-size: 13px;
    }
}

@media (max-width: 1392px) {

    .header-main-menu {
        gap: 5px !important;
        padding: 0px !important;
        margin: 0px !important;

    }
    .header-main-menu a{
        font-size: 14px !important;
        padding: 8px 5px !important;
    }
}
@media (max-width: 500px) {
header .header-contents-wrap .header-logo-wrap .header-logo {
    width: 140px;
}
header .header-contents-wrap .header-logo-wrap {
    width: 170px !important;

}
}

/* スマホ版スライダーの高さ調整 */
@media (max-width: 767px) {
    .home-mv-module {
        height: 40vh !important;
    }
    
    .home-slider-item {
        height: 40vh !important;
    }
    
    .slick-track {
        height: 40vh !important;
    }
}

/* お問い合わせページの表示 */
#main.contact {
    display: block !important;
}

/* 日記ページのスマホ版でヘッダーに隠れないように調整 */
@media (max-width: 767px) {
    .diary-module {
        padding-top: 80px;
    }
}