@charset "UTF-8";

/* =========================================================
   Reset & Base
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-text-main: #333333;
    --color-text-sub: #666666;
    --color-black: #000000;
    --color-white: #ffffff;
    --color-bg-light: #f8f8f8;
    
    /* Theme Colors */
    --color-brown-dark: #3e312a; 
    --color-brown-head: #a39587;
    --color-brown-body: #f4eee9; /* ベージュ背景 */
    
    --font-family: 'Noto Serif JP', serif;
}

body {
    font-family: var(--font-family);
    color: var(--color-text-main);
    line-height: 1.8;
    font-size: 14px;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* 横スクロール防止 */
}

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

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

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

.inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Background Colors */
.bg-beige {
    background-color: var(--color-brown-body);
}

/* =========================================================
   Components (Buttons & Titles)
========================================================= */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 240px;
    height: 50px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.btn-black {
    background-color: var(--color-black);
    color: var(--color-white);
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-black);
    border: 1px solid var(--color-black);
}

.link-en {
    display: inline-block;
    font-size: 12px;
    color: var(--color-text-sub);
    text-decoration: underline;
    margin-top: 15px;
}

/* シンプルなセクションタイトル */
.simple-title {
    text-align: center;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 50px;
}

/* グラデーション帯のセクションタイトル */
.section-banner {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    margin-bottom: 60px;
    background: linear-gradient(90deg, #937d65 0%, #c2a98f 50%, #937d65 100%);
    box-shadow: inset 0 3px 5px rgba(0,0,0,0.1), inset 0 -3px 5px rgba(0,0,0,0.1);
}

.section-banner h2 {
    color: var(--color-white);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* =========================================================
   Header & Hamburger Menu
========================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: var(--color-white);
    border-bottom: 1px solid #eee;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo a {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 24px;
    display: block;
}

.hamburger-btn {
    position: relative;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 1px;
    background-color: var(--color-black);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s;
}

.hamburger-btn span:nth-of-type(1) { top: 12px; }
.hamburger-btn span:nth-of-type(2) { top: 19px; }
.hamburger-btn span:nth-of-type(3) { top: 26px; }

/* Overlay Nav */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow-y: auto;
    background-image: url("images/nav_bg_text.png");
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.nav-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.close-btn::before,
.close-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 1px;
    background-color: var(--color-black);
}

.close-btn::before { transform: translate(-50%, -50%) rotate(45deg); }
.close-btn::after { transform: translate(-50%, -50%) rotate(-45deg); }

.nav-overlay-inner {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

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

.nav-list li {
    margin-bottom: 20px;
}

.nav-list a {
    font-size: 16px;
    letter-spacing: 0.1em;
}

.nav-reservation {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =========================================================
   Page Specific Styles ("はじめての方へ")
========================================================= */
.page-main {
    padding-top: 80px;
}

/* Page Header */
.page-header {
    background-color: var(--color-brown-dark);
    text-align: center;
    padding: 20px 0;
}

.page-title {
    color: var(--color-white);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.15em;
}

/* First Hero */
.first-hero {
    padding: 50px 20px;
    text-align: center;
}

/* iPS細胞とは */
.about-ips {
    padding-bottom: 80px;
}

.about-ips-text {
    margin-bottom: 50px;
}

.about-ips-text p {
    margin-bottom: 1.5em;
}

.about-ips-features {
    display: flex;
    gap: 40px;
    justify-content: space-between;
}

.feature-item {
    flex: 1;
}

.feature-item img {
    width: 100%;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 18px;
    font-weight: 500;
    color: #8c7853; 
    margin-bottom: 15px;
}

/* 作られるまで / 上清液 図解共通 */
.ips-creation,
.ips-supernatant {
    padding: 0 0 80px 0;
}
.ips-supernatant {
    padding-top: 80px;
}

.diagram-wrapper {
    text-align: center;
}

.diagram-img {
    max-width: 100%;
    height: auto;
}

.supernatant-text {
    margin-bottom: 50px;
}

/* 期待できる効果 (一般) */
.ips-effects {
    padding: 0 0 80px 0;
}

.effect-main-img {
    text-align: center;
    margin-bottom: 60px;
}

.effect-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.effect-article {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.effect-article:nth-child(even) {
    flex-direction: row-reverse;
}

.effect-article-img {
    width: 40%;
    flex-shrink: 0;
}

.effect-article-text {
    width: 60%;
}

.effect-article-text h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--color-text-main);
}

/* 期待できる効果 (悩み別：画像1枚出し) */
.ips-effects-specific {
    padding: 0 0 80px 0;
    text-align: center;
}
.specific-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 安全性について */
.safety {
    padding: 80px 20px;
}

.safety-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.safety-text {
    flex: 1;
}

.safety-lead {
    font-weight: 500;
    margin-bottom: 20px;
}

.safety-text p {
    margin-bottom: 1.5em;
}

.safety-img {
    flex: 1;
}

/* =========================================================
   カウンセリングの流れ (変形背景デザイン)
========================================================= */
.flow {
    padding-bottom: 80px;
}

.flow-item {
    position: relative;
    padding: 60px 0;
    margin-bottom: 10px;
    z-index: 1;
}

/* 奇数段 (左から右へ伸びて、右端が丸い) */
.flow-item.style-right::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: calc(50% + 550px); 
    background-color: var(--color-brown-body);
    border-radius: 0 999px 999px 0;
    z-index: -1;
}

/* 偶数段 (右から左へ伸びて、左端が丸い ※今回はSTEP3用) */
.flow-item.style-left::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: calc(50% + 550px); 
    background-color: var(--color-brown-body);
    border-radius: 999px 0 0 999px;
    z-index: -1;
}

/* 背景なしの段落の余白調整 */
.flow-item.style-normal {
    padding: 40px 0;
}

.flow-inner {
    display: flex;
    gap: 60px;
    align-items: center;
}

/* 画像に角丸と軽いシャドウをつける */
.flow-img {
    width: 40%;
    flex-shrink: 0;
}

.flow-img img {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.flow-text {
    width: 60%;
}

.step-title {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
}

.step-badge {
    display: inline-block;
    background-color: #a19282;
    color: var(--color-white);
    font-size: 12px;
    padding: 4px 12px;
    margin-right: 15px;
    letter-spacing: 0.1em;
}

/* =========================================================
   FAQ
========================================================= */
.faq {
    padding: 40px 20px 100px;
}

.faq-list {
    border-top: 1px solid #ddd;
}

.faq-item {
    padding: 25px 0;
    border-bottom: 1px solid #ddd;
}

.faq-item dt,
.faq-item dd {
    display: flex;
    align-items: flex-start;
}

.faq-item dt {
    font-weight: 500;
    margin-bottom: 10px;
}

.icon-q,
.icon-a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: var(--color-white);
    font-size: 12px;
    font-family: sans-serif;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.icon-q {
    background-color: #666;
}

.icon-a {
    background-color: #aaa;
}

/* =========================================================
   Contact Area (共通)
========================================================= */
.contact-area {
    background-color: var(--color-bg-light);
    padding: 80px 20px;
    text-align: center;
}

.contact-lead {
    margin-bottom: 20px;
    font-size: 15px;
}

.contact-tel {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tel-label {
    font-family: serif;
    font-style: italic;
    font-size: 18px;
}

.tel-number {
    font-size: 32px;
    font-family: serif;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.contact-time {
    font-size: 13px;
    color: var(--color-text-sub);
    margin-bottom: 40px;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.contact-en {
    margin-top: 20px;
}

/* =========================================================
   Footer (共通)
========================================================= */
.footer {
    padding: 60px 20px 30px;
    text-align: center;
}

.footer-logo {
    margin-bottom: 40px;
}

.footer-logo img {
    height: 20px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 25px;
    margin-bottom: 50px;
    font-size: 12px;
}

.copyright {
    font-size: 10px;
    color: var(--color-text-sub);
    letter-spacing: 0.05em;
}

/* =========================================================
   Responsive (スマホ向け調整)
========================================================= */
@media screen and (max-width: 768px) {
    .header {
        padding: 0 20px;
    }

    .header-logo img {
        height: 18px;
    }

    .hamburger-btn {
        right: 20px;
    }

    .about-ips-features {
        flex-direction: column;
    }

    .effect-article,
    .effect-article:nth-child(even) {
        flex-direction: column;
    }

    .effect-article-img,
    .effect-article-text {
        width: 100%;
    }

    .safety-layout {
        flex-direction: column-reverse;
    }

    /* カウンセリングの流れ スマホ対応 */
    .flow-item {
        padding: 40px 0;
    }

    .flow-item.style-right::before {
        width: calc(100% - 10px);
        border-radius: 0 20px 20px 0;
    }

    .flow-item.style-left::before {
        width: calc(100% - 10px);
        border-radius: 20px 0 0 20px;
    }

    .flow-inner {
        flex-direction: column;
        gap: 30px;
    }

    /* ★修正: スマホ時は画像とSTEP表記を中央揃え */
    .flow-img {
        width: 100%;
        text-align: center;
    }

    .flow-img img {
        display: inline-block; /* text-align: center を効かせるため */
        max-width: 100%;
    }

    .flow-text {
        width: 100%;
    }

    .step-title {
        justify-content: center; /* タイトル(STEP表記)を中央揃え */
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}