@charset "utf-8";


:root {
    /* 慣用色リスト */
    --akadaidai: #ea5504;
    /*赤橙*/
    --karakurenai: #e95464;
    /* 韓紅花 */
    --kurenaiiro: #C22047;
    /*紅色*/
    --ruriiro: #19448e;
    /* 瑠璃色 */
    --asagi: #00A5BF;
    /*浅葱色 */
    --wakaba: #b9d08b;
    /*若葉色*/
    --tutuji: #e95295;
    /*躑躅色*/
    --toki: #f4b3c2;
    /*鴇色*/
    --suou: #973C3F;
    /*蘇芳*/
    --wasurenagusa: #89c3eb;
    /*勿忘草色*/
    --hanada: #267CA7;
    /*縹色*/
    --sinbasi: #5AB9C1;
    /*新橋色*/
    --haimidori: #698966;
    /*灰緑*/
    --titosemidori: #2B6442;
    /*千歳緑*/
    --mizuasagi: #70A19F;
    /*水浅葱*/
    --kariyasu: #f5e56b;
    /*刈安色*/
    --chuki: #FFE500;
    /*中黄*/
    --anzu: #FAB27B;
    /*杏子色*/
    --mikan: #F68B1F;
    /*蜜柑色*/
    --kodaimurasaki: #895687;
    /*古代紫*/

    /* 今後追加する色もここに追加 */
    --shippo: #fcf8f6;
    /* 七宝文様の背景色など、汎用的な色もOK */
}


/*---ベース設定---*/
html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', 'Noto Serif JP', sans-serif;
    font-weight: 500;
    margin: 0;
    color: #1b1b1b;
    line-height: 1.6;

    /* ★修正：七宝文様がフッターの上まで伸びるための設定 */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* mainタグ全体をフッターの上まで引き伸ばす（detail-main-wrapperにも適用されます） */
main {
    flex-grow: 1;
    /* ★フッターの上まで高さを引き延ばす */
}

li {
    list-style-type: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.5s;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}


/*背景に敷いている七宝文様*/
#shippo {
    background:
        radial-gradient(circle at center, transparent 67.5%, #dddbd9 71.25%, transparent 75%),
        radial-gradient(circle at center, transparent 67.5%, #dddbd9 71.25%, transparent 75%);
    background-size:
        40px 40px;
    background-position:
        0 0,
        20px 20px;
    background-color: #faf9f9;
}


/*ヘッダー　ここから*/
#header {
    width: 100%;
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    /* 他のコンテンツより手前に表示 */
    background-color: #fff8f8;
    /* またはお好みの薄いベージュ */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    box-shadow: 0 2px 0 0 #c0b2b2;
}

#header .logo {
    width: 100%;
    max-width: 200px;
    margin: 0;
    /* ★追加: h1のデフォルトマージンを削除 */
    height: 100%;
    /* ★追加: 親要素(header)の高さいっぱいに広げる */
    display: flex;
    /* ★追加: Flexboxを有効にする */
    align-items: center;
    /* ★追加: 子要素(aタグ/img)を縦中央に揃える */
}

#header .logo a {
    display: block;
}

#header .logo a img {
    /* ★追加: インライン要素としての配置のズレを解消 */
    vertical-align: middle;
}

#header .navi .menu {
    display: flex;
    align-items: center;
}

#header .navi .menu li {
    font-size: 16px;
    margin-left: 40px;
}

#header .icon {
    display: flex;
    align-items: center;
}

#header .icon li {
    margin-left: 40px;
}

/*ヘッダーのレスポンシブル対応 ここから*/
@media screen and (max-width: 767px) {

    #header {
        display: flex;
        align-items: center;
        height: 60px;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 10;
        padding: 0 20px;
    }

    #header .logo {
        max-width: 140px;
        /* 余計な余白をゼロにする設定を念のため追加 */
        margin: 0;
        padding: 0;
        height: 100%;
        /* ★追加: 親要素の高さいっぱいに広げる */
        display: flex;
        /* ★追加: Flexboxを有効にする */
        align-items: center;
        /* ★追加: 子要素を縦中央に揃える */
    }

    #header .logo a {
        display: block;
        height: 100%;
    }

    #header .logo a img {
        display: block;
        max-width: 100%;
        height: 100%;
        width: auto;
        /* 幅は自動調整 */
        height: auto;
        /* ★修正: 高さをaタグの100% (ヘッダーの高さ) に強制的に合わせる */
        margin-top: 15px;
    }

    #header .icon {
        width: 50%;
        margin: 0 auto;
    }

    #header .icon li {
        margin-left: 20px;
    }
}

/*ハンバーガーメニュー　ここから*/
@media screen and (max-width: 767px) {
    #header .hbg {
        width: 50px;
        height: 50px;
        cursor: pointer;
        position: fixed;
        top: 5px;
        right: 10px;
        z-index: 30;
    }

    #header .hbg span {
        width: 30px;
        height: 3px;
        background-color: #313131;
        display: inline-block;
        position: absolute;
        left: 10px;
        transition: all 0.4s;
    }

    #header .hbg span:nth-of-type(1) {
        top: 16px;
    }

    #header .hbg span:nth-of-type(2) {
        top: 25px;
    }

    #header .hbg span:nth-of-type(3) {
        top: 34px;
    }

    /*ハンバーガーメニュー　ボタン押したとき*/
    @media screen and (max-width: 767px) {
        #header .navi {
            width: 80%;
            height: 100vh;
            background-color: #fff;
            opacity: 90%;
            position: fixed;
            top: 0;
            right: -80%;
            z-index: 20;
            transition: all 0.6s;
        }

        #header .navi .menu {
            width: 100%;
            height: 100vh;
            flex-direction: column;
            padding: 60px 0;
            overflow: auto;
        }

        #header .navi .menu li {
            padding: 10px 0;
            margin-left: 0;
        }

        #header .navi .menu li a {
            /* リンクをブロック要素にする（線がリンク全体に引かれるように） */
            display: block;
            /* 線とテキストの間に隙間を空ける */
            padding-bottom: 5px;
            /* 線の設定: 1pxのソリッドな線、色は任意（例: #ccc） */
            border-bottom: 1px solid #ccc;
            /* 線と次のメニュー項目の間に隙間を空ける */
            margin-bottom: 15px;
        }
    }

    @media screen and (max-width: 767px) {
        #header .navi.active {
            right: 0;
        }
    }

    @media screen and (max-width: 767px) {
        #header .hbg.active span:nth-of-type(1) {
            top: 24px;
            transform: rotate(-45deg);
        }

        #header .hbg.active span:nth-of-type(2) {
            opacity: 0;
        }

        #header .hbg.active span:nth-of-type(3) {
            top: 24px;
            transform: rotate(45deg);
        }
    }

}


/*ヘッダー　ここまで*/


/*キャッチコピーと文章　ここから*/
.main-content {
    margin: 70px 30px 100px 30px;
}

.main-content h2 {
    font-size: larger;
    padding: 70px 0 30px 0;
    text-align: center;
}

.main-content p {
    width: 600px;
    margin: 0 auto;
    font-size: medium;
    line-height: 2.5;
}

.main-content h2 .sp {
    display: none;
}


@media screen and (max-width: 767px) {

    /* スマホ版のコンテンツ配置調整 */
    .main-content {
        margin: 20px 0px 40px 0px;
    }

    .main-content h2 {
        font-size: medium
    }

    .main-content p {
        width: 340px;
        font-size: smaller;
        line-height: 2;
    }

    .main-content h2 .sp {
        display: block;
    }

}

/*キャッチコピーと文章　ここまで*/



/*カラーパレット　ここから*/

.colors {
    width: 870px;
    margin: 0 auto;
    display: flex;
    /* ★必須：幅が足りなくなったら折り返す */
    flex-wrap: wrap;
    /* タイル全体を中央に寄せたい場合 */
    justify-content: center;
    /* 上下の隙間を確保 */
    margin-top: 30px;
    margin-bottom: 100px;
}

.color-palette {
    /* PCでは5分割。マージンを含めた幅を設定 */
    /* 5分割 (20%) から左右のマージン20pxを引く計算 */
    width: calc(20% - 20px);
    /* 上下左右にマージンを設定し、タイル間の隙間を作る */
    margin: 10px;
    text-align: center;
}

.color-tile {
    /* タイルの基本設定 */
    display: block;
    /* リンク全体をタイルにする */
    width: 150px;
    height: 150px;
    border-radius: 5px;
    text-decoration: none;
    /* リンクの下線を消す */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);

    /* **最も重要な部分: 背景色の設定** */
    /* HTMLのstyle属性で設定したカスタムプロパティを使用 */
    background-color: var(--tile-color);
}

/* タイル内のテキストのスタイル */
.color-name {
    font-weight: bold;
    margin: 10px 0 2px 0;
}

.furigana {
    font-size: 0.8em;
    color: #666;
}


@media screen and (max-width: 767px) {
    .colors {
        width: 360px;
        margin-top: 0px;
    }

    .color-palette {
        /* スマホでは2分割。マージンを含めた幅を設定 */
        /* 2分割 (50%) から左右のマージン20pxを引く計算 */
        width: calc(50% - 20px);
        margin: 5px;
    }
}

/*カラーパレット　ここまで*/




/*フッター　ここから*/

#footer {
    width: 100%;
    height: 80px;
    background-color: #f1edeb;
    /* またはお好みの薄いベージュ */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    box-shadow: 0 -2px 0 0 #c0b2b2;
    position: static;
}

#footer .logo {
    width: 100%;
    max-width: 200px;
}

#footer .logo a {
    display: block;
}

#footer .icon {
    display: flex;
    align-items: center;
}

#footer .icon li {
    margin-left: 40px;
}


@media screen and (max-width: 767px) {
    #footer {
        height: 60px;
        /* スマホ版ヘッダーの高さに合わせる */
        padding: 0 20px;
        /* position: static; を追加して念のため固定を解除する */
        position: static;
    }

    #footer .logo {
        width: 100%;
        max-width: 140px;
    }

    #footer .icon li {
        margin-left: 20px;
    }

    #footer .icon li img {
        /* ★追加: アイコン画像の幅を70%に設定 */
        width: 70%;
        /* 高さをautoに設定し、縦横比を維持する */
        height: auto;
    }
}

/*フッター　ここまで*/






/* --- 下層ページ メインコンテンツ設定 (PC版) --- */

/* ヘッダーの高さ分、コンテンツを下にずらす */
.detail-main-wrapper {
    padding-top: 80px;
    padding-bottom: 100px;
}

/* メインコンテンツエリアの幅と中央寄せ */
.detail-content {
    width: 900px;
    margin: 0 auto;
    padding: 60px 0;
}

/* ★ 左右分割レイアウトを実現する親要素 */
.color-header-info {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 80px;
}

/* 【左側】260pxの正方形タイル */
.detail-color-tile-large {
    width: 260px;
    height: 260px;
    border-radius: 5px;
    /* 韓紅花の色が映えるように影を濃い目に */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 【右側】文字情報エリア */
.color-details-group {
    /* 900px (コンテンツ幅) - 260px (タイル) - 40px (隙間) = 600px */
    width: 600px;
    padding-top: 0;
}

/* 和の慣用色名（タブ状のテキスト） */
.japanese-color-name {
    display: inline-block;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #524d4a;
    border: 1px solid #524d4a;
    padding: 5px 15px;
    border-radius: 20px;
    margin: 0 0 30px 0;
}


/* 大きな色名とふりがな */
.color-name-large {
    font-family: 'Noto Serif JP', serif;
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.furigana-large {
    display: block;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #524d4a;
    margin-top: 5px;
}

/* --- 色コードリストの整形 (コンパクトな1行表示) --- */

/* 全体のコンテナ */
.color-value-list-code {
    padding-left: 0;
    margin-top: 30px;
    font-family: 'Roboto', sans-serif;
    /* DL/DT/DDの組み合わせをFlexで1行に配置する */
    display: block;
}

/* 各コード項目をFlexで横並びにする */
.color-code-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    /* 各項目の縦の隙間 */
}

/* コードラベル（Web Color, RGB, CMYK, HSL） */
.code-label {
    display: inline-block;
    font-size: 14px;
    color: #fff;
    font-weight: 500;
    padding: 4px 15px;
    /* 上下左右のパディングを調整 */
    border-radius: 5px;
    width: 80px;
    /* ラベル幅を固定 */
    text-align: center;
    margin-right: 15px;
    /* コード値との隙間 */
    flex-shrink: 0;
    /* 幅が縮まないように固定 */
}

/* 各ラベルの背景色 (韓紅花と濃いベージュ系) */
.code-label.web {
    background-color: #AA8C74;
}

/* 韓紅花 */
.code-label.rgb {
    background-color: #AA8C74;
}

.code-label.cmyk {
    background-color: #AA8C74;
}

.code-label.hsl {
    background-color: #AA8C74;
}

/* コードの値 */
.code-value {
    font-size: 15px;
    color: #524d4a;
    font-weight: 400;
    /* RGB/CMYK/HSLの各要素を横並びにし、均等なスペースを開ける */
    display: flex;
    gap: 10px;
    /* 各要素間の最小隙間 */
    flex-wrap: wrap;
    /* 画面が狭くなったら折り返す */
}

/* --- 解説エリア --- */

/* タイトル */
.explanation-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-top: 60px;
    /* タイル部分との隙間 */
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #524d4a;
}

.explanation-note {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.explanation-subtitle {
    font-family: 'Noto Serif JP', serif;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 40px 0 15px 0;
}

.color-explanation p {
    line-height: 2.0;
    font-size: 15px;
    margin-bottom: 30px;
}

/* TOPへ戻るボタン */
.back-to-top-area {
    text-align: center;
    margin-top: 80px;
}

.back-to-top-btn {
    display: inline-block;
    padding: 15px 50px;
    background-color: #333;
    color: #fff;
    border-radius: 30px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.back-to-top-btn:hover {
    background-color: #555;
    opacity: 1.0;
}


/* --- レスポンシブ対応 (767px以下) --- */
@media screen and (max-width: 767px) {

    .detail-main-wrapper {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .detail-content {
        width: 90%;
        padding: 50px 0 0 0;
    }

    /* タイルとコード情報エリアを縦積み */
    .color-header-info {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        /* ★修正: 抜けていた値を追加 */
        margin-bottom: 50px;
    }

    /* タイルのサイズをスマホ用に調整 */
    .detail-color-tile-large {
        width: 200px;
        height: 200px;
    }

    /* 右側エリアは幅100% */
    .color-details-group {
        width: 100%;
        padding: 0 5%;
        box-sizing: border-box;
    }

    /* 大きな色名とふりがな */
    .color-name-large {
        font-size: 36px;
    }

    .furigana-large {
        font-size: 14px;
    }

    /* --- スマホ用コードリストの再調整 --- */
    .color-value-list-code {
        margin-top: 20px;
    }

    .code-label {
        width: 70px;
        padding: 3px 8px;
        margin-right: 10px;
    }

    .code-value {
        /* スマホでは隙間を詰める */
        gap: 8px;
        font-size: 14px;
    }

    /* 解説エリア */
    .explanation-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .explanation-note {
        margin-bottom: 30px;
    }

    .explanation-subtitle {
        font-size: 18px;
    }

    .back-to-top-area {
        margin-top: 60px;
    }
}






/* --- contact.html用 / style.css に追記 --- */

/* メインラッパー（下層ページ共通のスタイルを流用する場合は detail-main-wrapper でもOK） */
.contact-main-wrapper {
    padding-top: 100px;
    /* ヘッダーの高さ + 余白 */
    padding-bottom: 100px;
    font-family: 'Noto Sans JP', sans-serif;
    flex-grow: 1;
    /* body#shippo の背景がフッターまで伸びるように */
}

/* フォーム全体を囲むコンテナ */
.contact-container {
    width: 600px;
    /* フォームの最大幅 */
    margin: 0 auto;
    padding: 20px;
}

/* タイトル */
.contact-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 32px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 60px;
}

/* フォームの各項目 (DL) */
.form-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

/* ラベル (DT) */
.form-item .label {
    width: 150px;
    /* ラベルの幅を固定 */
    font-size: 16px;
    color: #524d4a;
    font-weight: 500;
    padding-top: 8px;
    /* 入力フィールドと高さを合わせる */
    flex-shrink: 0;
    /* 縮まないように固定 */
}

/* 必須マーク */
.required {
    font-size: 12px;
    font-weight: 700;
    color: #f04e6c;
    /* 赤系 */
    background-color: #fff0f5;
    /* 薄い背景 */
    padding: 3px 8px;
    border-radius: 3px;
    margin-left: 10px;
}

/* 入力エリア (DD) */
.form-item .input-area {
    width: calc(100% - 150px);
    flex-grow: 1;
}

/* テキスト/メール/電話番号入力欄 */
.input-area input[type="text"],
.input-area input[type="email"],
.input-area input[type="tel"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    background-color: #fff;
    /* ★追加: 背景を白色に */
}

/* メッセージエリア */
.form-item-message {
    align-items: flex-start;
    /* ラベルを上端に揃える */
}

.input-area textarea {
    width: 100%;
    height: 150px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    resize: vertical;
    /* 縦方向のみリサイズ可能 */
    font-size: 16px;
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #fff;
    /* ★追加: 背景を白色に */
}

/* 送信ボタンエリア */
.form-button-area {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 40px;
}

/* 送信ボタン */
.submit-button {
    width: 180px;
    padding: 15px 30px;
    background-color: #38b4da;
    /* 明るい青系 */
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #2a94b8;
}

/* 注意書き */
.form-note {
    font-size: 14px;
    color: #524d4a;
    line-height: 1.8;
    margin-top: 0;
}

/* --- レスポンシブ対応 (767px以下) --- */
@media screen and (max-width: 767px) {
    .contact-main-wrapper {
        padding-top: 80px;
        padding-bottom: 60px;
    }

    .contact-container {
        width: 90%;
        padding: 0 5%;
    }

    .contact-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    /* ラベルと入力欄を縦積み */
    .form-item {
        flex-direction: column;
        margin-bottom: 20px;
    }

    .form-item .label {
        width: 100%;
        margin-bottom: 5px;
        padding-top: 0;
    }

    .form-item .input-area {
        width: 100%;
    }

    .submit-button {
        width: 100%;
        max-width: 250px;
        padding: 12px 20px;
        font-size: 16px;
    }

    .form-button-area {
        margin-top: 40px;
    }

    .form-note {
        font-size: 13px;
        text-align: center;
    }
}





/*占いページ　準備中*/
/* --- under-construction.css / style.css に追記 --- */

/* メインコンテンツエリアを画面中央に配置するための設定 */
.under-construction-page {
    /* detail-main-wrapper の設定を流用し、Flexboxでコンテンツを中央寄せする */
    display: flex;
    justify-content: center;
    /* 水平中央 */
    align-items: center;
    /* 垂直中央 */
    /* ページの上下端まで高さを広げ、フッターとヘッダーの間で中央寄せできるようにする */
    min-height: calc(100vh - 80px - 80px);
    /* 100vh - ヘッダー高 - フッター高 */
    text-align: center;
    padding-top: 80px;
    /* ヘッダーの固定を避けるための必須パディング */
    padding-bottom: 80px;
    /* フッターとの間隔 */
}

/* メッセージを囲むコンテナ */
.message-container {
    padding: 50px 30px;
    border: 1px solid #c0b2b2;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* メインメッセージ */
.message-text {
    font-family: 'Noto Serif JP', serif;
    font-size: 18px;
    font-weight: 400;
    color: #524d4a;
    /* ベースカラーに合わせた濃い色 */
    margin-bottom: 15px;
}

/* サブメッセージ */
.message-sub-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 12px;
    color: #777;
    margin-bottom: 40px;
}

/* TOPへ戻るボタン (既存のスタイルを流用) */
.back-to-top-area {
    margin-top: 40px;
}

/* 既存の back-to-top-btn スタイルが適用されます */
/*
.back-to-top-btn {
    display: inline-block;
    padding: 15px 50px;
    background-color: #333;
    color: #fff;
    border-radius: 30px;
    font-size: 16px;
}
*/

/* --- レスポンシブ対応 (767px以下) --- */
@media screen and (max-width: 767px) {
    .under-construction-page {
        /* スマホ版ヘッダー・フッターの高さに合わせて再計算 */
        min-height: calc(100vh - 60px - 60px);
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .message-container {
        width: 80%;
        padding: 40px 20px;
    }

    .message-text {
        font-size: 16px;
    }

    .message-sub-text {
        font-size: 12px;
    }
}