/*
Theme Name: linkpage
Theme URI: https://www.noble-design.co.jp/
Author: Custom Developer
Description: linkpage v1.2.0 - 「シャドウ」「3D」「フラット」のデザイン切り替えを完全に修正。ヘッダーnoindex機能の復活対応版。
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
    line-height: 1.5;
    display: block;
    min-height: 100vh;
    padding: 40px 20px;
    transition: background-color 0.3s ease;
}

.container {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

/* Profile Section */
.profile-section {
    margin-bottom: 32px;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 2px;
    letter-spacing: 0.05em;
}

.profile-subtitle {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0.85;
}

.profile-bio {
    font-size: 14px;
    white-space: pre-wrap;
    opacity: 0.9;
    max-width: 400px;
    margin: 0 auto;
}

/* Links Section */
.links-container {
    display: block;
}

.link-item {
    display: block;
    text-decoration: none;
    padding: 16px 20px;
    margin-bottom: 16px; 
    border-radius: 6px; 
    font-size: 15px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    background-color: var(--btn-bg-color);
    color: var(--btn-text-color);
}

.link-item:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.link-item:active {
    transform: translateY(0);
}

/* ==========================================================================
   【重要】デザインパターン別のCSS（記述ミスを修正し確実にスタイルを上書き）
   ========================================================================== */

/* ① シャドウ（従来の柔らかいぼかし影、枠線なし） */
.style-shadow {
    border: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06) !important;
}
.link-item.style-shadow:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.12) !important;
}
img.style-shadow {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

/* ② 3D（クッキリした太線とベタ塗りの立体影） */
.style-3d {
    border: 2px solid var(--text-color) !important;
    box-shadow: 4px 4px 0px 0px var(--text-color) !important;
}
.link-item.style-3d:hover {
    transform: translate(-2px, -2px) !important;
    box-shadow: 6px 6px 0px 0px var(--text-color) !important;
}
.link-item.style-3d:active {
    transform: translate(2px, 2px) !important;
    box-shadow: 2px 2px 0px 0px var(--text-color) !important;
}
img.style-3d {
    box-shadow: 4px 4px 0px 0px var(--text-color) !important;
}

/* ③ フラット（影なし、シンプルな1pxの細枠線） */
.style-flat {
    box-shadow: none !important;
    border: 1px solid var(--text-color) !important;
}
.link-item.style-flat:hover {
    background-color: rgba(0,0,0,0.03) !important;
}


/* 精密3列レイアウト構造 */
.link-content-table {
    display: table;
    width: 100%;
    table-layout: fixed; 
}

.link-cell-left,
.link-cell-right {
    display: table-cell;
    width: 26px;
    vertical-align: middle;
}

.link-cell-left {
    text-align: center;
}

.link-cell-right {
    text-align: right;
}

.link-cell-center {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

.link-icon {
    font-size: 21px; 
    vertical-align: middle;
    display: inline-block;
}

.link-text-group {
    display: inline-block;
    vertical-align: middle;
    width: 100%;
}

.link-title {
    display: block;
}

.link-description {
    display: block;
    font-size: 11px;
    font-weight: normal;
    margin-top: 4px;
    opacity: 0.8;
}

.external-arrow {
    font-size: 13px;
    opacity: 0.6;
    vertical-align: middle;
}

/* 枠なしボタンスタイル */
.link-item.is-text-only {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0; 
    margin-bottom: 8px; 
    text-align: center;
    transform: none !important;
}

.link-item.is-text-only:hover {
    opacity: 0.7;
}

.link-item.is-text-only .link-title {
    display: inline-block;
    vertical-align: middle;
    text-decoration: underline;
    font-size: 14px;
    color: var(--text-color) !important;
}

.link-text-only-left-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    font-size: 16px;
    color: var(--text-color) !important;
}

.link-item.is-text-only .external-arrow {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px; 
    color: var(--text-color) !important;
}

/* 余白自動コントロール */
.link-item.is-text-only + .link-item.is-text-only {
    margin-top: -2px; 
}
.link-item:not(.is-text-only) + .link-item.is-text-only {
    margin-top: 24px; 
}
.link-item.is-text-only + .link-item:not(.is-text-only) {
    margin-top: 32px; 
}

/* Footer */
.site-footer {
    margin-top: 48px;
    font-size: 12px;
    opacity: 0.6;
}
