/* ===================================================
   CSS Custom Properties
=================================================== */
:root {
    --color-bg:          #ffffff;
    --color-bg-cream:    #f7f4ef;
    --color-bg-dark:     #333333;
    --color-text:        #2a2927;
    --color-text-mid:    #666260;
    --color-text-light:  #999390;
    --color-border:      #ddd9d2;
    --color-border-dark: #3e3c3a;

    --font-en:       'Jost', sans-serif;
    --font-ja-serif: 'YuMincho', 'Yu Mincho', '游明朝', 'Zen Old Mincho', serif;
    --font-ja:       'YuMincho', 'Yu Mincho', '游明朝', 'Zen Old Mincho', serif;

    --weight-thin:    100;
    --weight-xlight:  200;
    --weight-light:   300;
    --weight-regular: 400;
    --weight-medium:  500;

    --easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --dur-slow:   0.9s;
    --dur-mid:    0.6s;
    --dur-fast:   0.3s;

    --max-width:  1300px;
    --gutter:     40px;
    --gutter-sp:  24px;

    --header-h:   80px;
    --header-h-sp: 60px;
}

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

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

body {
    font-family: var(--font-en), var(--font-ja), sans-serif;
    font-weight: var(--weight-light);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--weight-regular);
}

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

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

ul, ol {
    list-style: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===================================================
   Layout
=================================================== */
.l-container {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.l-section {
    padding-block: 100px;
}

/* ===================================================
   Typography
=================================================== */
.t-en {
    font-family: var(--font-en);
}

.t-ja-serif {
    font-family: var(--font-ja-serif);
}

.section-label {
    font-family: var(--font-en);
    font-weight: var(--weight-light);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-mid);
}

.section-title-en {
    font-family: var(--font-en);
    font-weight: var(--weight-thin);
    font-size: clamp(28px, 4vw, 48px);
    letter-spacing: 0.04em;
    line-height: 1.15;
}

.section-title-ja {
    font-family: var(--font-ja-serif);
    font-weight: var(--weight-light);
    font-size: clamp(20px, 2.5vw, 28px);
    letter-spacing: 0.08em;
    line-height: 1.6;
}

.body-text {
    font-family: var(--font-ja);
    font-weight: var(--weight-light);
    font-size: 14px;
    line-height: 2;
    letter-spacing: 0.05em;
    color: var(--color-text-mid);
}

/* SP のみ表示する改行 */
.sp-only { display: none; }
@media (max-width: 768px) {
    .sp-only { display: inline; }
}

/* PC のみ表示する改行 */
br.pc-only { display: inline; }
@media (max-width: 768px) {
    br.pc-only {
        display: none !important;
    }
}

/* ===================================================
   Buttons
=================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-ja);
    font-weight: var(--weight-light);
    font-size: 13px;
    letter-spacing: 0.1em;
    padding: 14px 32px;
    border: 1px solid var(--color-text);
    color: var(--color-text);
    background: transparent;
    cursor: pointer;
    transition: background var(--dur-fast) var(--easing),
                color var(--dur-fast) var(--easing);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-text);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-fast) var(--easing);
    z-index: -1;
}

.btn:hover::after {
    transform: scaleX(1);
}

.btn:hover {
    color: #fff;
}

.btn-arrow {
    font-family: 'Jost', sans-serif;
    font-weight: var(--weight-light);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: currentColor;
    transition: opacity var(--dur-fast) var(--easing);
}

.btn-arrow:hover {
    opacity: 0.65;
}

/* 伸びる矢印（横線 + 右端に \ の斜め線） */
.arrow-line {
    display: inline-block;
    position: relative;
    width: 56px;
    height: 16px;
    flex-shrink: 0;
    vertical-align: middle;
    overflow: visible;
    margin-bottom: 14px;
}

/* 横線 */
.arrow-line::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 1px;
    background: currentColor;
    transition: width var(--dur-mid) var(--easing);
}

/* 斜め線（\）：横線の右端から斜め上へ */
.arrow-line::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 10px;
    height: 1px;
    background: currentColor;
    transform-origin: right bottom;
    transform: rotate(40deg);
    transition: right var(--dur-mid) var(--easing);
}

.btn-arrow:hover .arrow-line::before,
.service-card__more:hover .arrow-line::before {
    width: 80px;
}

.btn-arrow:hover .arrow-line::after,
.service-card__more:hover .arrow-line::after {
    right: -24px;
}

/* btn on dark bg */
.btn--light {
    border-color: rgba(255,255,255,0.6);
    color: #fff;
}
.btn--light::after {
    background: #fff;
}
.btn--light:hover {
    color: #333333;
}

/* ===================================================
   Divider line
=================================================== */
.l-divider {
    width: 40px;
    height: 1px;
    background: var(--color-border);
    margin-block: 24px;
}

/* ===================================================
   Video Modal
=================================================== */
.video-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--dur-mid) var(--easing);
    padding: 20px;
}

.video-modal-overlay.is-open {
    opacity: 1;
}

.video-modal {
    position: relative;
    width: 100%;
    max-width: 900px;
}

.video-modal__close {
    position: absolute;
    top: -44px;
    right: 0;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--dur-fast) var(--easing);
}

.video-modal__close:hover {
    opacity: 1;
}

.video-modal__wrap {
    position: relative;
    padding-bottom: 56.25%;
}

.video-modal__wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ===================================================
   Page Inner (non-hero pages)
=================================================== */
.page-inner {
    padding-top: var(--header-h);
}

/* ===================================================
   Responsive
=================================================== */
@media (max-width: 768px) {
    :root {
        --gutter: var(--gutter-sp);
    }

    .l-section {
        padding-block: 64px;
    }
}
