/* =========================================================
   TRUE FORM PILATES
   Common Style
========================================================= */

:root {
    --tf-navy: #405677;
    --tf-navy-dark: #344966;
    --tf-navy-light: #5a6f8d;

    --tf-bg: #f8f7f4;
    --tf-white: #ffffff;

    --tf-beige: #eeeae3;
    --tf-greige: #d8d3cb;

    --tf-text: #262626;
    --tf-text-soft: #6f6f6f;
    --tf-border: #e7e4df;

    --tf-danger: #a44b4b;

    --tf-radius-sm: 10px;
    --tf-radius-md: 16px;
    --tf-radius-lg: 22px;

    --tf-shadow:
        0 8px 30px rgba(35, 42, 52, 0.07);

    --tf-header-height: 66px;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: var(--tf-bg);
    color: var(--tf-text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Helvetica Neue",
        "Hiragino Sans",
        "Yu Gothic",
        YuGothic,
        Meiryo,
        sans-serif;

    font-size: 15px;
    line-height: 1.7;

    -webkit-font-smoothing: antialiased;
}

body.tf-menu-open {
    overflow: hidden;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}


/* =========================================================
   HEADER
========================================================= */

.tf-header {
    position: sticky;
    top: 0;
    z-index: 900;

    width: 100%;

    background: var(--tf-navy);

    box-shadow:
        0 2px 14px rgba(23, 34, 49, 0.08);
}

.tf-header-inner {
    width: 100%;
    max-width: 1180px;
    height: var(--tf-header-height);

    margin: 0 auto;
    padding: 0 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================================
   HEADER LOGO
========================================================= */

.tf-header-logo {
    height: 100%;

    display: flex;
    align-items: center;

    text-decoration: none;
}

.tf-header-logo-image {
    display: block;

    width: 52px;
    height: 52px;

    object-fit: contain;

    border: 0;
}


/*
画像ロゴがまだない場合の
文字ロゴ
*/

.tf-header-logo-text {
    display: flex;
    flex-direction: column;

    color: #ffffff;
}

.tf-header-logo-main {
    font-size: 19px;
    font-weight: 400;
    letter-spacing: 0.14em;
    line-height: 1.25;
}

.tf-header-logo-sub {
    margin-top: 3px;

    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.22em;

    opacity: 0.88;
}


/* =========================================================
   HAMBURGER
========================================================= */

.tf-menu-button {
    position: relative;

    width: 48px;
    height: 48px;

    padding: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 6px;

    border: 0;
    border-radius: 50%;

    background: transparent;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.tf-menu-button:hover {
    background: rgba(255, 255, 255, 0.09);
}

.tf-menu-button:active {
    transform: scale(0.96);
}

.tf-menu-button-line {
    display: block;

    width: 25px;
    height: 1.5px;

    background: #ffffff;

    border-radius: 100px;
}


/* =========================================================
   BACKDROP
========================================================= */

.tf-menu-backdrop {
    position: fixed;
    inset: 0;

    z-index: 990;

    background: rgba(23, 28, 36, 0.42);

    opacity: 0;
    visibility: hidden;

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.tf-menu-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   SIDE MENU
========================================================= */

.tf-side-menu {
    position: fixed;

    top: 0;
    right: 0;

    z-index: 1000;

    width: min(390px, 88vw);
    height: 100vh;
    height: 100dvh;

    background: #ffffff;

    transform: translateX(105%);

    box-shadow:
        -15px 0 50px rgba(20, 30, 45, 0.14);

    transition:
        transform 0.34s cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}

.tf-side-menu.is-open {
    transform: translateX(0);
}

.tf-side-menu-inner {
    height: 100%;

    display: flex;
    flex-direction: column;

    overflow-y: auto;
    overscroll-behavior: contain;
}


/* =========================================================
   SIDE MENU HEADER
========================================================= */

.tf-side-menu-header {
    min-height: 104px;

    padding: 23px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: var(--tf-navy);
}

.tf-side-menu-brand {
    display: flex;
    flex-direction: column;

    color: #ffffff;
}

.tf-side-menu-brand-main {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.14em;
    line-height: 1.25;
}

.tf-side-menu-brand-sub {
    margin-top: 3px;

    font-size: 9px;
    letter-spacing: 0.22em;

    opacity: 0.85;
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.tf-menu-close {
    position: relative;

    width: 46px;
    height: 46px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;

    cursor: pointer;

    transition: background 0.2s ease;
}

.tf-menu-close:hover {
    background: rgba(255, 255, 255, 0.09);
}

.tf-menu-close span {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 25px;
    height: 1.5px;

    background: #ffffff;

    border-radius: 100px;
}

.tf-menu-close span:first-child {
    transform:
        translate(-50%, -50%)
        rotate(45deg);
}

.tf-menu-close span:last-child {
    transform:
        translate(-50%, -50%)
        rotate(-45deg);
}


/* =========================================================
   SIDE NAVIGATION
========================================================= */

.tf-side-menu-nav {
    flex: 1;

    padding:
        8px
        24px
        30px;
}

.tf-menu-section {
    padding: 26px 0;

    border-bottom:
        1px solid var(--tf-border);
}

.tf-menu-section-title {
    margin: 0 0 12px;

    color: var(--tf-navy);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.18em;
}

.tf-menu-link {
    position: relative;

    min-height: 48px;

    padding: 10px 2px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    text-decoration: none;

    color: var(--tf-text);

    font-size: 15px;
    font-weight: 500;

    transition:
        color 0.2s ease,
        padding 0.2s ease;
}

.tf-menu-link:hover {
    color: var(--tf-navy);

    padding-left: 5px;
}

.tf-menu-link.is-active {
    color: var(--tf-navy);
    font-weight: 600;
}

.tf-menu-link.is-active::before {
    content: "";

    position: absolute;

    left: -12px;
    top: 50%;

    width: 3px;
    height: 22px;

    border-radius: 100px;

    background: var(--tf-navy);

    transform: translateY(-50%);
}

.tf-menu-link-external span {
    color: var(--tf-text-soft);

    font-size: 14px;
}


/* =========================================================
   SMALL LINKS
========================================================= */

.tf-menu-section-small {
    display: flex;
    flex-direction: column;

    gap: 9px;
}

.tf-menu-link-small {
    padding: 3px 0;

    color: var(--tf-text-soft);

    font-size: 12px;

    text-decoration: none;

    transition: color 0.2s ease;
}

.tf-menu-link-small:hover {
    color: var(--tf-navy);
}


/* =========================================================
   LOGOUT
========================================================= */

.tf-menu-section-logout {
    border-bottom: 0;
}

.tf-menu-logout {
    display: inline-flex;

    padding: 10px 0;

    color: var(--tf-danger);

    font-size: 14px;

    text-decoration: none;
}


/* =========================================================
   SIDE MENU FOOTER
========================================================= */

.tf-side-menu-footer {
    padding:
        23px
        24px
        28px;

    background: #f8f7f4;

    border-top:
        1px solid var(--tf-border);
}

.tf-side-menu-footer p {
    margin: 0 0 5px;

    color: var(--tf-navy);

    font-family:
        "Times New Roman",
        "Yu Mincho",
        YuMincho,
        serif;

    font-size: 14px;

    letter-spacing: 0.06em;
}

.tf-side-menu-footer small {
    color: #999;

    font-size: 10px;

    letter-spacing: 0.08em;
}


/* =========================================================
   COMMON PAGE
========================================================= */

.tf-page {
    width: 100%;

    min-height:
        calc(100vh - var(--tf-header-height));

    background: var(--tf-bg);
}

.tf-container {
    width: 100%;
    max-width: 720px;

    margin: 0 auto;

    padding:
        34px
        20px
        70px;
}


/* =========================================================
   CARD
========================================================= */

.tf-card {
    padding: 24px;

    background: #ffffff;

    border:
        1px solid rgba(64, 86, 119, 0.05);

    border-radius: var(--tf-radius-md);

    box-shadow: var(--tf-shadow);
}


/* =========================================================
   BUTTON
========================================================= */

.tf-button {
    width: 100%;
    min-height: 56px;

    padding: 13px 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 14px;

    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        opacity 0.15s ease,
        background 0.15s ease;
}

.tf-button:active {
    transform: scale(0.99);
}

.tf-button-primary {
    background: var(--tf-navy);
    color: #ffffff;
}

.tf-button-primary:hover {
    background: var(--tf-navy-dark);
}

.tf-button-secondary {
    background: #ffffff;

    color: var(--tf-navy);

    border:
        1px solid var(--tf-navy);
}


/* =========================================================
   FORM
========================================================= */

.tf-form-group {
    margin-bottom: 20px;
}

.tf-label {
    display: block;

    margin-bottom: 7px;

    font-size: 13px;
    font-weight: 600;
}

.tf-input,
.tf-select,
.tf-textarea {
    width: 100%;

    padding: 13px 14px;

    background: #ffffff;

    border:
        1px solid #dcd9d4;

    border-radius: 12px;

    color: var(--tf-text);

    font-size: 16px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.tf-input:focus,
.tf-select:focus,
.tf-textarea:focus {
    border-color: var(--tf-navy);

    box-shadow:
        0 0 0 3px
        rgba(64, 86, 119, 0.09);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    :root {
        --tf-header-height: 64px;
    }

    .tf-header-inner {
        padding:
            0
            16px;
    }

    .tf-header-logo-image {
        width: 50px;
        height: 50px;
    }

    .tf-menu-button {
        width: 46px;
        height: 46px;
    }

    .tf-side-menu {
        width: 88vw;
        max-width: 360px;
    }

    .tf-side-menu-header {
        min-height: 96px;

        padding:
            20px
            20px;
    }

    .tf-side-menu-nav {
        padding:
            5px
            20px
            25px;
    }

    .tf-container {
        padding:
            26px
            16px
            60px;
    }

    .tf-card {
        padding: 20px;
    }
}


/* =========================================================
   LARGE SCREEN
========================================================= */

@media (min-width: 1200px) {

    .tf-header-inner {
        padding:
            0
            30px;
    }
}