body {
    font-family: "Segoe UI", "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 40px;
    background-color: #FAF8F3;
    color: #464640;
}
header {
    text-align: center;
    padding: 30px 20px;
    border-bottom: 1px solid #ddd;
}

header h1 {
    margin: 0 0 6px;
    font-size: 31px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.subtitle {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.03em;
    color: #667064;
}

nav {
    margin-top: 30px;
}

nav a {
    margin: 0 12px;
    text-decoration: none;
    color: #464640;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #7F897C;
}

nav a.active {
    position: relative;
    color: #596653;
    font-weight: 600;
    border-bottom: none;
    padding-bottom: 7px;
}

nav a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 28px;
    height: 2px;
    transform: translateX(-50%);
    background-color: #AAB5A5;
    border-radius: 10px;
}
.hero img {
    width: 100%;
    height: auto;
    display: block;
}
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 20px;
}
.services-overview {
    margin-top: 60px;
    padding: 45px 40px;
    background-color: #F0EBE5;
}

.service-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 25px;
}
.service-links a {
    display: block;
    padding: 17px 24px;
    border: 1px solid #D8D2CA;
    background-color: rgba(250, 248, 243, 0.25);
    text-decoration: none;
    color: #464640;
    text-align: left;
    border-radius: 2px;
    transition: background-color 0.25s ease,
                border-color 0.25s ease;
}

.service-links a:hover {
    background-color: #EEF1EB;
    border-color: #C8CEC4;
}
.contact-cta {
    margin-top: 45px;
    margin-bottom: 45px;
    padding: 38px 20px;
    text-align: center;
    border-top: 1px solid #D8D2CA;
    border-bottom: 1px solid #D8D2CA;
}

.contact-cta a {
    display: inline-block;
    margin-top: 18px;
    padding: 12px 32px;
    border: 1px solid #9AA294;
    border-radius: 3px;
    text-decoration: none;
    color: #4F594D;
    background-color: rgba(250, 248, 243, 0.5);
    transition: background-color 0.25s ease,
                border-color 0.25s ease;
}

.contact-cta a:hover {
    background-color: #EEF1EB;
    border-color: #7F897C;
}
.about-maruta {
    margin-top: 70px;
    margin-bottom: 0;
    max-width: 880px;
}
.about-maruta h2 {
    font-size: 23px;
    font-weight: 600;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 28px;
    letter-spacing: 0.02em;
}
.about-maruta p {
    font-size: 16px;
    line-height: 2;
    margin-bottom: 18px;
}
.profile-page h3 {
    margin-top: 40px;
    margin-bottom: 15px;
}

.profile-page h4 {
    margin-top: 25px;
    margin-bottom: 10px;
}

.profile-page ul {
    line-height: 2;
}

.career p {
    margin-bottom: 25px;
}
.profile-page {
    max-width: 850px;
    margin: 0 auto;
}
/* カウンセラー紹介：プロフィール写真 */

.profile-intro {
    display: grid;
    grid-template-columns: 1fr 230px;
    gap: 55px;
    align-items: start;
}

.profile-photo-wrap {
    padding-top: 30px;
}

.profile-photo {
    display: block;
    width: 100%;
    height: auto;
}
/* サービスページ：水彩イラスト */

.services-illustration {
    max-width: 480px;
    margin: 45px auto 10px;
}

.services-illustration-image {
    display: block;
    width: 100%;
    height: auto;
}
/* 精神力動的心理療法ページ：水彩イラスト */

.psychodynamic-illustration {
    max-width: 650px;
    margin: 60px auto 65px;
}

.psychodynamic-illustration-image {
    display: block;
    width: 100%;
    height: auto;
}
/* 成人の方のご相談ページ：水彩イラスト */

.adult-illustration {
    max-width: 360px;
    margin: 35px auto 35px;
}

.adult-illustration-image {
    display: block;
    width: 100%;
    height: auto;
}
/* 子ども・思春期の方のご相談ページ：水彩イラスト */

.child-illustration {
    max-width: 380px;
    margin: 38px auto 42px;
}

.child-illustration-image {
    display: block;
    width: 100%;
    height: auto;
}
/* 親子でのご相談ページ：水彩イラスト */
.parent-child-illustration {
    max-width: 500px;
    margin: 42px auto 35px;
}

.parent-child-illustration-image {
    display: block;
    width: 100%;
    height: auto;
}
/* カップルでのご相談ページ：水彩イラスト */
.couples-illustration {
    max-width: 450px;
    margin: 45px auto 38px;
}

.couples-illustration-image {
    display: block;
    width: 100%;
    height: auto;
}
/* 学校・企業・関係機関ページ：水彩イラスト */
.organisations-illustration {
    max-width: 420px;
    margin: 45px auto 10px;
}

.organisations-illustration-image {
    display: block;
    width: 100%;
    height: auto;
}
/* 専門職の方へページ：水彩イラスト */
.professionals-illustration {
    max-width: 420px;
    margin: 45px auto 40px;
}

.professionals-illustration-image {
    display: block;
    width: 100%;
    height: auto;
}

.service-detail details {
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.service-detail summary {
    padding: 16px 20px;
    background-color: #f5f5f2;
    cursor: pointer;
    font-weight: 600;
}

.service-detail details p {
    margin: 0;
    padding: 18px 20px;
}

/* フォーム内の小見出し */
.form-subheading {
    margin-top: 30px;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid #D8D2CA;
    font-size: 16px;
    font-weight: 600;
    color: #464640;
}
.contact-form {
    margin-top: 35px;
}
.contact-form p {
    margin-bottom: 22px;
}

.contact-form label {
    font-weight: 600;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="number"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form fieldset {
    margin: 25px 0;
    padding: 18px 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.contact-form legend {
    font-weight: 600;
    padding: 0 8px;
}

.consent-check {
    margin-top: 30px;
    padding: 18px;
    background-color: #f5f5f2;
    border-radius: 6px;
}

.contact-form button {
    padding: 12px 28px;
    border: 1px solid #bbb;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}
.online-checklist {
    margin-top: 25px;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    cursor: pointer;
}

.check-item input[type="checkbox"] {
    appearance: none;
    width: 26px;
    height: 26px;
    margin-top: 3px;
    flex-shrink: 0;
    border: 2px solid #999;
    border-radius: 50%;
    cursor: pointer;
}

.check-item input[type="checkbox"]:checked {
    position: relative;
}

.check-item input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -55%);
    font-size: 19px;
    font-weight: bold;
}

.check-item span {
    flex: 1;
}

.checklist-note {
    margin-top: 30px;
    padding: 18px 20px;
    background-color: #f5f5f2;
    border-radius: 6px;
}
/* Psychodynamic page */

.article-page {
    max-width: 880px;
    padding-top: 65px;
    padding-bottom: 100px;
}

.article-page article {
    font-size: 16px;
    line-height: 2;
}

.article-page h2 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 28px;
}

.article-page p {
    margin-top: 0;
    margin-bottom: 26px;
}

.article-page h2:not(:first-child) {
    margin-top: 80px;
}


/* Smartphone */

@media (max-width: 768px) {

    body {
        padding: 20px;
    }

    .article-page {
        padding: 40px 5px 70px;
    }

    .article-page article {
        font-size: 15px;
        line-height: 1.9;
    }

    .article-page h2 {
        font-size: 21px;
        margin-bottom: 30px;
    }

    .article-page h2:not(:first-child) {
        margin-top: 60px;
    }

    .article-page p {
        margin-bottom: 23px;
    }
}
.more-link {
    margin-top: 22px;
    margin-bottom: 22px;
}

.more-link a {
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #ccc;
    padding-bottom: 3px;
}

.more-link a:hover {
    border-bottom-color: #333;
}
.article-page .contact-cta {
    margin-top: 60px;
    margin-bottom: 60px;
}

.article-page .contact-cta h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    line-height: 1.8;
}
.more-link a {
    color: #667064;
    border-bottom-color: #C9CEC5;
}

.more-link a:hover {
    color: #4F594D;
    border-bottom-color: #8F998C;
}
.hero-image {
    position: relative;
    margin-bottom: 20px;
}
.hero-message {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 49%;
    z-index: 2;
    color: #3F413D;

    background: rgba(248, 246, 240, 0.76);
    padding: 18px 28px;
    box-sizing: border-box;
}
.hero-message h2 {
    margin: 0 0 20px;
    font-size: 25px;
    line-height: 1.65;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.hero-message .hero-service {
    margin: 12px 0 5px;
    font-size: 17px;
    line-height: 1.7;
    font-weight: 500;
}

.hero-message .hero-language {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    font-weight: 500;
    color: #3F413D;
}

.hero > p {
    font-size: 17px;
    line-height: 2;
    margin-top: 0;
    margin-bottom: 18px;
}
.booking-flow {
    margin-top: 55px;
    margin-bottom: 65px;
    padding: 38px 42px 18px;
    background-color: #F5F1EB;
}

.booking-flow > h2 {
    margin-bottom: 35px;
}

.flow-item {
    position: relative;
    display: grid;
    grid-template-columns: 42px 1fr;
    padding-bottom: 32px;
}

.flow-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 30px;
    bottom: 0;
    width: 1px;
    background-color: #C9CEC5;
}

.flow-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #9AA294;
    border-radius: 50%;
    color: #667064;
    font-size: 13px;
    line-height: 1;
    box-sizing: border-box;
}

.flow-item h3 {
    margin: 1px 0 10px;
    font-size: 16px;
    font-weight: 600;
}

.flow-item p {
    margin: 0 0 10px;
}
.site-footer {
    margin-top: 20px;
    padding: 45px 40px 26px;
    background-color: #F0EBE5;
    color: #464640;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 55px;
}

.footer-column h3 {
    margin: 0 0 20px;
    font-size: 15px;
    font-weight: 600;
}

.footer-column a {
    display: block;
    margin-bottom: 11px;
    color: #555750;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.7;
}

.footer-column a:hover {
    color: #4F594D;
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1000px;
    margin: 35px auto 0;
    padding-top: 28px;
    border-top: 1px solid #D8D2CA;
    text-align: center;
}

.footer-name {
    margin: 0 0 3px;
    font-size: 15px;
    font-weight: 600;
}

.footer-english {
    margin: 0 0 18px;
    font-size: 11px;
    color: #73756F;
}

.copyright {
    margin: 0;
    font-size: 11px;
    color: #777872;
}
.site-footer a,
.site-footer a:visited {
    text-decoration: none;
    color: #464640;
    transition: color 0.25s ease;
}

.site-footer a:hover,
.site-footer a:focus {
    text-decoration: none;
    color: #7A8974;
}
/* 本文中のテキストリンク */
main a:not(.service-links a):not(.contact-cta a):not(.form-navigation-link) {
    color: #667064;
    text-decoration: none;
    border-bottom: 1px solid #C9CEC5;
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

main a:not(.service-links a):not(.contact-cta a):not(.form-navigation-link):visited {
    color: #667064;
}

main a:not(.service-links a):not(.contact-cta a):not(.form-navigation-link):hover,
main a:not(.service-links a):not(.contact-cta a):not(.form-navigation-link):focus {
    color: #4F594D;
    border-bottom-color: #8F998C;
}
/* 予約フォームとお問い合わせフォームの区切り */
.form-section + .form-section {
  margin-top: 60px;
  padding-top: 45px;
  border-top: 1px solid #B8B2AA;
}

/* 確認画面では区切り線と余白を消す */
.service-detail.is-confirming .form-section {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* 確認画面の上部の余白を調整 */
.service-detail.is-confirming .form-confirmation {
  margin-top: 0;
}
/* 確認画面の見出し */
.service-detail.is-confirming .form-confirmation h3 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 22px;
}

/* 確認画面ではページ上部の余白を小さくする */
main:has(.service-detail.is-confirming) {
  padding-top: 10px;
}

/* フォーム入力内容確認画面 */

.form-confirmation {
    margin-top: 35px;
}

.form-confirmation h3 {
    margin-bottom: 25px;
}

.confirmation-list {
    margin-top: 35px;
    margin-bottom: 35px;
    border-top: 1px solid #D8D2CA;
}

.confirmation-list > div {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 25px;
    padding: 18px 5px;
    border-bottom: 1px solid #D8D2CA;
}

.confirmation-list dt {
    font-weight: 600;
}

.confirmation-list dd {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.confirmation-notice {
    margin-top: 30px;
    padding: 20px 22px;
    background-color: #F0EBE5;
    line-height: 1.9;
}

.confirmation-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.confirmation-buttons button {
    padding: 12px 22px;
    font: inherit;
    cursor: pointer;
}


/* スマートフォン */

@media (max-width: 768px) {

    .confirmation-list > div {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .confirmation-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* ヘッダーのロゴ */

.site-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
}

.site-logo {
    width: 78px;
    height: 78px;
    object-fit: contain;
}

.site-brand-text h1 {
    margin: 0;
}

.site-brand-text .subtitle {
    margin-top: 6px;
    margin-bottom: 0;
}
.footer-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: contain;
    flex-shrink: 0;
    margin-bottom: 0;
}

.footer-brand-text {
    text-align: left;
}
/* ご予約・お問い合わせフォームへの案内リンク */

.form-navigation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px 0 36px;
}

.form-navigation-link {
    display: block;
    padding: 17px 24px;
    border: 1px solid #D8D2CA;
    background-color: rgba(250, 248, 243, 0.25);
    text-decoration: none;
    color: #464640;
    text-align: left;
    border-radius: 2px;
    font-weight: 400;
    line-height: inherit;

    transition: background-color 0.25s ease,
                border-color 0.25s ease;
}

.form-navigation-link:hover,
.form-navigation-link:focus-visible {
    background-color: #EEF1EB;
    border-color: #C8CEC4;
}

/* リンク先への移動位置 */

#booking-section,
#enquiry-section {
    scroll-margin-top: 30px;
}

/* スマートフォン */

@media (max-width: 600px) {
    .form-navigation {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
/* 確認画面で非表示にする要素 */
[hidden] {
  display: none !important;
}