@charset "utf-8";

/* ==========================================================================
   document.css - Petit Maison KIRISHIMA Document Download Section
   ========================================================================== */

.doc-section {
    padding: 100px 0;
    background-color: var(--color-bg-base);
}

.doc-container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ヘッダー部分 */
.doc-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--color-primary);
    padding-bottom: 20px;
}

.doc-sub-title {
    font-size: 11px;
    color: var(--color-accent);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    display: block;
    line-height: 1;
}

.doc-header-title {
    font-family: var(--font-jp);
    font-size: clamp(22px, 2.2vw, 26px);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    letter-spacing: 0.1em;
}

/* 補足文章用スタイル */
.doc-lead-text {
    font-size: 14px;
    line-height: 1.8;
    color: #4a5568;
    margin-top: 15px;
}

.doc-lead-text strong {
    color: #c53030;
    font-weight: 700;
}

.doc-lead-text a {
    color: var(--color-primary);
    text-decoration: underline;
}

.doc-lead-text a:hover {
    color: var(--color-accent);
}

/* カードレイアウト */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.doc-card {
    position: relative;
    display: block;
    background: #fbfbf9;
    padding: 30px;
    text-decoration: none;
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ホバー時の背景色アニメーション */
.doc-card-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--color-primary);
    transition: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.doc-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doc-category {
    display: block;
    font-size: 10px;
    color: var(--color-accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.doc-name {
    display: block;
    font-size: 17px;
    color: var(--color-primary);
    font-weight: 700;
    margin-top: 8px;
    transition: color 0.4s;
}

/* 矢印アイコン */
.doc-icon-arrow {
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    position: relative;
    transition: 0.4s;
    flex-shrink: 0;
}

.doc-icon-arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 42%;
    width: 8px;
    height: 8px;
    border-top: 1px solid var(--color-accent);
    border-right: 1px solid var(--color-accent);
    transform: translate(-50%, -50%) rotate(45deg);
    transition: 0.4s;
}

/* ホバーエフェクト */
.doc-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 15px 35px rgba(26, 61, 50, 0.1);
}

.doc-card:hover .doc-card-bg {
    height: 100%;
}

.doc-card:hover .doc-name {
    color: var(--color-text-light);
}

.doc-card:hover .doc-icon-arrow {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.doc-card:hover .doc-icon-arrow::after {
    border-color: var(--color-text-light);
}

/* 送付先情報（カード下部） */
.doc-footer-info {
    margin-top: 30px;
    font-size: 14px;
    line-height: 1.8;
    color: #4a5568;
    text-align: left;
}

.doc-footer-info a {
    color: var(--color-primary);
    text-decoration: underline;
}

.doc-footer-info a:hover {
    color: var(--color-accent);
}

/* --- レスポンシブ --- */
@media screen and (max-width: 768px) {
    .doc-section {
        padding: 70px 0;
    }
    .doc-lead-text {
        font-size: 13px;
    }
    .doc-grid {
        grid-template-columns: 1fr; /* スマホでは縦並び */
    }
    .doc-card {
        padding: 25px;
    }
    .doc-name {
        font-size: 16px;
    }
    .doc-footer-info {
        font-size: 13px;
        margin-top: 25px;
    }
}