/*
Theme Name: Isshin Theme
Author: Gemini
Description: Isshinのカスタムテーマ
Version: 1.2
*/

/* --- リセット & 基本設定 --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif; color: #333; line-height: 1.6; background: #ffffff; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; vertical-align: bottom; }
ul{list-style: none;}

/* --- ヘッダー全体 --- */
.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 999;
    height: 80px;
    width: 100%;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* --- 左側：ロゴ --- */
.site-branding {
    flex-shrink: 0;
    margin-right: 20px;
}
.site-title {
    font-size: 24px;
    font-weight: bold;
    color: #005a87;
    margin: 0;
}
.site-title a { color: #005a87; }
.site-logo img {
    max-height: 50px;
    width: auto;
}

/* --- 右側：ナビゲーション ＋ ボタン --- */
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-grow: 1;
}

/* --- メニュー（横並び） --- */
.main-navigation {
    margin-right: 25px; /* ボタンとの距離 */
}
/* WordPressが出力するメニューコンテナの調整 */
.main-navigation ul.menu,
.main-navigation > ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative; /* 子メニューの基準点 */
}

.main-navigation li a {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}
.main-navigation li a:hover {
    color: #005a87;
}

/* --- ドロップダウンメニュー（子メニュー） --- */
/* .sub-menu はWordPressが自動でつけるクラスです */
.main-navigation ul.sub-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    border-top: 2px solid #005a87; /* デザインアクセント */
}

/* 縦並びにする */
.main-navigation ul.sub-menu li {
    display: block;
    width: 100%;
    border-bottom: 1px solid #eee;
}

.main-navigation ul.sub-menu li a {
    padding: 12px 20px;
    font-size: 13px;
    font-weight: normal;
    color: #555;
}

.main-navigation ul.sub-menu li a:hover {
    background: #f5f5f5;
    color: #005a87;
}


/* --- ヘッダーお申込みボタン --- */
/* カスタマイザーで設定したボタン */
.header-cta .btn-header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e97b22; /* オレンジ */
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 0 25px;
    height: 44px;
    border-radius: 22px;
    white-space: nowrap;
}
.header-cta .btn-header-cta:hover {
    opacity: .8;
}
.arrow-icon {
    margin-left: 8px;
    font-family: monospace;
}

/* --- メインビジュアル --- */
.hero-section {
    background-size: cover; background-position: center; height: 400px;
    display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; position: relative;
    background-color: #003366; /* 画像がない場合の背景色 */
}
.hero-section::after { content: ''; position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.3); }
.hero-content { position: relative; z-index: 2; }
.hero-content h2 { font-size: 32px; margin-bottom: 20px; font-weight: bold; }
.btn-hero { background: #e60012; color: #fff; padding: 12px 40px; border-radius: 50px; font-weight: bold; display: inline-block; font-size: 16px; }

/* --- その他コンテンツ --- */
.news-section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 40px; font-size: 28px; color: #005a87; font-weight: bold; }
.news-list { list-style: none; max-width: 800px; margin: 0 auto; background: #fff; padding: 20px; border-radius: 8px; }
.news-list li { border-bottom: 1px solid #eee; padding: 15px 0; display: flex; flex-wrap: wrap; align-items: baseline; }
.news-date { color: #888; margin-right: 20px; font-size: 14px; }

/* スマホ対応 */
@media (max-width: 1240px) {
    .header-inner { flex-direction: column; padding: 15px; height: auto; }
    .header-right { flex-direction: column; width: 100%; margin-top: 15px; gap: 15px; }
    .main-navigation { margin-right: 0; width: 100%; }
    .main-navigation ul { justify-content: center; }
    /* スマホではドロップダウンを常に表示するか、ハンバーガーメニューが必要になりますが、一旦簡易表示とします */
    .main-navigation ul.sub-menu { position: static; box-shadow: none; border-top: none; padding-left: 20px; opacity: 1; visibility: visible; display: none; }
}