/* リセットCSS & 基本設定 */
body, h1, h2, h3, ul, li, p, section, img, svg {
    margin: 0;
    padding: 0;
    border: 0;
}
*, *::before, *::after {
    box-sizing: border-box;
}
body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
}
ul {
    list-style: none;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border-radius: 10px;
}
.icon-svg {
    height: 80px;
    width: 80px;
    fill: #03487c;
    margin-bottom: 10px;
}

/* ヘッダー */
.header {
    background: linear-gradient(135deg, #03487c, #2b6cb0);
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.header__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 10px;
}
.logo {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
.search-box-header {
    display: flex;
    align-items: center;
    border-radius: 25px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}
.search-box-header input {
    padding: 10px 20px;
    border: none;
    width: 200px;
    color: #333;
    outline: none;
    background: transparent;
}
.search-box-header button {
    background: #f0f0f0;
    border: none;
    color: #2b6cb0;
    font-size: 1.4rem;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.search-box-header button:hover {
    background-color: #e0e0e0;
}
.header__nav {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 20px;
}
.header__nav ul {
    display: flex;
    justify-content: space-around;
}
.header__nav a {
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
}
.header__nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* メインビジュアル */
.hero {
    position: relative;
    height: 450px;
    background-image: linear-gradient(135deg, #03487c 0%, #2b6cb0 50%, #0891b2 100%);
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.hero__content {
    position: relative;
    z-index: 2;
    padding: 20px;
}
.hero h1 {
    font-size: clamp(32px, 5vw, 60px);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 25px;
}
.cta-button {
    background: linear-gradient(45deg, #ffc107, #ff9800);
    color: #333;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}
.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 152, 0, 0.6);
}

/* ガイドセクション */
.guide-section, .gemini-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}
.guide-section h2, .gemini-section h2 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: bold;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}
.guide-section h2::after, .gemini-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ffc107, #ff9800);
    border-radius: 2px;
}
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 20px;
    text-align: center;
}
.guide-item {
    /* 魚種別ガイドのカードスタイル */
    background-color: #f7fbfd; /* 明るい水色に変更 */
    border-radius: 15px;
    padding: 25px 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #d4eaf7; /* 濃い水色に変更 */
}
.guide-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}
.guide-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
    transition: transform 0.3s;
}
.guide-item:hover img {
    transform: scale(1.1);
}

/* 季節・エリア別ガイド用の4列設定 */
.guide-grid.grid--4-col {
    gap: 30px;
}
.guide-item-card {
    background-color: #f0f7ff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
}
.guide-item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}
.guide-item-card h3 {
    font-size: 20px;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #03487c;
}
.guide-item-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}
.guide-item-card .card-content {
    padding: 0 20px 20px;
}
.card-image-container {
    height: 200px;
    background-color: #d1e5f8;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}
.card-image-container svg {
    width: 100%;
    height: 100%;
    max-width: 150px;
    max-height: 150px;
}

/* パソコン画面用のグリッド固定設定 */
@media (min-width: 1024px) {
    .guide-section.fish-guide .guide-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .guide-grid.grid--4-col {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Geminiセクション */
.gemini-section {
    background-color: #f9f9f9;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.gemini-section h2 {
    color: #2b6cb0;
}
.gemini-input-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    align-items: center;
}
.gemini-input-container input {
    width: 100%;
    max-width: 600px;
    padding: 15px 20px;
    border: 1px solid #ccc;
    border-radius: 30px;
    font-size: 16px;
    transition: box-shadow 0.3s;
}
.gemini-input-container input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.3);
}
.gemini-report-input {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 900px;
    margin: 20px auto;
}
.gemini-report-input input {
    flex: 1 1 200px;
    margin: 5px;
}
.gemini-section button {
    padding: 15px 30px;
    background: linear-gradient(45deg, #03487c, #2b6cb0);
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(3, 72, 124, 0.4);
}
.gemini-section button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(43, 108, 176, 0.6);
}
.gemini-output {
    margin-top: 30px;
    text-align: left;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 15px;
    line-height: 1.8;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}
.loading, .error {
    text-align: center;
    color: #555;
    font-style: italic;
}
.error {
    color: #d9534f;
}

/* おすすめタックル紹介 */
.gear-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}
.gear-section h2 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: bold;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}
.gear-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ffc107, #ff9800);
    border-radius: 2px;
}
.gear-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
.gear-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.gear-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
.gear-card__image {
    background-color: #e0f2ff;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.gear-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}
.gear-card__image svg {
    height: 120px;
    width: 120px;
    fill: #2b6cb0;
}
.gear-card__content {
    padding: 25px 20px;
}
.gear-card h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #03487c;
}
.cta-button-small {
    background: linear-gradient(45deg, #ffc107, #ff9800);
    color: #333;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.4);
}
.cta-button-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.6);
}

/* フッター */
.footer {
    background-color: #222;
    color: #ddd;
    padding: 30px;
    text-align: center;
}
.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer p {
    margin: 0;
    font-size: 14px;
    margin-bottom: 15px;
}
.footer ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer a {
    transition: color 0.3s;
}
.footer a:hover {
    color: #fff;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #d1e5f8;
    color: #555;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 10px;
}