/* =========================================
   Systre FX Tools - Common Styles
   デザインシステム準拠
   ========================================= */

/* ── ツール一覧グリッド ── */
.sft-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.sft-tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #E0DDDB;
    border-radius: 16px;
    padding: 32px 24px 24px;
    text-decoration: none;
    color: #1E1810;
    transition: all 0.25s ease;
    box-shadow: 0 2px 12px rgba(30, 24, 16, 0.06);
}

.sft-tool-card:hover {
    border-color: #FF7A3D;
    box-shadow: 0 8px 24px rgba(255, 122, 61, 0.15);
    transform: translateY(-3px);
}

.sft-tool-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #FF7A3D, #FF9A5A);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.sft-tool-icon {
    font-size: 40px;
    margin-bottom: 16px;
    line-height: 1;
}

.sft-tool-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1E1810;
    text-align: center;
}

.sft-tool-desc {
    font-size: 13px;
    color: #575250;
    text-align: center;
    line-height: 1.6;
    margin: 0 0 16px;
    flex: 1;
}

.sft-tool-arrow {
    font-size: 13px;
    font-weight: 600;
    color: #FF7A3D;
    transition: color 0.2s;
}

.sft-tool-card:hover .sft-tool-arrow {
    color: #e06530;
}

/* ── 各ツール共通レイアウト ── */
.sft-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}

.sft-tool-header {
    text-align: center;
    margin-bottom: 32px;
}

.sft-tool-header h1 {
    font-size: 26px;
    font-weight: 800;
    color: #1E1810;
    margin: 0 0 8px;
}

.sft-tool-header p {
    font-size: 14px;
    color: #575250;
    margin: 0;
}

/* パンくず */
.sft-breadcrumb {
    font-size: 13px;
    color: #575250;
    margin-bottom: 24px;
}

.sft-breadcrumb a {
    color: #FF7A3D;
    text-decoration: none;
}

.sft-breadcrumb a:hover {
    text-decoration: underline;
}

.sft-breadcrumb span {
    margin: 0 6px;
    color: #B0ADAB;
}

/* カード（ツール本体） */
.sft-calc-card {
    background: #FFFFFF;
    border: 1px solid #E0DDDB;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(30, 24, 16, 0.06);
    margin-bottom: 24px;
}

/* フォーム要素 */
.sft-form-group {
    margin-bottom: 20px;
}

.sft-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1E1810;
    margin-bottom: 6px;
}

.sft-form-group .sft-label-hint {
    font-weight: 400;
    color: #B0ADAB;
    font-size: 12px;
    margin-left: 6px;
}

.sft-input,
.sft-select {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 1.5px solid #E0DDDB;
    border-radius: 10px;
    background: #FAFAF9;
    color: #1E1810;
    transition: border-color 0.2s;
    box-sizing: border-box;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
}

.sft-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23575250' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.sft-input:focus,
.sft-select:focus {
    outline: none;
    border-color: #FF7A3D;
    background: #FFFFFF;
}

.sft-input::placeholder {
    color: #B0ADAB;
}

/* 横並びフォーム */
.sft-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ボタン */
.sft-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #FF7A3D, #FF9A5A);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.sft-btn-primary:hover {
    background: linear-gradient(135deg, #e06530, #FF7A3D);
    box-shadow: 0 4px 16px rgba(255, 122, 61, 0.3);
}

.sft-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #FF7A3D;
    background: #FFFFFF;
    border: 1.5px solid #FF7A3D;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.sft-btn-secondary:hover {
    background: #FFF5F0;
}

/* 結果表示 */
.sft-result {
    background: linear-gradient(135deg, #1a2a3a 0%, #2d4a5e 100%);
    border-radius: 16px;
    padding: 28px 32px;
    color: #fff;
    margin-top: 24px;
}

.sft-result-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sft-result-main {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.2;
}

.sft-result-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.sft-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.sft-result-item {
    text-align: center;
}

.sft-result-item-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sft-result-item-value {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

/* 注意書き */
.sft-note {
    background: #FAFAF9;
    border-left: 3px solid #17a2b8;
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    font-size: 12px;
    color: #575250;
    line-height: 1.7;
    margin-top: 24px;
}

/* テーブル */
.sft-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 16px;
}

.sft-table th {
    background: #FAFAF9;
    font-weight: 600;
    color: #1E1810;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid #E0DDDB;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sft-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #F0EEEC;
    color: #1E1810;
}

.sft-table tr:hover td {
    background: #FAFAF9;
}

/* ── 非表示（初期状態） ── */
.sft-hidden {
    display: none;
}

/* ── レスポンシブ ── */
@media (max-width: 640px) {
    .sft-tools-grid {
        grid-template-columns: 1fr;
        padding: 12px 0;
    }

    .sft-form-row {
        grid-template-columns: 1fr;
    }

    .sft-calc-card {
        padding: 20px 16px;
    }

    .sft-result {
        padding: 20px 16px;
    }

    .sft-result-main {
        font-size: 28px;
    }

    .sft-result-grid {
        grid-template-columns: 1fr;
    }

    .sft-tool-header h1 {
        font-size: 22px;
    }
}
