/* --- 基本設定 --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body.type-minimal {
    font-family: "Helvetica Neue", Arial, sans-serif;
    background-color: #fcfcfc;
    color: #1a1a1a;
    min-height: 100vh;
    border: 12px solid white; /* 白い枠線 */
}

/* 枠の中の全体レイアウト */
.frame {
    min-height: calc(100vh - 24px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}
@media (min-width: 768px) { .frame { padding: 3rem; } }

/* --- ヘッダー --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 50;
}
.logo {
    font-weight: bold;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* メニューボタン（PC非表示） */
.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 8px;
    z-index: 100;
}
.menu-btn .line {
    display: block;
    width: 24px;
    height: 1px;
    background: black;
    transition: 0.3s;
}

/* ナビゲーション */
.nav {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}
.nav a {
    text-decoration: none;
    color: #1a1a1a;
    transition: 0.3s;
}
.nav a:hover, .nav a.active-link { text-decoration: line-through; }

/* スマホ対応メニュー */
@media (max-width: 768px) {
    .menu-btn { display: flex; }
    
    .nav {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100vh;
        background: #fcfcfc;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-size: 2rem;
        z-index: 90;
        display: none; /* 初期は消す */
    }
    .nav.active { display: flex; }

    .menu-btn.open .line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .menu-btn.open .line:nth-child(2) { transform: rotate(-45deg) translate(5px, -5px); }
}

/* --- ヒーローセクション (index.html) --- */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: end;
    margin: 3rem 0;
}
@media (min-width: 768px) {
    .hero-grid { grid-template-columns: repeat(12, 1fr); margin: 0; }
}

.hero-image { width: 100%; }
@media (min-width: 768px) { .hero-image { grid-column: span 7; } }

.hero-image img {
    width: 100%; height: 50vh; object-fit: cover;
    filter: grayscale(100%); transition: filter 0.7s;
}
@media (min-width: 768px) { .hero-image img { height: 60vh; } }
.hero-image img:hover { filter: grayscale(0%); }

.hero-text { display: flex; flex-direction: column; justify-content: flex-end; }
@media (min-width: 768px) { .hero-text { grid-column: span 5; } }

.hero-text h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    line-height: 0.9;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .hero-text h1 { font-size: 6rem; } }

.hero-text .italic { font-style: italic; font-weight: 300; }
.hero-text p {
    font-family: monospace; font-size: 0.8rem; color: #6b7280; line-height: 2; margin-bottom: 2rem;
}
.text-link {
    font-family: monospace; color: black; text-decoration: none; border-bottom: 1px solid black; display: inline-block; width: max-content; transition: 0.3s;
}
.text-link:hover { padding-bottom: 3px; }

/* --- 下層ページ共通 --- */
.page-content {
    margin: 4rem 0;
    width: 100%;
}
.page-title { margin-bottom: 4rem; }
.page-title h2 { font-family: 'Cormorant Garamond', serif; font-size: 3rem; margin-bottom: 0.5rem; }
.page-title p { font-family: monospace; color: #6b7280; }

/* --- Service ページ --- */
.service-list {
    border-top: 1px solid #e5e5e5;
}
.service-item {
    border-bottom: 1px solid #e5e5e5;
    padding: 2rem 0;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    transition: 0.3s;
}
.service-item:hover { padding-left: 1rem; }

.num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: #d1d5db;
}
.service-detail h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}
.service-detail p {
    font-family: monospace;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.8;
}
.next-link { margin-top: 4rem; text-align: right; }

/* --- About ページ --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; } }

.about-text h2 { font-family: 'Cormorant Garamond', serif; font-size: 3rem; margin-bottom: 2rem; }
.philosophy {
    font-family: monospace;
    line-height: 2.2;
    font-size: 0.95rem;
}
.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    filter: grayscale(100%);
}

.profile-data { border-top: 1px solid #1a1a1a; padding-top: 2rem; }
.profile-data h3 { font-size: 0.9rem; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 0.1em; }
.data-list .row {
    display: flex;
    border-bottom: 1px solid #e5e5e5;
    padding: 1rem 0;
    font-family: monospace;
    font-size: 0.9rem;
}
.data-list dt { width: 120px; color: #9ca3af; }
.data-list dd { color: #1a1a1a; }

/* --- お問い合わせページ --- */
.contact-wrap {
    max-width: 700px;
    margin: 4rem auto;
    width: 100%;
}
.contact-header { margin-bottom: 4rem; text-align: left; }
.contact-header h2 { font-family: 'Cormorant Garamond', serif; font-size: 3rem; }
.contact-header p { font-family: monospace; color: #6b7280; }

.line-form { width: 100%; }
.input-row { margin-bottom: 3rem; }

.line-form input, .line-form textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #e5e5e5;
    background: transparent;
    padding: 0.5rem 0;
    font-family: monospace;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.4s;
    border-radius: 0;
}
.line-form input:focus, .line-form textarea:focus { border-bottom-color: black; }

.send-text {
    background: none;
    border: none;
    font-family: monospace;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}
.send-text:hover { border-bottom: 1px solid black; }

/* --- Privacy Policy --- */
.policy-wrap { max-width: 800px; margin: 0 auto; }
.policy-text h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    font-style: italic;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 0.5rem;
}
.policy-text p {
    font-family: monospace;
    line-height: 1.8;
    color: #4b5563;
    font-size: 0.9rem;
}

/* フッター */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    font-family: monospace;
    font-size: 0.75rem;
    margin-top: auto;
}
.footer-links a {
    color: #9ca3af; text-decoration: none; margin-right: 1rem;
}
.footer-links a:hover { text-decoration: underline; color: black; }