:root {
    --bg: #ffffff;
    --text-main: #111111;
    --text-sub: #888888;
    --border: #eeeeee;
    --font-serif: "Shippori Mincho", "Noto Serif JP", serif;
    --font-sans: "Inter", "Noto Sans JP", sans-serif;
    --container-max: 1100px;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: var(--font-sans);
    margin: 0;
    line-height: 1.8;
    letter-spacing: 0.03em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, .serif {
    font-family: var(--font-serif);
    font-weight: 500;
    margin: 0;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

/* Section Labels */
.section-label {
    font-size: 14px; 
    font-weight: 600;
    letter-spacing: 0.3em; 
    color: var(--text-main);
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
}

/* Header & Logo */
header {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}

.logo {
    font-size: clamp(40px, 8vw, 64px);
    letter-spacing: 0.1em;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.furigana {
    display: block;
    font-size: 12px;
    font-family: var(--font-sans);
    letter-spacing: 0.4em;
    font-weight: 400;
    color: var(--text-sub);
    margin-top: 5px;
    text-indent: 0.2em;
}

.hero-text {
    font-size: clamp(18px, 2.5vw, 22px);
    line-height: 1.6;
    font-family: var(--font-serif);
}

/* Price Plan */
.price-plan {
    margin-top: 30px;
    padding: 25px;
    border: 1px solid var(--border);
    max-width: 400px;
}

.price-header {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--text-sub);
    margin-bottom: 15px;
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f7f7f7;
    font-size: 15px;
}

.price-list li:last-child { border-bottom: none; }

/* Images & Labels */
.img-wrap {
    margin: 0 0 60px 0;
    overflow: hidden;
    background-color: #f9f9f9;
    position: relative;
}

img {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    display: block;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-wrap:hover img { transform: scale(1.05); }

.photo-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 11px;
    background: rgba(255,255,255,0.8);
    padding: 2px 8px;
    letter-spacing: 0.2em;
    color: var(--text-main);
}

.w-full { width: 100%; }
.w-70 { width: 70%; margin-left: auto; }
.w-50 { width: 50%; }

/* Grid Layout */
section {
    padding: 80px 0 40px; 
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
}

.content-body h3 {
    font-size: clamp(24px, 3.5vw, 32px);
    margin-bottom: 30px;
    line-height: 1.4;
}

.text-group p {
    margin-bottom: 1.2em;
    font-size: 16px;
    font-weight: 300;
}

/* Philosophy */
.philosophy-area { padding-top: 20px; }
.mission-text {
    font-size: clamp(24px, 4vw, 36px);
    font-family: var(--font-serif);
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 60px;
}

.value-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.value-item h4 {
    font-size: 17px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--text-main);
    display: inline-block;
}

/* Company Table */
.company-table { width: 100%; border-collapse: collapse; }
.company-table th {
    text-align: left;
    width: 150px;
    padding: 15px 0;
    border-bottom: 1px solid #f9f9f9;
    color: var(--text-sub);
    font-weight: normal;
    font-size: 14px;
}
.company-table td { padding: 15px 0; border-bottom: 1px solid #f9f9f9; font-size: 15px; }

/* Contact */
.contact-link {
    font-family: var(--font-serif);
    font-size: clamp(24px, 5vw, 40px);
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid var(--text-main);
    padding-bottom: 8px;
    transition: all 0.3s;
}
.contact-link:hover { opacity: 0.5; padding-left: 15px; }

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s ease-out;
}
.reveal.active { opacity: 1; transform: translateY(0); }

footer {
    padding: 100px 0;
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--text-sub);
}

@media (max-width: 900px) {
    section { grid-template-columns: 1fr; padding: 60px 0; gap: 20px; }
    .container { padding: 0 25px; }
    .w-70, .w-50 { width: 100%; }
    header { height: auto; padding: 120px 0 60px; }
    .value-grid { grid-template-columns: 1fr; }
    .price-plan { max-width: 100%; }
    .company-table th { width: 100px; }
}

/* --- 規約リストのスタイル --- */
.policy-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.policy-item p {
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.text-link {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.3s;
    display: inline-block;
}

.text-link:hover {
    border-bottom-color: var(--text-main);
}

/* 既存のロゴスタイルを調整 */
.logo {
    cursor: pointer;
}

/* 料金表とボタンを横並びにするコンテナ */
.price-flex-container {
    display: flex;
    align-items: flex-end; /* 下揃えにすることで安定感を出します */
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap; /* スマホ時に折り返し */
}

/* 既存の .price-plan の margin-top を 0 に変更（コンテナ側で制御するため） */
.price-plan {
    margin-top: 0;
    padding: 25px;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 350px; /* 少し幅を絞ってボタンとのバランスを調整 */
}

/* Stripeボタンのスタイル */
.checkout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--text-main);
    color: #ffffff;
    text-decoration: none;
    padding: 18px 32px;
    font-family: var(--font-serif);
    font-size: 16px;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    border: 1px solid var(--text-main);
    height: fit-content;
    margin-bottom: 2px; /* 枠線の太さ分、微調整 */
}

.checkout-button:hover {
    background-color: transparent;
    color: var(--text-main);
}

.checkout-button .arrow {
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.checkout-button:hover .arrow {
    transform: translateX(8px);
}

/* モバイル対応：スマホではボタンを横幅いっぱいに */
@media (max-width: 900px) {
    .price-flex-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .price-plan {
        max-width: 100%;
    }
    .checkout-button {
        width: 100%;
    }
}