@charset "UTF-8";
/*
Theme Name: Italo Photography Theme
Description: Custom WordPress theme for Italo Photography portfolio.
Author: Italo Photography
Version: 1.0
*/

:root {
    --bg-color: #f5f5f5;
    --text-color: #1a1a1a;
    --accent-color: #000000;
    --secondary-color: #e0e0e0;
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: 'Montserrat', sans-serif;
    --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    /* Copy Protection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

img {
    pointer-events: none;
    /* 画像への直接クリック/右クリックを無効化 */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 40px 0;
    transition: var(--transition-smooth);
}

header.scrolled {
    background: rgba(245, 245, 245, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.2rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    opacity: 0.4;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    opacity: 1;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

/* Background Logo Branding */
.hero-bg-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 25vw;
    font-weight: 400;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.05);
    z-index: 0;
    white-space: nowrap;
    pointer-events: none;
}

.hero-menu {
    position: relative;
    z-index: 10;
    padding: 10vh 0 10vh 10vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateX(10px);
    /* 10px右にずらす */
}

.hero-menu h2 {
    font-family: var(--font-primary);
    font-size: 5rem;
    /* 大きく変更 */
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    line-height: 1;
}

.hero-menu ul {
    list-style: none;
}

.hero-menu li {
    margin-bottom: 0.3rem;
}

.hero-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.2rem;
    /* 小さく変更 */
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.4;
    transition: var(--transition-smooth);
}

.hero-menu a:hover {
    opacity: 1;
    padding-left: 10px;
}

.hero-slider {
    position: relative;
    width: 60%;
    height: 70vh;
    margin-left: -5vw;
    /* 文字と重ねるためのマージン */
    z-index: 5;
    transform: translateX(-45px);
    /* 45px左にずらす（前回-55pxから10px右に戻した） */
}

/* Modal / Lightbox */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    animation: zoom 0.3s ease-out;
}

@keyframes zoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #000;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    opacity: 0.6;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #444;
    padding: 15px 0;
    font-family: var(--font-primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* 比率を絶対に変えない（収まるように表示） */
}

/* Gallery */
#gallery {
    padding: 150px 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 50px;
    text-align: center;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
}

.filter-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    opacity: 0.4;
    transition: var(--transition-smooth);
}

.filter-btn.active,
.filter-btn:hover {
    opacity: 1;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    /* 12列グリッドで高密度な表現 */
    grid-auto-rows: 200px;
    /* 基本ユニットの高さ */
    grid-auto-flow: dense;
    /* 隙間を自動で埋める */
    gap: 10px;
    /* タイトなギャップ */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    grid-column: span 4;
    /* デフォルト: 1/3幅 (3列) */
    grid-row: span 2;
    /* デフォルト: 高さ400px程度 */
}

/* --- Mosaic Layout Variations --- */

/* Big Landscape / Feature Item */
.gallery-item.size-lg {
    grid-column: span 8;
    /* 2/3幅 */
    grid-row: span 3;
    /* 高さ600px程度 */
}

/* Wide Item */
.gallery-item.size-wide {
    grid-column: span 8;
    grid-row: span 2;
}

/* Tall Item */
.gallery-item.size-tall {
    grid-column: span 4;
    grid-row: span 3;
}

/* Small / Filler Item */
.gallery-item.size-sm {
    grid-column: span 3;
    /* 1/4幅 (4列) */
    grid-row: span 1;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .grid-layout {
        grid-template-columns: repeat(6, 1fr);
        /* タブレットは6列 */
    }

    .gallery-item,
    .gallery-item.size-tall {
        grid-column: span 3;
        grid-row: span 2;
    }

    .gallery-item.size-lg,
    .gallery-item.size-wide {
        grid-column: span 6;
        /* 全幅 */
        grid-row: span 3;
    }

    .gallery-item.size-sm {
        grid-column: span 2;
        grid-row: span 2;
    }
}

@media (max-width: 600px) {
    .grid-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* モバイルはいったんシングルカラムでシンプルに */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: var(--transition-smooth);
    gap: 20px;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.item-overlay h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: #fff;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    font-weight: 300;
}

.gallery-item:hover h3 {
    transform: translateY(0);
}

.preview-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    padding: 12px 30px;
    font-family: var(--font-primary);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(-20px);
    opacity: 0;
}

.gallery-item:hover .preview-btn {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
}

.preview-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* View More Button Container - 常に表示されるように */
.view-more-container {
    display: flex;
    /* 非表示から常時表示(条件付き)へ */
    justify-content: center;
    margin-top: 60px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

/* 展開時は右下にフローティング固定 */
.view-more-container.floating {
    position: fixed;
    bottom: 40px;
    right: 40px;
    margin-top: 0;
    transform: translateY(0);
}

/* フローティング時のボタンスタイル調整 */
.view-more-container.floating .view-more-btn {
    background: rgba(26, 26, 26, 0.9);
    /* 少し透過した黒背景 */
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
}

.view-more-container.floating .view-more-btn:hover {
    background: #000;
    transform: scale(1.05);
}

.view-more-container.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.view-more-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 18px 45px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    transition: var(--transition-smooth);
    color: var(--text-color);
}

.view-more-btn svg {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-more-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

.view-more-btn:hover svg {
    transform: rotate(90deg);
}

/* Services Section */
#services {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.service-card {
    padding: 60px 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.service-icon {
    margin-bottom: 25px;
    opacity: 0.8;
}

.service-num {
    font-family: var(--font-display);
    font-size: 0.8rem;
    opacity: 0.3;
    margin-bottom: 10px;
    letter-spacing: 0.1rem;
}

.service-card h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.service-card p {
    font-size: 0.9rem;
    opacity: 0.6;
    line-height: 1.8;
}

.service-card.coming-soon {
    opacity: 0.4;
}

.status-badge {
    display: inline-block;
    font-size: 0.6rem;
    letter-spacing: 0.2rem;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
    width: fit-content;
}

/* Header Social */
.nav-social {
    margin-left: 20px;
}

.nav-social a {
    display: flex;
    align-items: center;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.nav-social a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Retouch Comparison Section */
#retouch-comparison {
    padding: 100px 0 150px;
}

.container.wide {
    max-width: 1600px;
}

.comparison-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 80px;
    align-items: center;
}

.comparison-text .section-title.text-left {
    margin-bottom: 65px;
}

.comparison-text p {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.8;
}

.comparison-slider-wrapper {
    position: relative;
    width: 100%;
}

.comparison-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: ew-resize;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.slider-nav {
    position: absolute;
    top: 50%;
    left: -30px;
    right: -30px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 20;
    pointer-events: none;
    /* ナビゲーションコンテナ自体はクリック透過 */
}

/* スライダー操作のためにポインターイベントを特定の要素で有効化 */
.comparison-slider,
.slider-nav-btn {
    pointer-events: auto;
}

.slider-nav-btn {
    width: 60px;
    height: 60px;
    background: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    opacity: 0;
    transform: scale(0.8);
}

.comparison-slider-wrapper:hover .slider-nav-btn {
    opacity: 1;
    transform: scale(1);
}

.slider-nav-btn:hover {
    background: #000;
    color: #fff;
}

.comparison-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.comparison-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.before-img {
    width: 50%;
    z-index: 2;
    overflow: hidden;
}

/* Beforeの画像がリサイズされてしまわないよう、
   コンテナが縮んでも画像は元の幅（100%）を維持する */
.before-img img {
    width: calc(1600px - 430px);
    /* スライダーの最大幅に合わせる（動的にJSで制御も可） */
    max-width: none;
}

.comparison-slider .label {
    position: absolute;
    bottom: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 5px 15px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    z-index: 3;
}

.before-img .label {
    left: 20px;
}

.after-img .label {
    right: 20px;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #fff;
    z-index: 10;
    pointer-events: none;
    transform: translateX(-50%);
}

.handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.handle-circle svg:first-child {
    margin-right: -4px;
}

.handle-circle svg:last-child {
    margin-left: -4px;
}

/* Profile Section */
#profile {
    padding: 150px 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 100px;
    align-items: center;
}

.profile-image {
    max-width: 80%;
    margin: 0 auto;
    aspect-ratio: 4/5;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-title.text-left {
    text-align: left;
    margin-bottom: 10px;
}

.furigana {
    font-size: 0.85rem;
    letter-spacing: 0.4em;
    opacity: 0.4;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.profile-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    margin-bottom: 45px;
    opacity: 0.7;
    text-transform: uppercase;
}

/* Timeline Graphic Design */
.profile-timeline-viz {
    position: relative;
    padding-left: 40px;
    margin-bottom: 60px;
}

.profile-timeline-viz::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 5px;
    bottom: -40px;
    /* 余白を突き抜けて下のセクションへ接続 */
    width: 1px;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 0.1) 10%,
            rgba(0, 0, 0, 0.1) 90%,
            rgba(0, 0, 0, 0.2));
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 7px;
    width: 9px;
    height: 9px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.timeline-item .year {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    margin-right: 20px;
    display: inline-block;
    width: 55px;
    color: var(--text-color);
}

.timeline-item .event {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.6;
    letter-spacing: 0.05em;
}

.profile-bio {
    max-width: 600px;
    position: relative;
    padding-top: 40px;
}


.profile-bio p {
    font-size: 0.95rem;
    line-height: 2.2;
    opacity: 0.8;
    word-break: break-all;
}

/* Flow Section */
#flow {
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
}

.flow-step {
    position: relative;
    padding-top: 30px;
}

.flow-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 1px;
    background: currentColor;
    opacity: 0.3;
}

.flow-step .step-num {
    font-family: var(--font-display);
    font-size: 0.7rem;
    opacity: 0.3;
    display: block;
    margin-bottom: 20px;
}

.flow-step h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.flow-step p {
    font-size: 0.85rem;
    opacity: 0.6;
    line-height: 1.8;
}

/* Contact Section */
#contact {
    padding: 100px 0 150px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-content {
    text-align: center;
}

.contact-content>p {
    margin-bottom: 50px;
    opacity: 0.7;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--secondary-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-family: var(--font-primary);
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus,
.contact-select:focus {
    border-color: var(--accent-color);
}

.contact-select {
    width: 100%;
    padding: 15px;
    background: var(--secondary-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-family: var(--font-primary);
    outline: none;
    transition: var(--transition-smooth);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
}

.contact-select option {
    background: #ffffff;
    color: #333333;
    padding: 10px;
}

.submit-btn {
    padding: 15px 40px;
    background: var(--accent-color);
    color: var(--bg-color);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    align-self: center;
}

.submit-btn:hover {
    background: #cccccc;
}

/* Footer */
footer {
    padding: 100px 0 50px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {

    /* Hero Adjustments */
    #hero {
        flex-direction: column;
        justify-content: center;
        padding-top: 80px;
    }

    .hero-bg-logo {
        font-size: 30vw;
        top: 40%;
    }

    .hero-menu {
        padding: 0;
        width: 100%;
        text-align: center;
        align-items: center;
        margin-bottom: 40px;
        transform: none;
    }

    .hero-menu h2 {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }

    .hero-slider {
        width: 90%;
        height: 40vh;
        margin: 0 auto;
        transform: none;
    }

    .hero-menu a {
        font-size: 1rem;
    }

    /* Comparison Slider Adjustments */
    .comparison-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .comparison-text .section-title.text-left {
        text-align: center;
        margin-bottom: 30px;
    }

    .before-img img {
        width: 100vw;
        max-width: none;
    }

    /* Profile Adjustments */
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .profile-text .section-title.text-left {
        text-align: center;
    }

    .profile-timeline-viz {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* 簡易的な対応 */
    }

    .grid-layout {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Process Flow */
    .flow-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .view-more-container.floating {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1002;
    }

    .view-more-container.floating .view-more-btn {
        padding: 12px 20px;
    }
}

/* --- Concept (AI vs Pro) Section --- */
#concept-message h2.section-title {
    margin-bottom: 40px;
    font-size: 2.2rem;
}

/* --- Reason / Why Choose Section --- */
#reason {
    padding: 100px 0;
    position: relative;
    /* optional: slightly different background to separate */
    /* background: rgba(255,255,255,0.01); */
}

.reason-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.reason-card {
    padding: 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.reason-card:hover {
    background: rgba(255, 255, 255, 0.02);
    border-left-color: #fff;
}

.reason-icon {
    margin-bottom: 25px;
    opacity: 0.8;
    color: var(--text-color);
}

.reason-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 25px;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.reason-card p {
    font-size: 0.95rem;
    line-height: 2;
    opacity: 0.8;
}

.reason-card p strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 10px;
    opacity: 1;
    font-weight: 700;
}

/* --- Flow Section Icons --- */
.flow-icon {
    margin-bottom: 15px;
    opacity: 0.7;
    display: inline-block;
}

/* --- Hero Capture Copy (Vertical) --- */
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@500;700&display=swap');

.hero-catchphrase {
    position: absolute;
    bottom: 175px;
    right: calc(20% - 70px);
    /* さらに右に寄せ(+20pt) */
    /* 上に大きくずらし(+25pt) */
    writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
    text-orientation: upright;
    color: #fff;
    font-family: 'Shippori Mincho', serif;
    font-weight: 700;
    font-size: 1.6rem;
    /* 1.9rem -> 1.6rem (さらに縮小) */
    letter-spacing: 0.4em;
    /* 行間（縦書きなので文字間）を広げて情緒的に */
    line-height: 2.0;
    z-index: 20;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    opacity: 0;
    animation: fadeUpText 2s ease 1s forwards;
    height: auto;
    mix-blend-mode: overlay;
    /* 重なった時に美しく見えるように */
}

.catchphrase-indent {
    display: inline-block;
    margin-top: 2em;
    /* 2文字分下げる */
}

@keyframes fadeUpText {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* スマホでの調整 */
@media (max-width: 768px) {
    .hero-catchphrase {
        right: 5%;
        /* 10% -> 5% (スマホでも右に移動) */
        bottom: 120px;
        font-size: 1.8rem;
        letter-spacing: 0.2em;
        mix-blend-mode: normal;
        /* スマホでは読みやすさ重視 */
    }
}

/* --- Scroll Fade In Animation --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.0s cubic-bezier(0.25, 1, 0.5, 1), transform 1.0s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform, visibility;
    visibility: hidden;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* --- Footer --- */
footer {
    padding: 0 !important;
    width: 100%;
}

.footer-address-bar {
    background-color: #000;
    color: #fff;
    width: 100%;
    padding: 80px 0 60px;
    margin-top: 5px;
    /* 極限まで詰める */
}

.footer-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    font-family: 'Shippori Mincho', serif;
}

.footer-address {
    text-align: center;
    font-size: 1.0rem;
    letter-spacing: 0.1em;
}

.footer-info-item {
    display: inline-block;
    margin: 0 10px;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.6;
    font-family: var(--font-primary);
}


/* --- Floating CTA --- */
.floating-cta {
    background-color: #808080;
    /* リクエスト通りのグレー */
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1001;
    transition: var(--transition-smooth);
    opacity: 0;
    /* JSで表示制御 */
    transform: translateY(20px);
    pointer-events: auto;
}

.floating-cta.visible {
    opacity: 1;
    transform: translateY(0);
}

.floating-cta svg {
    width: 24px;
    height: 24px;
}

.floating-cta .cta-text {
    position: absolute;
    right: 70px;
    background: #000;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition-smooth);
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-cta:hover .cta-text {
    opacity: 1;
    transform: translateX(0);
}

.floating-cta:hover {
    background-color: #555;
    transform: scale(1.1);
}

/* スマホ表示時のCTA調整 */
@media (max-width: 900px) {
    .floating-cta {
        opacity: 1;
        transform: translateY(0);
        bottom: 20px;
        right: 20px;
    }

    .reason-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    #concept-message p {
        text-align: left;
        padding: 0 20px;
    }
}

/* --- Header & Hero Enhanced Layout --- */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-script-logo {
    height: 30px;
    /* Reduced for header */
    width: auto;
    /* Black logo requested, default asset is black */
}

.hero-bg-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 0.85;
    /* Tight line height for overlap avoidance but closeness */
    text-align: center;
}

.hero-bg-logo span {
    display: block;
}

/* Adjust hero-bg-logo responsive if needed */
@media (max-width: 768px) {
    .hero-bg-logo {
        font-size: 18vw;
    }
}

/* --- Redesigned Footer Styles --- */
.footer-redesign-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-branding-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-script-logo {
    height: 40px;
    /* Adjust based on asset */
    width: auto;
    filter: invert(1);
    /* Black logo to White for footer */
}

.footer-branding-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    /* +3pt adjusted */
    letter-spacing: 0.2rem;
    font-weight: 700;
}

.footer-social-links .instagram-link {
    color: #fff;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.footer-social-links .instagram-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
}

.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-nav-col h4 {
    font-size: 0.8rem;
    letter-spacing: 0.2rem;
    margin-bottom: 20px;
    opacity: 0.4;
    font-weight: 400;
}

.footer-nav-col ul {
    list-style: none;
    padding: 0;
}

.footer-nav-col li {
    margin-bottom: 12px;
}

.footer-nav-col a {
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.7;
    transition: var(--transition-smooth);
    letter-spacing: 0.05em;
}

.footer-nav-col a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-tagline {
    font-size: 0.9rem;
    font-family: 'Shippori Mincho', serif;
    opacity: 0.5;
    line-height: 1.8;
}

.footer-bottom-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 20px;
}

.footer-address-text {
    font-size: 0.8rem;
    /* -2pt adjusted */
    opacity: 0.5;
    letter-spacing: 0.05em;
}

/* Privacy Modal Specifics */
.privacy-content {
    background: #111;
    color: #fff;
    padding: 60px;
    max-width: 800px !important;
    text-align: left;
}

.privacy-body {
    margin-top: 30px;
    line-height: 2;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .footer-bottom-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}