/* ============================================
    Common Styles
    ============================================ */

/* -------------------------
    カスタムプロパティ
    ------------------------- */
:root {
    /* カラーパレット */
    --color-primary: #00B3C9;
    --color-secondary: #D4AF37;
    --color-background: #FCFBFA;
    --color-background-secondary: #EAF4F6;
    --color-background-gray: #F2F0ED;

    --color-text: #1A2E40;
    --color-text-inverse: #FFFFFF;
    --color-link: #00B3C9;

    /* スペーシング */
    --spacing-unit: 1rem;
    --container-padding: 3rem;

    /* コンテンツ幅 */
    --container-width: calc(1000px + var(--container-padding) * 2);
    --container-width-narrow: 770px;
    --container-width-wide: 1200px;

    /* 角丸 */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 10px;

    /* 影 */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 3px 10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(26, 46, 64, 0.08);

    /* トランジション */
    --transition-fast: 0.15s;
    --transition-base: 0.3s;

    /* ヘッダー高さ（アンカー補正用） */
    --header-height: 75px;
}

/* Base Styles */
body {
    font-family: "Jost", "Zen Kaku Gothic New", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 767px) {
    :root {
        --container-padding: 1.5rem;
        --header-height: 0;
    }

    body {
        font-size: 1.4rem;
        line-height: 1.6;
    }
}

/* Link */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

html {
    scroll-behavior: smooth;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-narrow {
    max-width: var(--container-width-narrow);
    margin: 0 auto;
}

.container-wide {
    max-width: var(--container-width-wide);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}


/* ============================================
    Utility Classes
    ============================================ */

/* Colors */
.text-blue {
    color: var(--color-primary);
}

.text-gold {
    color: var(--color-secondary);
}

.bg-blue {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    font-weight: 500;
}

.bg-gold {
    background-color: var(--color-secondary);
}

.bg-ivory {
    background-color: var(--color-background);
}

.bg-light-blue {
    background-color: var(--color-background-secondary);
}

.bg-gray {
    background-color: var(--color-background-gray);
}

/* Spacing */
.mt10 {
    margin-top: 1rem;
}

.mt20 {
    margin-top: 2rem;
}

.mt30 {
    margin-top: 3rem;
}

.mt40 {
    margin-top: 4rem;
}

.mb10 {
    margin-bottom: 1rem;
}

.mb20 {
    margin-bottom: 2rem;
}

.mb30 {
    margin-bottom: 3rem;
}

.mb40 {
    margin-bottom: 4rem;
}

.space-top {
    margin-top: 0.75rem;
}

.space-bottom {
    margin-bottom: 0.75rem;
}

.paragraph-space p:not(:first-child) {
    margin-top: 1em;
}

/* Text */
.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

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

.text-bold,
em {
    font-weight: 600;
}

.marker-text span,
em.marker-text {
    background: linear-gradient(transparent 60%, rgba(0, 179, 201, 0.2) 60%);
    /* padding: 0 0.5em 0.1em; */
}

.disc-list {
    list-style: disc;
    padding-left: 1.25em;
    text-align: left;
}


/* Radius utilities */
.radius-sm {
    border-radius: var(--radius-sm);
}

.radius-md {
    border-radius: var(--radius-md);
}

.radius-lg {
    border-radius: var(--radius-lg);
}


/* Shadow utilities */
.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* ブロック要素を中央揃えにする */
.center-block,
.img-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Card Item List */
.card-list {
    display: flex;
    flex-wrap: wrap;
}

.card {
    border-radius: var(--radius-md);
    text-align: center;
}


/* Buttons */
.button {
    display: block;
    width: 350px;
    background: linear-gradient(90deg, #01A1B5, #00B3C9);
    color: var(--color-text-inverse);
    font-size: 2.0rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    margin: 0 auto;
    padding: 2rem 0 1.8rem;
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.button:not(:disabled):hover {
    text-decoration: none;
    transform: translateY(1px);
    background: linear-gradient(90deg, #0099AB, #00A1B5);
}

/* mail blue button */
.button.mail {
    padding: 3.4rem 0 3.2rem;
}

.button.mail span {
    background: url(../images/button_icon_mail.svg) no-repeat left center;
    background-size: 24px auto;
    padding-left: 3.2rem;
}

/* tel gold button */
.button.tel {
    background: linear-gradient(90deg, #BF9E32, #D4AF37);
    font-size: 1.4rem;
    padding: 2rem 0;
}

.button.tel span {
    display: inline-block;
    background: url(../images/button_icon_tel.svg) no-repeat left -2px;
    background-size: 25px auto;
    padding-left: 3.2rem;
    font-size: 2.4rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
}

.button.tel:not(:disabled):hover {
    background: linear-gradient(90deg, #B8941F, #C5A22A);
}

/* form submit button */
.button.submit {
    letter-spacing: 0.1em;
}

.button.submit:disabled {
    background: #CCC;
    cursor: not-allowed;
}

@media (max-width: 767px) {
    .button {
        width: 100%;
    }
}

/* Responsive display */
.sp-only {
    display: none;
}

@media (max-width: 767px) {
    .pc-only {
        display: none !important;
    }
    .sp-only {
        display: block;
    }

    .no-scroll {
        overflow: hidden;
    }
}

/* 画像リンクの幅を画像自体に合わせる */
.image-link {
    display: inline-block;
    line-height: 0;
}

.image-link:hover {
    text-decoration: none;
}


/* ============================================
    Layout
    ============================================ */

/* -------------------------
    Header
    ------------------------- */
#header {
    background: #FFF;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.header-fixed {
    position: sticky;
    top: 0;
    z-index: 100;
}

#header .logo {
    height: 45px;
}

/* [PC] header contact */
#header .header-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

#header .header-contact .tel-text {
    text-align: right;
    font-size: 1.3rem;
    line-height: 1;
}

#header .header-contact .tel-text span {
    display: inline-block;
    background: url(../images/header_icon01.png) no-repeat left center;
    background-size: 25px auto;
    padding-left: 2.7rem;
    font-size: 2.4rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
}

#header .header-contact .button {
    width: 200px;
    padding: 1.7rem 0 1.5rem;
    font-size: 1.8rem;
}

@media (max-width: 767px) {
    #header {
        padding: 1rem 1.5rem;
        min-height: 0;
    }

    #header .logo,
    #header .logo img {
        height: 30px;
        width: auto;
    }

    .header-fixed {
        position: relative;
    }
}

/* ============================================
    [SP] SP Menu
    ============================================ */
@media (max-width: 767px) {
    /* --- Menu Button --- */
    #header .sp-menu-button {
        position: absolute;
        top: 50%;
        right: 1.5rem;
        transform: translateY(-50%);
        width: 26px;
        height: 26px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 999;
    }

    #header .sp-menu-button::before,
    #header .sp-menu-button::after,
    #header .sp-menu-button span {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--color-primary);
        transition: transform var(--transition-base), top var(--transition-base), bottom var(--transition-base), opacity var(--transition-base);
    }

    #header .sp-menu-button::before {
        top: 4px;
    }

    #header .sp-menu-button span {
        top: 50%;
        transform: translateY(-50%);
    }

    #header .sp-menu-button::after {
        bottom: 4px;
    }

    /* Active state (X mark) */
    #header .sp-menu-button.is-active::before {
        top: 50%;
        transform: rotate(45deg);
        background-color: #FFF;
    }

    #header .sp-menu-button.is-active span {
        opacity: 0;
    }

    #header .sp-menu-button.is-active::after {
        bottom: auto;
        top: 50%;
        transform: rotate(-45deg);
        background-color: #FFF;
    }

    /* --- Menu Panel --- */
    #sp-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 101;
        display: flex;
        text-align: center;
        justify-content: center;
        padding-top: 8rem;
        background-color: rgba(0, 179, 201, 0.8);
        backdrop-filter: blur(5px);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--transition-base), visibility var(--transition-base);
    }

    #sp-menu.is-open {
        opacity: 1;
        visibility: visible;
    }

    #sp-menu li:not(:last-child) {
        margin-bottom: 1.5rem;
    }

    #sp-menu a {
        font-size: 1.6rem;
        font-weight: 500;
        padding: 0.5rem 1rem;
    }
}

/* -------------------------
    Footer
    ------------------------- */
#footer {
    padding-top: 5rem;
    padding-bottom: 3rem;
}

#footer .container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

#footer .company-info {
    margin-top: 3rem;
}

#footer .company-info .address {
    font-size: 1.4rem;
    margin-top: 0.5rem;
}

#footer .footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: center;
}

#footer .footer-menu ul {
    width: 12em;
    font-size: 1.4rem;
}

#footer .footer-menu ul li:not(:last-child) {
    margin-bottom: 0.8rem;
}

#footer .copyright {
    text-align: center;
    font-size: 1.4rem;
    letter-spacing: 0.03em;
    margin-top: 5rem;
}

@media (max-width: 1000px) {
    #footer {
        padding-top: 4rem;
        padding-bottom: 2rem;
    }

    #footer .container {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    #footer .logo img {
        width: 250px;
        margin: 0 auto;
    }

    #footer .company-info {
        text-align: center;
    }

    #footer .footer-menu ul {
        flex-basis: calc(50% - 1rem);
        font-size: 1.3rem;
    }

    #footer .copyright {
        font-size: 1.3rem;
        margin-top: 4rem;
    }
}


/* -------------------------
    [SP] Footer Contact
    ------------------------- */
.footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(3px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.footer-fixed.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
}

.footer-fixed .button-list {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.footer-fixed .button-list li {
    flex-basis: calc(50% - (1rem / 2));
}

.footer-fixed .button {
    padding: 1.5rem 0;
    font-size: 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-fixed .button.mail span {
    background-size: 22px auto;
    padding-left: 2.6rem;
}

.footer-fixed .button.tel span {
    background-size: 23px auto;
    background-position: left center;
    padding-left: 2.4rem;
    font-size: 1.8rem;
    letter-spacing: 0.08em;
    margin-bottom: 0;
}


/* -------------------------
    Main Contents
    ------------------------- */
#hero,
.section {
    scroll-margin-top: var(--header-height);
}

.main {
    min-height: calc(100vh - 200px);
}

.section {
    padding: 9rem 0;
}

@media (max-width: 767px) {
    .section {
        padding: 5rem 0;
    }
}

/* Section Heading */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title .subtitle {
    font-size: 2.0rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1.0;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.section-title h2 {
    display: inline-block;
    color: var(--color-primary);
    font-size: 3.6rem;
    border-bottom: 2px solid var(--color-primary);
    padding: 0 5px;
}

.section-text {
    font-size: 1.6rem;
    line-height: 1.8;
    text-align: center;
}

@media (max-width: 767px) {
    .section-title {
        margin-bottom: 3rem;
    }

    .section-title .subtitle {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .section-title h2 {
        font-size: 3rem;
    }

    .section-text {
        font-size: 1.4rem;
        /* line-height: 1.7; */
    }

    .section-text.sp-textleft {
        text-align: left;
    }
}


label.error {
    color: red;
    margin-top: 2px;
    display: block;
}

