@charset "utf-8";

/* ▼▼▼▼▼ Myカラークリエイター専用スタイル ▼▼▼▼▼ */
body {
    padding-bottom: 100px;
}
@media screen and (min-width:1000px) {
	body {
		padding-bottom: 40px;
	}
}
#color-creator-container {
    max-width: 960px;
    margin: -30px auto 100px auto;
    padding: 3rem 4rem;
    background-color: #fff;
    border: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    border-radius: 12px;
}

.tool-header {
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}
.tool-header h2 {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}
.tool-header p {
    font-size: 1.1rem;
    color: #555;
}

.palette-controls {
    text-align: center;
    margin-bottom: 2rem;
}

.tool-button {
    background-color: var(--primary-color);
    color: var(--primary-inverse-color);
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}
.tool-button:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}
.tool-button i {
    margin-right: 0.5em;
}

.palette-display {
    display: flex;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 4rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.color-swatch {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    cursor: pointer;
    transition: flex 0.3s ease;
}
.color-swatch:hover {
    flex: 1.5; /* ホバーで少し広がる */
}

.color-swatch .hex-code {
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    padding: 0.3em 0.8em;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-weight: bold;
    font-family: 'Consolas', 'Courier New', monospace;
    transition: opacity 0.3s;
}

.color-swatch::after {
    content: "\f0c5"; /* copy icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #fff;
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 1.5rem;
}
.color-swatch:hover::after {
    opacity: 0.7;
}

.tool-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #eee;
}
.tool-section h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.tool-section p {
    text-align: center;
    color: #555;
    margin-bottom: 2.5rem;
}

.contrast-checker {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 2.5rem; /* 内側の余白を少し増やす */
    display: flex;
    align-items: center;
    justify-content: center; /* 中央揃えに変更 */
    gap: 3rem; /* 要素間の余白を増やす */
}

.color-inputs {
    display: flex;
    gap: 3rem; /* 余白を増やす */
}

.color-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.color-input-group label {
    font-weight: bold;
    margin-bottom: 0.8rem; /* 下の余白を増やす */
    font-size: 1.1rem;      /* 文字サイズを大きく */
}
.color-input-group input[type="color"] {
    width: 120px;  /* サイズを大きく */
    height: 120px; /* サイズを大きく */
    border: 1px solid #ddd;
    border-radius: 12px; /* 角丸を調整 */
    cursor: pointer;
}

.contrast-results {
    text-align: center;
}
.contrast-results .ratio {
    margin-bottom: 1rem;
}
.contrast-results span {
    display: block;
    font-size: 0.9rem;
    color: #555;
}
.contrast-results strong {
    font-size: 2.8rem; /* サイズを大きく */
    line-height: 1.2;
}
.contrast-results .pass {
    color: #2b9d82;
}
.contrast-results .fail {
    color: #e74c3c;
}

@media screen and (max-width: 700px) {
    #color-creator-container {
        padding: 2rem 1.5rem;
    }
    .palette-display {
        flex-direction: column;
        height: 500px;
    }
    .color-swatch:hover {
        flex: 1;
    }
    .contrast-checker {
        flex-direction: column;
    }
}
/* ▲▲▲▲▲ Myカラークリエイター専用スタイル ▲▲▲▲▲ */

/* ▼▼▼▼▼ 姉妹サイト紹介セクションのスタイル ▼▼▼▼▼ */
.sister-sites-section {
    background-color: #f8f9fa;
    padding: 4rem 2rem;
    margin-top: 5rem;
    border-top: 1px solid #eee;
}

.sister-sites-section h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 3rem;
}

.sister-sites-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 960px;
    margin: 0 auto;
}

.site-card {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-decoration: none;
    color: var(--base-inverse-color);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.site-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
    opacity: 1;
}

.site-card .card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
}

.site-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.site-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #555;
}

@media screen and (min-width: 768px) {
    .sister-sites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ▲▲▲▲▲ 姉妹サイト紹介セクションのスタイル ▲▲▲▲▲ */

/* ▼▼▼▼▼ Myカラークリエイター セクション共通スタイル ▼▼▼▼▼ */
.color-creator-section {
    background-color: #f8f9fa; /* セクション全体の背景色を少し変える */
}

#color-creator-container,
#color-palettes-container {
    max-width: 1100px;
    margin: -30px auto 100px auto;
    padding: 3rem 4rem;
    background-color: #fff;
    border: 1px solid #e9ecef;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    border-radius: 12px;
}

.cc-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}
.cc-header h2 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    color: var(--base-inverse-color);
}
.cc-header p {
    font-size: 1.1rem;
    color: #555;
    margin: 0;
}

.cc-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}
.cc-nav-link {
    text-decoration: none;
    font-weight: bold;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: all 0.3s;
}
.cc-nav-link.active {
    background-color: var(--primary-color);
    color: var(--primary-inverse-color);
    border-color: var(--primary-color);
}
.cc-nav-link:not(.active) {
    color: #555;
    border-color: #ddd;
}
.cc-nav-link:not(.active):hover {
    background-color: #f1f3f5;
    border-color: #ccc;
    opacity: 1;
}

@media screen and (max-width: 700px) {
    #color-creator-container,
    #color-palettes-container {
        padding: 2rem 1.5rem;
    }
    .cc-header h2 {
        font-size: 2rem;
    }
}
/* ▲▲▲▲▲ Myカラークリエイター セクション共通スタイル ▲▲▲▲▲ */

/* ▼▼▼▼▼ カラーパレットギャラリー専用スタイル ▼▼▼▼▼ */
.palette-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.palette-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.palette-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.palette-card-colors {
    display: flex;
    height: 120px;
}
.palette-card-colors div {
    flex: 1;
    transition: all 0.2s ease;
}

.palette-card-colors .highlight {
    box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px #3498db;
}

.palette-card-info {
    padding: 1rem 1.2rem;
}
.palette-card-info h3 {
    margin: 0 0 0.8rem 0;
    font-size: 1.2rem;
}

.palette-card-hex-codes {
    display: flex;
    justify-content: space-between; /* 要素を均等に配置 */
}

.hex-tag {
    background-color: #f1f3f5;
    color: #555;
    padding: 0.2em 0.5em; /* 横の余白を少し縮小 */
    border-radius: 5px;
    font-size: 0.8rem; /* フォントサイズを少し縮小 */
    font-family: 'Consolas', 'Courier New', monospace;
    cursor: pointer;
    border: 1px solid #eee;
    white-space: nowrap; /* 折り返しを禁止 */
}
.hex-tag:hover {
    background-color: #e9ecef;
}
/* ▲▲▲▲▲ カラーパレットギャラリー専用スタイル ▲▲▲▲▲ */

/* ▼▼▼▼▼ カラー辞典ページ専用スタイル ▼▼▼▼▼ */
.cc-sub-nav {
    background-color: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    border: 1px solid #eee;
    text-align: center;
}

.cc-sub-nav a {
    text-decoration: none;
    font-weight: bold;
    color: #555;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-block;
    font-size: 0.9rem;
}

.cc-sub-nav a:hover {
    background-color: #e9ecef;
    opacity: 1;
}

.color-dictionary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.color-dict-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}
.color-dict-card:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.color-dict-card .color-display {
    height: 120px;
    position: relative;
    cursor: pointer;
}
.color-dict-card .color-display::after {
    content: "\f0c5"; /* copy icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 2rem;
}
.color-dict-card .color-display:hover::after {
    opacity: 1;
}

.color-dict-card .color-info {
    padding: 1rem;
    background-color: #fff;
}
.color-dict-card .color-info .name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--base-inverse-color);
}
.color-dict-card .color-info .code {
    font-size: 0.9rem;
    font-family: 'Consolas', 'Courier New', monospace;
    color: #555;
}

/* ▲▲▲▲▲ カラー辞典ページ専用スタイル ▲▲▲▲▲ */

/* ▼▼▼▼▼ カラー辞典ページ プレビュー機能スタイル ▼▼▼▼▼ */
.form-preview-area {
    /* 位置を画面下部に固定 */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    
    /* デザイン調整 */
    background-color: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(5px); /* すりガラス効果 */
    border: none;
    border-top: 1px solid #eee;
    padding: 1rem;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.08);
    
    /* 表示・非表示のアニメーション */
    transform: translateY(100%);
    transition: transform 0.4s ease;
    display: flex; /* 横並びにする */
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

/* 表示させるためのクラス */
.form-preview-area.is-visible {
    transform: translateY(0);
}

.form-preview-area h4 {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

.sample-button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.6rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* カード内の解説文スタイル */
.color-dict-card .color-info .description {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.8rem;
    line-height: 1.7;
    border-top: 1px dashed #eee;
    padding-top: 0.8rem;
}
/* ▲▲▲▲▲ カラー辞典ページ プレビュー機能スタイル ▲▲▲▲▲ */

/* ▼▼▼▼▼ グラデーションページ専用スタイル ▼▼▼▼▼ */
.gradient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.gradient-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.gradient-preview {
    height: 180px;
}

.gradient-info {
    padding: 1.5rem;
    background-color: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.gradient-info h4 {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
}

.gradient-info .css-code {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.6;
    word-break: break-all;
    font-family: 'Consolas', 'Courier New', monospace;
    color: #555;
    flex-grow: 1;
    border: 1px solid #eee;
}

.gradient-info .copy-btn {
    background-color: var(--primary-color);
    color: var(--primary-inverse-color);
    border: none;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
    text-align: center;
}
.gradient-info .copy-btn:hover {
    opacity: 0.8;
}
.gradient-info .copy-btn i {
    margin-right: 0.5em;
}

/* ▲▲▲▲▲ グラデーションページ専用スタイル ▲▲▲▲▲ */

/* ▼▼▼▼▼ Myカラークリエイター トップページ専用スタイル（完全版） ▼▼▼▼▼ */

/* --- メインビジュアル --- */
#cc-hero {
    background: #fff;
    padding: 80px 4%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    min-height: 500px;
}
.cc-hero-content {
    flex-basis: 50%;
    max-width: 550px;
}
.cc-catchphrase {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}
.cc-subtitle {
    font-size: 1.1rem;
    line-height: 2;
    color: #555;
    margin-bottom: 2.5rem;
}
.cc-hero-buttons {
    display: flex;
    gap: 1rem;
}
.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: all 0.3s;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--primary-inverse-color);
}
.btn-secondary {
    background-color: #fff;
    color: var(--base-inverse-color);
    border: 2px solid #ddd;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 1;
}
.cc-hero-image {
    flex-basis: 45%;
    max-width: 450px;
}
.cc-hero-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* --- 使い方ガイド --- */
#cc-how-to-use {
    padding: 100px 4%;
    background-color: #f8f9fa;
}
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 4rem;
}
.section-title span {
    display: block;
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-color);
    font-family: 'Oswald', sans-serif;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}
.step-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
}
.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--primary-inverse-color);
    font-weight: bold;
    padding: 0.3rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
}
.step-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.step-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
}

/* --- 既存ツールセクションの調整 --- */
.color-creator-tool-section {
    padding: 100px 4%;
}

/* --- スマートフォン向け調整 --- */
@media screen and (max-width: 900px) {
    #cc-hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    .cc-hero-buttons {
        justify-content: center;
    }
    .cc-hero-image {
        margin-top: 2rem;
    }
    .cc-catchphrase {
        font-size: 2rem;
    }
    .steps-grid {
        grid-template-columns: 1fr;
    }
}
/* ▲▲▲▲▲ Myカラークリエイター トップページ専用スタイル（完全版） ▲▲▲▲▲ */

/* ▼▼▼ コントラストチェッカー HEXコピーエリアのスタイル ▼▼▼ */
.hex-copy-area {
    margin-top: 1rem;
    background-color: #e9ecef;
    color: #495057;
    padding: 0.5em 1em;
    border-radius: 5px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid #dee2e6;
    transition: background-color 0.2s;
    user-select: none; /* テキスト選択を無効化 */
}
.hex-copy-area:hover {
    background-color: #ced4da;
}
/* ▲▲▲▲▲ コントラストチェッカー HEXコピーエリアのスタイル ▲▲▲▲▲ */

/* ▼▼▼▼▼ 配色生成ツール操作パネルのスタイル ▼▼▼▼▼ */
.palette-controls {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1.5rem;
    background-color: #f8f9fa;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid #eee;
    flex-wrap: wrap; /* スマホ表示用に折り返しを許可 */
}

.control-group {
    display: flex;
    flex-direction: column;
}

.control-group label {
    font-size: 0.8rem;
    font-weight: bold;
    color: #555;
    margin-bottom: 0.5rem;
    text-align: center;
}

.control-group input[type="color"] {
    width: 50px;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    padding: 2px;
}

.control-group select {
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    height: 50px;
}
/* ▲▲▲▲▲ 配色生成ツール操作パネルのスタイル ▲▲▲▲▲ */

/* ▼▼▼▼▼ 配色パターン解説セクションのスタイル ▼▼▼▼▼ */
.harmony-explanation {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #eee;
    margin-bottom: -1rem; /*下の操作パネルとの余白を調整*/
}

.explanation-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
}

.explanation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.explanation-card {
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
}

.explanation-card h4 {
    margin: 0 0 0.8rem 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.explanation-card h4 i {
    margin-right: 0.8rem;
    color: var(--primary-color);
}

.explanation-card p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

@media screen and (max-width: 900px) {
    .explanation-grid {
        grid-template-columns: 1fr;
    }
}
/* ▲▲▲▲▲ 配色パターン解説セクションのスタイル ▲▲▲▲▲ */

/* ▼▼▼ コントラストチェッカー解説文のスタイル ▼▼▼ */
.results-explanation {
    font-size: 0.85rem;
    line-height: 1.8;
    color: #555;
    background-color: #e9ecef;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: left;
}
.results-explanation strong {
    color: var(--primary-color);
}
/* ▲▲▲▲▲ コントラストチェッカー解説文のスタイル ▲▲▲▲▲ */

/* ▼▼▼ コントラストチェッカー解説文のスタイル ▼▼▼ */
.results-explanation {
    font-size: 0.9rem;
    line-height: 1.9;
    color: #555;
    background-color: #f8f9fa;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin: 2rem auto 2.5rem;
    text-align: center;
    max-width: 700px;
    border: 1px solid #eee;
}
.results-explanation strong {
    color: var(--primary-color);
}
/* ▲▲▲▲▲ コントラストチェッカー解説文のスタイル ▲▲▲▲▲ */

/* ▼▼▼▼▼ cc-navigation上の解説文スタイル ▼▼▼▼▼ */
.cc-intro-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    font-size: 0.95rem;
    line-height: 1.9;
    color: #555;
}
/* ▲▲▲▲▲ cc-navigation上の解説文スタイル ▲▲▲▲▲ */

/* ▼▼▼▼▼ サブナビゲーションのアクティブスタイル ▼▼▼▼▼ */
.cc-sub-nav a.active {
    background-color: #e9ecef;
    color: var(--primary-color);
    font-weight: 900;
}
/* ▲▲▲▲▲ サブナビゲーションのアクティブスタイル ▲▲▲▲▲ */

