/* style.css - AimeE Theme (Hand-drawn Railway Journey) - Complete Final Version */

:root {
    /* ▼▼▼ カラーパレット ▼▼▼ */
    --color-main: #E85A4F;        /* 朱赤（元気・愛） */
    --color-sub-blue: #8CC7E8;    /* 水色（空・爽やか） */
    --color-sub-yellow: #F2E6B1;  /* クリームイエロー（優しさ） */
    --color-text-dark: #5D4C46;   /* 焦げ茶（引き締め・文字色） */
    
    /* 背景色バリエーション */
    --bg-color-base: #FFFCF7;     /* ベース（生成り） */
    --bg-color-warm: #FFF8F0;     /* 薄いオレンジ系 */
    --bg-color-cool: #F0F8FF;     /* 薄い水色系 */
    
    /* フォント設定 */
    --font-base: 'Zen Maru Gothic', sans-serif;
    
    /* 共通スタイル：手書き風の点線 */
    --border-style-hand: 3px dashed;
}

/* ▼▼▼ 基本設定 ▼▼▼ */
body {
    font-family: var(--font-base);
    color: var(--color-text-dark);
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color-base);
    /* 文字を少し滲ませて手書き感を出す */
    text-shadow: 1px 1px 0px rgba(255,255,255,0.5);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--color-text-dark);
    transition: all 0.3s;
}

ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; vertical-align: bottom; }

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

.text-center { text-align: center; }
.mb-40 { margin-bottom: 40px; }
.relative-box { position: relative; }

/* ▼▼▼ ヘッダー ▼▼▼ */
header {
    background-color: rgba(255, 252, 247, 0.95);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(93, 76, 70, 0.1);
    border-bottom: var(--border-style-hand) var(--color-sub-yellow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    filter: drop-shadow(2px 2px 0px rgba(93, 76, 70, 0.1));
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    font-weight: 700;
    font-size: 1.05em;
}

.nav-links a:hover {
    color: var(--color-main);
}

.nav-btn {
    background-color: var(--color-main);
    color: white !important;
    padding: 10px 25px;
    border-radius: 50px;
    box-shadow: 3px 3px 0px var(--color-text-dark);
    border: 2px solid var(--color-text-dark);
    font-weight: 900;
    transition: all 0.2s;
}

.nav-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px var(--color-text-dark);
}

.mobile-menu-button {
    display: none;
    font-size: 1.8em;
    background: none;
    border: none;
    color: var(--color-main);
    cursor: pointer;
}

/* ▼▼▼ ヒーローセクション（トップ） ▼▼▼ */
#hero {
    background-color: var(--bg-color-warm);
    
    /* 背景の水玉（薄く調整済み） */
    background-image: 
        radial-gradient(rgba(242, 230, 177, 0.5) 15%, transparent 35%), 
        radial-gradient(rgba(140, 199, 232, 0.5) 15%, transparent 35%);
    background-size: 70px 70px;
    background-position: 0 0, 35px 35px;
    
    padding: 160px 0 80px;
    overflow: hidden;
}

.hero-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* 文字エリア（白いプレートを追加して読みやすく） */
.hero-text {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.85); /* 半透明の白 */
    padding: 40px;
    border-radius: 30px;
    border: 3px dashed var(--color-sub-yellow);
    box-shadow: 0 10px 20px rgba(93, 76, 70, 0.05);
    backdrop-filter: blur(2px);
}

.hero-text h1 {
    font-size: 3em;
    margin-bottom: 25px;
    line-height: 1.4;
    color: var(--color-text-dark);
    font-weight: 900;
    text-shadow: 2px 2px 0 #fff; /* 文字の影を調整 */
}

.hero-text p {
    font-size: 1.2em;
    margin-bottom: 35px;
    font-weight: 700;
}

.btn-hero {
    display: inline-block;
    background-color: var(--color-main);
    color: white;
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 1.4em;
    font-weight: 900;
    box-shadow: 5px 5px 0px var(--color-text-dark);
    border: 3px solid var(--color-text-dark);
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

/* ボタンのキラキラエフェクト */
.btn-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -50%; }
    100% { left: 150%; }
}

.btn-hero:hover {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0px var(--color-text-dark);
    background-color: #ff7e75;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.char-hero {
    max-width: 80%;
    height: auto;
    transform: rotate(5deg);
    filter: drop-shadow(5px 5px 0px rgba(93, 76, 70, 0.1));
    animation: float 3s ease-in-out infinite alternate;
}

@keyframes float {
    0% { transform: translateY(0) rotate(5deg); }
    100% { transform: translateY(-15px) rotate(5deg); }
}


/* ▼▼▼ セクション共通設定 ▼▼▼ */
.section { padding: 100px 0; }

/* 看板タイトル（ズレ防止の完全中央配置） */
.section-title {
    display: table;
    margin: 0 auto 60px; /* 左右autoで中央配置 */
    left: auto;
    transform: none;
    
    text-align: center;
    font-size: 2.2em;
    color: var(--color-text-dark);
    font-weight: 900;
    position: relative;
    background-color: var(--color-sub-yellow);
    padding: 10px 40px;
    border-radius: 15px;
    border: var(--border-style-hand) var(--color-text-dark);
    box-shadow: 5px 5px 0 rgba(93, 76, 70, 0.1);
}

/* 看板の飾り（釘のような丸） */
.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    top: -10px;
    width: 15px;
    height: 15px;
    background-color: var(--color-main);
    border: 2px solid var(--color-text-dark);
    border-radius: 50%;
}
.section-title::before { left: 20px; }
.section-title::after { right: 20px; }

.section-lead { font-size: 1.1em; font-weight: 700; }

.bg-sub-1 { background-color: var(--bg-color-warm); }
.bg-sub-2 { background-color: var(--bg-color-cool); }
.bg-main-light { background-color: #FFF0F0; }

/* ▼▼▼ 3つの柱 ▼▼▼ */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pillar-card {
    background: white;
    padding: 40px 30px;
    border-radius: 25px;
    border: var(--border-style-hand) var(--color-text-dark);
    box-shadow: 8px 8px 0 rgba(93, 76, 70, 0.05);
    text-align: center;
    position: relative;
}

.card-red { border-color: var(--color-main); }
.card-blue { border-color: var(--color-sub-blue); }
.card-yellow { border-color: var(--color-sub-yellow); }

.pillar-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
    display: inline-block;
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    background-color: var(--bg-color-base);
    border: var(--border-style-hand);
}

.card-red .pillar-icon { color: var(--color-main); border-color: var(--color-main); background-color: #FFF0F0; }
.card-blue .pillar-icon { color: var(--color-sub-blue); border-color: var(--color-sub-blue); background-color: #F0F8FF; }
.card-yellow .pillar-icon { color: #F39C12; border-color: var(--color-sub-yellow); background-color: #FFFFF0; }

.check-list {
    text-align: left;
    margin: 25px 0;
    display: inline-block;
}

.check-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    font-weight: 700;
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 18px;
    height: 18px;
    background-color: var(--color-main);
    /* 切符のハサミのような形 */
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% 70%, 0% 100%);
}
.card-blue .check-list li::before { background-color: var(--color-sub-blue); }
.card-yellow .check-list li::before { background-color: #F39C12; }

.pillar-solution {
    background-color: var(--bg-color-base);
    padding: 25px;
    border-radius: 20px;
    border: var(--border-style-hand) var(--color-text-dark);
    position: relative;
}
.card-red .pillar-solution { border-color: var(--color-main); background-color: #FFF5F5; }
.card-blue .pillar-solution { border-color: var(--color-sub-blue); background-color: #F5FFFF; }
.card-yellow .pillar-solution { border-color: var(--color-sub-yellow); background-color: #FFFFF5; }

.pillar-solution h4 {
    color: var(--color-text-dark);
    margin: 0 0 10px;
    font-weight: 900;
    font-size: 1.2em;
}

.pillar-solution p {
    text-align: left;
    margin: 0;
    display: inline-block;
}

/* ▼▼▼ プログラム ▼▼▼ */
.program-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.program-box {
    background: white;
    padding: 35px 30px;
    border-radius: 25px;
    box-shadow: 8px 8px 0 rgba(93, 76, 70, 0.05);
    border: 4px dashed var(--color-text-dark);
    text-align: center;
}
.box-red { border-color: var(--color-main); }
.box-blue { border-color: var(--color-sub-blue); }
.box-yellow { border-color: var(--color-sub-yellow); }

.program-box h3 {
    color: var(--color-text-dark);
    border-bottom: var(--border-style-hand) var(--color-text-dark);
    padding-bottom: 15px;
    margin-top: 0;
    font-weight: 900;
}
.box-red h3 { border-color: var(--color-main); color: var(--color-main); }
.box-blue h3 { border-color: var(--color-sub-blue); color: var(--color-sub-blue); }
.box-yellow h3 { border-color: #F39C12; color: #F39C12; }

.program-box i { margin-right: 10px; font-size: 1.2em; }

/* ▼▼▼ ご利用の流れ（路線図風） ▼▼▼ */
.flow-steps-wrapper {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    position: relative;
    padding: 0 20px;
}

/* 線路（背景の点線） */
.flow-steps-wrapper::before {
    content: '';
    position: absolute;
    top: 45px;
    left: 50px;
    right: 50px;
    height: 0;
    border-top: 6px dashed var(--color-sub-blue);
    z-index: 0;
}

.flow-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 15px;
}

.step-station {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

/* 駅（丸い部分） */
.station-num {
    width: 90px;
    height: 90px;
    background-color: white;
    border: 6px solid var(--color-main);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5em;
    font-weight: 900;
    color: var(--color-main);
    box-shadow: 5px 5px 0 rgba(93, 76, 70, 0.1);
    position: relative;
}
.station-num::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 70%;
    border: 3px dashed var(--color-sub-yellow);
    border-radius: 50%;
}

.station-goal .station-num {
    background-color: var(--color-sub-yellow);
    color: var(--color-text-dark);
    border-color: var(--color-text-dark);
}

.station-name {
    margin-top: 15px;
    font-weight: 900;
    font-size: 1.2em;
    background-color: var(--color-text-dark);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
}

.step-content {
    background: white;
    padding: 25px 20px;
    border-radius: 20px;
    border: var(--border-style-hand) var(--color-sub-blue);
    box-shadow: 5px 5px 0 rgba(93, 76, 70, 0.05);
    font-weight: 700;
    /* 吹き出しの三角（before/after）は削除済み */
}

/* ▼▼▼ アクセス ▼▼▼ */
.access-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    background: white;
    padding: 50px 40px;
    border-radius: 30px;
    border: 5px dashed var(--color-sub-yellow);
    box-shadow: 10px 10px 0 rgba(93, 76, 70, 0.05);
    position: relative;
    overflow: visible; /* キャラクターがはみ出てもOK */
}

/* 左上のピン装飾 */
.access-wrapper::before {
    content: '\f3c5'; 
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: -20px;
    left: -20px;
    font-size: 100px;
    color: var(--color-main);
    opacity: 0.1;
    transform: rotate(-30deg);
}

.access-text { flex: 1; font-weight: 700; }
.access-text h3 {
    font-size: 1.8em;
    color: var(--color-main);
    margin-bottom: 20px;
    border-bottom: var(--border-style-hand) var(--color-sub-yellow);
    display: inline-block;
}

.highlight-access {
    background: linear-gradient(transparent 70%, var(--color-sub-yellow) 70%);
    font-weight: 900;
    font-size: 1.1em;
}
.tel-num {
    font-size: 1.6em;
    color: var(--color-main);
    font-family: 'Zen Maru Gothic', sans-serif;
}

.access-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 20px;
    margin-top: 20px;
}
.access-details dt {
    font-weight: 900;
    color: var(--color-text-dark);
    background-color: var(--color-sub-yellow);
    padding: 2px 10px;
    border-radius: 10px;
    text-align: center;
}

.access-map {
    flex: 1;
    max-width: 500px;
}

/* 青いキャラ（地図枠の外、右下に配置） */
.char-access {
    position: absolute;
    bottom: 10px;
    right: 20px;
    width: 80px; 
    height: auto;
    z-index: 10;
    transform: rotate(-5deg);
    filter: drop-shadow(3px 3px 0 rgba(93, 76, 70, 0.2));
    transition: transform 0.3s ease;
}
.char-access:hover { transform: rotate(0deg) scale(1.1); }

.map-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 8px solid white;
    outline: var(--border-style-hand) var(--color-sub-blue);
    box-shadow: 8px 8px 0 rgba(93, 76, 70, 0.1);
    transition: all 0.3s ease;
    display: block;
    transform: rotate(2deg);
}

.map-image:hover {
    opacity: 0.9;
    transform: rotate(0deg) scale(1.02);
}

/* ▼▼▼ お問い合わせ ▼▼▼ */
.contact-section {
    padding-bottom: 0;
    overflow: hidden;
}

.contact-lead { font-size: 1.1em; font-weight: 700; }

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.btn-tel, .btn-mail {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 320px;
    padding: 15px;
    border-radius: 50px;
    color: white;
    font-weight: 900;
    font-size: 1.2em;
    border: 3px solid var(--color-text-dark);
    box-shadow: 5px 5px 0 var(--color-text-dark);
    transition: all 0.2s;
}

.btn-tel {
    background-color: var(--color-sub-blue);
    flex-direction: column;
    line-height: 1.2;
}

.btn-mail { background-color: var(--color-main); }
.btn-mail i { margin-right: 10px; font-size: 1.4em; }

.btn-tel:hover, .btn-mail:hover {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 var(--color-text-dark);
}

.btn-tel span.small {
    font-size: 0.7em;
    font-weight: normal;
    margin-top: 5px;
    opacity: 0.9;
}

/* フッターのキャラクター（中央配置） */
.footer-char-box {
    margin-top: -40px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.char-footer {
    max-width: 300px;
    height: auto;
    transform: translateY(10px); 
    filter: drop-shadow(5px 5px 0px rgba(93, 76, 70, 0.1));
}

/* ▼▼▼ フッター ▼▼▼ */
footer {
    background-color: var(--color-text-dark);
    color: white;
    text-align: center;
    padding: 20px 0;
    font-weight: 700;
    /* 上部のなみなみ装飾 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' style='fill: %23fffcf7;'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    padding-top: 80px;
}

/* ▼▼▼ スマホ対応（レスポンシブ） ▼▼▼ */
@media (max-width: 768px) {
    .nav-links {
        display: none; 
        flex-direction: column;
        width: 90%;
        position: absolute;
        top: 70px;
        left: 50%;
        transform: translateX(-50%);
        background-color: white;
        padding: 30px 0;
        border-radius: 20px;
        border: var(--border-style-hand) var(--color-sub-yellow);
        box-shadow: 5px 5px 0 rgba(93, 76, 70, 0.1);
    }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 15px 0; }
    .mobile-menu-button { display: block; }
    
    .hero-content-wrapper {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 120px;
    }
    .hero-text {
        padding: 25px; /* スマホでは余白を少し小さく */
    }
    .hero-text h1 { font-size: 2em; }
    .char-hero { max-width: 60%; margin-bottom: 30px; }
    
    .flow-steps-wrapper { flex-direction: column; padding: 0; }
    .flow-steps-wrapper::before {
        top: 50px; bottom: 50px; left: 45px;
        width: 0; height: auto;
        border-top: none;
        border-left: 6px dashed var(--color-sub-blue);
    }
    .flow-step { display: flex; text-align: left; margin-bottom: 40px; padding: 0; align-items: flex-start; }
    .step-station { margin-right: 20px; margin-bottom: 0; z-index: 1; }
    .station-num { width: 80px; height: 80px; font-size: 2em; background: white;}
    .station-name { position: absolute; top: 85px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 1em; padding: 5px 15px; }
    .step-content { flex: 1; margin-top: 10px; }
    
    .access-wrapper { flex-direction: column; padding: 30px 20px; }
    .access-map { max-width: 100%; }
    .map-image { transform: rotate(0deg); }
    /* スマホでの青いキャラ位置調整 */
    .char-access { width: 60px; bottom: 10px; right: 10px; left: auto; }
    
    .contact-buttons { flex-direction: column; align-items: center; gap: 20px; }
    .btn-tel, .btn-mail { width: 100%; max-width: 350px; }
    
    .footer-char-box { text-align: center; padding-right: 0; margin-top: 0; }
    .char-footer { max-width: 50%; }
}