/**
 * WILLs Custom Styles - Footer Only
 *
 * @package swell-wills
 */

/* ==========================================================================
   Color Variables
   ========================================================================== */
:root {
    --wills-primary: #068991;
    --wills-primary-dark: #057078;
    --wills-secondary: #013884;
    --wills-dark: #333333;
    --wills-gray: #555555;
    --wills-light-gray: #f5f5f5;
    --wills-white: #ffffff;
    --wills-border: #eeeeee;
}

/* ==========================================================================
   Footer Styles - WILLs Original Design
   ========================================================================== */

/* SWELLのデフォルトフッターを非表示 */
.l-footer {
    display: none !important;
}

/* カスタムフッター */
#wills-footer {
    display: block !important;
    background: #fff;
    padding: 60px 0 0;
    border-top: 1px solid #eee;
}

#wills-footer .footer_inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* フッターロゴ */
#wills-footer .footer_logo {
    margin-bottom: 40px;
}

#wills-footer .footer_logo img {
    height: 35px;
    width: auto;
}

/* フッターナビゲーション */
#wills-footer .footer_nav {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

#wills-footer .footer_nav_block {
    min-width: 150px;
}

#wills-footer .footer_nav_block h4 {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px 0;
    padding: 0;
}

#wills-footer .footer_nav_block h4 a {
    color: #333;
    text-decoration: none;
}

#wills-footer .footer_nav_block ul {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
}

#wills-footer .footer_nav_block ul.ir_sub {
    margin-top: 0;
}

#wills-footer .footer_nav_block ul li {
    margin-bottom: 6px;
}

#wills-footer .footer_nav_block ul li a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

#wills-footer .footer_nav_block ul li a:hover {
    color: var(--wills-primary);
    text-decoration: underline;
}

/* 外部リンクアイコン */
#wills-footer .external_icon::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='%23333'%3E%3Cpath d='M19 19H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

/* 下部リンク */
#wills-footer .footer_bottom_links {
    padding: 20px 0;
    border-top: 1px solid #eee;
    margin-bottom: 0;
}

#wills-footer .footer_bottom_links a {
    color: #333;
    text-decoration: underline;
    font-size: 13px;
    margin-right: 30px;
}

#wills-footer .footer_bottom_links a:hover {
    color: var(--wills-primary);
}

/* コピーライト */
#wills-footer .copyright {
    padding: 15px 0;
    border-top: 1px solid #eee;
}

#wills-footer .copyright p {
    margin: 0;
    font-size: 12px;
    color: #333;
}

/* ==========================================================================
   Responsive Footer
   ========================================================================== */

@media screen and (max-width: 768px) {
    #wills-footer {
        padding: 40px 0 0;
    }

    #wills-footer .footer_nav {
        gap: 25px;
    }

    #wills-footer .footer_nav_block {
        min-width: calc(50% - 15px);
    }

    #wills-footer .footer_bottom_links {
        text-align: center;
    }

    #wills-footer .footer_bottom_links a {
        display: block;
        margin: 0 0 10px 0;
    }

    #wills-footer .copyright {
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    #wills-footer .footer_nav_block {
        min-width: 100%;
    }
}

/* ==========================================================================
   Front Page Styles - WILLs Top Page (ファイナンスコラム風デザイン)
   ========================================================================== */

/* --------------------------------------------------------------------------
   コンセプトセクション
   -------------------------------------------------------------------------- */
.wills-concept-section {
    padding: 60px 0 50px;
    background: #fff;
}

.concept-inner {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.concept-title {
    font-size: 28px;
    font-weight: 400;
    color: var(--wills-dark);
    margin: 0 0 30px 0;
    letter-spacing: 0.05em;
}

.concept-text {
    text-align: left;
}

.concept-text p {
    font-size: 14px;
    color: var(--wills-dark);
    line-height: 2;
    margin: 0 0 10px 0;
}

.concept-text p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   記事一覧セクション (Contents)
   -------------------------------------------------------------------------- */
.wills-articles-section {
    padding: 50px 0 60px;
    background: #fff;
}

.articles-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.contents-title {
    font-size: 28px;
    font-weight: 400;
    color: var(--wills-dark);
    text-align: center;
    margin: 0 0 40px 0;
    letter-spacing: 0.05em;
}

/* 記事カードグリッド - 3x3 */
.contents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.contents-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.contents-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.contents-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.contents-card__thumb {
    aspect-ratio: 1200 / 630;
    overflow: hidden;
    background: #f0f0f0;
}

.contents-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.contents-card:hover .contents-card__thumb img {
    transform: scale(1.05);
}

.contents-card__no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
    color: #999;
    font-size: 13px;
}

.contents-card__body {
    padding: 15px;
}

.contents-card__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--wills-dark);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   ツール埋め込みセクション
   -------------------------------------------------------------------------- */
.wills-tool-section {
    padding: 50px 0;
    background: #fff;
}

.tool-inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.tool-section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--wills-dark);
    text-align: center;
    margin: 0 0 30px 0;
}

.tool-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tool-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.tool-placeholder p {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #666;
}

.tool-placeholder span {
    font-size: 13px;
    color: #999;
}

/* --------------------------------------------------------------------------
   レスポンシブ - トップページ
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    .wills-concept-section {
        padding: 40px 0 30px;
    }

    .concept-title {
        font-size: 24px;
    }

    .concept-text p {
        font-size: 13px;
    }

    .wills-articles-section {
        padding: 30px 0 40px;
    }

    .contents-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .contents-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .contents-card__body {
        padding: 12px;
    }

    .contents-card__title {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .wills-tool-section {
        padding: 40px 0;
    }

    .tool-section-title {
        font-size: 18px;
    }

    .tool-box {
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    .contents-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contents-card__thumb {
        aspect-ratio: 1200 / 630;
    }
}
