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

:root {
    /* Colors */
    --primary-blue: #3a5a7f;
    --dark-blue: #2c4460;
    --light-blue: #5b8fd9;
    --accent-blue: #4a90e2;
    --light-gray: #f5f5f5;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --gray-medium: #999999;
    --gray-border: #dddddd;
    --gray-bg: #e0e0e0;

    /* Shadows & Overlays */
    --shadow-dark: rgba(0, 0, 0, 0.8);
    --overlay-dark: rgba(0, 0, 0, 0.7);
    --shadow-light: rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Spacing */
    --space-sm: 20px;
    --space-md: 30px;
    --space-lg: 40px;
    --space-xl: 60px;
}

body {
    font-family: 'Shippori Mincho', serif;
    color: var(--text-dark);
    line-height: 1.8;
    background-color: var(--white);
}

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

a:hover {
    opacity: 0.7;
}

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

/* ==========================================
   Header
   ========================================== */
.header {
    background-color: transparent;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    opacity: 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Opacity transition only for TOP page with hero slider */
.hero-slider ~ .header,
body:has(.hero-slider) .header {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, opacity 1.5s ease-in-out;
}

.header--visible {
    opacity: 1;
}

.header--scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header__logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 0.1em;
}

.header__logo a {
    color: var(--white);
    text-shadow: 2px 2px 4px var(--shadow-dark);
    transition: color var(--transition-normal), text-shadow var(--transition-normal);
}

.header--scrolled .header__logo a {
    color: var(--text-dark);
    text-shadow: none;
}

.header__nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--overlay-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.header__nav--active {
    opacity: 1;
    visibility: visible;
}

.header__nav-link {
    padding: 15px var(--space-md);
    font-size: 20px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 4px;
    transition: opacity var(--transition-fast);
}

.header__nav-link:hover {
    opacity: 0.6;
}

.header__menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.header__menu-line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    position: absolute;
    left: 0;
    transition: all var(--transition-normal);
    filter: drop-shadow(2px 2px 4px var(--shadow-dark));
}

.header--scrolled .header__menu-line {
    background-color: var(--text-dark);
    filter: none;
}

/* Make hamburger icon white when menu is active */
.header__menu-toggle.active .header__menu-line {
    background-color: var(--white);
}

.header__menu-line:nth-child(1) {
    top: 0;
}

.header__menu-line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.header__menu-line:nth-child(3) {
    bottom: 0;
}

/* Hamburger animation when active */
.header__menu-toggle.active .header__menu-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.header__menu-toggle.active .header__menu-line:nth-child(2) {
    opacity: 0;
}

.header__menu-toggle.active .header__menu-line:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* ==========================================
   Hero Slider
   ========================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    margin-top: 0;
    overflow: hidden;
    background: #2b5da9;
}

.hero-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/texture-washi-paper.jpg');
    background-size: cover;
    background-position: center;
    filter: sepia(100%) hue-rotate(180deg) saturate(250%) brightness(0.6);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.hero-slider__container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slider__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 1.5s ease-in-out, filter 1.5s ease-in-out;
}

.hero-slider__slide.active {
    opacity: 1;
    filter: blur(0);
}

.hero-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider__slide.active img {
    animation: heroZoomIn 20s ease-out forwards;
}

/* Hero catchphrase */
.hero-slider__catchphrase {
    position: absolute;
    bottom: 100px;
    left: 60px;
    font-size: 36px;
    font-weight: 500;
    color: var(--white);
    text-shadow: 2px 2px 8px var(--shadow-dark);
    letter-spacing: 0.1em;
    line-height: 1.6;
    z-index: 10;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slider__catchphrase--visible {
    opacity: 1;
}

.hero-slider__catchphrase-en {
    display: block;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-top: 8px;
}

.mobile-only {
    display: none;
}

/* Zoom-in animation for hero images */
@keyframes heroZoomIn {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.2);
    }
}

/* ==========================================
   Page Header Image
   ========================================== */
.page-header-image {
    width: 100%;
    height: 60vh;
    margin-top: 0;
}

.page-header-image__container {
    display: flex;
    height: 100%;
    align-items: stretch;
}

.page-header-image__image {
    flex: 0 0 80vw;
    overflow: hidden;
    background-color: var(--light-gray);
}

.page-header-image__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header-image__content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    padding-top: 30vh;
    background-color: var(--light-gray);
}

.page-header-image__title {
    font-size: 36px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-dark);
    writing-mode: vertical-rl;
    text-orientation: upright;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    position: relative;
    background: #2b5da9;
    color: var(--white);
    padding: 80px 40px;
    text-align: left;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/texture-washi-paper.jpg');
    background-size: cover;
    background-position: center;
    filter: sepia(100%) hue-rotate(180deg) saturate(250%) brightness(0.6);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero__title {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 40px;
    letter-spacing: 0.1em;
    text-align: center;
}

.hero__description {
    font-size: 16px;
    line-height: 2.0;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: row-reverse;
    gap: 40px;
    justify-content: center;
}

.hero__description p {
    writing-mode: vertical-rl;
    text-orientation: upright;
    margin-bottom: 0;
    margin-left: 0;
    line-height: 4.0;
}

.hero__description p:last-child {
    margin-bottom: 0;
}

.hero__image {
    margin-top: 60px;
    text-align: center;
}

.hero__image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ==========================================
   Section & Content Row
   ========================================== */
.section {
    padding: 80px 40px;
    background-color: #f5f5f5;
}

.section--gray {
    background-color: var(--light-gray);
}

.content-row {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto 80px;
}

.content-row:last-child {
    margin-bottom: 0;
}

.content-row--reverse {
    flex-direction: row-reverse;
}

.content-row__text,
.content-row__image {
    flex: 1;
}

.content-row__title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.content-row__description {
    font-size: 15px;
    line-height: 2.0;
    margin-bottom: 30px;
}

.content-row__description p {
    margin-bottom: 15px;
}

.content-row__description p:last-child {
    margin-bottom: 0;
}

.content-row__btn {
    display: inline-block;
    padding: 12px 40px;
    background-color: #2b5da9;
    color: var(--white);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.content-row__btn:hover {
    background-color: var(--dark-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    opacity: 1;
}

.content-row__image-placeholder {
    width: 100%;
    padding-bottom: 75%; /* aspect-ratio 4/3の代替（Safari対応） */
    position: relative;
    background-color: var(--gray-bg);
    border-radius: 4px;
    overflow: hidden;
}

.content-row__image-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================
   Container
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==========================================
   Section Title
   ========================================== */
.section__title {
    font-size: 28px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 0.1em;
}

.mb-60 {
    margin-bottom: 60px;
}

/* ==========================================
   Workshop Info
   ========================================== */
.workshop-info__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.workshop-info__details {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.workshop-info__item-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.workshop-info__item-text {
    font-size: 15px;
    line-height: 1.8;
}

.workshop-info__map {
    width: 100%;
    height: 450px;
}

.workshop-info__map-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--gray-bg);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.workshop-info__map-text {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.workshop-info__map-size {
    font-size: 14px;
    color: var(--gray-medium);
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    position: relative;
    background: #2b5da9;
    color: var(--white);
    padding: 60px 40px 30px;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/texture-washi-paper.jpg');
    background-size: cover;
    background-position: center;
    filter: sepia(100%) hue-rotate(180deg) saturate(300%) brightness(0.4);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.footer > * {
    position: relative;
    z-index: 1;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer__column-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.footer__link {
    display: block;
    font-size: 14px;
    margin-bottom: 12px;
    transition: opacity 0.3s ease;
}

.footer__link:hover {
    opacity: 0.7;
}

.footer__text {
    font-size: 14px;
    line-height: 1.8;
}

.footer__bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================
   Category Tabs
   ========================================== */
.category-tabs {
    background-color: var(--light-gray);
    padding: 40px 5% 0px;
    text-align: center;
}

.category-tabs__container {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: nowrap;
    gap: 10px;
}

.category-tabs__btn {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(13px, 3vw, 16px);
    font-weight: 500;
    color: var(--text-light);
    padding: 8px clamp(8px, 2vw, 20px);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.3s cubic-bezier(0.4, 0.0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.category-tabs__btn:hover {
    color: var(--text-dark);
    opacity: 1;
}

.category-tabs__btn--active {
    color: var(--text-dark);
    border-bottom-color: var(--accent-blue);
}

/* ==========================================
   Card Grid & Cards
   ========================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 30px; /* 古いSafari対応 */
    gap: 30px;
    position: relative;
}

.card {
    opacity: 1;
    background-color: var(--white);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: box-shadow 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1); /* Safari iOS対応 */
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.card:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card--hidden {
    display: none;
}

.card--fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* ==========================================
   Scroll Animation
   ========================================== */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(50px);
    filter: blur(10px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, filter 0.8s ease-out;
}

.scroll-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* ==========================================
   Form Styles
   ========================================== */
.form-intro {
    text-align: left;
    max-width: 800px;
    margin: 20px auto 0;
    line-height: 2.0;
}

.form-intro__phone {
    color: var(--primary-blue);
    font-size: 18px;
    font-weight: 600;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.form-intro__phone:hover {
    color: var(--dark-blue);
    opacity: 0.8;
}

.form {
    max-width: 800px;
    margin: 0 auto;
}

.form__group {
    margin-bottom: 30px;
}

.form__label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form__required {
    color: #e74c3c;
    margin-left: 4px;
}

.form__error {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.form__error.is-active {
    display: block;
}

.form__input,
.form__textarea,
.form__select {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: 'Shippori Mincho', serif;
    color: var(--text-dark);
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(58, 90, 127, 0.1);
}

.form__textarea {
    min-height: 350px;
    resize: vertical;
}

.form__submit {
    display: block;
    max-width: 300px;
    width: 100%;
    margin: 40px auto 0;
    padding: 15px 40px;
    background-color: #2b5da9;
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Shippori Mincho', serif;
    letter-spacing: 0.1em;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.form__submit:hover {
    background-color: var(--dark-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.form-phone-note {
    text-align: center;
    margin-top: 40px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 4px;
    line-height: 1.8;
    color: var(--text-dark);
}

/* ==========================================
   Card Components
   ========================================== */
.card__image {
    width: 100%;
    padding-bottom: 100%; /* aspect-ratio 1/1の代替（Safari対応） */
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: 4px 4px 0 0;
}

.card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card__image img {
    transform: scale(1.05);
}

.card__content {
    padding: 20px;
    background-color: var(--white);
    border-radius: 0 0 4px 4px;
}

.card__category {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.card__title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--text-dark);
}

/* ==========================================
   Modal Styles
   ========================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.modal.is-active {
    display: block;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal__content {
    position: relative;
    max-width: 600px;
    margin: 50px auto;
    background-color: var(--white);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.modal__title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-dark);
}

.modal__body {
    margin-bottom: 30px;
}

.modal__item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.modal__item:last-child {
    border-bottom: none;
}

.modal__item-label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-bottom: 8px;
}

.modal__item-value {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
}

.modal__item-value--multiline {
    white-space: pre-wrap;
}

.modal__confirm-text {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.modal__buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal__button {
    flex: 1;
    max-width: 200px;
    padding: 14px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Shippori Mincho', serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal__button--cancel {
    background-color: #95a5a6;
    color: var(--white);
}

.modal__button--cancel:hover {
    background-color: #7f8c8d;
}

.modal__button--submit {
    background-color: #2b5da9;
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal__button--submit:hover {
    background-color: var(--dark-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* ==========================================
   Image Modal (画像拡大モーダル)
   ========================================== */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.image-modal.is-active {
    display: flex;
}

.image-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.image-modal__content {
    position: relative;
    background-color: var(--white);
    border-radius: 8px;
    max-width: 90%;
    max-height: 70vh;
    overflow: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.image-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 10002;
    transition: all 0.2s ease;
}

.image-modal__close:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: rotate(90deg);
}

.image-modal__image-wrapper {
    width: 100%;
    max-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 8px 8px 0 0;
}

.image-modal__image {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    display: block;
}

.image-modal__info {
    padding: 20px;
    text-align: center;
}

.image-modal__title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.image-modal__button {
    display: inline-block;
    padding: 12px 35px;
    background-color: #2b5da9;
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-modal__button:hover {
    background-color: var(--dark-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* ==========================================
   Name Input Modal (名前入力モーダル)
   ========================================== */
.name-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10100;
    align-items: center;
    justify-content: center;
}

.name-modal.is-active {
    display: flex;
}

.name-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.name-modal__content {
    position: relative;
    background-color: var(--white);
    border-radius: 8px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10101;
    animation: modalFadeIn 0.3s ease;
}

.name-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background-color: transparent;
    color: var(--text-dark);
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.name-modal__close:hover {
    color: var(--primary-blue);
    transform: rotate(90deg);
}

.name-modal__title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--text-dark);
    text-align: center;
}

.name-modal__description {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    text-align: left;
    line-height: 1.6;
}

.name-modal__input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 8px;
    transition: border-color 0.3s ease;
}

.name-modal__input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.name-modal__input.has-error {
    border-color: #e74c3c;
}

.name-modal__error {
    display: none;
    color: #e74c3c;
    font-size: 13px;
    margin-bottom: 20px;
    margin-top: 0;
}

.name-modal__error.is-active {
    display: block;
}

.name-modal__button {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: #2b5da9;
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.name-modal__button:hover {
    background-color: var(--dark-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}
