@charset "utf-8";
/* （hongochurch）新しいメイン画面 (theme/basic/mobile/index_hc.php)。2026-11-21
   色はテーマの変数 (--main-color など) を使うので、ダークモードでも読める */

.hcm {--hcm-radius:14px;--hcm-line:rgba(127,127,127,.18);--hcm-soft:rgba(var(--main-bg-rgb),.07);--hcm-shadow:0 6px 22px rgba(0,0,0,.07);margin:0 0 10px;color:var(--body-color)}
.hcm a {color:inherit;text-decoration:none}
.hcm h2, .hcm h3 {margin:0;letter-spacing:-0.01em}

/* 見出し */
.hcm-sec {margin:0 0 44px}
.hcm-head {display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 0 18px}
.hcm-eyebrow {margin:0 0 4px;font-size:0.72em;font-weight:700;letter-spacing:0.18em;color:var(--main-color)}
.hcm-head h2 {font-size:1.45em;font-weight:800;line-height:1.3}
.hcm-more {flex:none;font-size:0.85em;font-weight:600;color:var(--main-color) !important;white-space:nowrap}
.hcm-more i {transition:transform .2s}
.hcm-more:hover i {transform:translateX(3px)}

/* ボタン */
.hcm-btns {display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.hcm-btn {display:inline-flex;align-items:center;gap:7px;padding:10px 18px;border-radius:999px;background:var(--main-color);color:#fff !important;font-weight:700;font-size:0.9em;border:2px solid var(--main-color);transition:opacity .2s, transform .2s}
.hcm-btn:hover {opacity:.88;transform:translateY(-1px)}
.hcm-btn-line {background:transparent;color:var(--main-color) !important}

/* ようこそ */
.hcm-welcome {display:grid;grid-template-columns:1.1fr 1fr;gap:28px;align-items:center;margin:6px 0 44px;padding:34px 34px;border-radius:var(--hcm-radius);background:linear-gradient(135deg, rgba(var(--main-bg-rgb),.10), rgba(var(--main-bg-rgb),.02) 60%);border:1px solid var(--hcm-line)}
.hcm-welcome h2 {font-size:1.75em;font-weight:800;line-height:1.35;margin-bottom:12px}
.hcm-welcome-txt > p:last-child {margin:0;line-height:1.85;opacity:.85}
.hcm-quick {display:grid;gap:10px}
.hcm-quick a {display:grid;grid-template-columns:44px 1fr auto;grid-template-rows:auto auto;column-gap:12px;align-items:center;padding:14px 16px;border-radius:12px;background:var(--body-bg);border:1px solid var(--hcm-line);box-shadow:var(--hcm-shadow);transition:transform .2s, border-color .2s}
.hcm-quick a:after {content:"\f054";font-family:"Font Awesome 7 Free","Font Awesome 6 Free";font-weight:900;grid-row:1 / 3;grid-column:3;font-size:0.8em;opacity:.4}
.hcm-quick a:hover {transform:translateY(-2px);border-color:var(--main-color)}
.hcm-quick i {grid-row:1 / 3;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:var(--hcm-soft);color:var(--main-color);font-size:1.15em}
.hcm-quick b {font-size:1em}
.hcm-quick span {font-size:0.8em;opacity:.65}

/* 礼拝のご案内 */
.hcm-worship {display:grid;grid-template-columns:1.5fr 1fr;gap:20px}
.hcm-times {display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0;padding:0;list-style:none}
.hcm-times li {display:flex;align-items:center;gap:12px;padding:16px;border-radius:12px;background:var(--body-bg);border:1px solid var(--hcm-line)}
.hcm-times li > i {flex:none;width:38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:var(--hcm-soft);color:var(--main-color)}
.hcm-times li div {flex:1;min-width:0}
.hcm-times b {display:block;font-size:0.95em}
.hcm-times span {display:block;font-size:0.75em;opacity:.6}
.hcm-times time {font-size:1.5em;font-weight:800;color:var(--main-color);font-variant-numeric:tabular-nums}
.hcm-access {padding:22px;border-radius:12px;background:var(--bg-box);border:1px solid var(--hcm-line)}
.hcm-access > p {margin:0 0 6px;line-height:1.7}
.hcm-access-tit {font-weight:800;color:var(--main-color)}
.hcm-access dl {display:grid;grid-template-columns:22px 1fr;gap:8px 8px;margin:14px 0 0;font-size:0.92em;line-height:1.6}
.hcm-access dt {color:var(--main-color);text-align:center}
.hcm-access dd {margin:0}

/* 最新の説教 */
.hcm-sermon {display:grid;grid-template-columns:1.35fr 1fr;gap:26px;align-items:center;margin-bottom:18px}
.hcm-thumb {position:relative;display:block;overflow:hidden;border-radius:12px;background:#111}
.hcm-thumb img {position:absolute;inset:0;width:100% !important;height:100% !important;max-width:none !important;object-fit:cover;object-position:center;transition:transform .35s}
.hcm-16x9 {aspect-ratio:16 / 9}
.hcm-9x16 {aspect-ratio:9 / 16}
a:hover .hcm-thumb img {transform:scale(1.04)}
.hcm-play {position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:54px;height:54px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:rgba(var(--main-bg-rgb),.92);color:#fff;font-size:1.1em;box-shadow:0 4px 16px rgba(0,0,0,.3)}
.hcm-feature .hcm-play {width:72px;height:72px;font-size:1.5em}
.hcm-date {margin:0 0 8px;font-size:0.85em;font-weight:700;color:var(--main-color)}
.hcm-feature-txt h3 {font-size:1.6em;font-weight:800;line-height:1.4}
.hcm-verse {margin:10px 0 0;opacity:.75}

/* カード */
.hcm-cards {display:grid;gap:16px;margin:0;padding:0;list-style:none}
.hcm-cards-3 {grid-template-columns:repeat(3, 1fr)}
.hcm-cards-4 {grid-template-columns:repeat(4, 1fr)}
.hcm-cards a {display:block}
.hcm-card-txt {display:block;padding:10px 2px 0}
.hcm-card-txt small {display:block;font-size:0.75em;opacity:.6;margin-bottom:2px}
.hcm-card-txt b {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:0.92em;line-height:1.5}
.hcm-card-txt em {display:block;font-style:normal;font-size:0.78em;opacity:.6;margin-top:2px}
.hcm-cards a:hover b {color:var(--main-color)}
.hcm-shorts .hcm-play {width:44px;height:44px}
.hcm-cards.hcm-shorts {grid-template-columns:repeat(6, 1fr)}   /* PC はショート 6 件 */

/* 2 段 (原稿・行事) */
.hcm-2col {display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:stretch;margin:0 0 44px}   /* 左右の枠の高さをそろえる */
.hcm-2col .hcm-sec {margin:0}
.hcm-2col > *, .hcm-worship > *, .hcm-sermon > *, .hcm-welcome > * {min-width:0}   /* 長い文で段がはみ出さないように */
.hcm-panel {padding:24px;border-radius:var(--hcm-radius);background:var(--body-bg);border:1px solid var(--hcm-line);box-shadow:var(--hcm-shadow)}
.hcm-panel .hcm-head h2 {font-size:1.2em}
.hcm-list {margin:0;padding:0;list-style:none}
.hcm-list li + li {border-top:1px solid var(--hcm-line)}
.hcm-list a {display:flex;align-items:center;gap:10px;padding:13px 2px}
.hcm-list a > i {color:var(--main-color);opacity:.8}
.hcm-list b {flex:1;min-width:0;font-weight:600;font-size:0.93em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hcm-list small {flex:none;font-size:0.78em;opacity:.55}
.hcm-list a:hover b {color:var(--main-color)}
.hcm-list-ex a {display:block}
.hcm-list-ex small {display:block;color:var(--main-color);opacity:1;font-weight:700}
.hcm-list-ex b {display:block;white-space:normal;margin:2px 0 4px;font-size:1em}
.hcm-list-ex span {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:0.85em;line-height:1.65;opacity:.7}
.hcm-new {display:inline-block;margin-left:4px;padding:1px 6px;border-radius:4px;background:var(--main-color);color:#fff;font-style:normal;font-size:0.68em;font-weight:700;vertical-align:middle}

/* ギャラリー */
.hcm-gallery {display:grid;grid-template-columns:repeat(4, 1fr);gap:8px;margin:0;padding:0;list-style:none}
.hcm-gallery a {display:block;aspect-ratio:4 / 3;overflow:hidden;border-radius:10px}
.hcm-gallery img {width:100% !important;height:100% !important;object-fit:cover;transition:transform .35s}
.hcm-gallery a:hover img {transform:scale(1.05)}

/* アプリのボタン (extend 12) をこの画面に合わせる */
.hc_app {margin:0 0 24px !important;border-radius:var(--hcm-radius, 14px) !important}

/* タブレット */
@media (max-width:991px) {
    .hcm-welcome, .hcm-worship, .hcm-sermon {grid-template-columns:1fr}
    .hcm-cards-4 {grid-template-columns:repeat(2, 1fr)}
    .hcm-cards.hcm-shorts {grid-template-columns:repeat(4, 1fr)}
    .hcm-shorts li:nth-child(n+5) {display:none}
}
/* スマートフォン */
@media (max-width:767px) {
    .hcm-sec {margin-bottom:34px}
    .hcm-welcome {padding:24px 20px;gap:20px;margin-bottom:34px}
    .hcm-welcome h2 {font-size:1.4em}
    .hcm-head h2 {font-size:1.25em}
    .hcm-times {grid-template-columns:1fr 1fr;gap:8px}
    .hcm-times li {flex-direction:column;align-items:flex-start;gap:2px;padding:12px 13px}
    .hcm-times li > i {display:none}
    .hcm-times b {font-size:0.88em}
    .hcm-times span {font-size:0.7em}
    .hcm-times time {font-size:1.35em;margin-top:2px}
    .hcm-2col {grid-template-columns:1fr;gap:18px;margin-bottom:34px}
    .hcm-panel {padding:18px}
    .hcm-cards-3 {grid-template-columns:1fr 1fr}
    .hcm-cards-3 li:nth-child(3) {display:none}
    .hcm-cards.hcm-shorts {grid-template-columns:repeat(2, 1fr)}
    .hcm-gallery {grid-template-columns:repeat(2, 1fr)}
    .hcm-feature-txt h3 {font-size:1.3em}
}
