/* =====================================================
   星降る森へののぼり坂 — main.css
   kirifuri-trip.com の完全再現スタイル
   ===================================================== */

/* ─── CSS 変数 ─────────────────────────────────────── */
:root {
    --bg-color:    #050a15;
    --accent:      #e0ca9d;
    --text:        #f0f0f0;
    --sub-text:    #a0a0a0;
    --border:      rgba(255, 255, 255, 0.1);
    --border-gold: rgba(224, 202, 157, 0.3);
}

/* ─── リセット & ベース ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #000028 0%, #000205 100%);
    background-attachment: fixed;
    color: var(--text);
    font-family: 'Shippori Mincho', serif;
    line-height: 1.8;
    overflow-x: hidden;
}

a { color: inherit; transition: color .3s, opacity .3s; }
img { max-width: 100%; height: auto; display: block; }

/* ─── 夜空レイヤー ──────────────────────────────────── */
.stars {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(1px 1px at 20px 30px,   #fff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 40px 70px,  #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 50px 160px,  #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 90px 40px,   #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px,  #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 160px 120px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: .4;
    animation: twinkle 5s infinite alternate;
}

@keyframes twinkle {
    0%   { opacity: .2; }
    50%  { opacity: .5; }
    100% { opacity: .3; }
}

/* ─── 流れ星 ────────────────────────────────────────── */
.shooting-stars {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.shooting-stars span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255,255,255,.1),
                0 0 0 8px rgba(255,255,255,.1),
                0 0 20px rgba(255,255,255,1);
    animation: shootingStar linear infinite;
    opacity: 0;
}

.shooting-stars span::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, #fff, transparent);
}

.shooting-stars span:nth-child(1) { top: 0;     right: 0;    animation-delay: 0s;   animation-duration: 20s; }
.shooting-stars span:nth-child(2) { top: 150px; right: 300px; animation-delay: 8s;  animation-duration: 25s; }
.shooting-stars span:nth-child(3) { top: 300px; right: 600px; animation-delay: 15s; animation-duration: 30s; }

@keyframes shootingStar {
    0%  { transform: rotate(315deg) translateX(0);       opacity: 0; }
    5%  { opacity: 1; }
    15% { transform: rotate(315deg) translateX(-1000px); opacity: 0; }
    100%{ transform: rotate(315deg) translateX(-1000px); opacity: 0; }
}

/* ─── 言語切替 ──────────────────────────────────────── */
.lang-switch {
    position: fixed;
    top: 28px;
    right: 28px;
    z-index: 1000;
    font-family: 'Montserrat', sans-serif;
    font-size: .75rem;
    letter-spacing: .1em;
}

.lang-switch a {
    text-decoration: none;
    opacity: .6;
    padding: 0 10px;
    transition: opacity .3s;
}

.lang-switch a.active {
    opacity: 1;
    font-weight: 700;
    border-bottom: 1px solid var(--accent);
}

.lang-switch a:hover { opacity: 1; }

.lang-switch span { opacity: .4; }

/* ─── ヒーロー ──────────────────────────────────────── */
.hero {
    height: auto;
    min-height: 0;
    padding: 120px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content { margin: 0; padding: 0; }

.subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: .5em;
    font-size: .8rem;
    color: var(--accent);
    margin: 0 0 10px;
}

.title {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: .3em;
    white-space: nowrap;
    margin: 0;
    text-shadow: 0 0 15px rgba(255,255,255,.3);
}

/* ─── コンテナ ──────────────────────────────────────── */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── イントロメッセージ ─────────────────────────────── */
.intro-message {
    padding: 80px 20px;
    text-align: center;
    line-height: 2;
    background: rgba(255,255,255,.02);
}

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

.message-lead {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 40px;
    font-weight: bold;
}

.message-body {
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: .9;
}

.message-highlight {
    font-size: 1.1rem;
    margin: 50px 0;
}

.message-highlight span {
    font-size: 1.5rem;
    display: block;
    margin-top: 10px;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(224,202,157,.5);
}

.message-closing {
    margin: 60px 0;
    font-size: 1.1rem;
}

.message-closing span {
    display: block;
    margin: 15px 0;
    font-style: italic;
    color: var(--accent);
}

.message-footer {
    border-top: 1px solid var(--border);
    padding-top: 30px;
    font-size: .9rem;
    opacity: .7;
}

/* ─── マップ ─────────────────────────────────────────── */
.map-feature { margin-top: 0; }

.map-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 2px;
}

.main-img {
    width: 100%;
    height: auto;
    filter: brightness(.8) contrast(1.1);
    transition: .6s;
}

.map-link:hover .main-img {
    filter: brightness(1);
    transform: scale(1.03);
}

.img-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.2);
    opacity: 0;
    transition: .4s;
    font-size: .9rem;
    letter-spacing: .2em;
}

.map-link:hover .img-overlay { opacity: 1; }

.map-placeholder {
    width: 100%;
    min-height: 300px;
    background: rgba(255,255,255,.05);
    border: 1px dashed var(--border-gold);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    color: var(--sub-text);
}

.map-info {
    text-align: center;
    margin: 40px 0 80px;
}

.map-info h2 {
    font-weight: 300;
    font-size: 1.4rem;
    color: var(--accent);
}

.map-info p {
    font-size: .9rem;
    color: var(--sub-text);
}

/* ─── ガイドグリッド ─────────────────────────────────── */
.guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    border-top: 1px solid var(--border);
    padding-top: 40px;
    margin-bottom: 80px;
}

.guide-item h3 {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--accent);
    margin: 0 0 12px;
}

.guide-item a,
.text-link {
    color: var(--text);
    text-decoration: none;
    font-size: .9rem;
    border-bottom: 1px solid transparent;
    transition: .3s;
}

.guide-item a:hover,
.text-link:hover { border-bottom: 1px solid var(--accent); color: var(--accent); }

.links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sep { opacity: .5; }

/* ─── 施設セクション ─────────────────────────────────── */
.facility-section {
    margin: 80px 0;
    padding: 60px 20px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text);
    margin: 0 0 40px;
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.facility-category {
    text-align: left;
}

.facility-category h4 {
    font-family: 'Shippori Mincho', serif;
    font-size: .9rem;
    font-weight: normal;
    color: var(--accent);
    border-bottom: 1px solid var(--border-gold);
    padding-bottom: 8px;
    margin: 0 0 15px;
    letter-spacing: .1em;
}

.facility-category h4.mt-20 { margin-top: 20px; }

.facility-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.facility-category li {
    font-family: 'Shippori Mincho', serif;
    font-size: .8rem;
    letter-spacing: .05em;
    opacity: .8;
    line-height: 1.6;
    margin-bottom: 8px;
    word-break: break-word;
    hyphens: auto;
}

.facility-category li a {
    text-decoration: none;
    color: inherit;
    transition: color .3s, opacity .3s, transform .3s;
    display: inline-block;
}

.facility-category li a:hover {
    color: var(--accent);
    opacity: 1;
    transform: translateX(5px);
}

/* ─── Joinセクション ─────────────────────────────────── */
.join-section {
    padding: 100px 20px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,.05);
}

.join-description {
    margin-bottom: 40px;
    opacity: .8;
    line-height: 1.8;
}

.join-buttons {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 50px auto 0;
}

.join-card {
    flex: 1;
    min-width: 300px;
    padding: 50px 40px;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border-gold);
    border-radius: 4px;
    transition: all .4s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.join-card:hover {
    background: rgba(224,202,157,.05);
    border-color: rgba(224,202,157,.6);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,.4);
}

.join-card h4 {
    font-family: 'Shippori Mincho', serif;
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 20px;
    letter-spacing: .1em;
}

.join-card p {
    font-size: .9rem;
    margin-bottom: 35px;
    line-height: 1.8;
    opacity: .8;
}

/* ─── ボタン ─────────────────────────────────────────── */
.btn-primary {
    display: inline-block;
    padding: 12px 35px;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-size: .9rem;
    letter-spacing: .1em;
    transition: all .3s;
    background: transparent;
    border-radius: 2px;
}

.btn-primary:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 20px rgba(224,202,157,.4);
}

.btn-download {
    display: inline-block;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 2px;
    font-size: 1rem;
    transition: all .4s;
}

.btn-download:hover {
    background: var(--accent);
    color: var(--bg-color);
}

/* ─── Instagramセクション ───────────────────────────── */
.social-section {
    margin: 80px 0;
    text-align: center;
}

.social-section h3.subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: .7rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.insta-gallery {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px auto;
    max-width: 900px;
}

.insta-item {
    flex: 1;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
    transition: transform .3s, border-color .3s;
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .8;
    transition: opacity .3s;
}

.insta-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.insta-item:hover img { opacity: 1; }

.insta-follow-btn { margin-top: 30px; }

.insta-follow-btn a {
    color: var(--accent);
    text-decoration: none;
    font-size: .9rem;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 5px;
    transition: opacity .3s;
}

.insta-follow-btn a:hover { opacity: .7; }

/* ─── Supportセクション ─────────────────────────────── */
.sponsor-recruit {
    margin: 120px 0;
    padding: 60px 20px;
    background: rgba(255,255,255,.03);
    border-radius: 8px;
    border: 1px dashed var(--border-gold);
}

.recruit-container {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

.recruit-title {
    font-size: 1.6rem;
    margin-bottom: 30px;
    letter-spacing: .1em;
    font-weight: 300;
}

.achievement-box {
    background: rgba(224,202,157,.1);
    padding: 15px;
    margin-bottom: 30px;
    border-left: 3px solid var(--accent);
    text-align: left;
}

.award-text {
    font-size: .9rem;
    margin: 0;
    color: var(--accent);
}

.recruit-content { text-align: left; }
.recruit-content > p { margin-bottom: 20px; }

.recruit-details {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.recruit-details li {
    font-size: .95rem;
    margin-bottom: 10px;
}

.action-area { text-align: center; margin-top: 30px; }

.deadline {
    margin-top: 15px;
    font-size: .8rem;
    color: var(--sub-text);
}

/* ─── Partnersセクション ────────────────────────────── */
.partners-section {
    margin: 100px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 60px;
}

.partner-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.partner-column {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.partner-column a,
.partner-column span {
    color: var(--text);
    text-decoration: none;
    font-size: .8rem;
    letter-spacing: .05em;
    opacity: .6;
    line-height: 1.4;
    transition: color .3s, opacity .3s, padding-left .2s;
}

.partner-column a:hover {
    opacity: 1;
    color: var(--accent);
    padding-left: 5px;
}

/* ─── バナーグリッド ─────────────────────────────────── */
.banner-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.banner-grid a { display: block; line-height: 0; }

.banner-grid img {
    width: 200px;
    height: auto;
    border-radius: 4px;
    transition: transform .3s cubic-bezier(.25,.46,.45,.94);
}

.banner-grid img:hover { transform: scale(1.05); }

/* ─── クレジット ────────────────────────────────────── */
.credit {
    text-align: center;
    font-size: .7rem;
    letter-spacing: .1em;
    color: #555;
    margin-bottom: 40px;
}

/* ─── フッター ──────────────────────────────────────── */
.footer {
    text-align: center;
    font-size: .7rem;
    letter-spacing: .1em;
    color: #555;
    margin-bottom: 40px;
    padding: 20px;
    border-top: 1px solid var(--border);
}

/* ─── 施設詳細ページ ─────────────────────────────────── */
.facility-single {
    padding: 80px 20px 60px;
}

.breadcrumb {
    font-size: .8rem;
    color: var(--sub-text);
    margin-bottom: 40px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.breadcrumb a { color: var(--sub-text); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.facility-detail {
    max-width: 700px;
    margin: 0 auto;
}

.facility-thumb img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 30px;
    filter: brightness(.9);
}

.facility-body {}

.facility-cats { margin-bottom: 12px; }

.facility-cat-badge {
    display: inline-block;
    font-size: .75rem;
    padding: 3px 10px;
    border: 1px solid var(--border-gold);
    border-radius: 2px;
    color: var(--accent);
    margin-right: 6px;
}

.facility-name {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: .1em;
    margin: 0 0 20px;
}

.facility-desc {
    font-size: .95rem;
    line-height: 1.8;
    opacity: .85;
    margin-bottom: 30px;
}

.facility-info {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px 20px;
    font-size: .9rem;
    margin-bottom: 30px;
}

.facility-info dt { color: var(--accent); font-size: .8rem; letter-spacing: .1em; }
.facility-info dd { margin: 0; opacity: .8; }
.facility-info a { color: var(--text); }

.facility-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn-gmaps   { border-color: #4285F4; color: #4285F4; }
.btn-gmaps:hover   { background: #4285F4; color: #fff; }
.btn-website { border-color: #aaa; color: #aaa; }
.btn-website:hover { background: #aaa; color: #000; }

/* ─── ページ共通 ────────────────────────────────────── */
.page-content { padding: 80px 20px 60px; }

.page-title {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: .1em;
    color: var(--accent);
    margin-bottom: 40px;
}

.entry-content {
    font-size: 1rem;
    line-height: 1.8;
    opacity: .85;
}

/* ─── レスポンシブ ───────────────────────────────────── */
@media (max-width: 768px) {
    .title {
        font-size: 6.5vw;
        letter-spacing: .05em;
    }

    html[lang="en"] .title {
        font-size: 4.8vw;
        letter-spacing: .1em;
    }

    .hero { padding: 80px 15px 40px; }

    .guide-grid { grid-template-columns: 1fr; gap: 30px; }

    .facility-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        justify-items: start;
    }

    .facility-category { width: 100%; }

    .insta-gallery { padding: 0 10px; gap: 8px; }

    .partner-list { flex-direction: column; align-items: center; gap: 15px; }
    .partner-column { min-width: 100%; text-align: center; }
    .partner-column a:hover { padding-left: 0; }

    .join-buttons { gap: 20px; }
    .join-card { min-width: 100%; padding: 40px 20px; }
    .join-card p { height: auto; margin-bottom: 30px; }

    .banner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .banner-grid img { width: 100%; }

    .facility-thumb img { height: 220px; }
    .facility-name { font-size: 1.4rem; }

    .message-lead { font-size: 1.1rem; }
    .message-highlight span { font-size: 1.3rem; }
}
