body,
div,
section
{
    margin: 0;
    padding: 0;
    display: block;
    box-sizing: border-box;
}

menu{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header{
    background-color: transparent;
}

.header {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
    display: block;
}

body {
    margin: 0;
    min-height: 100vh;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;

    background-color: #fcfcfc;
    background-image: url("../img/back.jpg");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: scroll;

}
/*ヘッダー*/
.header img{
    width: 100%;
    background-color: transparent;
    height: 100%;
    display: block;
    transition: opacity 3s ease;
    object-fit: contain;
}
/*メニュー*/
menu{
    background-color: transparent;
}
.menu{
    background-color: transparent;
    width: 800px;
    margin: 10px auto 0 auto; /* ヘッダーの下に少し余白を作り中央に配置 */
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    box-sizing: border-box;
    gap: 8px;
    padding: 0;
}
.menu > a,
.menu-item > a{
    display: flex;
    background-color: rgba(150, 200, 230, 0.5);
    color: rgb(40, 40, 40);
    text-decoration: none;
    padding: 10px;
    transition-duration: 0.3s;
    flex: 1 1 calc(25% - 8px); /* 4等分、gapを考慮 */
    text-align: center;   /* 文字を中央揃え */
    box-sizing: border-box;
    border: none;
    backdrop-filter: blur(8px);
    margin: 0;
    border-radius: 4px;
}
.menu > a:hover,
.menu-item > a:hover{
    background-color: rgba(150, 200, 230, 0.7);
}
.menu .menu-item{
    display: flex;
    flex-direction: column;
}
.submenu{
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s ease;
}
.menu-item.has-sub:hover .submenu{
    max-height: 200px; /* ホバーで展開 */
}
.submenu a{
    display: block;
    background-color: rgb(248, 248, 248);
    color: rgb(255, 255, 255);
    padding: 8px;
    text-decoration: none;
}
.submenu a:hover{
    background-color: rgb(238, 238, 238);
}
.menu .button-on{
    background-color: rgb(255, 255, 255);
}

.menu .disabled-link{
    color: #333;
    font-weight: 600;
    cursor: default;
}

/*コンテンツ*/
.content-section{
    background-color: transparent;
}

.content-section {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

.content {
    background-color: transparent;
    width: 800px;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    min-height: auto;
}
/* ページ固有のタイトルと本文 */
.page-title{
    font-size: 1.6rem; /* 見出しを大きめに */
    font-weight: 700; /* 太字 */
    margin: 0 0 0.75rem 0;
}
.page-body{
    font-size: 1rem; /* 見出しより小さめ */
    line-height: 1.6;
    color: #333;
}
.honmon{
    background-color: rgb(215, 243, 248);
    padding: 15px;
    border-radius: 8px;
    color: rgb(215, 243, 248);
}

/*デザイナータグ*/
.mt0{
    margin-top: 0;
}

/* メニューを箇条書き構造（縦並び）に表示 */
.menu{
    display: flex;
    flex-direction: row;
    padding: 0;
    margin: 10px auto 0 auto;
    gap: 8px;
    list-style: none;
    width: 800px;
    box-sizing: border-box;
    background-color: transparent;
}
.menu > a,
.menu > .menu-item{
    flex: 1 ;
    text-align: left;
    box-sizing: border-box;
    width: auto;
}
.menu a,
.menu .parent-link{
    display: block;
    padding: 10px;
    text-decoration: none;
    color: rgb(40, 40, 40);
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    transition: background-color 0.3s;
    border: none;
    backdrop-filter: blur(8px);
}
.menu a:hover,
.menu .parent-link:hover{
    background-color: rgba(246, 246, 246, 0.8);
}

/* サブメニューの基本 */
.menu .menu-item{
    position: relative;
    flex: 1 1 calc(25% - 8px);
}
.menu .submenu{
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    display: none;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    backdrop-filter: blur(10px);
}
.menu .menu-item:hover .submenu{
    display: block;
}

/* TOPページ専用：メニューをページ中央に1行表示 */

body.page-top menu {
    position: static;
    top: auto;
    z-index: 500;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    background-color: transparent;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

body.page-top .menu{
    width: 800px;
    max-width: 50%;
    margin: 10px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    align-items: stretch;
    overflow: visible;
    font-family: inherit;
}

body.page-top .header,
body.page-top .header img,
body.page-top .content-section,
body.page-top .content {
    background: transparent !important;
    box-shadow: none !important;
}

body.page-top .menu > a,
body.page-top .menu-item > .parent-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background-color: rgba(255, 255, 255, 1);
    color: #0f172a;
    text-decoration: none;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    width: 100%;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

body.page-top .menu > a::before,
body.page-top .menu-item > .parent-link::before {
    content: "●";
    display: inline-block;
    width: 18px;
    text-align: center;
    color: #3b82f6;
    font-size: 0.75rem;
}

body.page-top .menu > a:hover,
body.page-top .menu-item > .parent-link:hover {
    background-color: #eff6ff;
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(2px);
}

body.page-top .menu-item {
    position: relative;
    flex-shrink: 0;
    min-height: 48px;
}

body.page-top .menu-item .submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    width: 80px;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    padding: 0;
    margin: 0;
    z-index: 20;
    visibility: visible;
}

body.page-top .menu-item.has-sub {
    position: relative;
}

body.page-top .menu-item.has-sub:hover .submenu,
body.page-top .menu-item.has-sub:focus-within .submenu {
    display: flex !important;
}

body.page-top .menu-item .submenu a {
    display: block;
    padding: 10px 12px;
    background-color: #f2f2f2;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

body.page-top .menu-item:hover .submenu,
body.page-top .menu-item:focus-within .submenu {
    display: flex !important;
}

body.page-top .menu-item .submenu a {
    padding: 12px 16px;
    background-color: #f2f2f2;
    border-radius: 10px;
    border: 1px solid #dcdcdc;
    text-decoration: none;
    color: #333;
    margin-bottom: 0;
    white-space: nowrap;
    width: 100%;
}

body.page-top .menu-item .submenu a:hover {
    background-color: #e8e8e8;
}

body.page-top .menu-item.has-sub:hover .parent-link,
body.page-top .menu-item.has-sub:focus-within .parent-link {
    background-color: #e8e8e8;
}

body.page-top .menu-item .submenu a:hover {
    background-color: #e8e8e8;
}

/* page01-1専用スタイル */
body.page-01-1 menu {
    background-color: #f4f4f4;
}

body.page-01-1 .menu {
    width: 800px;
    margin: 10px auto 0 auto;
    display: block;
    flex-wrap: wrap;
    background-color: rgb(255, 255, 255);
    padding: 0;
    box-sizing: border-box;
}

body.page-01-1 .menu > a {
    display: list-item;
    list-style: disc;
    margin-left: 40px;
    background-color: transparent;
    padding: 8px 0 8px 0;
    flex: none;
    text-align: left;
}

body.page-01-1 .menu-item {
    display: list-item;
    list-style: disc;
    margin-left: 40px;
    background-color: transparent;
    padding: 8px 0;
    flex: none;
    flex-direction: row;
    position: relative;
}

body.page-01-1 .menu-item > .parent-link {
    background-color: rgb(179, 179, 179);
    color: rgb(110, 110, 110);
    text-decoration: none;
    padding: 8px;
    display: block;
    transition-duration: 0.3s;
    text-align: left;
    flex: 1 1 0;
}

body.page-01-1 .menu-item > .parent-link:hover {
    background-color: rgb(253, 253, 253);
}

body.page-01-1 .submenu {
    display: none;
}

/* page01-1専用スタイル - 箇条書きメニュー */
body.page-01-1 .menu {
    display: block !important;
    width: 800px !important;
    margin: 10px auto 0 auto !important;
    flex-wrap: nowrap !important;
    background-color: rgb(255, 255, 255) !important;
    padding: 0 !important;
}

body.page-01-1 .menu > a {
    display: list-item !important;
    list-style: disc !important;
    margin-left: 40px !important;
    flex: none !important;
    text-align: left !important;
    background-color: rgb(179, 179, 179) !important;
    color: rgb(110, 110, 110) !important;
    padding: 8px !important;
    text-decoration: none !important;
    transition-duration: 0.3s !important;
}

body.page-01-1 .menu > a:hover {
    background-color: rgb(253, 253, 253) !important;
}

body.page-01-1 .menu-item {
    display: list-item !important;
    list-style: disc !important;
    margin-left: 40px !important;
    flex: none !important;
    background-color: transparent !important;
    padding: 0 !important;
}

body.page-01-1 .menu-item > .parent-link {
    display: block !important;
    background-color: rgb(179, 179, 179) !important;
    color: rgb(110, 110, 110) !important;
    padding: 8px !important;
    text-decoration: none !important;
    transition-duration: 0.3s !important;
    text-align: left !important;
}

body.page-01-1 .menu-item > .parent-link:hover {
    background-color: rgb(253, 253, 253) !important;
}

body.page-01-1 .submenu {
    display: none !important;
}

/* カラーギャラリー */
.color-gallery {
    width: 800px;
    max-width: 100%;
    margin: 20px auto;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.color-img {
    width: calc((100% - 60px) / 4);
    min-width: 140px;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #ccc;
    transition: border 0.3s;
}

.color-img:hover {
    border: 2px solid #333;
}

/* カラー説明吹き出し */
.color-description {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 30px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.color-description.hidden {
    display: none;
}

.description-content {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
}

#desc-img {
    width: 40%;
    max-width: 240px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.description-text {
    flex: 1;
    min-width: 240px;
}

.description-text h2 {
    margin-top: 0;
    color: #333;
}

.description-text p {
    line-height: 1.6;
    color: #555;
    white-space: pre-wrap;
}

/* オーバーレイ背景 */
.color-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.color-overlay.hidden {
    display: none;
}

/* 閉じるボタン */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background-color: #555;
}

body.page-top .menu-item {
    position: relative;
    z-index: 1;
}


body.page-top .menu-item.has-sub:hover,
body.page-top .menu-item.has-sub:focus-within {
    z-index: 100;
}

body.page-top .menu-item .submenu {
    display: none;
    position: absolute;
    top: 0;
    left: calc(100% + 8px);
    right: auto;
    width: 180px;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    margin: 0;
    z-index: 200;
}

body.page-top .menu-item.has-sub:hover .submenu,
body.page-top .menu-item.has-sub:focus-within .submenu {
    display: flex;
}


body.page-top .menu-item.has-sub .parent-link::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    background: url("../img/nikukyuu.jpg") no-repeat center;
    background-size: contain;
}
html {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
}

body {
    min-height: 100vh;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
}
html,
body {
    height: auto !important;
    min-height: 100% !important;
    max-height: none !important;
    overflow: visible !important;
}

body.page-top {
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    overflow-y: auto !important;
}

.content {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}
body.page-top {
    padding-bottom: 90px;
}
.header {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.site-title {
    text-align: center;
    padding: 18px 0 22px;
}

.site-title-main {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 6px;
    color: #334155;
}

.site-title-sub {
    margin-top: 3px;
    font-size: 12px;
    letter-spacing: 5px;
    color: #94a3b8;
}
