/*
Theme Name: Murakami Koi Simple
Description: 村上養鯉場様向け シンプルレスポンシブテーマ
Author: WP Guide
Version: 2.7
*/

/* --- 1. リセットと基本設定 --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    width: 100%;
    overflow-x: hidden;
}

body { 
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif; 
    color: #333; 
    line-height: 1.6; 
    background-color: #f9f9f9; 
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

a { color: #cc0000; text-decoration: none; }
img, svg { max-width: 100%; height: auto; vertical-align: bottom; }

.global-wrapper {
    width: 100%;
    overflow: hidden; 
    position: relative;
}

/* --- 2. レイアウト共通 --- */
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.section-box { padding: 60px 0; }
.section-box:nth-child(even) { background-color: #f0f0f0; }
.section-title { text-align: center; margin-bottom: 40px; font-size: 1.8rem; border-bottom: 2px solid #cc0000; display: inline-block; padding-bottom: 5px; }

/* --- 3. ヘッダー --- */
header {
    background: #202f55;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* 【修正】高さを80pxに戻しました */
    height: 80px;
}

.site-title a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.2;
}
.logo-sub {
    font-size: 0.75rem;
    color: #fff;
    font-weight: normal;
    letter-spacing: 0.05em;
    opacity: 0.9;
}
.logo-main {
    font-size: 1.8rem;
    font-weight: bold;
    margin-top: 2px;
}
.text-red { color: #ff3333; margin-right: 5px; }
.text-white { color: #fff; }

.pc-nav ul { display: flex; list-style: none; gap: 20px; }
.pc-nav a { color: #fff; font-weight: bold; font-size: 1rem; opacity: 0.9; }
.pc-nav a:hover { opacity: 1; text-decoration: underline; }

.menu-toggle { display: none; font-size: 1.8rem; background: none; border: none; cursor: pointer; color: #fff; }
.mobile-nav { display: none; background: #202f55; position: absolute; top: 80px; left: 0; width: 100%; border-top: 1px solid rgba(255,255,255,0.1); }
.mobile-nav li a { display: block; padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); color: #fff; }

/* --- 4. メインビジュアル --- */
.hero {
    background-image: url('http://cyberne2021.xsrv.jp/murakami/wp-content/uploads/2025/12/TOP.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.4); 
    background-blend-mode: overlay;
    color: #fff;
    text-align: center;
    margin-bottom: 0;
    
    /* 【修正】PCでは高さを指定（元の約200px → 500pxへ拡大） */
    height: 500px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero h2, .hero p { display: none; }

/* --- 5. ABOUT --- */
.about-list { max-width: 800px; margin: 0 auto; }
.about-item { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.about-img { flex-shrink: 0; width: 100px; height: 100px; }
.about-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.about-text { flex-grow: 1; font-size: 1.1rem; padding-bottom: 10px; border-bottom: 1px solid #999; }
.link-more-wrap { text-align: right; margin-top: 20px; }
.link-more { display: inline-block; color: #cc0000; font-weight: bold; border-bottom: 1px solid #cc0000; padding-bottom: 2px; transition: all 0.3s; }

/* --- 6. お知らせリスト --- */
.post-list { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.post-item { background: #fff; border-radius: 5px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.post-content { padding: 15px; }
.post-title { font-size: 1.2rem; margin-bottom: 10px; display: block; font-weight: bold; }
.post-date { font-size: 0.8rem; color: #888; }
.post-thumbnail { display: block; height: 200px; overflow: hidden; }
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.post-item:hover .post-thumbnail img { transform: scale(1.05); }

/* --- 7. パーツ類 --- */
.btn-shop { display: inline-block; background-color: #cc0000; color: #fff; padding: 15px 40px; border-radius: 50px; font-size: 1.2rem; font-weight: bold; margin-top: 20px; transition: background 0.3s; }
.btn-shop:hover { background-color: #a00000; }

.sns-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.sns-card { display: flex; justify-content: center; align-items: center; padding: 20px; color: #fff; border-radius: 8px; transition: opacity 0.3s; font-weight: bold; font-size: 1.2rem; }
.sns-card:hover { opacity: 0.8; color: #fff; }
.youtube { background-color: #c4302b; }
.facebook { background-color: #3b5998; }
.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }

.sns-card svg, .sns-card img, .nav-sns-icons svg, .nav-sns-icons img {
    width: 30px !important;
    height: 30px !important;
    display: block;
    fill: currentColor;
}

.faq-item { background: #fff; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 4px; }
.faq-item summary { padding: 15px 20px; cursor: pointer; font-weight: bold; position: relative; list-style: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 20px; font-size: 1.2rem; color: #cc0000; }
.faq-item[open] summary::after { content: '-'; }
.faq-answer { padding: 15px 20px; border-top: 1px solid #eee; background-color: #fafafa; }

/* --- 8. フッター --- */
#footer { background-color: #202f55; color: #fff; padding: 50px 0 20px; font-size: 0.95rem; }
#footer a { color: #fff !important; text-decoration: none; }
.footer-layout { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.footer-brand { flex: 0 0 260px; }
.footer-info { flex: 1; min-width: 280px; }
.info-dl { margin-top: 10px; line-height: 1.8; }
.info-dl dt { float: left; width: 5em; font-weight: normal; opacity: 0.8; clear: left; }
.info-dl dd { margin-left: 5em; margin-bottom: 5px; }
.footer-note { font-size: 0.85rem; opacity: 0.8; margin-top: 10px; line-height: 1.4; color: #ddd; }
.footer-map { flex: 0 0 280px; height: 200px; background: #eee; border-radius: 4px; overflow: hidden; }
.footer-map iframe { width: 100%; height: 100%; border: 0; }
.copyright { text-align: center; font-size: 0.75rem; color: #aaa; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }

/* レスポンシブ */
@media screen and (max-width: 960px) {
    .footer-layout { flex-direction: column; gap: 40px; }
    .footer-brand, .footer-info, .footer-map { width: 100%; flex: auto; }
}
@media screen and (max-width: 768px) {
    .pc-nav { display: none; }
    .menu-toggle { display: block; }
    .header-inner { height: 70px; }
    .site-title .logo-main { font-size: 1.5rem; }
    
    /* 【修正】スマホ表示時のトップ画像は元の高さ設定（paddingによる高さ）を維持 */
    .hero {
        height: auto;
        padding: 100px 20px;
    }
}
@media screen and (max-width: 600px) {
    .about-item { gap: 15px; margin-bottom: 20px; }
    .about-img { width: 80px; height: 80px; }
    .sns-grid { grid-template-columns: 1fr; }
    .single-article-header { margin-left: -20px; margin-right: -20px; width: calc(100% + 40px); }
}

.nav-sns-icons { display: flex; align-items: center; gap: 15px; margin-left: 10px; }
.nav-sns-icons a { display: inline-flex; color: #fff; opacity: 0.8; transition: opacity 0.3s; }
.nav-sns-icons a:hover { opacity: 1; }

@media screen and (max-width: 960px) {
    .pc-nav ul { gap: 15px; }
    .pc-nav a { font-size: 0.9rem; }
    .nav-sns-icons { gap: 10px; }
}

/* --- ページ個別設定 --- */
.page-header { background-color: #202f55; color: #fff; padding: 30px 0; margin-bottom: 40px; text-align: center; }
.page-title { font-size: 1.8rem; font-weight: bold; }
.single-container { max-width: 800px; margin: 0 auto 80px; width: 100%; }
.single-article { background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 40px; }
.single-article-header { background-color: #202f55; padding: 30px; margin-bottom: 30px; border-radius: 4px; }
.single-date { display: block; color: #fff; font-size: 0.9rem; margin-bottom: 10px; opacity: 0.9; }
.single-title { font-size: 1.8rem; font-weight: bold; color: #fff; line-height: 1.4; margin: 0; }
.single-thumbnail { margin-bottom: 40px; text-align: center; }
.single-thumbnail img { max-width: 100%; height: auto; border-radius: 4px; }
.article-content { font-size: 1.1rem; line-height: 1.8; color: #333; overflow-wrap: break-word; }
.article-content img { max-width: 100%; height: auto; margin: 30px auto; display: block; border-radius: 4px; }
.article-content p { margin-bottom: 1.5em; }

/* 品評会 */
.koi-photo img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); margin-bottom: 20px; }
.koi-spec-table-wrap { max-width: 600px; margin: 0 auto 30px; }
.koi-spec-table { width: 100%; border-collapse: collapse; border: 2px solid #000; background: #fff; }
.koi-spec-table th, .koi-spec-table td { border: 1px solid #000; padding: 15px; font-size: 1.1rem; vertical-align: middle; }
.koi-spec-table th { width: 30%; text-align: center; font-weight: bold; background: #f9f9f9; }
.koi-spec-table td { width: 70%; text-align: left; padding-left: 30px; }
@media screen and (max-width: 600px) { .koi-spec-table th, .koi-spec-table td { display: block; width: 100%; text-align: center; border-bottom: none; } .koi-spec-table th { border-bottom: 1px solid #ddd; } }
.koi-text { white-space: normal; text-align: left; margin-bottom: 40px; font-size: 1rem; line-height: 1.8; }
.koi-video-wrap { margin: 40px 0; max-width: 800px; margin-left: auto; margin-right: auto; }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; background: #000; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.post-navigation { display: flex; justify-content: space-between; margin-top: 60px; padding-top: 30px; border-top: 1px solid #eee; }
.post-navigation a { color: #202f55; font-weight: bold; }

/* About */
.sub-title-jp { display: block; font-size: 1rem; font-weight: normal; margin-top: 5px; opacity: 0.8; }
.about-row-section { padding: 80px 0; }
.bg-gray { background-color: #dcdcd7; }
.about-row { display: flex; align-items: center; gap: 50px; justify-content: space-between; }
.about-desc { flex: 1; }
.about-head { font-size: 1.5rem; margin-bottom: 20px; color: #8b5a2b; font-weight: bold; }
.about-image { flex: 0 0 45%; }
.about-image img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
@media screen and (max-width: 768px) { .about-row-section { padding: 50px 0; } .about-row, .about-row.reverse { flex-direction: column-reverse; gap: 30px; } .about-image { flex: auto; width: 100%; } }
.about-shop-banner { padding: 80px 0; background: #fff; }
.small-note { font-size: 0.8rem; color: #666; margin-bottom: 20px; }
.banner-link { display: block; width: 100%; max-width: 1200px; margin: 0 auto; }
.banner-link img { width: 100%; height: auto; max-height: 400px; object-fit: cover; border-radius: 8px; transition: opacity 0.3s; }
.banner-link:hover img { opacity: 0.8; }

/* スマホ用お知らせ横スクロール */
@media screen and (max-width: 768px) {
    .news-section .post-list { display: flex; overflow-x: auto; gap: 15px; padding-bottom: 20px; scroll-snap-type: x mandatory; -ms-overflow-style: none; scrollbar-width: none; }
    .news-section .post-list::-webkit-scrollbar { display: none; }
    .news-section .post-item { flex: 0 0 85%; min-width: 280px; scroll-snap-align: center; margin-bottom: 0; }
    .post-thumbnail { height: 180px; }
}

/* スケジュール */
.schedule-list { list-style: none; padding: 0; max-width: 800px; margin: 0 auto; border-top: 1px solid #ddd; }
.schedule-item { display: flex; align-items: center; border-bottom: 1px solid #ddd; padding: 20px; background: #fff; transition: background 0.3s; }
.schedule-item:hover { background: #fdfdfd; }
.schedule-date-box { flex-shrink: 0; width: 180px; font-weight: bold; color: #202f55; font-size: 1.1rem; }
.s-week { font-size: 0.9rem; color: #666; margin-left: 5px; }
.schedule-title { flex-grow: 1; font-size: 1.1rem; margin: 0; font-weight: normal; }
@media screen and (max-width: 600px) {
    .schedule-item { flex-direction: column; align-items: flex-start; }
    .schedule-date-box { width: 100%; margin-bottom: 5px; color: #cc0000; }
    .schedule-title { font-size: 1rem; }
}