/*
このファイルでは、色・余白・レイアウト・文字サイズを調整します。
- サイト全体の色や書体を変える: :root を編集
- セクションごとの見た目を変える: 各見出しコメントの位置を編集
- 文章やリンク先を変える: index.html を編集
- 動きを変える: assets/js/script.js を編集
*/

:root {
    /* サイト全体の色です */
    --bg-main: #f5f5f5;
    --bg-soft: #ececec;
    --bg-card: rgba(255, 252, 247, 0.82);
    --bg-card-strong: rgba(255, 255, 255, 0.9);
    --bg-dark: #1f1a16;
    --text-main: #1d1a17;
    --text-soft: #675f58;
    --text-light: #f8f2ea;
    --line: rgba(29, 26, 23, 0.12);
    --line-strong: rgba(29, 26, 23, 0.22);
    --accent: #ba7450;
    --accent-soft: #d8b8a5;
    --accent-cool: #d9e0e9;

    /* 影や背景装飾の強さです */
    --shadow-soft: 0 24px 70px rgba(51, 38, 28, 0.08);
    --shadow-strong: 0 32px 90px rgba(33, 24, 19, 0.14);
    --section-plane-inset: clamp(2rem, 4vw, 3rem);
    --section-plane-offset: clamp(10rem, 14vw, 16rem);

    /* 角丸や固定ヘッダー分の余白です */
    --radius-lg: 34px;
    --radius-md: 24px;
    --radius-sm: 18px;
    --header-offset: 110px;

    /* サイト全体の書体です */
    --font-display: "Cormorant Garamond", serif;
    --font-serif: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
    --font-sans: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
}

/* 全体の基本設定です */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    margin: 0;
    min-width: 320px;
    position: relative;
    font-family: var(--font-sans);
    font-weight: 400;
    color: var(--text-main);
    line-height: 1.85;
    letter-spacing: 0.03em;
    background: var(--bg-main);
    overflow-x: hidden;
    width: 100%;
}

body.menu-open {
    overflow: hidden;
}

.site-header,
main,
.site-footer {
    position: relative;
    z-index: 2;
}

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

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

[id] {
    scroll-margin-top: var(--header-offset);
}

/* 共通レイアウトと共通文字設定です */
.site-shell {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

main > .content-section > .site-shell {
    width: min(1120px, calc(100% - 64px));
}

.section-feature > .site-shell {
    width: min(1240px, calc(100% - 48px));
}

[data-reveal] {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.eyebrow,
.section-index,
.card-meta,
.stack-label,
.aside-label,
.item-link,
.hero-vertical-note,
.footer-meta {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 400;
}

.section-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-index {
    margin: 0 0 1rem;
    font-size: 0.78rem;
    color: var(--text-soft);
}

.section-index-light {
    color: rgba(248, 242, 234, 0.72);
}

.section-head h2,
.detail-copy h2,
.action-copy h2 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.85rem, 3.7vw, 3.05rem);
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0.05em;
}

.hero-lead,
.feature-copy p,
.content-card p,
.item-copy p,
.stack-copy p,
.detail-copy p,
.detail-card p,
.action-copy p,
.footer-copy {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.94rem;
    font-weight: 300;
    letter-spacing: 0.04em;
}

.content-section {
    position: relative;
    padding: clamp(4.5rem, 7vw, 6rem) 0;
    isolation: isolate;
}

.section-word {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    font-family: var(--font-display);
    font-size: clamp(4rem, 11vw, 8rem);
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    transform: translate3d(0, var(--parallax-y, 0px), 0);
    will-change: transform;
}

.section-word-left,
.section-word-right,
.section-word-edge {
    top: -0.4rem;
    writing-mode: vertical-rl;
    font-size: clamp(5.2rem, 11vw, 9.8rem);
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.84);
}

.section-word-left {
    left: max(8px, calc(50% - 790px));
}

.section-word-right,
.section-word-edge {
    right: max(8px, calc(50% - 790px));
    left: auto;
}

/* ボタンと画像枠の見た目です */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.button:hover,
.button:focus-visible,
.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible,
.item-link:hover,
.item-link:focus-visible {
    transform: translateY(-2px);
}

.button-dark {
    background: var(--bg-dark);
    color: var(--text-light);
    box-shadow: 0 18px 32px rgba(31, 26, 22, 0.16);
}

.button-light {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--text-main);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.button-ivory {
    background: #fff9f3;
    color: var(--bg-dark);
}

.media-placeholder {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    border: 1px dashed rgba(29, 26, 23, 0.18);
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.75), transparent 35%),
        linear-gradient(135deg, #ece3d9 0%, #dfe5ee 55%, #e8ddd0 100%);
    color: var(--text-soft);
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.media-placeholder::before,
.media-placeholder::after {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 22px;
    pointer-events: none;
}

.media-placeholder::before {
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.media-placeholder::after {
    inset: auto;
    width: 120%;
    height: 1px;
    background: rgba(255, 255, 255, 0.42);
    transform: rotate(-17deg);
}

.media-placeholder span {
    position: relative;
    z-index: 1;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.media-placeholder small {
    position: relative;
    z-index: 1;
    font-size: 0.74rem;
    letter-spacing: 0.1em;
}

.media-photo {
    display: block;
    gap: 0;
    border: none;
    background: #ddd4ca;
    box-shadow: none;
}

.media-photo::before,
.media-photo::after {
    display: none;
}

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

.media-portrait {
    aspect-ratio: 4 / 5;
    min-height: clamp(380px, 42vw, 540px);
}

.media-feature {
    aspect-ratio: 16 / 10;
    min-height: clamp(420px, 44vw, 640px);
}

.media-card {
    aspect-ratio: 4 / 5;
}

.media-wide {
    aspect-ratio: 16 / 10;
}

/* ヘッダーとメニューの見た目です */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 120;
    padding: 20px 0;
    transition: padding 0.3s ease;
}

.site-header.is-scrolled {
    padding: 12px 0;
}

.header-frame {
    position: relative;
    z-index: 120;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.2rem 2rem;
    align-items: center;
    padding: 0.95rem 1.2rem 0.95rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 251, 246, 0.58);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 40px rgba(59, 47, 36, 0.08);
    transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

body:not(.is-ready) .header-frame {
    opacity: 0;
    transform: translateY(-18px);
}

.brand {
    display: inline-flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: max-content;
}

.brand-mark {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.45rem;
    line-height: 1;
    letter-spacing: 0.12em;
}

.desktop-nav {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 2.2vw, 2.2rem);
}

.desktop-nav a,
.footer-nav a {
    position: relative;
    font-size: 0.82rem;
    color: var(--text-main);
    font-weight: 400;
    letter-spacing: 0.06em;
}

.desktop-nav a::after,
.footer-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after,
.footer-nav a:hover::after,
.footer-nav a:focus-visible::after {
    transform: scaleX(1);
}

.desktop-nav a.is-current,
.footer-nav a.is-current,
.mobile-nav-inner a.is-current {
    color: var(--accent);
}

.desktop-nav a.is-current::after,
.footer-nav a.is-current::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    position: relative;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.menu-toggle span {
    position: absolute;
    left: 12px;
    width: 22px;
    height: 1.5px;
    background: var(--text-main);
    transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease, background-color 0.3s ease;
}

.menu-toggle span:nth-child(1) {
    top: 16px;
}

.menu-toggle span:nth-child(2) {
    top: 22px;
}

.menu-toggle span:nth-child(3) {
    top: 28px;
}

.menu-toggle.is-active span:nth-child(1) {
    top: 22px;
    transform: rotate(45deg);
}

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

.menu-toggle.is-active span:nth-child(3) {
    top: 22px;
    transform: rotate(-45deg);
}

.menu-toggle.is-active {
    background: var(--bg-dark);
}

.menu-toggle.is-active span {
    background: var(--text-light);
}

.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: grid;
    place-items: center;
    padding: 120px 24px 40px;
    background: rgba(249, 245, 239, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    text-align: center;
}

.mobile-nav-inner a {
    font-family: var(--font-sans);
    font-size: 2rem;
    letter-spacing: 0.08em;
    font-weight: 400;
}

/* 1画面目の見た目です */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding: calc(var(--header-offset) + clamp(0.9rem, 2vw, 1.6rem)) 0 clamp(2.4rem, 3vw, 3.2rem);
    overflow: hidden;
}

.hero-layout {
    width: min(1240px, calc(100% - 64px));
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.92fr);
    gap: clamp(1.6rem, 3vw, 3.4rem);
    min-height: calc(100svh - var(--header-offset) - clamp(2.4rem, 4vw, 3.4rem));
    align-items: center;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 38rem;
}

.eyebrow {
    margin: 0 0 1.2rem;
    color: var(--text-soft);
    font-size: 0.82rem;
}

.hero-copy h1 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 5vw, 5.05rem);
    font-weight: 400;
    line-height: 1.18;
    letter-spacing: 0.04em;
}

.hero-lead {
    max-width: 35rem;
    margin-top: 1.25rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.8rem;
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: clamp(470px, 39vw, 590px);
}

.hero-frame {
    position: relative;
    width: min(100%, 540px);
    margin-left: auto;
    padding: 19px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-strong);
    transform: perspective(1600px) rotateX(var(--hero-tilt-x, 0deg)) rotateY(var(--hero-tilt-y, 0deg));
    transform-style: preserve-3d;
    will-change: transform;
}

.hero-frame .media-portrait {
    min-height: clamp(360px, 39vw, 500px);
}

.hero-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 44%);
    pointer-events: none;
    opacity: 0.8;
}

.aside-label {
    margin: 0 0 0.7rem;
    font-size: 0.7rem;
    color: var(--accent);
}

.hero-vertical-note {
    position: absolute;
    top: 64px;
    right: -0.9rem;
    display: flex;
    gap: 0.7rem;
    writing-mode: vertical-rl;
    font-size: 0.72rem;
    color: var(--text-soft);
}

.hero-divider {
    position: relative;
    z-index: 2;
    height: clamp(4rem, 6vw, 6rem);
}

.hero-word {
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 2;
    transform: translate3d(-50%, calc(-50% + var(--hero-word-y, 0px)), 0);
    font-family: var(--font-display);
    font-size: clamp(4.4rem, 13vw, 10.5rem);
    line-height: 0.9;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.68);
    white-space: nowrap;
    pointer-events: none;
    will-change: transform;
    transition: opacity 0.8s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-scroll {
    position: absolute;
    right: clamp(18px, 4vw, 42px);
    bottom: 1rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

body:not(.is-ready) .hero-word {
    opacity: 0;
    transform: translate3d(-50%, calc(-50% + var(--hero-word-y, 0px) + 28px), 0);
}

body:not(.is-ready) .hero-scroll {
    opacity: 0;
    transform: translateY(18px);
}

.hero-scroll span {
    writing-mode: vertical-rl;
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    color: var(--text-soft);
}

.hero-scroll i {
    display: block;
    width: 1px;
    height: 72px;
    background: rgba(29, 26, 23, 0.14);
    position: relative;
    overflow: hidden;
}

.hero-scroll i::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: translateY(-100%);
    animation: scroll-line 2.2s ease-in-out infinite;
}

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

/* Section 1 の見た目です */
.feature-layout {
    position: relative;
    z-index: 1;
    min-height: clamp(640px, 48vw, 760px);
    padding-top: clamp(1rem, 3vw, 2.4rem);
}

.feature-visual {
    position: relative;
    width: min(72%, 980px);
}

.feature-copy {
    position: absolute;
    top: clamp(7rem, 10vw, 9.2rem);
    right: clamp(3.4rem, 7vw, 7.8rem);
    z-index: 2;
    width: min(40vw, 610px);
    min-height: clamp(490px, 37vw, 590px);
    padding: clamp(2rem, 3.6vw, 3rem) clamp(0.9rem, 1.5vw, 1.4rem) clamp(5rem, 7vw, 6.4rem) clamp(2rem, 3.6vw, 3rem);
    background: var(--bg-main);
    display: grid;
    align-content: start;
    gap: 1.1rem;
}

.feature-copy .section-index {
    margin: 0 0 0.45rem;
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.18em;
}

.feature-copy .feature-lead {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 1.9vw, 1.65rem);
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.05em;
}

.feature-copy > p:not(.section-index):not(.feature-lead) {
    font-size: 0.92rem;
    line-height: 1.95;
}

/* Section 2 から Section 5 に使う白い背景帯です */
.section-card-grid::before,
.section-item-list::before,
.section-media-stack::before,
.section-detail-grid::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: var(--section-plane-inset);
    bottom: var(--section-plane-inset);
    background: #ffffff;
    pointer-events: none;
}

.section-card-grid::before,
.section-media-stack::before {
    left: var(--section-plane-offset);
    right: 0;
}

.section-item-list::before,
.section-detail-grid::before {
    left: 0;
    right: var(--section-plane-offset);
}

/* Section 2 のカード一覧です */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
}

.content-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 100%;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: transform 0.35s ease;
}

.content-card:hover {
    transform: translateY(-8px);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.64rem;
    color: var(--text-soft);
}

.content-card h3,
.item-copy h3,
.stack-copy h3,
.detail-card h3 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.18rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.04em;
}

/* Section 3 の縦並び項目です */
.section-item-list {
    background: transparent;
}

.item-list {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: transparent;
    overflow: hidden;
}

.item-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 1.25rem 1.7rem;
    align-items: start;
    padding: 1.75rem clamp(1.2rem, 3vw, 2.3rem);
    border-bottom: 1px solid var(--line);
}

.item-row:last-child {
    border-bottom: none;
}

.item-index {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.7rem, 5vw, 4.4rem);
    line-height: 0.9;
}

.item-copy {
    display: grid;
    gap: 0.65rem;
}

.item-link {
    align-self: center;
    font-size: 0.72rem;
    color: var(--text-main);
    padding-bottom: 0.2rem;
    border-bottom: 1px solid currentColor;
}

/* Section 4 の画像と本文ブロックです */
.media-stack {
    display: grid;
    gap: 1.3rem;
}

.stack-row {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1.3rem;
    align-items: center;
    padding: 1.55rem 0;
    border-top: 1px solid var(--line);
    background: transparent;
}

.stack-row:last-child {
    border-bottom: 1px solid var(--line);
}

.stack-row-reverse .stack-visual {
    order: 2;
}

.stack-row-reverse .stack-copy {
    order: 1;
}

.stack-copy {
    display: grid;
    gap: 0.75rem;
    padding: clamp(0.65rem, 1.4vw, 1.25rem);
}

.stack-label {
    margin: 0;
    font-size: 0.64rem;
    color: var(--accent);
}

/* Section 5 の補足文とカードです */
.section-detail-grid {
    background: transparent;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.68fr) minmax(0, 1.22fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
}

.detail-copy {
    display: grid;
    gap: 1rem;
}

.detail-note {
    padding: 1.25rem 1.2rem;
    border-left: 2px solid var(--accent);
    background: transparent;
    border-radius: 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.detail-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.8rem;
    min-height: 0;
    padding: 0 0 1.15rem;
    border-bottom: 1px solid var(--line);
    background: transparent;
    box-shadow: none;
}

.detail-value {
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4.6vw, 3.9rem);
    line-height: 0.9;
}

/* Section 6 の連絡用エリアです */
.section-action-panel {
    padding-bottom: clamp(4.5rem, 8vw, 6rem);
}

.action-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(260px, 0.82fr);
    gap: clamp(1.2rem, 3vw, 2.2rem);
    width: min(100%, 900px);
    margin: 0 auto;
    padding: clamp(1.45rem, 3vw, 2.4rem);
    border-radius: 34px;
    overflow: hidden;
    border: 1px solid rgba(29, 26, 23, 0.08);
    background:
        radial-gradient(circle at top right, rgba(216, 184, 165, 0.22) 0%, rgba(216, 184, 165, 0) 26%),
        linear-gradient(180deg, #fffefc 0%, #f7f3ed 100%);
    box-shadow: 0 18px 52px rgba(31, 26, 22, 0.08);
}

.action-panel::before,
.action-panel::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.action-panel::before {
    width: 140px;
    height: 140px;
    top: -42px;
    right: -18px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(248, 231, 220, 0.88) 0%, rgba(248, 231, 220, 0.18) 100%);
    transform: rotate(12deg);
}

.action-panel::after {
    width: 120px;
    height: 120px;
    bottom: -26px;
    left: -24px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(221, 229, 238, 0.55) 0%, rgba(221, 229, 238, 0.08) 72%);
}

.action-copy {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: start;
    gap: 1rem;
}

.action-copy h2,
.action-copy p {
    color: var(--text-main);
}

.action-copy .section-index-light {
    color: var(--text-soft);
}

.action-copy h2 {
    font-size: clamp(1.55rem, 2.7vw, 2.2rem);
    line-height: 1.5;
}

.action-copy p {
    font-size: 0.9rem;
    line-height: 1.9;
}

.action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.3rem;
}

.action-panel .button {
    min-height: 44px;
    padding: 0.68rem 1.2rem;
    font-size: 0.78rem;
}

.action-panel .button-ivory {
    background: var(--bg-dark);
    color: var(--text-light);
    box-shadow: 0 10px 26px rgba(31, 26, 22, 0.12);
}

.button-block {
    width: 100%;
}

.action-links {
    display: grid;
    gap: 0.4rem;
    margin: 1.2rem 0 0;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 0;
    border-top: 1px solid var(--line);
    color: var(--text-main);
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-link:hover,
.social-link:focus-visible {
    opacity: 0.7;
    transform: translateX(4px);
}

.social-link svg {
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
}

.icon-x {
    fill: currentColor;
}

.icon-ig {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-link span {
    font-size: 0.88rem;
    letter-spacing: 0.04em;
}

.action-visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.panel-graphic {
    position: relative;
    width: min(340px, 100%);
    margin: 2rem auto 0;
    display: flex;
    justify-content: center;
}

.graphic-text-vertical {
    position: absolute;
    top: -4.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    writing-mode: vertical-rl;
    z-index: 2;
    pointer-events: none;
}

.graphic-text-vertical .text-en {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: var(--text-soft);
    text-transform: uppercase;
    margin-top: 1.6rem;
    opacity: 0.8;
}

.graphic-text-vertical .text-ja {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--text-main);
}

.graphic-text-vertical span:nth-child(2) {
    margin-top: 0;
}

.graphic-text-vertical span:nth-child(3) {
    margin-top: 3.5rem;
}

.panel-lines {
    width: 100%;
    height: auto;
    display: block;
    fill: none;
    color: rgba(29, 26, 23, 0.22);
}

.panel-lines rect,
.panel-lines path {
    stroke: currentColor;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

/* フッターの見た目です */
.site-footer {
    padding: 0 0 3rem;
}

.footer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 1.8rem 2rem;
    align-items: start;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.footer-brand {
    display: grid;
    gap: 0.6rem;
}

.footer-copy {
    max-width: 28rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.9rem 1.2rem;
}

.footer-meta {
    margin: 0;
    align-self: center;
    font-size: 0.72rem;
    color: var(--text-soft);
}

/* 動きを減らしたい環境向けの設定です。通常は編集不要です */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* タブレット表示の調整です */
@media (max-width: 1024px) {
    .site-shell,
    main > .content-section > .site-shell,
    .section-feature > .site-shell {
        width: calc(100% - 80px);
    }

    .header-frame {
        grid-template-columns: 1fr auto;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero {
        min-height: auto;
        align-items: flex-start;
        padding-top: calc(var(--header-offset) + 3.5rem);
        padding-bottom: 4rem;
    }

    .hero-layout,
    .detail-layout,
    .action-panel {
        grid-template-columns: 1fr;
    }

    .hero-layout {
        min-height: auto;
        gap: 0;
        padding-bottom: 0;
    }

    .hero-copy {
        position: relative;
        z-index: 2;
        margin-top: 20rem;
    }

    .hero-visual {
        min-height: auto;
        padding-bottom: 0;
        margin-top: -38rem;
        z-index: 1;
    }

    .hero-frame {
        margin-left: 0;
    }

    .section-word-left {
        left: 10px;
    }

    .section-word-right,
    .section-word-edge {
        right: 10px;
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .action-visual {
        justify-content: center;
    }

    .action-panel {
        max-width: 760px;
        gap: 1.6rem;
    }

    .footer-layout {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        justify-content: flex-start;
    }
}

/* スマホ表示の調整です */
@media (max-width: 768px) {
    :root {
        --header-offset: 92px;
    }

    .site-shell,
    main > .content-section > .site-shell,
    .section-feature > .site-shell {
        width: calc(100% - 48px);
    }

    body {
        line-height: 1.75;
    }

    .site-header {
        padding: 14px 0;
    }

    .header-frame {
        grid-template-columns: 1fr auto;
        gap: 0.8rem;
        padding: 0.8rem 1rem 0.8rem 1.1rem;
    }

    .brand-mark {
        font-size: 1.2rem;
    }

    .mobile-nav-inner a {
        font-size: 1.7rem;
    }

    .hero {
        padding-top: calc(var(--header-offset) + 8rem);
        padding-bottom: 3rem;
    }

    .eyebrow {
        font-size: 0.7rem;
        margin-bottom: 0.8rem;
        text-shadow: 0 0 12px rgba(255, 255, 255, 0.9), 0 0 24px rgba(255, 255, 255, 0.8);
    }

    .hero-copy {
        margin-top: 10rem;
    }

    .hero-copy h1 {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
        letter-spacing: 0.04em;
        line-height: 1.25;
        text-shadow: 0 0 16px rgba(255, 255, 255, 0.9), 0 0 32px rgba(255, 255, 255, 0.8);
    }

    .hero-lead {
        font-size: 0.82rem;
        margin-top: 1rem;
        text-shadow: 0 0 12px rgba(255, 255, 255, 0.9), 0 0 24px rgba(255, 255, 255, 0.8);
    }

    .hero-word {
        font-size: clamp(4rem, 18vw, 6rem);
    }

    .hero-actions {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0.6rem;
        margin-bottom: 68px;
    }

    .action-group {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .hero-actions .button {
        width: auto;
        padding: 0.8rem 1.2rem;
        font-size: 0.8rem;
    }

    .hero-scroll,
    .section-word {
        display: none;
    }

    .hero-visual {
        margin-top: -45rem;
    }

    .hero-frame {
        padding: 12px;
        border-radius: 24px;
        width: 88%;
        margin-left: auto;
    }

    .media-portrait {
        min-height: 380px;
    }

    .media-feature {
        min-height: 320px;
    }

    .section-card-grid::before,
    .section-item-list::before,
    .section-media-stack::before,
    .section-detail-grid::before {
        display: none;
    }

    .feature-layout {
        min-height: auto;
        padding-top: 0;
    }

    .feature-visual {
        width: 100%;
    }

    .feature-copy {
        position: relative;
        top: auto;
        right: auto;
        width: 92%;
        min-height: auto;
        margin: -4rem 0 0 auto;
        padding: 2rem 1.5rem;
        background: var(--bg-main);
        z-index: 2;
    }

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

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

    .item-row {
        grid-template-columns: 1fr;
    }

    .item-link {
        justify-self: start;
    }

    .stack-row,
    .stack-row-reverse {
        grid-template-columns: 1fr;
    }

    .stack-row-reverse .stack-visual,
    .stack-row-reverse .stack-copy {
        order: initial;
    }

    .action-panel {
        padding: 1.35rem;
        border-radius: 28px;
    }

    .panel-graphic {
        width: min(260px, 100%);
        margin-top: 1.5rem;
    }

    .graphic-text-vertical {
        top: -3.5rem;
        gap: 0.8rem;
    }

    .graphic-text-vertical .text-ja {
        font-size: 1.05rem;
    }

    .graphic-text-vertical span:nth-child(3) {
        margin-top: 2.8rem;
    }
}
