/* ---------------------------------------------
   共通スタイル（PC・SP共有）
---------------------------------------------- */

:root {
    --font-jp: "Shippori Mincho", serif;

    --text: #383838;
    --bg: #fff;
    --muted: #666;
    --container: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 20px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--font-jp);
    color: var(--text);
    background: var(--bg);
    line-height: 1.8;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}



/* animate  */
.animation {
    opacity: 0.0;
    transform: translate(0, 50px);
    transition: all 1000ms;
}

.animation.scrollin {
    opacity: 1;
    transform: translate(0, 0);
}

.animation.scrollin:nth-of-type(2) {
    transition-delay: 0.3s;
}

.animation.scrollin:nth-of-type(3) {
    transition-delay: 0.5s;
}

.animation.scrollin:nth-of-type(4) {
    transition-delay: 0.8s;
}


.animate {
    opacity: 0.0;
    transform: translate(0, 0);
    transition: all 1200ms 1.2s;
}

.animate.scrollin {
    opacity: 1;
    transform: translate(0, 0);
    transition-delay: 0.2s;
}

.animate.scrollin:nth-of-type(2) {
    transition-delay: 0.4s;
}

.animate.scrollin:nth-of-type(3) {
    transition-delay: 0.8s;
}

.animate.scrollin:nth-of-type(4) {
    transition-delay: 1.1s;
}

.animate.scrollin:nth-of-type(5) {
    transition-delay: 1.5s;
}


.anim .fadein {
    opacity: 0;
    animation: fadeIn 1.0s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.anim .fadein:nth-of-type(1) {
    animation: fadeIn 1.0s forwards 0.1s;
}

.anim .fadein:nth-of-type(2) {
    animation: fadeIn 1.0s forwards 0.4s;
}

.anim .fadein:nth-of-type(3) {
    animation: fadeIn 1.0s forwards 0.8s;
}

.anim .fadein:nth-of-type(4) {
    animation: fadeIn 1.0s forwards 1.1s;
}

.anim .fadein:nth-of-type(5) {
    animation: fadeIn 1.0s forwards 1.5s;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}



:root {
    --card-radius: 18px;
    --field-radius: 12px;
    --field-bg: #EBEBEB;
    /* 薄ベージュ */
    --text: #383838;
    --muted: #666;
    --line: rgba(0, 0, 0, .08);
    --pink: #f6c9c9;
    /* ボタン色 */
    --pink-dark: #efb7b7;
}

.contact-form {
    padding: 36px 16px 60px;
    color: var(--text);
}

.contact-form__card {
    max-width: 980px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    box-shadow: 0 12px 20px rgba(0, 0, 0, .08);
    padding: 34px 34px 38px;
}

/* ===== 行レイアウト（PC：左ラベル/右フォーム） ===== */
.form-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    column-gap: 28px;
    align-items: center;
    padding: 14px 0;
}

.form-label {
    font-weight: 400;
    letter-spacing: .02em;
}

.form-field {
    width: 100%;
}

.form-field--inline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.unit {
    font-weight: 400;
    color: var(--text);
}

/* ===== 入力 ===== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
    width: 100%;
    background: var(--field-bg);
    border: 1px solid transparent;
    border-radius: var(--field-radius);
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.4;
    outline: none;
}

textarea {
    min-height: 180px;
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: rgba(0, 0, 0, .18);
    box-shadow: 0 0 0 4px rgba(246, 201, 201, .35);
}

/* 年齢だけ小さめ */
#age {
    width: 120px;
}

/* ===== ラジオ ===== */
.radio-group {
    display: flex;
    gap: 34px;
    flex-wrap: wrap;
}

.radio {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.radio input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-ui {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--field-bg);
    border: 1px solid rgba(0, 0, 0, .12);
    display: inline-block;
    position: relative;
}

.radio input:checked+.radio-ui::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 999px;
    background: #d79b9b;
}

.radio-text {
    font-weight: 400;
}

/* ===== プライバシー ===== */
.privacy {
    margin-top: 26px;
    text-align: center;
}

.privacy__title {
    margin: 18px 0 10px;
    font-size: 22px;
    font-weight: 500;
    text-decoration: underline;
}

.privacy__title a {
    color: inherit;
}

.privacy__text {
    margin: 0 auto 18px;
    max-width: 720px;
    color: var(--text);
    line-height: 1.9;
}

/* チェック */
.check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    margin: 6px 0 20px;
}

.check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.check-ui {
    width: 22px;
    height: 22px;
    border: 1px solid rgba(0, 0, 0, .25);
    background: #fff;
    border-radius: 4px;
    display: inline-block;
    position: relative;
}

.check input:checked+.check-ui::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 8px;
    height: 14px;
    border-right: 2px solid #111;
    border-bottom: 2px solid #111;
    transform: rotate(40deg);
}

.check-text {
    font-weight: 4600;
}

/* 送信ボタン */
.submit-btn {
    width: min(520px, 100%);
    height: 64px;
    border: none;
    border-radius: 999px;
    background: var(--pink);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .12s ease, background .2s ease;
}

.submit-btn:hover {
    background: var(--pink-dark);
}

.submit-btn:active {
    transform: translateY(1px);
}

.submit-btn__icon {
    width: 26px;
    height: 20px;
    position: relative;
}

.submit-btn__icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid rgba(0, 0, 0, .25);
    border-radius: 4px;
}

.submit-btn__icon::after {
    content: "";
    position: absolute;
    left: 3px;
    right: 3px;
    top: 7px;
    height: 0;
    border-top: 2px solid rgba(0, 0, 0, .25);
    transform: skewY(-20deg);
}

.submit-btn.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.submit-btn.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.formTable {
    width: 90%;
    margin: 2em auto;
}
.formTable th {
    padding: 10px;
    border-bottom: solid 1px #FFCECE;
}
.formTable td {
    padding: 5px;
    border-bottom: solid 1px #999;
}

/* ===== SP ===== */
@media (max-width: 767px) {
    .contact-form__card {
        padding: 26px 18px 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
        row-gap: 10px;
        align-items: start;
        padding: 14px 0;
        font-size: 16px;
    }

    .form-label {
        font-size: 16px;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea {
        font-size: 15px;
        padding: 12px 12px;
    }

    #age {
        width: 140px;
    }

    .privacy__title {
        font-size: 24px;
    }

    .privacy__text {
        font-size: 16px;
    }

    .submit-btn {
        height: 74px;
        font-size: 20px;
    }
    .check {
        font-size: 16px;
    }
}

