/**
 * FL フロント（design_base 系）補助スタイル
 * メインは Tailwind CDN（index.php）
 */
body.fl-site {
    font-feature-settings: "palt";
    overflow-x: hidden;
}

.fl-site ::selection {
    background: #1a1a1a;
    color: #f4f4f2;
}

#loader {
    position: fixed;
    inset: 0;
    background: #1a1a1a;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #f4f4f2;
}

/* ---------- セクション見出し（統一） ---------- */
.fl-section-head {
    margin-bottom: 0;
}

.fl-section-head--mb {
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .fl-section-head--mb {
        margin-bottom: 3.5rem;
    }
}

.fl-section-head--split {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .fl-section-head--split {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
        gap: 2rem;
    }
}

.fl-section-head--center {
    text-align: center;
}

.fl-section-head--center .fl-section-lead {
    margin-left: auto;
    margin-right: auto;
}

.fl-section-num {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(3.25rem, 10vw, 5.5rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 0.02em;
    color: #1a1a1a;
    opacity: 0.1;
    display: block;
    margin: 0 0 0.15rem;
}

.fl-section-num--light {
    color: #ffffff;
    opacity: 0.14;
}

.fl-eyebrow {
    font-family: "Cormorant Garamond", serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #a89b85;
    margin: 0 0 0.65rem;
}

.fl-heading-section {
    font-family: "Shippori Mincho", serif;
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.04em;
    color: #1a1a1a;
    margin: 0;
}

.fl-heading-section--light {
    color: #f4f4f2;
}

.fl-section-lead {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.85;
    color: #64748b;
    margin: 0.75rem 0 0;
    max-width: 36rem;
}

.fl-section-lead--tight-top {
    margin-top: 0.35rem;
}

.fl-section-lead--muted {
    color: #94a3b8;
}

.fl-section-lead--on-dark {
    color: #9ca3af;
}

/* For You：中央レイアウト・リスト・締めコピー */
.fl-fit {
    border-top: 1px solid rgba(26, 26, 26, 0.06);
    background: linear-gradient(180deg, #fafaf9 0%, #ffffff 42%, #ffffff 100%);
}

.fl-fit-inner {
    max-width: 43rem;
    margin-left: auto;
    margin-right: auto;
}

.fl-fit-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

@media (min-width: 768px) {
    .fl-fit-list {
        gap: 0.85rem;
    }
}

.fl-fit-list__item {
    --fl-fit-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23a89b85' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    margin: 0;
    padding: 0.9rem 1.05rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.7;
    color: #3f3f3c;
    background: #ffffff;
    border: 1px solid rgba(26, 26, 26, 0.08);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.fl-fit-list__item::before {
    content: "";
    flex-shrink: 0;
    width: 1.28rem;
    height: 1.28rem;
    margin-top: 0.14em;
    background: var(--fl-fit-check) center / contain no-repeat;
}

@media (min-width: 768px) {
    .fl-fit-list__item {
        font-size: 1.1rem;
        padding: 1.05rem 1.2rem;
        gap: 0.85rem;
    }

    .fl-fit-list__item::before {
        width: 1.55rem;
        height: 1.55rem;
        margin-top: 0.12em;
    }
}

.fl-fit-quote {
    margin: 0;
    padding-top: 1.75rem;
    margin-top: 1.75rem;
}

.fl-fit-quote p {
    font-family: "Shippori Mincho", serif;
    font-size: clamp(1rem, 2.4vw, 1.1875rem);
    font-weight: 500;
    line-height: 1.85;
    letter-spacing: 0.03em;
    color: #1a1a1a;
    margin: 0;
}

.fl-fit-quote p + p {
    margin-top: 0.5rem;
}

/* カード・理由ブロックの小見出し */
.fl-card-label {
    font-family: "Cormorant Garamond", serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #a89b85;
    display: block;
    margin: 0 0 0.5rem;
}

.fl-heading-card {
    font-family: "Shippori Mincho", serif;
    font-size: clamp(1.1875rem, 1.35vw + 1rem, 1.5rem);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.03em;
    margin: 0 0 1rem;
}

#reasons .fl-heading-card {
    color: #f4f4f2;
}

/* フローステップ */
.fl-step-num {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.75rem, 5vw, 3.75rem);
    font-weight: 400;
    line-height: 1;
    color: #cbd5e1;
    display: block;
    margin: 0 0 0.75rem;
}

.fl-heading-step {
    font-family: "Shippori Mincho", serif;
    font-size: clamp(1.0625rem, 0.8vw + 1rem, 1.25rem);
    font-weight: 500;
    letter-spacing: 0.03em;
    color: #1a1a1a;
    margin: 0 0 0.75rem;
}

/* Philosophy：左カラム・見出し下の円形写真 */
.fl-philosophy-round-photo {
    margin: 2rem auto 0;
    width: min(220px, 70vw);
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(26, 26, 26, 0.08);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.fl-philosophy-round-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .fl-philosophy-round-photo {
        margin: 2.5rem 0 0;
        width: min(240px, 100%);
    }
}

/* Why Us：1枚目カード・見出し下の長方形写真 */
.fl-reasons-rect-photo {
    margin: 1.25rem 0 1rem;
    width: 100%;
    max-width: 28rem;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.fl-reasons-rect-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Philosophy：背景中央の SVG アニメ */
.fl-philosophy-bg-svg {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    width: min(98vw, 1280px);
    max-width: 100%;
    pointer-events: none;
    opacity: 0.25;
}

.fl-philosophy-bg-svg__inner {
    display: block;
    width: 100%;
    height: auto;
}

/* Philosophy：右ブロックのサブキャッチ（メインより一段小さい・1行） */
.fl-philosophy-sub {
    max-width: 42rem;
    font-family: "Shippori Mincho", serif;
    font-size: clamp(1rem, 1.5vw + 0.65rem, 1.375rem);
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: 0.06em;
    color: #1a1a1a;
    margin: 0;
}

/* Track Record：数値カード */
.fl-track-count {
    font-variant-numeric: tabular-nums;
    display: inline-block;
}

.fl-track-stat__value {
    font-family: "Shippori Mincho", serif;
    font-size: clamp(2.75rem, 5.5vw, 4rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #1a1a1a;
}

.fl-track-stat__suffix {
    font-family: "Shippori Mincho", serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    margin-left: 0.1em;
    letter-spacing: 0.06em;
}

.fl-track-stat__title {
    font-family: "Shippori Mincho", serif;
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #1a1a1a;
    margin: 0.75rem 0 0.35rem;
}

/* Track Record：タイトル下の長方形写真（ライト背景用） */
.fl-track-rect-photo {
    margin: 0.65rem 0 0.85rem;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(26, 26, 26, 0.1);
}

.fl-track-rect-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* お知らせ内ブロック見出し（管理画面・他ページ用に残置） */
.fl-subsection-title {
    font-family: "Shippori Mincho", serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #1a1a1a;
    margin: 0 0 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

/* ---------- News（design_base 風・1行型・Shippori 統一） ---------- */
.fl-news-section__head.fl-section-head--news-bar {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.fl-news-section__head-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.fl-news-section__title {
    margin: 0;
}

.fl-news-section__empty {
    font-family: "Shippori Mincho", serif;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #6b7280;
    margin: 0;
}

/* api/posts 由来の一覧（app.js・1行カード） */
.fl-posts-section .fl-posts-container {
    display: flex;
    flex-direction: column;
}

.fl-posts-row {
    border-bottom: 1px solid #e5e7eb;
}

.fl-posts-row:last-child {
    border-bottom: none;
}

.fl-posts-row__anchor {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 0;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

@media (min-width: 768px) {
    .fl-posts-row__anchor {
        flex-direction: row;
        align-items: center;
        gap: 1.25rem;
        padding: 1.75rem 0;
    }
}

/* サムネ（updates）＋日付を左ブロックにまとめる */
.fl-posts-row__start {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.fl-posts-row__thumb {
    display: block;
    flex-shrink: 0;
    width: 4.5rem;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    overflow: hidden;
    background: #e5e7eb;
    border: 1px solid rgba(26, 26, 26, 0.06);
}

.fl-posts-row__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .fl-posts-row__thumb {
        width: 5.25rem;
    }
}

.fl-posts-row__date {
    flex-shrink: 0;
    min-width: 6.5rem;
    font-family: "Shippori Mincho", serif;
    font-size: 0.8125rem;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.06em;
    color: #9ca3af;
}

@media (min-width: 768px) {
    .fl-posts-row__date {
        font-size: 0.875rem;
    }
}

.fl-posts-row__main {
    flex: 1;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .fl-posts-row__main {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        width: auto;
    }
}

/* タイトル＋矢印（スマホでも同一行・右端に矢印） */
.fl-posts-row__title-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    min-width: 0;
}

@media (min-width: 768px) {
    .fl-posts-row__title-row {
        flex: 1;
        width: auto;
        gap: 0.85rem;
    }
}

.fl-posts-row__cat {
    flex-shrink: 0;
    display: inline-block;
    padding: 0.2rem 0.45rem;
    font-family: "Shippori Mincho", serif;
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #4b5563;
    background: #f3f4f6;
    line-height: 1.3;
}

.fl-posts-row__title {
    flex: 1;
    min-width: 0;
    font-family: "Shippori Mincho", serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: 0.03em;
    color: #1a1a1a;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .fl-posts-row__title {
        font-size: 1.0625rem;
    }
}

.fl-posts-row__anchor:hover .fl-posts-row__title {
    color: #a89b85;
}

.fl-posts-row__arrow {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    font-size: 1rem !important;
    color: #9ca3af;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.fl-posts-row__anchor:hover .fl-posts-row__arrow {
    background: #1a1a1a;
    color: #f4f4f2;
    border-color: #1a1a1a;
}

.fl-posts-section .fl-posts-load-more,
.fl-posts-section .load-more {
    margin-top: 1.75rem;
    padding: 0.65rem 1.5rem;
    font-family: "Shippori Mincho", serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    cursor: pointer;
    border: 1px solid #1a1a1a;
    background: #fff;
    color: #1a1a1a;
    border-radius: 9999px;
    transition: background 0.2s, color 0.2s;
}

.fl-posts-section .fl-posts-load-more:hover:not(:disabled),
.fl-posts-section .load-more:hover:not(:disabled) {
    background: #1a1a1a;
    color: #f4f4f2;
}

.fl-posts-section .fl-posts-load-more:disabled,
.fl-posts-section .load-more:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* お問い合わせセクション（ライト背景） */
.fl-contact-section .fl-contact-form__label {
    color: #64748b;
}

.fl-contact-section .fl-contact-form__input,
.fl-contact-section .fl-contact-form__textarea {
    color: #1a1a1a;
    background: #ffffff;
    border-color: rgba(26, 26, 26, 0.12);
}

.fl-contact-section .fl-contact-form__input:focus,
.fl-contact-section .fl-contact-form__textarea:focus {
    border-color: #a89b85;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(168, 155, 133, 0.25);
}

.fl-contact-section .fl-contact-form__submit {
    max-width: none;
}

@media (min-width: 1024px) {
    .fl-contact-section .fl-contact-form__submit {
        margin-left: 0;
    }
}

.fl-contact-section .fl-contact-form__submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* フッター・お問い合わせフォーム（ダーク時用の既定。セクション内は上記で上書き） */
.fl-contact-form__hp {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fl-contact-form {
    position: relative;
}

.fl-contact-form__label {
    display: block;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-bottom: 0.35rem;
}

.fl-contact-form__input,
.fl-contact-form__textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.85rem;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 0.875rem;
    color: #f4f4f2;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    transition: border-color 0.2s, background 0.2s;
}

.fl-contact-form__input:focus,
.fl-contact-form__textarea:focus {
    outline: none;
    border-color: #a89b85;
    background: rgba(255, 255, 255, 0.09);
}

.fl-contact-form__textarea {
    resize: vertical;
    min-height: 7rem;
}

.fl-contact-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 16rem;
    padding: 0.75rem 1.5rem;
    font-family: "Shippori Mincho", serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: #1a1a1a;
    background: #a89b85;
    border: 1px solid #a89b85;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.fl-contact-form__submit:hover {
    background: #f4f4f2;
    border-color: #f4f4f2;
}

@media (min-width: 1024px) {
    .fl-contact-form__submit {
        margin-left: auto;
    }
}

.fl-contact-form__submit.is-busy,
.fl-contact-form__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* お問い合わせ送信トースト */
.fl-toast-root {
    position: fixed;
    z-index: 10050;
    left: 50%;
    bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    width: min(calc(100vw - 2rem), 26rem);
    pointer-events: none;
}

.fl-toast-root:not([hidden]) {
    pointer-events: auto;
}

.fl-toast {
    padding: 1rem 1.15rem;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 0.875rem;
    line-height: 1.55;
    letter-spacing: 0.02em;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    opacity: 0;
    transform: translateY(0.75rem);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.fl-toast--visible {
    opacity: 1;
    transform: translateY(0);
}

.fl-toast--success {
    color: #0f172a;
    background: #f4f4f2;
    border: 1px solid rgba(168, 155, 133, 0.45);
}

.fl-toast--error {
    color: #fef2f2;
    background: #3f2a2a;
    border: 1px solid rgba(252, 165, 165, 0.35);
}
