@charset "UTF-8";

/* =========================================
   1. 基本設定と変数
   ========================================= */
:root {
    --base-color: #ffffff;
    --main-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 0px;
    
}

/* =========================================
   2. メインバナー（演出エリア）
   ========================================= */
.hero-banner {
    min-height: 475px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--main-color);
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), var(--main-color);
    background-blend-mode: overlay;
    color: white;
    text-align: center;
    transition: background-color 0.5s ease;
    /* padding: 40px 20px; */
    box-sizing: border-box;
}

.sub-catch {
    display: inline-block;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(255,255,255,0.6);
    padding-bottom: 5px;
    opacity: 0.9;
}

.banner-desc {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.cta-button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.cta-button:hover {
    transform: scale(1.05);
}

/* =========================================
   3. ツールセクション（調光・シミュレーター）
   ========================================= */
.controls-wrapper {
    background: #fdfdfd;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
    margin-bottom: 30px;
}

.guide-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: bold;
    animation: fadePulse 2s infinite;
}

@keyframes fadePulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

canvas {
   
    cursor: crosshair;
    max-width: 100%;
    height: auto;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.controls label {
    cursor: pointer;
    font-weight: bold;
}

.swatches {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    justify-content: center;
    min-height: 70px;
    flex-wrap: wrap;
}

.swatch {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    border: 2px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    text-align: center;
    font-weight: bold;
    line-height: 1.2;
}

.description-area {
    /* margin-top: 30px; */
    padding: 20px;
    background: #f0f7ff;
    border-radius: 8px;
    border-left: 6px solid var(--main-color);
    text-align: left;
}

.view-banner-btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.view-banner-btn:hover {
    background-color: var(--main-color);
}

/* =========================================
   4. 解説セクション（理論）
   ========================================= */
.explanation-section {
    padding: 40px 0px;
    box-sizing: border-box;
}

.explanation-section h2 {
    text-align: center;
    background-color: var(--main-color);
    color: white; /* 視認性のため白に変更 */
    padding: 20px;
    border-radius: 5px;
    font-size: 1.4rem;
    line-height: 1.5;
    margin-bottom: 30px;
}

.theory-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.theory-card {
    background: #fff;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

.ratio-list {
    list-style: none;
    padding: 0;
}

.ratio-list li {
    margin-bottom: 10px;
    padding-left: 15px;
    border-left: 4px solid #ccc;
}

.ratio-list li.main { border-color: var(--main-color); }
.ratio-list li.accent { border-color: var(--accent-color); }

/* =========================================
   5. モバイル対応
   ========================================= */


/* ベースの配色設定 */
:root {
    --bg-color: #f0f9ff;          /* 非常に淡い水色（背景） */
    --main-blue: #2c5282;         /* 誠実な印象の濃い水色（メイン文字） */
    --sub-blue: #3182ce;          /* アクセントの水色 */
    --border-color: #bee3f8;      /* 枠線の水色 */
    --white: #ffffff;
}

body {
    background-color: var(--bg-color);
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--main-blue);
    padding: 40px 0px;
    
}

/* 免責事項の外枠 */
.disclaimer {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 3rem;
    border: 1px solid var(--border-color);
}

/* ヘッダー部分 */
.disclaimer-header {
    text-align: center;
    /* margin-bottom: 3rem; ヘッタ―下の隙間*/
}

.badge {
    background-color: var(--sub-blue);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.05em;
}

h1 {
    font-size: 1.8rem;
    margin: 1rem 0;
    font-weight: 700;
}

.last-updated {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* 各セクションのボックス */
.section-box {
    margin-bottom: 2.5rem;
}

h2 {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--bg-color);
    padding-bottom: 8px;
    margin-bottom: 1rem;
    color: var(--sub-blue);
}

.icon {
    margin-right: 8px;
}

p {
    margin-bottom: 1rem;
}

/* AIポリシー部分の強調 */
.ai-policy {
    /* background-color: #ebf8ff; */
     padding: 0.5rem;
    border-radius: 12px;
}
.diagnosis-guide{
    background-color: #ebf8ff;
    padding: 0.5rem;
    border-radius: 12px;
    margin-bottom: 20px; /* 下側に20pxの隙間 */
    padding-left: 20px; /* ボックスの内側左に20pxの余白 */
}
ul {
    padding-left: 1.2rem;
}

li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* フッター的注記 */
.footer-notes {
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.disclaimer-footer {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* モバイル向け（スマホ）の調整 */
@media (max-width: 600px) {
    /* 全体の余白を調整 */
    .disclaimer {
        padding: 1.5rem 1rem; /* 左右の余白を少し削ってコンテンツ幅を確保 */
    }

    /* h2タイトルの調整 */
    h2 {
        font-size: 1.05rem;    /* 文字サイズを少し小さくして1行に収まりやすくする */
        line-height: 1.4;      /* 行間を詰めてまとまりを出す */
        align-items: flex-start; /* アイコンと文字が複数行になっても崩れないようにする */
        flex-wrap: nowrap;     /* アイコンと文字が無理に横並びになるのを防ぐ */
    }

    .icon {
        font-size: 1.2rem;     /* アイコンを少し小さく */
        margin-top: 2px;       /* 文字の高さに合わせる微調整 */
        flex-shrink: 0;        /* アイコンが潰れないように固定 */
        
    }

    /* 2カラム表示を完全に縦並びに */
    .policy-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* 見出し（h1）もスマホ用に調整 */
    h1 {
        font-size: 1.4rem;
    }

    /* AIセクション内のpaddingを調整 */
    .highlight-blue {
        padding: 1.2rem;
    }
}
/* 全体の固定 */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.95); /* 透過させて清潔感を出す */
    backdrop-filter: blur(5px); /* 背景をぼかして高級感を出す */
    border-bottom: 1px solid #bee3f8;
    z-index: 1000; /* 最前面に表示 */
    display: flex;
    align-items: center;
    padding: 0 40px;
    box-sizing: border-box;
}

.nav-logo {
    color: #2c5282;
    font-weight: bold;
    font-size: 1.1rem;
}

/* メニューの包み込み */
.menu-wrapper {
    position: relative;
}

/* ハンバーガーアイコン */
.menu-trigger {
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-trigger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #2c5282; /* 誠実な水色ネイビー */
    transition: all 0.3s;
}

/* 展開メニューの隠し状態 */
.nav-links {
    position: absolute;
    top: 40px;
    right: 0;
    background: white;
    list-style: none;
    padding: 20px;
    margin: 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #bee3f8;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
}

/* ホバー時にメニューを展開 */
.menu-wrapper:hover .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* メニュー項目 */
.nav-links li {
    margin-bottom: 15px;
}

.nav-links li:last-child {
    margin-bottom: 0;
}

.nav-links a {
    text-decoration: none;
    color: #2c5282;
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #3182ce; /* ホバーで少し明るい水色に */
}

/* メインコンテンツの余白調整 */
.contact-section {
    padding-top: 60px;
}

.contact-header {
    margin-bottom: 40px;
}

/* フォーム側 */
.form-container {
    flex: 1;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #bee3f8;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.field-group {
    margin-bottom: 25px;
    /* ここが重要：ラベルと入力を確実に揃える */
    display: flex; 
    flex-direction: column; /* 縦並びに固定 */
    width: 100%; /* 親要素の幅いっぱいに広げる */
}

.field-group label {
    font-size: 0.9rem;
    font-weight: bold;
    color: #2c5282;
    margin-bottom: 8px; /* ラベルと入力欄の間の余白 */
    /* vertical-align: top; は不要になりました */
}

.field-group input, 
.field-group textarea {
    /* ここが重要：box-sizingを徹底する */
    box-sizing: border-box; 
    width: 100%; /* paddingを含めて100%になるようにする */
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 1rem;
    transition: border-color 0.3s;
    /* vertical-align: top; は不要になりました */
}

.status-note {
    font-size: 0.8rem;
    color: #a0aec0;
    margin: 20px 0;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background-color: #3182ce;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: not-allowed;
    opacity: 0.6;
}

/* サイドバー（SNS）側 */
.contact-aside {
    width: 320px;
}

.contact-aside h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2c5282;
}

.aside-text {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: #718096;
}

.sns-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sns-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: #ffffff;
    border: 1px solid #bee3f8;
    border-radius: 10px;
    text-decoration: none;
    color: #2c5282;
    font-weight: 500;
    transition: all 0.3s;
}

.sns-item:hover {
    background: #ebf8ff;
    transform: translateX(5px);
}

.sns-arrow {
    color: #3182ce;
    font-weight: bold;
}


.privacy-link {
    color: #3182ce; /* アクセントの水色 */
    text-decoration: none;
    font-weight: 500;
    margin-top: 5px;
    display: inline-block;
}

.privacy-link:hover {
    text-decoration: underline;
}
/* ナビゲーション全体の固定 */


.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: #2c5282;
    font-weight: bold;
    font-size: 1.1rem;
}

/* メニューの包み込み */
.menu-wrapper {
    position: relative;
}

/* ruby要素自体の設定 */
.nav-links ruby {
    display: inline-flex;    /* flexに変更して制御しやすくする */
    flex-direction: column-reverse; /* 上下に並べ替え */
    ruby-align: start;       /* 標準のルビ位置を左に */
    text-align: left;
}

/* ルび（英語）部分の強制左寄せ */
.nav-links rt {
    display: block;          /* ブロック要素化して幅を制御 */
    text-align: left;        /* 文字を左寄せ */
    margin: 0;
    padding: 0;
    font-size: 0.65em;       /* 英語のサイズ */
    line-height: 1.2;        /* 英語と日本語の間の隙間調整 */
    letter-spacing: 0.05em;
}

/* トップに戻るボタンのスタイル */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background-color: #333; /* 背景色（サイトに合わせて調整してください） */
    color: #fff;
    border: none;
    /* border-radius: 50%; 正円 */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0; /* 最初は隠しておく */
    visibility: hidden;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ボタンが表示された時の状態 */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* ホバー時の演出（少し浮き上がる） */
.back-to-top:hover {
    background-color: #555;
    transform: translateY(-5px);
}

/* 矢印（CSSで描画） */
.arrow {
    display: block;
    width: 12px;
    height: 12px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    transform: translateY(3px) rotate(-45deg);
}


/* 1. 基本設定：PCでは改行を「なかったこと」にする */
.sp-only {
    display: none;
}

/* 2. スマホ設定：画面幅が狭い時（例：768px以下）だけ改行を復活させる */
@media screen and (max-width: 768px) {
    .sp-only {
        display: block;
    }
}
/* 文章全体を、単語の途中で変に切れないように調整する */
p, h1, h2, h3, li {
    overflow-wrap: anywhere;
    word-break: normal;
    line-break: strict;
    /* ↓これが一番強力です（日本語の改行を美しくします） */
    text-wrap: balance; 
}
/* リンク内の文字に対しても適用を強化する */
a {
    display: inline-block; /* インラインブロックにすることで単語の塊を維持しやすくする */
    text-wrap: balance;    /* リンク自体にもバランス指定 */
    word-break: keep-all;  /* 日本語の単語の途中で改行させない */
}

/* ボタン形式のリンク（btn-linkなど）には特に強力に適用 */
.btn-link, .text-link {
    white-space: nowrap;   /* ボタン内の文字は「絶対改行させない」 */
}

/* ここからレーダーチャート */


/* 3. 左側（テキスト情報）：論理的な文字配置 */
.left {
    flex: 1 1 350px;
    /* 最小幅350pxを確保しつつ伸長 */
}

.left h2 {
    color: #005bb7;
    /* 信頼の青 */
    border-left: 4px solid #005bb7;
    padding-left: 15px;
    margin-bottom: 20px;
    text-wrap: balance;
    /* 2026年最新仕様：日本語の美しい改行 */
}

/* 4. 右側（チャート）：視認性の確保 */
.right {
    flex: 1 1 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

/* 5. 診断フォーム：使い心地（UX）への配慮 */
.question {
    margin-bottom: 20px;
    padding: 15px;
    background: #f0f7ff;
    /* 非常に薄い青 */
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.question:hover {
    transform: translateX(5px);
    /* わずかな動きでユーザーを誘導 */
}

/* デフォルト（モバイル） */
#questionForm {
    display: block;
}

/* PC時のみ2カラム */
@media screen and (min-width: 1024px) {
    #questionForm {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}
/* 回答を隠す */
.type-detail {
  display: none;
}
.holland-detail,
.ennea-detail {
  display: none;
}
/* ===== 初期状態では結果詳細をすべて隠す ===== */
#type-details .holland-detail,
#type-details .ennea-detail {
  display: none;
}

/* --- 診断画面の最終調整 --- */

/* 1. 156問の設問を「スクロール窓」に閉じ込める */
#questionForm {
    max-height: 500px;    /* 窓の高さ。使いやすい長さに固定します */
    overflow-y: auto;     /* 縦方向にスクロールできるようにします */
    padding: 20px;
    background: #ffffff;
    border: 5px solid #bee3f8;
    border-radius: 12px;
    margin-bottom: 20px;
    /* 1024px以上の時のグリッド設定を上書きして1列にします */
    display: block !important; 
}

/* 2. PCの時だけ、チャート（グラフ）を小さくする */
@media screen and (min-width: 1024px) {
    #chart-wrapper {
        max-width: 400px; /* 横幅を最大400pxに制限 */
        margin: 0 auto;   /* 真ん中に寄せます */
    }
}

/* 3. 診断結果の詳細（最初は隠しておく） */
.holland-detail,
.ennea-detail {
    display: none;
}
/* 診断結果の詳細は、ボタンを押すまで隠しておく */
.holland-detail, .ennea-detail {
    display: none;
}

/* top-img */
/* 【共通設定】全ページのバナーで共通するデザイン */
.common-banner {
  height: 300px; 
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
  border-radius: 15px;
  background-size: cover;
  background-position: center;
}

/* 【個別設定】診断ページ専用の画像 */
.cover-DIAGNOSTIC {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(img/image\ \(7\).jpg);
}

/* 【個別設定】ホーム専用の画像 */
.cover-HOME {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(img/image-2.jpg);
}

/* 【個別設定】プロフィール専用の画像 */
.cover-ABOUT {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(img/image.jpg);
}

/* 【個別設定】作品展示専用の画像 */
.cover-WORKS {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(img/image\ \(3\).jpg);
}

/* 【個別設定】色彩の詳細専用の画像 */
.cover-THEORY {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(img/image\ \(5\).jpg);
}

/* 【個別設定】舞台裏専用の画像 */
.cover-PROCESS {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(img/image\ \(6\).jpg);
}

/* 【個別設定】お問い合わせ専用の画像 */
.cover-CONTACT {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(img/image\ \(4\).jpg);
}

/* 【個別設定】免責事項専用の画像 */
.cover-DISCLAIMER {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(img/image\ \(8\).jpg);
}

/* 文字の影 */
.header-content {
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}
/* ワーク画像 */
.work-banner-box img {
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 16px;
    width: 250px;
    height: 250px;
}

/* 拡大表示 */
/* サムネイル（元の画像）のスタイル */
.work-banner-box img {
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.work-banner-box img:hover {
    opacity: 0.8;
    transform: scale(1.02); /* 少し浮かせる演出 */
}

/* 拡大画面（ダイアログ）本体 */
#image-viewer {
    border: none;
    background: rgba(0, 0, 0, 0.85); /* 背景を暗く */
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    padding: 0;
    overflow: hidden;
}

/* 拡大時の画像配置 */
#image-viewer .viewer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    cursor: zoom-out; /* 閉じれることを示す */
}

#image-viewer img {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border: 4px solid white;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

#image-viewer p {
    color: white;
    margin-top: 15px;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

/* ブラウザ標準の背景を無効化 */
#image-viewer::backdrop {
    background: transparent;
}

.eni{
    padding-left: 20px; /* ボックスの内側左に20pxの余白 */
}