﻿/* --- 基本設定 --- */
.faq-container {
    /* フォント指定 */
    font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", "Meiryo", "メイリオ", "Osaka", "MS PGothic", arial, helvetica, sans-serif;
    line-height: 1.6;
    color: #000;
    
    /* 幅を少し広げました */
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 20px; /* 上下の余白も増やしました */
}

:root {
    --clinks-yellow: #ffe500; 
    --clinks-black: #1a1a1a;
    --clinks-gray: #f4f4f4;
}

/* --- 見出しデザイン --- */
.faq-section-header {
    text-align: center;
    margin-bottom: 80px; /* 余白拡大 */
}
.faq-section-title {
    font-family: inherit; 
    font-weight: 900;
    /* サイズをpx指定で大きく固定 */
    font-size: 60px; 
    margin: 0;
    letter-spacing: 0.02em;
    line-height: 1;
}
.faq-section-subtitle {
    /* サイズをpx指定で大きく固定 */
    font-size: 16px; 
    font-weight: bold;
    display: block;
    margin-top: 15px;
    letter-spacing: 0.1em;
}

/* --- カテゴリータイトル --- */
.faq-category-title {
    /* サイズをpx指定で大きく固定 */
    font-size: 24px;
    font-weight: bold;
    border-left: 10px solid var(--clinks-yellow);
    padding-left: 20px;
    margin: 60px 0 30px;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

/* --- 質問部分（Q） --- */
.faq-question {
    position: relative;
    /* パディングを調整して少しゆったりさせる */
    padding: 25px 60px 25px 80px;
    cursor: pointer;
    font-weight: bold;
    /* 質問文のフォントサイズを大きく */
    font-size: 18px; 
    background: #fff;
    transition: background 0.3s;
    display: flex;
    align-items: center;
}
.faq-question:hover {
    background-color: #fafafa;
}

/* Qアイコン */
.q-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    /* アイコン自体のサイズ拡大 */
    width: 48px; 
    height: 48px; 
    background-color: var(--clinks-black);
    color: var(--clinks-yellow);
    border-radius: 50%;
    text-align: center;
    /* アイコン内の文字位置調整 */
    line-height: 48px; 
    font-family: inherit;
    font-weight: 900;
    font-size: 24px; /* 中の文字サイズ拡大 */
}

/* 開閉アイコン */
.toggle-icon {
    position: absolute;
    right: 25px;
    width: 24px;
    height: 24px;
}
.toggle-icon::before, .toggle-icon::after {
    content: '';
    position: absolute;
    background-color: #333;
    transition: transform 0.3s;
}
.toggle-icon::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}
.toggle-icon::after {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}
.faq-item.is-open .toggle-icon::after {
    transform: translateX(-50%) rotate(90deg);
}

/* --- 回答部分（A） --- */
.faq-answer {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: 0.3s ease-out;
    background-color: var(--clinks-gray);
    border-radius: 8px;
}
.faq-answer-inner {
    padding: 30px 40px 30px 80px;
    position: relative;
}

/* Aアイコン */
.a-icon {
    position: absolute;
    left: 20px;
    top: 32px;
    color: var(--clinks-black);
    font-family: inherit;
    font-weight: 900;
    font-size: 28px; /* Aの文字を大きく */
}

/* --- 新卒・中途 分け用のスタイル --- */
.answer-block {
    margin-bottom: 25px;
}
.answer-block:last-child {
    margin-bottom: 0;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    font-size: 13px; /* タグの文字サイズ */
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 8px;
    vertical-align: middle;
    letter-spacing: 0.05em;
}

/* 新卒タグ */
.tag-new {
    background-color: var(--clinks-black);
    color: #fff;
    border: 1px solid var(--clinks-black);
}

/* 中途タグ */
.tag-mid {
    background-color: #fff;
    color: var(--clinks-black);
    border: 1px solid var(--clinks-black);
}

/* 共通タグ */
.tag-common {
    background-color: #ddd;
    color: #333;
}

.answer-text {
    margin: 0;
    /* 回答文の文字サイズを大きく */
    font-size: 16px; 
    line-height: 1.8;
}

.a-marker {
    background: linear-gradient(transparent 60%, var(--clinks-yellow) 60%);
}
/* --- 回答内リンク：テキスト型 --- */
.faq-inline-link {
    color: #0056b3; /* リンクらしい青色 */
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s;
}
.faq-inline-link:hover {
    color: var(--clinks-black); /* ホバー時は黒 */
    text-decoration: none;
}
.faq-inline-link02 {
    color: #0056b3; /* リンクらしい青色 */
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s;
}
.faq-inline-link02:hover {
    color: var(--clinks-black); /* ホバー時は黒 */
    text-decoration: none;
}
/* 外部リンクアイコン（自動付与） */
.faq-inline-link02[target="_blank"]::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230056b3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
}

/* --- 回答内リンク：ボタン型 --- */
.faq-btn-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    color: var(--clinks-black);
    text-decoration: none;
    padding: 15px 20px;
    margin-top: 15px;
    border: 1px solid #ddd;
    border-radius: 4px; /* 角丸 */
    font-weight: bold;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.faq-btn-link:hover {
    border-color: var(--clinks-yellow);
    background-color: #fffcf0; /* 薄い黄色 */
    transform: translateY(-2px); /* 少し浮く */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ボタン内の矢印アイコン */
.faq-btn-link::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--clinks-black);
    border-right: 2px solid var(--clinks-black);
    transform: rotate(45deg);
}
/* --- ページ内リンクナビゲーション --- */
.faq-anchor-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0 0 80px 0; /* 下に余白 */
}

.faq-anchor-nav li {
    margin: 0;
    padding: 0;
}

.faq-anchor-nav a {
    display: block;
    background-color: var(--clinks-yellow); /* キーカラーの黄色 */
    color: var(--clinks-black);
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 15px 30px;
    border-radius: 50px; /* 丸みのあるカプセル型 */
    transition: opacity 0.3s, transform 0.2s;
    position: relative;
    padding-right: 45px; /* 矢印アイコン用の余白 */
}

/* 下矢印アイコン */
.faq-anchor-nav a::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-bottom: 2px solid var(--clinks-black);
    border-right: 2px solid var(--clinks-black);
    transform: rotate(45deg);
    position: absolute;
    top: 45%;
    right: 20px;
}

.faq-anchor-nav a:hover {
    opacity: 0.8;
    transform: translateY(2px); /* 押したような動き */
}

/* スマホ対応：ボタンを縦積みにして幅いっぱいに */
@media (max-width: 768px) {
    .faq-anchor-nav {
        flex-direction: column; /* 縦並び */
        gap: 10px;
    }
    .faq-anchor-nav li {
        width: 100%;
    }
    .faq-anchor-nav a {
        width: 100%;
        text-align: center;
        box-sizing: border-box; /* パディングを含めて幅計算 */
    }
    /* スマホの時は矢印の位置を調整 */
    .faq-anchor-nav a::after {
        right: 30px; 
    }
}