/* リセットと基本スタイル */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #f4f9fc 0%, #e0f2f1 100%); /* 海から空へのグラデーション */
    color: #333;
    line-height: 1.6;
    overflow-x: hidden; /* 横スクロール防止 */
}

/* 波模様の背景擬似要素（海の動きをイメージ） */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23007acc"><path d="M0,100 Q250,0 500,100 T1000,100 V100 H0 Z"/></svg>') repeat-x bottom;
    opacity: 0.05;
    z-index: -1;
    animation: wave 20s linear infinite; /* 波のゆらぎアニメ */
}

@keyframes wave {
    0% { background-position: 0 bottom; }
    100% { background-position: 1000px bottom; }
}

/* ヘッダー */
header {
    background: linear-gradient(to right, #007acc, #00a8cc); /* 青のグラデで海の深み */
    color: white;
    text-align: center;
    padding: 30px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="white" opacity="0.1"/></svg>') repeat;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

header h1 {
    margin: 0;
    font-size: 2em;
    animation: fadeInDown 1s ease-out; /* 読み込み時のスライドイン */
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* メインコンテンツ */
main {
    max-width: 900px; /* 画像対応で少し広めに */
    margin: 20px auto;
    padding: 0 20px;
}

section {
    margin-bottom: 50px;
    padding: 30px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards; /* フェードインアップ */
    animation-delay: calc(0.2s * var(--delay, 0)); /* セクションごとに遅延 */
}

section:nth-child(1) { --delay: 1; }
section:nth-child(2) { --delay: 2; }
section:nth-child(3) { --delay: 3; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.cottage h2 {
    color: #007acc;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.cottage h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #007acc, #00a8cc);
    border-radius: 2px;
    animation: expand 0.5s ease-out;
}

@keyframes expand {
    from { width: 0; }
    to { width: 50px; }
}

.location h2 {
    color: #ff6b35;
}

.location h2::after {
    background: linear-gradient(to right, #ff6b35, #ff8c42);
}

/* リスト */
ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    padding: 10px 0;
    position: relative;
    padding-left: 25px;
    transition: transform 0.3s ease; /* ホバー時の浮遊 */
}

ul li:hover {
    transform: translateX(5px);
}

ul li::before {
    content: "🌊"; /* 海らしいアイコンに変更 */
    color: #007acc;
    font-size: 1.2em;
    position: absolute;
    left: 0;
    animation: bounce 2s infinite; /* 軽いバウンス */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* 画像対応 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.4s ease, box-shadow 0.4s ease; /* スケールアップ */
    display: block;
    margin: 20px auto;
}

img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 122, 204, 0.3); /* 海の影 */
}

/* ギャラリー（複数画像用） */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.image-gallery img {
    position: relative;
    overflow: hidden;
}

.image-gallery img::after {
    content: attr(alt); /* altテキストをオーバーレイ表示 */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 122, 204, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-gallery img:hover::after {
    opacity: 1;
}

/* ボタン */
.btn {
    display: inline-block;
    background: linear-gradient(to right, #007acc, #00a8cc);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    margin: 15px 5px 0 0;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%; /* 光のスライド効果 */
}

.btn:hover,
.btn:focus {
    background: linear-gradient(to right, #005a99, #0088aa);
    transform: translateY(-2px); /* 浮き上がり */
    box-shadow: 0 4px 12px rgba(0, 122, 204, 0.3);
}

.btn:focus-visible {
    outline: 2px solid #007acc;
    outline-offset: 2px;
}

/* フッター */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
    position: relative;
}

footer p {
    margin: 10px 0;
}

footer a {
    color: #00a8cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* レスポンシブ */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5em;
    }
    
    main {
        padding: 0 15px;
    }
    
    section {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .btn {
        display: block;
        width: 100%;
        text-align: center;
        margin: 10px auto 0;
    }
}

@media (max-width: 600px) {
    header {
        padding: 20px 15px;
    }
    
    header h1 {
        font-size: 1.3em;
    }
    
    body::before {
        background-size: 500px 100px; /* スマホで波を軽く */
    }
}

/* フッター（共通） */
.site-footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 50px 20px;
    margin-top: 80px;
}
.site-footer a {
    color: #00a8cc;
    text-decoration: none;
    margin: 0 10px;
}
.site-footer a:hover {
    color: white;
    text-decoration: underline;
}

/* 小さい画面対応強化（iPhone SEなど 共通スタイル） */
@media (max-width: 480px) {
  .entrance { 
    min-height: 700px; 
  }

  .content-overlay .text-bg { 
    font-size: 1.1rem !important; 
    padding: 12px 20px !important; 
  }

  .entrance-buttons {
    gap: 20px; 
  }
  .entrance-buttons .btn {
    min-width: 240px !important; 
    padding: 16px 25px !important; 
    font-size: 1.1rem !important; 
    border-width: 3px; 
  }

  .white-logo {
    padding: 15px 30px !important; 
  }
  .white-logo img {
    height: 60px !important; 
  }

  .top-image { 
    padding-bottom: 100px; 
  }
  .bottom-image { 
    padding-top: 100px; 
  }
}

/* さらに超小さい画面（iPhone SE旧型など320px以下） */
@media (max-width: 350px) {
  .entrance-buttons .btn {
    min-width: 220px !important;
    font-size: 1rem !important;
    padding: 14px 20px !important;
  }
  .content-overlay .text-bg { 
    font-size: 1rem !important; 
    padding: 10px 18px !important; 
  }
}