/* style-sp.css */
@charset "UTF-8";
/* ====================================
   スマホ用スタイル (768px以下で適用)
==================================== */

body {
    padding-bottom: 60px;
}

.container, .front-page-container {
    padding: 0 15px;
}
.front-page-container {
    padding-top: 20px;
    padding-bottom: 40px;
}

/* --- ヘッダー --- */
.site-header {
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.header-top {
    padding: 10px 15px;
    height: 60px;
}
.site-logo {
    font-size: 1.2rem;
}
.header-partner-btn {
    display: none;
}

/* 修正: display:none を削除。
   このバーは中身(global-nav)がposition:fixedのため
   通常フローでの高さは0になり、見た目上は何も表示されません。
   display:none にすると親ごと消えてしまい、中の.global-navも
   一切描画されずハンバーガーメニューが開かなくなるため削除しました。 */
.header-bottom {
    background-color: transparent;
}

/* ハンバーガーメニュー */
.hamburger {
    display: block;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    position: relative;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin-bottom: 5px;
    transition: 0.3s;
}
.global-nav {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.global-nav.is-active {
    left: 0;
}
.global-nav ul {
    flex-direction: column;
    gap: 30px;
}
.global-nav a {
    font-size: 1.2rem;
    color: var(--text-color);
    padding: 10px;
}
.global-nav a:hover {
    background-color: transparent;
}

/* --- ヒーローセクション --- */
.hero {
    padding: 40px 15px;
    border-radius: 0 0 20px 20px;
    margin-bottom: 30px;
}
.hero-title {
    font-size: 1.6rem;
    margin: 0 0 15px;
}
.hero-subtitle {
    font-size: 0.95rem;
    margin: 0 0 20px;
}
.btn-hero {
    font-size: 1rem;
    padding: 15px 30px;
    border-radius: 30px;
}

/* --- トップページ：サービス一覧（縦積み） --- */
.service-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.service-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-radius: 10px;
    height: 110px;
    overflow: hidden;
}
.service-img {
    width: 110px;
    height: 100%;
    flex-shrink: 0;
    font-size: 0.7rem;
    text-align: center;
}
.service-text {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}
.service-title {
    font-size: 0.95rem;
    margin: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.service-desc {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.btn-service-detail {
    font-size: 0.75rem;
    margin-top: 2px;
}

/* --- 新着情報 --- */
.section-title {
    font-size: 1.4rem;
    margin: 0 0 20px 0;
    border-bottom: 2px solid var(--primary-color);
}

.news-tabs {
    /* 修正: display:flex / list-style:none はstyle.css側で共通化したため削除。
       ここではスマホ特有の「横スクロールチップ」デザインのみ指定します。 */
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    gap: 8px;
    padding-bottom: 4px; /* スクロールバー領域とタブの間に余白 */
    border-bottom: none; /* PC版の下線は使わず、タブ自体を独立したチップ風に */
}
.news-tabs::-webkit-scrollbar {
    display: none;
}
.tab-item {
    flex-shrink: 0; /* 修正: これが無いと横スクロールせずタブが潰れて縮んでいた */
    scroll-snap-align: start;
    padding: 10px 18px;
    font-size: 0.85rem;
    border-radius: 20px; /* チップ風の丸みに変更 */
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(194, 24, 91, 0.1);
}
.tab-item.is-active {
    box-shadow: 0 2px 6px rgba(194, 24, 91, 0.3);
}
.news-list {
    padding: 12px;
    border-radius: 12px;
    margin-top: 10px; /* チップ型タブとの間に余白 */
    background: transparent;
    border: none;
}
.news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}
.news-date {
    font-size: 0.85rem;
}

/* リッチな記事一覧レイアウト（スマホ）：カード型・横並びサムネイル */
.news-item-rich {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    margin-bottom: 12px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(194, 24, 91, 0.08);
}
.news-item-rich:last-child {
    margin-bottom: 0;
}
.news-title-rich {
    font-size: 1rem;
    line-height: 1.4;
}
.news-body-rich {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}
.news-text-area {
    width: auto;
    flex: 1;
    min-width: 0; /* テキストがはみ出さないよう縮小を許可 */
}
.news-excerpt {
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-thumb-area {
    width: 88px;
    flex-shrink: 0;
}
.news-tags {
    gap: 6px;
    margin-top: 2px;
}
.news-tag {
    font-size: 0.7rem;
    padding: 3px 10px;
}

/* --- 下層ページ用 1カラム化 --- */
.site-content-wrapper {
    flex-direction: column;
    gap: 30px;
    padding-top: 20px;
}
.sidebar {
    width: 100%;
}

/* --- スマホ用フローティングボタン --- */
.floating-contact {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    z-index: 999;
}

/* SNSアイコン群（修正: スタイル未定義だったため新規追加） */
.float-sns-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background-color: #ffffff;
    padding: 8px 0;
    border-top: 1px solid #eee;
}
.float-btn-sns {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
}
.float-btn-sns svg {
    width: 18px;
    height: 18px;
}
.float-ig { background-color: #E1306C; }
.float-yt { background-color: #FF0000; }
.float-tt { background-color: #000000; }
.float-x  { background-color: #000000; }

/* 電話・WEB予約ボタン群（修正: display:flex追加、float-reserve→float-mailに修正） */
.float-main-group {
    display: flex;
    width: 100%;
}
.float-btn {
    width: 50%;
    height: 60px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
    gap: 6px;
    padding-bottom: env(safe-area-inset-bottom);
}
.float-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.float-phone { background-color: var(--primary-color); }
.float-mail  { background-color: var(--secondary-color); }

/* ====================================
   フッター（スマホ用調整）
==================================== */
.site-footer {
    padding: 40px 0 20px;
}
.footer-container {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}
.footer-left h2 {
    font-size: 1.4rem;
}
.footer-right {
    order: -1; /* スマホではバナーを先頭（一番上）に表示 */
}
.footer-banner img {
    max-width: 240px;
}

/* ====================================
   アーカイブ／検索結果ページ（SP用サイズ調整）
==================================== */
.container, .front-page-container, .l-container {
    padding: 0 15px;
}
.p-page-header {
    padding: 30px 15px;
}
.p-page-header__title {
    font-size: 1.4rem;
}
.p-archive__body {
    padding-top: 24px;
    margin-bottom: 50px;
}
.c-card-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.c-price-table {
    margin-bottom: 24px;
}
.c-price-table__title {
    font-size: 1.1rem;
    padding: 14px 16px;
}
.c-price-table__table th,
.c-price-table__table td {
    padding: 10px 16px;
    font-size: 0.85rem;
}
.c-price-table__note {
    padding: 10px 16px;
    font-size: 0.75rem;
}
.c-card__img {
    aspect-ratio: 16/9;
}
.c-card__body {
    padding: 14px;
}
.c-card__title {
    font-size: 1rem;
}
.c-card__area,
.c-card__price {
    font-size: 0.75rem;
}
.p-pagination .page-numbers {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    font-size: 0.85rem;
}

/* --- 新着情報セクションの下余白 --- */
.top-news {
    margin-bottom: 50px;
}

/* ====================================
   記事詳細ページ（SP用サイズ調整）
==================================== */
.p-single__inner {
    padding: 30px 15px 60px;
}
.p-single__category-list {
    margin-bottom: 12px;
}
.p-single__title {
    font-size: 1.4rem;
    margin: 0 0 12px;
}
.p-single__date {
    font-size: 0.85rem;
    margin-bottom: 16px;
}
.p-single__meta {
    margin-bottom: 20px;
}
.p-single__thumbnail {
    margin-bottom: 24px;
}
.p-single__content {
    font-size: 0.95rem;
}
.p-single__content h2 {
    font-size: 1.2rem;
    margin: 1.6em 0 0.8em;
}
.p-single__content h3 {
    font-size: 1.05rem;
    margin: 1.4em 0 0.6em;
}
.p-single__content blockquote {
    padding: 14px 16px;
    margin: 1.2em 0;
}
.p-single__nav {
    margin-top: 40px;
}

/* --- 前後の記事カード（SP用サイズ） --- */
.p-single__adjacent {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 30px;
}
.p-adjacent-card__img {
    width: 80px;
    height: 70px;
}
.p-adjacent-card__img .no-image {
    font-size: 0.55rem;
}
.p-adjacent-card__body {
    padding: 10px;
    gap: 4px;
}
.p-adjacent-card__label {
    font-size: 0.7rem;
}
.p-adjacent-card__title {
    font-size: 0.85rem;
}
/* スマホは1カラム表示なので、画像は常に左・テキストは常に左寄せに統一 */
.p-adjacent-card--next {
    text-align: left;
}
.p-adjacent-card--next .p-adjacent-card__body {
    order: 0;
}
.p-adjacent-card--next .p-adjacent-card__img {
    order: 0;
}

/* --- 関連記事セクション（SP用余白） --- */
.p-single__related {
    margin-top: 30px;
}
.p-single__related .section-title {
    margin-bottom: 16px;
}

/* --- パンくずリスト（SP用サイズ） --- */
.c-breadcrumbs {
    padding: 10px 0;
    font-size: 0.7rem;
}
.c-breadcrumbs__sep {
    margin: 0 6px;
}
.p-single__inner .c-breadcrumbs {
    padding: 0 0 12px;
}