@charset "UTF-8";

/* ---------------------------------------
   Variables & Reset
--------------------------------------- */
:root {
    /* Color Palette */
    --color-main: #1a3b5c;
    /* Trust Navy */
    --color-accent: #c5a059;
    /* Champagne Gold */
    --color-text: #333333;
    /* Dark Gray */
    --color-text-light: #666666;
    /* Light Gray */
    --color-bg: #ffffff;
    /* White */
    --color-bg-gray: #f9f9f9;
    /* Off White */

    /* Typography */
    --font-base: 'Noto Sans JP', sans-serif;
    --font-serif: 'Noto Serif JP', serif;
}

address {
    font-style: normal;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    color: var(--color-text);
    line-height: 1.8;
    letter-spacing: 0.05em;
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

@media (hover: hover) {
    a:hover {
        opacity: 0.7;
    }
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

ul {
    list-style: none;
}

/* ---------------------------------------
   Common Classes
--------------------------------------- */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

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

.u-sp-only {
    display: none;
}

@media (max-width: 768px) {
    .u-sp-only {
        display: block;
    }

    .u-pc-only {
        display: none;
    }

    .section {
        padding: 60px 0;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 500;
    text-align: center;
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
}

.btn--nav {
    background-color: var(--color-accent);
    color: #fff;
    padding: 8px 20px;
    font-size: 14px;
}

.btn--primary {
    background-color: var(--color-main);
    color: #fff;
    border: 1px solid var(--color-main);
    min-width: 200px;
}

.btn--outline {
    border: 1px solid var(--color-text);
    color: var(--color-text);
    min-width: 180px;
    font-size: 14px;
}

@media (hover: hover) {
    .btn--primary:hover {
        background-color: #fff;
        color: var(--color-main);
    }

    .btn--outline:hover {
        background-color: var(--color-text);
        color: #fff;
    }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header__en {
    display: block;
    color: var(--color-accent);
    font-family: var(--font-serif);
    font-size: 16px;
    margin-bottom: 8px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-header__ja {
    font-size: 28px;
    font-family: var(--font-serif);
    color: var(--color-main);
}

/* ---------------------------------------
   Modal
--------------------------------------- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.modal.is-open {
    display: block;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    padding: 40px;
    opacity: 0;
    animation: modalFadeIn 0.3s forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.modal__close:hover {
    color: #333;
}

.modal__body {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text);
}

.modal__title {
    font-size: 24px;
    font-family: var(--font-serif);
    margin-bottom: 30px;
    text-align: center;
    color: var(--color-main);
}

.modal__body h3 {
    font-size: 16px;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 4px solid var(--color-accent);
    padding-left: 10px;
}

.modal__body p {
    margin-bottom: 15px;
}

.modal__body ol,
.modal__body ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.modal__body li {
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .modal__content {
        padding: 30px 20px;
        width: 95%;
    }

    .modal__title {
        font-size: 20px;
    }
}

/* ---------------------------------------
   Header
--------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* background-color: transparent; */
    /* Initial transparent state */
    background-color: rgba(255, 255, 255, 0.95);
    /* box-shadow: none; */
    /* No shadow initially */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    /* height: 80px; */
    /* Slightly taller initially */
    height: 70px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, height 0.3s ease, box-shadow 0.3s ease;
}

.header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 70px;
    /* Compact on scroll */
}

.header__container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header__logo {
    display: flex;
    align-items: center;
}

.header__logo a {
    display: flex;
    align-items: center;
    height: 40px;
    /* Adjust based on logo aspect ratio and header height */
}

.header__logo img {
    height: 100%;
    width: auto;
    display: block;
}

.header__nav {
    display: block;
}

.header__list {
    display: flex;
    flex-direction: row;
    /* Ensure horizontal */
    align-items: center;
    gap: 30px;
    list-style: none;
    /* Remove bullets */
    margin: 0;
    padding: 0;
}

.header__list li a {
    font-size: 15px;
    font-weight: 500;
    position: relative;
    display: block;
}

.header__list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.header__list li a:hover::after,
.header__list li a.is-active::after {
    transform: scaleX(1);
}

.header__hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1100;
    background: none;
    border: none;
    padding: 0;
}

.header__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-main);
    position: absolute;
    transition: 0.3s;
}

.header__hamburger span:nth-child(1) {
    top: 0;
}

.header__hamburger span:nth-child(2) {
    top: 9px;
}

.header__hamburger span:nth-child(3) {
    top: 18px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--color-main);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s;
    padding: 40px 20px;
}

.mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.mobile-menu__close span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    position: absolute;
    top: 50%;
    left: 0;
    transition: 0.3s;
}

.mobile-menu__close span:nth-child(1) {
    transform: translateY(-50%) rotate(45deg);
}

.mobile-menu__close span:nth-child(2) {
    transform: translateY(-50%) rotate(-45deg);
}

.mobile-menu__close:hover span {
    opacity: 0.7;
}

.mobile-menu__logo {
    margin-bottom: 40px;
    max-width: 200px;
}

.mobile-menu__logo a {
    display: block;
}

.mobile-menu__logo img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

.mobile-menu ul {
    text-align: center;
}

.mobile-menu ul li {
    margin: 20px 0;
}

.mobile-menu ul li a {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

/* Hamburger Active State */
.header.is-active .header__hamburger span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
    background-color: #fff;
}

.header.is-active .header__hamburger span:nth-child(2) {
    opacity: 0;
}

.header.is-active .header__hamburger span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
    background-color: #fff;
}

.header.is-active~.mobile-menu {
    right: 0;
}

@media (max-width: 768px) {
    .header__nav {
        display: none;
    }

    .header__hamburger {
        display: block;
    }
}

/* ---------------------------------------
   Hero
--------------------------------------- */
.hero {
    position: relative;
    height: 90vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Header Height */
    overflow: hidden;
}

.hero__slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero__slide.is-active {
    opacity: 1;
    z-index: 2;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    /* Overlay for readability */
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__content {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    color: #fff;
    background-color: transparent;
    padding: 0;
    z-index: 10;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero__sub {
    font-size: 18px;
    margin-bottom: 30px;
    /* Spacing between sub and title (Left side in vertical-rl) */
    font-weight: 500;
    letter-spacing: 0.2em;
    line-height: 1.8;
    white-space: nowrap;
}

.hero__title {
    font-family: var(--font-serif);
    font-size: 42px;
    line-height: 1.6;
    letter-spacing: 0.15em;
    margin: 0;
    white-space: nowrap;
}

/* Hero Animations */
@keyframes heroZoom {
    0% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1.0);
    }
}

.hero__slide.is-zoom .hero__bg img {
    animation: heroZoom 7s ease-out forwards;
    will-change: transform;
}

/* Hero Text Entrance Animation */
.hero__content>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.hero__slide.is-active .hero__content>* {
    opacity: 1;
    transform: translateY(0);
}

.hero__slide.is-active .hero__sub {
    transition-delay: 0.6s;
}

.hero__slide.is-active .hero__title {
    transition-delay: 1.0s;
}

@media (max-width: 768px) {
    .hero__content {
        right: 5%;
        width: auto;
    }

    .hero__title {
        font-size: 28px;
    }

    .hero__sub {
        font-size: 14px;
        margin-bottom: 20px;
    }

    /* 1枚目のスライド（院長の写真）のみ右寄せにする */
    .hero__slide:first-child .hero__bg img {
        object-position: 82% center;
    }
}

/* iPad specific fixes */
@media (min-width: 769px) and (max-width: 1024px) {

    .os-ipados .hero__content,
    .device-tablet .hero__content {
        writing-mode: horizontal-tb;
        right: auto;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        max-width: 80%;
    }

    .os-ipados .hero__sub,
    .device-tablet .hero__sub {
        margin-bottom: 20px;
        font-size: 16px;
    }

    .os-ipados .hero__title,
    .device-tablet .hero__title {
        font-size: 36px;
        line-height: 1.6;
    }
}

/* Wide screen / Low aspect ratio fixes */
/* Switch to horizontal layout when screen is too wide or too short for vertical text */
@media (max-height: 700px),
(min-aspect-ratio: 16/9) {
    .hero__content {
        writing-mode: horizontal-tb;
        right: auto;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        max-width: 90%;
        padding: 20px;
    }

    .hero__sub {
        margin-bottom: 15px;
        font-size: 16px;
    }

    .hero__title {
        font-size: 32px;
        line-height: 1.5;
    }
}

/* Extra wide screens (ultra-wide monitors) */
@media (min-aspect-ratio: 21/9) {
    .hero__title {
        font-size: 28px;
    }

    .hero__sub {
        font-size: 14px;
    }
}

/* Masked Character Reveal Animation */
.char-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    margin-right: -0.05em;
    /* 文字間隔の微調整 */
}

.char-text {
    display: inline-block;
    transform: translateY(110%);
    /* 完全に隠す */
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    /* Apply solid color instead of gradient */
    color: var(--color-main);
}

/* FOUC prevention: Hide content until JS is ready */
.js-line-reveal {
    visibility: hidden;
}

.js-line-reveal.is-ready {
    visibility: visible;
}

.js-line-reveal.is-visible .char-text {
    transform: translateY(0);
}

/* Stagger delays for characters */
.js-line-reveal.is-visible .char-mask:nth-child(1) .char-text {
    transition-delay: 0.03s;
}

.js-line-reveal.is-visible .char-mask:nth-child(2) .char-text {
    transition-delay: 0.06s;
}

.js-line-reveal.is-visible .char-mask:nth-child(3) .char-text {
    transition-delay: 0.09s;
}

.js-line-reveal.is-visible .char-mask:nth-child(4) .char-text {
    transition-delay: 0.12s;
}

.js-line-reveal.is-visible .char-mask:nth-child(5) .char-text {
    transition-delay: 0.15s;
}

.js-line-reveal.is-visible .char-mask:nth-child(6) .char-text {
    transition-delay: 0.18s;
}

.js-line-reveal.is-visible .char-mask:nth-child(7) .char-text {
    transition-delay: 0.21s;
}

.js-line-reveal.is-visible .char-mask:nth-child(8) .char-text {
    transition-delay: 0.24s;
}

.js-line-reveal.is-visible .char-mask:nth-child(9) .char-text {
    transition-delay: 0.27s;
}

.js-line-reveal.is-visible .char-mask:nth-child(10) .char-text {
    transition-delay: 0.30s;
}

.js-line-reveal.is-visible .char-mask:nth-child(11) .char-text {
    transition-delay: 0.33s;
}

.js-line-reveal.is-visible .char-mask:nth-child(12) .char-text {
    transition-delay: 0.36s;
}

.js-line-reveal.is-visible .char-mask:nth-child(13) .char-text {
    transition-delay: 0.39s;
}

.js-line-reveal.is-visible .char-mask:nth-child(14) .char-text {
    transition-delay: 0.42s;
}

.js-line-reveal.is-visible .char-mask:nth-child(15) .char-text {
    transition-delay: 0.45s;
}

.js-line-reveal.is-visible .char-mask:nth-child(16) .char-text {
    transition-delay: 0.48s;
}

.js-line-reveal.is-visible .char-mask:nth-child(17) .char-text {
    transition-delay: 0.51s;
}

.js-line-reveal.is-visible .char-mask:nth-child(18) .char-text {
    transition-delay: 0.54s;
}

.js-line-reveal.is-visible .char-mask:nth-child(19) .char-text {
    transition-delay: 0.57s;
}

.js-line-reveal.is-visible .char-mask:nth-child(20) .char-text {
    transition-delay: 0.60s;
}

.js-line-reveal.is-visible .char-mask:nth-child(21) .char-text {
    transition-delay: 0.63s;
}

.js-line-reveal.is-visible .char-mask:nth-child(22) .char-text {
    transition-delay: 0.66s;
}

.js-line-reveal.is-visible .char-mask:nth-child(23) .char-text {
    transition-delay: 0.69s;
}

.js-line-reveal.is-visible .char-mask:nth-child(24) .char-text {
    transition-delay: 0.72s;
}

.js-line-reveal.is-visible .char-mask:nth-child(25) .char-text {
    transition-delay: 0.75s;
}

.js-line-reveal.is-visible .char-mask:nth-child(26) .char-text {
    transition-delay: 0.78s;
}

.js-line-reveal.is-visible .char-mask:nth-child(27) .char-text {
    transition-delay: 0.81s;
}

.js-line-reveal.is-visible .char-mask:nth-child(28) .char-text {
    transition-delay: 0.84s;
}

.js-line-reveal.is-visible .char-mask:nth-child(29) .char-text {
    transition-delay: 0.87s;
}

.js-line-reveal.is-visible .char-mask:nth-child(30) .char-text {
    transition-delay: 0.90s;
}

.js-line-reveal.is-visible .char-mask:nth-child(31) .char-text {
    transition-delay: 0.93s;
}

.js-line-reveal.is-visible .char-mask:nth-child(32) .char-text {
    transition-delay: 0.96s;
}

.js-line-reveal.is-visible .char-mask:nth-child(33) .char-text {
    transition-delay: 0.99s;
}

.js-line-reveal.is-visible .char-mask:nth-child(34) .char-text {
    transition-delay: 1.02s;
}

.js-line-reveal.is-visible .char-mask:nth-child(35) .char-text {
    transition-delay: 1.05s;
}

.js-line-reveal.is-visible .char-mask:nth-child(36) .char-text {
    transition-delay: 1.08s;
}

.js-line-reveal.is-visible .char-mask:nth-child(37) .char-text {
    transition-delay: 1.11s;
}

.js-line-reveal.is-visible .char-mask:nth-child(38) .char-text {
    transition-delay: 1.14s;
}

.js-line-reveal.is-visible .char-mask:nth-child(39) .char-text {
    transition-delay: 1.17s;
}

.js-line-reveal.is-visible .char-mask:nth-child(40) .char-text {
    transition-delay: 1.20s;
}

/* Scroll Indicator */
.hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.3s;
    cursor: pointer;
}

.hero__scroll:hover {
    opacity: 1;
}

.hero__scroll-text {
    font-family: var(--font-en);
    font-size: 12px;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    writing-mode: vertical-rl;
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.hero__scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    animation: scrollDown 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scrollDown {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* Recruit Badge */
.hero__recruit-badge {
    position: absolute;
    bottom: 40px;
    right: 40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--color-main);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #fff;
    z-index: 10;
    transition: all 0.3s ease;
    box-sizing: border-box;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.hero__recruit-badge::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 50%;
    border: 2px solid #fff;
    pointer-events: none;
}

@media (hover: hover) {
    .hero__recruit-badge:hover {
        transform: scale(1.1);
        box-shadow: 0 12px 30px rgba(26, 59, 92, 0.5);
        opacity: 1;
        animation: recruitPulse 1.5s ease-in-out infinite;
    }
}

@keyframes recruitPulse {

    0%,
    100% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(1.15);
    }
}

.hero__recruit-badge-text {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1.2;
}

.hero__recruit-badge-divider {
    width: 100%;
    max-width: 4.5em;
    height: 1px;
    background-color: #fff;
    margin: 8px 0;
}

.hero__recruit-badge-sub {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.15em;
    margin-top: 0;
    line-height: 1;
}

@media (max-width: 768px) {
    .hero__recruit-badge {
        width: 90px;
        height: 90px;
        bottom: 20px;
        right: 20px;
    }

    .hero__recruit-badge-text {
        font-size: 14px;
        line-height: 1;
    }

    .hero__recruit-badge-sub {
        font-size: 11px;
    }

    .hero__recruit-badge::before {
        border-width: 1px;
    }
}

/* ---------------------------------------
   Philosophy
--------------------------------------- */
.philosophy {
    background: linear-gradient(135deg, #fdfbf7 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative background element */
.philosophy::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: floatOrb 20s infinite ease-in-out;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-30px, 50px);
    }
}

.philosophy__inner {
    text-align: center;
    position: relative;
    z-index: 1;
}

.philosophy__catch {
    font-size: 32px;
    font-family: var(--font-serif);
    color: var(--color-main);
    margin-bottom: 30px;
    line-height: 1.8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    letter-spacing: 0.05em;
    letter-spacing: 0.05em;
    /* background: linear-gradient(45deg, var(--color-main) 30%, #c5a059 70%); */
    /* -webkit-background-clip: text; */
    /* background-clip: text; */
    /* color: transparent; */
    color: var(--color-main);
    /* Fallback color */
    display: inline-block;
}

.philosophy__lead {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 70px;
    color: var(--color-text);
}

.philosophy__sub-title {
    font-family: var(--font-serif);
    font-size: 26px;
    color: var(--color-accent);
    margin-bottom: 40px;
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
    letter-spacing: 0.1em;
}

.philosophy__sub-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
}

/* Origin */
.philosophy__origin {
    margin-bottom: 80px;
}

.origin__grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.origin__item {
    background: #fff;
    padding: 0;
    /* Remove padding as we center content */
    border-radius: 50%;
    /* Circular shape */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    width: 260px;
    /* Fixed width */
    height: 260px;
    /* Fixed height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Center content vertically */
    border: 1px solid rgba(197, 160, 89, 0.2);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s, opacity 0.6s ease-out;
}

/* Animation Initial State */
.js-stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-stagger-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (hover: hover) {
    .origin__item:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(197, 160, 89, 0.15);
        border-color: var(--color-accent);
    }
}

.origin__en {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

.origin__ja {
    font-size: 15px;
    color: var(--color-text);
    font-weight: 500;
}

/* Vision */
.philosophy__vision {
    margin-bottom: 80px;
}

.philosophy__text-center {
    font-size: 26px;
    line-height: 2;
    font-weight: 700;
    font-family: var(--font-serif);
    color: var(--color-main);
}

/* Credo */
.philosophy__credo {
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    padding: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    border: 1px solid rgba(197, 160, 89, 0.3);
}

/* Decorative frame for Credo */
.philosophy__credo::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(197, 160, 89, 0.2);
    pointer-events: none;
}

.credo__list {
    counter-reset: credo-counter;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px 50px;
    text-align: left;
}

.credo__list li {
    position: relative;
    padding-left: 40px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-text);
}

.credo__list li::before {
    counter-increment: credo-counter;
    content: counter(credo-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background-color: #fff;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    text-align: center;
    line-height: 26px;
    font-size: 14px;
    font-family: var(--font-serif);
}

@media (max-width: 768px) {
    .philosophy__catch {
        font-size: 24px;
    }

    .philosophy__sub-title {
        font-size: 22px;
    }

    .philosophy__text-center {
        font-size: 5.2vw;
        white-space: nowrap;
    }

    .origin__grid {
        flex-direction: column;
        align-items: center;
    }

    .origin__item {
        width: 240px;
        height: 240px;
        max-width: 100%;
    }

    .credo__list {
        grid-template-columns: 1fr;
    }

    .philosophy__credo {
        padding: 40px 20px;
    }

    .philosophy__credo::before {
        top: 6px;
        left: 6px;
        right: 6px;
        bottom: 6px;
    }
}

/* ---------------------------------------
   Message
--------------------------------------- */
.message {
    background-color: #fff;
}

.message__columns {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.message__body {
    flex: 1;
}

.message__catch {
    font-family: var(--font-serif);
    font-size: 32px;
    color: var(--color-main);
    line-height: 1.6;
    margin-bottom: 40px;
    border-left: 5px solid var(--color-accent);
    padding-left: 20px;
}

.message__text p {
    margin-bottom: 24px;
    text-align: justify;
}

.message__sign {
    margin-top: 40px;
    text-align: right;
    font-family: var(--font-serif);
}

.message__name {
    font-size: 24px;
    font-weight: 600;
    margin-left: 10px;
}

.message__signature {
    display: inline-block;
    height: auto;
    max-width: 200px;
    margin-top: 10px;
}

/* Profile Side */
.message__profile {
    width: 350px;
    flex-shrink: 0;
}

.message__portrait {
    margin-bottom: 30px;
    position: relative;
}

.message__portrait::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-accent);
    z-index: 0;
}

.message__portrait img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.profile-data {
    background-color: var(--color-bg-gray);
    padding: 30px;
    font-size: 14px;
}

.profile-data__title {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--color-main);
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.profile-data__list dt {
    font-weight: 700;
    margin-top: 10px;
    color: var(--color-main);
}

.profile-data__list dd {
    margin-bottom: 10px;
    margin-left: 0;
    color: var(--color-text);
    line-height: 1.6;
}

.profile-data__qualifications {
    margin-top: 30px;
}

.profile-data__sub-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-main);
}

.profile-data__qualifications ul {
    list-style: disc;
    padding-left: 20px;
    color: var(--color-text);
}

@media (max-width: 900px) {
    .message__columns {
        flex-direction: column;
        gap: 50px;
    }

    .message__profile {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .message__portrait::after {
        right: -10px;
        top: 10px;
    }
}

@media (max-width: 768px) {
    .message__catch {
        font-size: 24px;
    }
}

/* ---------------------------------------
   Message
--------------------------------------- */
.message {
    background-color: #fff;
}

.message__columns {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.message__body {
    flex: 1;
}

.message__catch {
    font-family: var(--font-serif);
    font-size: 32px;
    color: var(--color-main);
    line-height: 1.6;
    margin-bottom: 40px;
    border-left: 5px solid var(--color-accent);
    padding-left: 20px;
}

.message__text p {
    margin-bottom: 24px;
    text-align: justify;
}

.message__sign {
    margin-top: 40px;
    text-align: right;
    font-family: var(--font-serif);
}

.message__name {
    font-size: 24px;
    font-weight: 600;
    margin-left: 10px;
}

/* Profile Side */
.message__profile {
    width: 350px;
    flex-shrink: 0;
}

.message__portrait {
    margin-bottom: 30px;
    position: relative;
    height: 437px;
    /* Aspect ratio adjustment for placeholder */
}

.message__portrait::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-accent);
    z-index: 0;
}

.message__portrait img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.profile-data {
    background-color: var(--color-bg-gray);
    padding: 30px;
    font-size: 14px;
}

.profile-data__title {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--color-main);
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.profile-data__list dt {
    font-weight: 700;
    margin-top: 10px;
    color: var(--color-main);
}

.profile-data__list dd {
    margin-bottom: 10px;
    margin-left: 0;
    color: var(--color-text);
    line-height: 1.6;
}

.profile-data__qualifications {
    margin-top: 30px;
}

.profile-data__sub-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-main);
}

.profile-data__qualifications ul {
    list-style: disc;
    padding-left: 20px;
    color: var(--color-text);
}

@media (max-width: 900px) {
    .message__columns {
        flex-direction: column;
        gap: 50px;
    }

    .message__profile {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .message__portrait {
        height: auto;
        aspect-ratio: 4/5;
    }

    .message__portrait::after {
        right: -10px;
        top: 10px;
    }
}

@media (max-width: 768px) {
    .message__catch {
        font-size: 24px;
    }
}

/* ---------------------------------------
   Service
--------------------------------------- */
.service-card {
    display: flex;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
    border-radius: 8px;
    overflow: hidden;
}

.service-card:last-child {
    margin-bottom: 0;
}

.service-card__img {
    width: 50%;
}

.service-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card__body {
    width: 50%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.service-card__title {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--color-main);
    margin-bottom: 20px;
    line-height: 1.5;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 10px;
    width: 100%;
}

.service-card__desc {
    font-size: 15px;
    margin-bottom: 30px;
    color: var(--color-text-light);
}

/* Reverse Layout */
.service-card--reverse {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {

    .service-card,
    .service-card--reverse {
        flex-direction: column;
    }

    .service-card__img,
    .service-card__body {
        width: 100%;
    }

    .service-card__body {
        padding: 30px;
    }

    .service-card__title {
        font-size: 20px;
    }
}

/* ---------------------------------------
   Company
--------------------------------------- */
.company__table-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.company__table {
    width: 100%;
    border-collapse: collapse;
}

.company__table th,
.company__table td {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.company__table th {
    width: 30%;
    background-color: #f5f5f5;
    font-weight: 500;
    color: var(--color-main);
}

@media (max-width: 768px) {

    .company__table th,
    .company__table td {
        display: block;
        width: 100%;
        border: none;
    }

    .company__table th {
        padding-bottom: 5px;
        background: none;
        font-size: 14px;
        color: var(--color-accent);
    }

    .company__table td {
        padding-top: 0;
        padding-bottom: 25px;
        border-bottom: 1px solid #eee;
    }
}

/* ---------------------------------------
   News
--------------------------------------- */
.news__list {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 4px;
}

.news__item {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.news__item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news__date {
    color: var(--color-text-light);
    font-size: 14px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .news__item {
        flex-direction: column;
        gap: 5px;
    }
}

/* ---------------------------------------
   Contact
--------------------------------------- */
.contact {
    background-color: var(--color-bg-gray);
}

.contact__lead {
    text-align: center;
    margin-bottom: 40px;
}

/* Contact Form */
.contact__form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-group--center {
    text-align: center;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--color-main);
}

.required-label {
    display: inline-block;
    background: var(--color-main);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 2px;
    margin-left: 8px;
    vertical-align: middle;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    transition: 0.3s;
    appearance: none;
    /* Reset for select */
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--color-text);
    pointer-events: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-main);
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 34, 66, 0.1);
}

/* Privacy Checkbox */
.form-privacy {
    text-align: center;
    margin-bottom: 30px;
}

.form-privacy__label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.form-privacy__label input {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.form-privacy__text a {
    color: var(--color-main);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .form-privacy__text {
        font-size: 3.6vw;
    }
}

/* Disabled Button */
.btn:disabled {
    background-color: #ccc;
    border-color: #ccc;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn:disabled:hover {
    background-color: #ccc;
    color: #fff;
}

/* External Link Icon */
.btn[target="_blank"]::after {
    content: '\f35d';
    /* fa-external-link-alt */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 8px;
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.btn[target="_blank"]:hover::after {
    transform: translate(3px, -3px);
}

/* ---------------------------------------
   Recruit
--------------------------------------- */
.recruit__tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    position: relative;
}

.recruit__tab {
    background: #fff;
    border: 2px solid #e0e0e0;
    color: var(--color-text);
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.recruit__tab::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.recruit__tab.is-active {
    background: var(--color-main);
    color: #fff;
    border-color: var(--color-main);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(26, 59, 92, 0.2);
}

.recruit__tab.is-active::before {
    transform: scaleY(1);
}

@media (hover: hover) {
    .recruit__tab:hover {
        border-color: var(--color-main);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
}

.recruit__panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.recruit__panel.is-active {
    display: block;
}

.recruit__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.job-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.job-card__title {
    font-size: 20px;
    color: var(--color-main);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.job-card__data {
    margin-bottom: 30px;
}

.job-card__row {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px dotted #eee;
    padding-bottom: 15px;
}

.job-card__row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.job-card__row dt {
    width: 80px;
    font-weight: 700;
    flex-shrink: 0;
}

.job-card__row dd {
    flex-grow: 1;
    line-height: 1.6;
}

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

/* No Recruit State */
.no-recruit {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.no-recruit__text {
    margin-bottom: 30px;
    color: var(--color-text);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .recruit__tabs {
        flex-direction: column;
        gap: 12px;
    }

    .recruit__tab {
        width: 100%;
        text-align: left;
        padding: 16px 20px 16px 24px;
        font-size: 15px;
    }

    .recruit__tab::before {
        width: 5px;
    }

    .recruit__tab.is-active {
        box-shadow: 0 6px 16px rgba(26, 59, 92, 0.25);
    }

    .job-card__row {
        flex-direction: column;
    }

    .job-card__row dt {
        margin-bottom: 5px;
        color: var(--color-accent);
    }
}

/* ---------------------------------------
   Footer
--------------------------------------- */
.footer {
    background-color: var(--color-main);
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.footer__logo {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer__links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 14px;
}

.footer__copyright {
    font-size: 12px;
    opacity: 0.7;
}

/* ---------------------------------------
   Access
--------------------------------------- */
.access__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.clinic-info {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.clinic-info__name {
    background-color: #fff;
    color: var(--color-main);
    padding: 15px;
    text-align: center;
    font-size: 18px;
    font-family: var(--font-serif);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-bottom: 2px solid var(--color-accent);
}

.clinic-info__logo {
    height: 40px;
    width: auto;
    display: block;
}

.clinic-info__map iframe {
    display: block;
}

.clinic-info__details {
    padding: 30px;
}

.clinic-info__address {
    font-weight: 500;
    margin-bottom: 10px;
}

.clinic-info__access {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.clinic-info__tel {
    display: inline-block;
    /* Changed from block to inline-block for icon alignment */
    font-size: 24px;
    font-weight: 700;
    color: var(--color-main);
    margin-bottom: 20px;
    font-family: var(--font-serif);
    text-decoration: none;
    pointer-events: none;
    /* Disable click on desktop */
    cursor: default;
}

.clinic-info__tel::before {
    content: '\f3cd';
    /* fa-mobile-screen-button */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 10px;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .clinic-info__tel {
        pointer-events: auto;
        /* Enable click on mobile */
        cursor: pointer;
    }
}

.clinic-info__hours {
    width: 100%;
    margin-bottom: 25px;
    border-collapse: collapse;
    font-size: 14px;
}

.clinic-info__hours th,
.clinic-info__hours td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.clinic-info__hours th {
    width: 30%;
    background-color: #f9f9f9;
    font-weight: 500;
}

.clinic-info__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-direction: column;
    /* justify-content: center; Removed to allow flex-grow to work properly for full width */
}

.clinic-info__actions .btn {
    flex: 1;
    /* Restore to make buttons fill width */
    min-width: auto;
    /* Allow natural width */
    padding-left: 10px;
    padding-right: 10px;
}

.btn--instagram {
    background-color: #C13584;
    /* Instagram Gradient Color fallback */
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn--instagram:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 39, 67, 0.3);
    color: #fff;
}

.btn--instagram img {
    width: 20px;
    height: auto;
    filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
    .access__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .clinic-info__details {
        padding: 20px;
    }

    .clinic-info__actions {
        flex-direction: column;
    }

    .clinic-info__actions .btn {
        width: 100%;
    }
}

/* ---------------------------------------
   Animations (JS-Triggered)
--------------------------------------- */
.js-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.js-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------------
   Page Top Button
--------------------------------------- */
.page-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.page-top:hover {
    transform: translateY(-5px);
    background-color: var(--color-main);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    opacity: 1;
}

.page-top__arrow {
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(-45deg);
    margin-top: 4px;
}

@media (max-width: 768px) {
    .page-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* ---------------------------------------
   Performance Optimization
   --------------------------------------- */
/* Isolate layout recalculations to major containers */
.section,
.header,
.footer {
    contain: layout paint;
}

/* Disable expensive effects during resize */
body.is-resizing {
    pointer-events: none;
}

body.is-resizing * {
    transition: none !important;
    animation: none !important;
}

@media (min-width: 768px) and (max-width: 1000px) {
    /* ----------------------------------------------------
       Responsive Scaling (768px - 1000px)
       Base: 1000px = 100vw conversion
       Calculation: (px / 1000) * 100 = vw
    ---------------------------------------------------- */

    /* Layout & Common */
    .container {
        max-width: 100vw;
        padding: 0 2vw;
    }

    .section {
        padding: 8vw 0;
    }

    .section-header {
        margin-bottom: 6vw;
    }

    .section-header__ja {
        font-size: 2.8vw;
    }

    .section-header__en {
        font-size: 1.6vw;
        margin-bottom: 0.8vw;
    }

    /* Buttons */
    .btn {
        padding: 1.2vw 3vw;
        font-size: 1.6vw;
        /* Assuming base ~16px */
        border-radius: 0.4vw;
    }

    .btn--nav {
        padding: 0.8vw 2vw;
        font-size: 1.4vw;
    }

    .btn--outline,
    .btn--primary {
        min-width: 18vw;
    }

    /* Header */
    .header {
        height: 7vw;
        box-shadow: 0 0.2vw 1vw rgba(0, 0, 0, 0.05);
    }

    .header.is-scrolled {
        height: 7vw;
    }

    .header__container {
        padding: 0 2vw;
    }

    .header__logo a {
        height: 4vw;
    }

    .header__list {
        gap: 3vw;
    }

    .header__list li a {
        font-size: 1.5vw;
    }

    /* Hero */
    .hero {
        min-height: 50vw;
        /* 500px -> 50vw */
        height: 90vh;
        /* Keep vh for height, maybe mix? Let's stick to existing logic but protect constrained dimensions */
    }

    .hero__title {
        font-size: 4.2vw;
    }

    .hero__sub {
        font-size: 1.8vw;
        margin-bottom: 3vw;
    }

    .hero__recruit-badge {
        width: 12vw;
        height: 12vw;
        bottom: 4vw;
        right: 4vw;
    }

    .hero__recruit-badge-text {
        font-size: 1.8vw;
    }

    .hero__recruit-badge-divider {
        margin: 0.8vw 0;
    }

    .hero__recruit-badge-sub {
        font-size: 1.4vw;
    }

    /* Philosophy */
    .philosophy__catch {
        font-size: 3.2vw;
        margin-bottom: 3vw;
    }

    .philosophy__lead {
        font-size: 1.8vw;
        margin-bottom: 7vw;
    }

    .philosophy__sub-title {
        font-size: 2.6vw;
        margin-bottom: 4vw;
        padding-bottom: 1vw;
    }

    .philosophy__sub-title::after {
        width: 6vw;
    }

    .origin__item {
        width: 26vw;
        height: 26vw;
    }

    .origin__en {
        font-size: 2vw;
        margin-bottom: 1.5vw;
    }

    .origin__ja {
        font-size: 1.5vw;
    }

    .philosophy__text-center {
        font-size: 2.6vw;
    }

    .philosophy__credo {
        padding: 6vw;
        max-width: 86vw;
    }

    .credo__list {
        gap: 2.5vw 5vw;
    }

    .credo__list li {
        padding-left: 4vw;
        font-size: 1.6vw;
    }

    .credo__list li::before {
        width: 2.8vw;
        height: 2.8vw;
        line-height: 2.6vw;
        font-size: 1.4vw;
    }

    /* Message */
    .message__columns {
        gap: 6vw;
    }

    .message__catch {
        font-size: 3.2vw;
        margin-bottom: 4vw;
        padding-left: 2vw;
        border-left-width: 0.5vw;
    }

    .message__text {
        font-size: 1.6vw;
        /* Body text scaling */
    }

    .message__name {
        font-size: 2.4vw;
    }

    .message__signature {
        max-width: 20vw;
    }

    .message__profile {
        width: 35vw;
    }

    .profile-data {
        padding: 3vw;
        font-size: 1.4vw;
    }

    .profile-data__title {
        font-size: 1.8vw;
        margin-bottom: 2vw;
    }

    /* Service */
    .service-card {
        margin-bottom: 5vw;
    }

    .service-card__body {
        padding: 5vw;
    }

    .service-card__title {
        font-size: 2.2vw;
        margin-bottom: 2vw;
        padding-bottom: 1vw;
    }

    .service-card__desc {
        font-size: 1.5vw;
        margin-bottom: 3vw;
    }

    /* Company */
    .company__table-wrapper {
        max-width: 80vw;
    }

    .company__table th,
    .company__table td {
        padding: 2vw;
        font-size: 1.6vw;
    }

    /* News */
    .news__list {
        max-width: 80vw;
        padding: 3vw;
    }

    .news__item {
        padding-bottom: 1.5vw;
        margin-bottom: 1.5vw;
        gap: 2vw;
    }

    .news__date {
        font-size: 1.4vw;
    }

    .news__text {
        font-size: 1.6vw;
    }

    /* Recruit */
    .recruit__tabs {
        gap: 2vw;
        margin-bottom: 4vw;
    }

    .recruit__tab {
        padding: 1.4vw 3vw;
        font-size: 1.6vw;
    }

    .job-card {
        padding: 3vw;
    }

    .job-card__title {
        font-size: 2vw;
        margin-bottom: 2vw;
        padding-bottom: 1.5vw;
    }

    .job-card__data {
        margin-bottom: 3vw;
    }

    .job-card__row {
        margin-bottom: 1.5vw;
        padding-bottom: 1.5vw;
    }

    .job-card__row dt {
        width: 8vw;
    }

    .job-card__row dd {
        font-size: 1.6vw;
    }

    /* Contact */
    .contact__lead {
        margin-bottom: 4vw;
        font-size: 1.6vw;
    }

    .contact__form {
        max-width: 60vw;
        padding: 4vw;
    }

    .form-group {
        margin-bottom: 2.5vw;
    }

    .form-group label {
        margin-bottom: 1vw;
        font-size: 1.6vw;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 1.2vw;
        font-size: 1.6vw;
    }

    /* Access */
    .access__grid {
        gap: 4vw;
    }

    .clinic-info__name {
        padding: 1.5vw;
        font-size: 1.8vw;
        gap: 1.5vw;
    }

    .clinic-info__logo {
        height: 4vw;
    }

    .clinic-info__details {
        padding: 3vw;
    }

    .clinic-info__address {
        font-size: 1.6vw;
    }

    .clinic-info__access {
        font-size: 1.4vw;
        margin-bottom: 2vw;
    }

    .clinic-info__tel {
        font-size: 2.4vw;
        margin-bottom: 2vw;
    }

    .clinic-info__hours {
        margin-bottom: 2.5vw;
        font-size: 1.4vw;
    }

    .clinic-info__hours th,
    .clinic-info__hours td {
        padding: 1vw;
    }

    .clinic-info__actions {
        gap: 1vw;
    }

    /* Footer */
    .footer {
        padding: 4vw 2vw;
    }

    .footer__logo {
        font-size: 2vw;
        margin-bottom: 2vw;
    }

    .footer__links {
        gap: 2vw;
        margin-bottom: 3vw;
        font-size: 1.4vw;
    }
}