/* Reset & Basic Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: #665;
    /* 少し柔らかいブラウン系 */
    background-color: #fffaf4;
    /* クリーム色 */
    font-size: 16px;
}

a {
    color: #ff80ab;
    /* アクセントのピンク */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #f06292;
    /* 少し濃いピンク */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-style: none;
}

ul,
ol {
    list-style: none;
    padding-left: 0;
    /* デフォルトのパディング削除 */
}

h1,
h2,
h3,
h4 {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: 700;
    color: #795548;
    /* ブラウン系 */
    margin-bottom: 0.8em;
    line-height: 1.4;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.15rem;
    color: #a1887f;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 800px;
    /* コンテンツ幅を少し狭く */
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ヘッダー --- */
.site-header {
    background-color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#headernav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 40px;
}

#headernav nav ul {
    display: flex;
}

#headernav nav li {
    margin-left: 25px;
}

#headernav nav a {
    color: #555;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    font-size: 0.95rem;
}

#headernav nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff80ab;
    /* ピンク */
    transition: width 0.3s ease;
}

#headernav nav a:hover::after,
#headernav nav a.active::after {
    width: 100%;
}

/* ハンバーガーメニューアイコン */
#menu-icon {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

#menu-icon.active .menu-icon-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#menu-icon.active .menu-icon-bar:nth-child(2) {
    opacity: 0;
}

#menu-icon.active .menu-icon-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- ページヘッダー --- */
.page-header {
    background: linear-gradient(135deg, #fffacd, #ffe4b5);
    /* イエローからピーチへ */
    padding: 60px 0;
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 3px dashed #ffd700;
    /* ゴールドの点線 */
}

.page-header h1 {
    color: #8b4513;
    /* サドルブラウン */
    font-size: 2.6rem;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
}

.page-header h1 .icon-yellow {
    color: #ffd700;
    /* ゴールド */
    margin-right: 15px;
    font-size: 1em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.page-header p {
    font-size: 1.15rem;
    color: #a0522d;
    /* シエンナ */
    margin-bottom: 0;
    font-weight: 500;
}

/* --- メインコンテンツ --- */
.main-content {
    padding: 20px 0;
}

section {
    padding: 50px 0;
    border-bottom: 1px dashed #eee;
    /* セクション区切り線 */
}

section:last-of-type {
    border-bottom: none;
    /* 最後のセクションの下線は削除 */
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #a1887f;
    /* ブラウン系 */
    position: relative;
    padding-bottom: 25px;
    /* アイコン分のスペース確保 */
}

/* 本のアイコンを使った下線 */
.section-title::after {
    /* fa-book */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: -10px;
    /* ▼▼▼ 修正: アイコンを下に移動 ▼▼▼ */
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5em;
    color: #ffcce0;
    /* ピンク */
}

/* --- 導入文セクション --- */
.intro-section {
    text-align: center;
}

.intro-section .catchphrase {
    font-size: 1.3em;
    font-weight: 700;
    color: #795548;
    margin-bottom: 1.5em;
}

.intro-section p {
    font-size: 1.05em;
}

/* --- 実現する未来セクション --- */
.future-section {
    background-color: #fff0f5;
    /* 薄いピンク背景 */
    padding: 40px;
    border-radius: 15px;
    margin-top: 30px;
}

.future-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.future-item {
    text-align: center;
}

.future-item .icon {
    font-size: 3em;
    color: #ff80ab;
    /* ピンク */
    margin-bottom: 15px;
}

.future-item h4 {
    font-size: 1.2em;
    color: #f06292;
    /* 濃いピンク */
    margin-bottom: 10px;
}

.future-item p {
    font-size: 0.95em;
}

.future-item strong {
    color: #e91e63;
    /* さらに濃いピンク */
    font-weight: 700;
}

/* --- 募集内容セクション --- */
.details-section .detail-item {
    margin-bottom: 30px;
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.details-section h4 {
    font-size: 1.2em;
    color: #a1887f;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.details-section h4 i {
    margin-right: 10px;
    color: #ffcce0;
    /* ピンク */
}

.details-section p {
    font-size: 1em;
    padding-left: 30px;
    /* アイコン分のインデント */
}

.details-section p small {
    display: block;
    margin-top: 8px;
    font-size: 0.9em;
    color: #aaa;
}

.important-notes {
    background-color: #fff9e6;
    border: 1px solid #ffe58f;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.important-notes h4 {
    color: #ff8f00;
    /* オレンジ系 */
    font-size: 1.1em;
    margin-bottom: 10px;
}

.important-notes ul {
    padding-left: 20px;
    list-style: none;
}

.important-notes ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
    font-size: 0.95em;
}

.important-notes ul li::before {
    content: '\f071';
    /* fa-exclamation-triangle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #ff8f00;
}

.important-notes strong {
    font-weight: 700;
}

/* --- 応募ステップセクション --- */
.steps-section {
    background-color: #f5f5dc;
    /* ベージュ */
    padding: 40px;
    border-radius: 15px;
}

.steps-list {
    counter-reset: step-counter;
    margin-top: 20px;
    position: relative;
    padding-left: 40px;
}

.steps-list::before {
    /* 縦線 */
    content: '';
    position: absolute;
    left: 15px;
    top: 15px;
    bottom: 15px;
    width: 4px;
    background: linear-gradient(#fffacd, #ffe4b5);
    /* イエローからピーチ */
    border-radius: 2px;
}

.steps-list li {
    margin-bottom: 30px;
    position: relative;
    background-color: #fff;
    padding: 20px 20px 20px 60px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.steps-list li::before {
    /* 番号 */
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #ffd700;
    /* ゴールド */
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2em;
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.steps-list li .step-icon {
    /* アイコン */
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: #ffd700;
}

.steps-list li h4 {
    font-size: 1.15rem;
    color: #8b4513;
    /* サドルブラウン */
    margin-bottom: 8px;
}

.steps-list li p {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.steps-list li p strong {
    font-weight: 700;
}

.steps-list li p small {
    font-size: 0.9em;
    color: #aaa;
}

/* --- 選考基準セクション --- */
.criteria-section .section-intro {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.05em;
}

.criteria-list {
    list-style: none;
    padding-left: 0;
}

.criteria-list li {
    background-color: #fff;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    padding-left: 45px;
    font-size: 1em;
}

.criteria-list li i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff80ab;
    /* ピンク */
    font-size: 1.3em;
}

.criteria-list li strong {
    font-weight: 700;
    color: #795548;
}

/* --- 対象ジャンルQ&Aセクション --- */
.qanda-section details {
    margin-bottom: 15px;
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.qanda-section summary {
    padding: 15px 20px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    color: #795548;
    list-style: none;
    /* マーカー削除 */
}

.qanda-section summary::-webkit-details-marker {
    display: none;
}

/* Chrome/Safariマーカー削除 */
.qanda-section summary::after {
    /* 矢印アイコン */
    content: '\f078';
    /* fa-chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: #ccc;
}

.qanda-section details[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.qanda-section .answer {
    padding: 0 20px 20px 40px;
    /* 左に少しインデント */
    font-size: 0.95em;
}

.qanda-section .answer p {
    margin-bottom: 10px;
}

.qanda-section .answer ul {
    list-style: disc;
    padding-left: 20px;
}

.qanda-section .answer ul li {
    margin-bottom: 5px;
}

.qanda-section .answer strong {
    font-weight: 700;
}

/* --- 締切セクション --- */
.deadline-section {
    text-align: center;
}

.deadline-text {
    font-size: 1.5em;
    font-weight: 700;
    color: #ff80ab;
    /* ピンク */
    margin-bottom: 0.5em;
}

/* --- CTAセクション --- */
.cta-section {
    text-align: center;
    background-color: #fff0f5;
    /* 薄いピンク */
    padding: 40px;
    border-radius: 15px;
}

.cta-section p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.cta-button-container {
    margin-bottom: 20px;
}

.final-message {
    font-weight: 500;
    color: #795548;
}

/* --- 共通CTAボタン --- */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: none;
    line-height: 1.4;
    flex-direction: column;
    /* ボタン内要素を縦に */
}

.cta-button i {
    margin-top: 8px;
    /* アイコンとテキストの間隔 */
    font-size: 1.2em;
}

.cta-button small {
    font-size: 0.8em;
    font-weight: 400;
    margin-top: 5px;
    display: block;
    max-width: 90%;
    /* 長い注釈がはみ出ないように */
    margin-left: auto;
    margin-right: auto;
}

.cta-button.primary {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    /* イエロー/オレンジ系グラデ */
    color: #795548;
    /* ブラウン */
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.cta-button.primary:hover {
    background: linear-gradient(135deg, #ffb347, #ff8c00);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.5);
    color: #fff;
    text-decoration: none;
}

.cta-button.secondary {
    background-color: #fff;
    color: #ff80ab;
    border: 2px solid #ffcce0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.cta-button.secondary:hover {
    background-color: #fff0f5;
    border-color: #ff80ab;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    color: #f06292;
    text-decoration: none;
}


/* --- フッターナビゲーションエリア --- */
#footer_navi {
    background-color: #fff8f4;
    /* 薄いクリーム色 */
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.daisosha_service h3 {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: #a1887f;
    /* ブラウン系 */
}

.service-button-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.service-button-list li {
    flex-basis: calc(33.333% - 15px);
    min-width: 220px;
}

.cta-button-service {
    display: block;
    padding: 12px 20px;
    background-color: #fff;
    color: #776;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid #eee;
}

.cta-button-service:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
    color: #ff80ab;
    /* ピンク */
    border-color: #ffcce0;
    /* 薄いピンク */
}

.cta-button-service .button-icon {
    margin-right: 8px;
}

.cta-button-service .arrow {
    margin-left: 8px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.cta-button-service:hover .arrow {
    transform: translateX(4px);
}

/* --- フッター --- */
#footer_wrapper {
    background-color: #a1887f;
    /* ブラウン系 */
    color: #eee;
    padding: 30px 0;
}

#footer ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

#footer li {
    margin: 5px 15px;
}

#footer a {
    color: #fff;
    font-size: 0.9rem;
}

#footer a:hover {
    color: #ffcce0;
}

.copyright {
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    margin-top: 15px;
    color: #ddd;
}

.copyright a {
    color: #eee;
    font-weight: bold;
}

.copyright a:hover {
    color: #ffcce0;
}

#footer img[alt="正当なCSSです!"] {
    opacity: 0.7;
    margin-top: 10px;
}

/* --- ページトップへ戻るボタン --- */
.page-top {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #ffd700;
    /* ゴールド */
    color: #795548;
    /* ブラウン */
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-top:hover {
    background-color: #ffc107;
    /* 少し濃いゴールド */
    transform: scale(1.1);
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    #headernav {
        position: relative;
    }

    #menu-icon {
        display: block;
    }

    #headernav nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        z-index: 1000;
    }

    #headernav nav.active {
        display: block;
    }

    #headernav nav ul {
        flex-direction: column;
        align-items: center;
    }

    #headernav nav li {
        margin: 10px 0;
        margin-left: 0;
    }

    .future-grid {
        grid-template-columns: 1fr;
    }

    .steps-list {
        padding-left: 25px;
    }

    .steps-list::before {
        left: 10px;
    }

    .steps-list li {
        padding: 15px 15px 15px 45px;
    }

    .steps-list li::before {
        left: -18px;
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 1em;
    }

    .steps-list li .step-icon {
        left: 25px;
        font-size: 1.6rem;
    }

    .service-button-list li {
        flex-basis: calc(50% - 10px);
    }

    #footer ul {
        flex-direction: column;
    }

    #footer li {
        margin: 8px 0;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .page-header h1 {
        font-size: 1.9rem;
    }

    .page-header p {
        font-size: 1.05rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 12px 30px;
    }

    .cta-button small {
        font-size: 0.75em;
    }

    .steps-list li h4 {
        font-size: 1.05rem;
    }

    .steps-list li p {
        font-size: 0.9rem;
    }

    .service-button-list li {
        flex-basis: 100%;
    }
}