/*
Theme Name: rehab-open-classic
Author: JUNKO MATSUMOTO
Description: 宇治徳洲会リハビリテーション病院・第二宇治徳洲苑(老健) 告知サイト用クラシックテーマ
Version: 1.0
*/

/* ------------------------------
   全体
------------------------------ */
body {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    color: #333;
}

img {
    max-width: 100%;
    height: auto;
}

/* ------------------------------
   ヘッダー（PC）
------------------------------ */
.site-header {
    border-bottom: 2px solid #0cb596;
    padding: 10px 0 0;
}

.header-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.site-logo {
    width: 320px;
    height: auto;
}

.header-right {
    text-align: right;
}

.header-right p { 
    margin: 0; 
    font-size: 16px; /* ← 14px → 16px にアップ */ 
    font-weight: 600; /* ← 少し太くする */ 
    line-height: 1.5; /* ← 読みやすく */ 
}

/* ------------------------------
   グローバルナビ（ロゴの下）
------------------------------ */
.global-nav-area {
    max-width: 1000px;
    margin: 10px auto 0;
    padding: 0 10px;
    text-align: center;
}

.global-nav {
    display: flex;
    justify-content: center;
    /* gap: 25px; */
    list-style: none;
    margin: 0;
    padding: 0;
}

.global-nav a {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #0cb596;
    text-decoration: none;
    padding: 6px 0;
}

.global-nav a:hover {
    text-decoration: underline;
}

/* ------------------------------
   スマホ（782px以下）
------------------------------ */
@media screen and (max-width: 782px) {

    .header-inner {
        display: block;
        text-align: center;
    }

    .header-right {
        text-align: center;
        margin-top: 10px;
    }

    .global-nav-area {
        text-align: center;
        margin-top: 15px;
    }

    .global-nav {
        display: block;
    }

    .global-nav li {
        margin-bottom: 8px;
    }

    .global-nav a {
        font-size: 16px;
        display: block;
        padding: 4px 0;
    }
}

/* ------------------------------
   トップページ
------------------------------ */
.top-main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 10px 40px;
}

.entry-title {
    text-align: center;
    font-size: 26px;
    margin-bottom: 20px;
    color: #0cb596;
}

.entry-content {
    line-height: 1.8;
}

.top-main p {
    line-height: 1.6;
    margin: 0 0 14px;
}

/* ------------------------------
   見出し
------------------------------ */
h2 {
    border-bottom: 2px solid #efefef;
    padding-left: 10px;
    border-left: 10px solid #0cb596;
    margin-bottom: 20px;
    color: #555;
}

h3 {
    border-left: 7px solid #81d0cb;
    padding: 10px 15px;
    margin-bottom: 15px;
    color: #555;
}

/* ------------------------------
   採用ボタン
------------------------------ */
.recruit-btn {
    display: inline-block;
    background-color: #FF9400;
    color: #fff;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    margin: 20px auto;
}

.recruit-btn:hover {
    opacity: 0.85;
}

/* --------------------------
   スライダーのキャプション
------------------------------ */
.soliloquy-container .soliloquy-item.soliloquy-item-1 .soliloquy-caption {
    background: #c81b1d;
    top: 10%;
    left: 0;
    transform: translate(5%, -35%);
    padding: 0;
    bottom: unset;
    width: fit-content;
    font-size: clamp(1rem, 2.4vw, 1.8rem);
    position: absolute;
    color: #fff;
}

.soliloquy-container .soliloquy-item.soliloquy-item-2 .soliloquy-caption {
    background: #0CB59B;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0;
    bottom: unset;
    font-size: clamp(0.8rem, 2vw, 1.5rem);
    position: absolute;
    color: #fff;
}

/* ------------------------------
   タイトルリンク
------------------------------ */
.entry-title a {
    text-decoration: none;
    color: inherit;
}

.entry-title a:hover {
    text-decoration: none;
}

/* ------------------------------
   Contact Form 7
------------------------------ */
.inquiry {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 30px;
    box-sizing: border-box;
    border-collapse: collapse;
}

.inquiry th {
    text-align: left;
    vertical-align: middle;
    font-size: 14px;
    color: #444;
    width: 30%;
    background: #f7f7f7;
    border: solid 1px #d7d7d7;
    padding: 15px 20px;
}

.inquiry td {
    font-size: 16px;
    border: solid 1px #d7d7d7;
    background-color: #fff;
    padding: 15px 20px;
}

.inquiry input,
.inquiry select,
.inquiry textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
}

.wpcf7-not-valid-tip {
    color: red;
    font-size: 14px;
    font-weight: bold;
    margin-top: 10px;
}

.wpcf7 form [type="submit"] {
    display: block;
    padding: 1em 5em;
    margin: 25px auto 0;
    background: #555;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 2px;
    border: none;
    cursor: pointer;
}

.wpcf7 form [type="submit"]:hover {
    background: #777;
}

/* ------------------------------
   お問い合わせページ
------------------------------ */
.page-template-default .entry-title {
    text-align: left;
    font-size: 26px;
    margin: 0 0 20px;
    color: #00DD84;
}

/* ------------------------------
   黒いボタン → 赤い採用ボタン化
------------------------------ */
.wp-block-button__link {
    background-color: #FF9400 !important;
    color: #fff !important;
    padding: 12px 28px !important;
    border-radius: 20px !important;
    font-weight: bold !important;
    font-size: 16px !important;
    text-decoration: none !important;
    display: inline-block !important;
    border: none !important;
}

/* ------------------------------
   h1（ページタイトル）統一
------------------------------ */
body h1.entry-title {
    color: #0cb59b !important;
    text-align: left !important;
    margin: 5px auto !important;
    max-width: 900px !important;
    padding: 0 10px !important;
}

/* ------------------------------
   グローバルメニュー改善（正しいクラス版）
------------------------------ */
/* グローバルメニューの文字を大きく＆上下の余白 */
.global-nav a {
    font-size: 18px !important;
    font-weight: 600 !important;
    padding: 5px 0 !important;
    display: inline-block !important;
}

/* メニューの間の点線と左右の余白 */
.global-nav li {
    border-right: 1px dotted #999 !important;
    padding: 0 20px !important;
}

/* 先頭（ホーム）の左側にも点線を入れる */
.global-nav li:first-child {
    border-left: 1px dotted #999 !important;
    padding: 0 20px !important;
}

/* 最後（交通アクセス）の右側の点線も残す */
.global-nav li:last-child {
     border-right: 1px dotted #999 !important;
     padding: 0 20px !important;
}

/* 縦の点線が横線に触れないように、li の下に余白を作る */
.global-nav li {
    margin-bottom: 4px !important;  /* ← この余白が“縦線の下”に空間を作る */
}

/* ============================
   900px の共通レイアウト枠
   ============================ */
.layout-900 {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 10px; /* 左右に少し余白を入れて綺麗に */
}

/* タイトル（h1）を 900px に揃える */
h1.entry-title {
    max-width: 900px !important;
    margin: 20px auto !important;
    padding: 0 10px !important;
}

/* 電話・住所の右端を 900px に揃える */
.header-right {
    max-width: 900px;
    margin-left: auto;
    padding-right: 10px;
}

/* 本文の文章を 900px に揃える */
.entry-content,
.top-main,
.page .top-main {
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 20px 10px !important;
}

/* 動画を 900px に揃える */
.entry-content video,
.entry-content iframe {
    max-width: 900px !important;
    width: 100% !important;
    height: auto !important;
}

/* ロゴとヘッダー全体を 900px に揃える */
.header-inner {
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 0 10px !important;
}

/* 電話・住所の右端を 900px に揃える */
.header-right {
    max-width: 900px !important;
    margin-left: auto !important;
    padding-right: 10px !important;
    text-align: right !important;
}

/* 本文の左右も 900px に統一 */
.entry-content,
.top-main,
.page .top-main {
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 20px 10px !important;
}

/* 動画をスライダーと同じ幅に揃える */
.entry-content video,
.entry-content iframe {
    max-width: 900px !important;
    width: 100% !important;
    height: auto !important;
}

/* WPFront Scroll Top 設定 */
#wpfront-scroll-top-container img {
    width: auto !important;
    height: auto !important;
    display: block !important;
}

/* WPFront Scroll Top の画像がテーマの img CSS に潰されるのを防ぐ */
#wpfront-scroll-top-container img {
    max-width: none !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* =========================
   フッター
========================= */

/* 背景画像（footer.jpg）を敷く */
.site-footer {
  position: relative;
  background-image: url('/wp-content/uploads/2025/11/footer.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 0;
}

/* 黒 → 白の半透明に変更（さくらサーバと同じ方向性） */
.footer-overlay {
  background: rgba(255, 255, 255, 0.3); /* ← ここが一番重要！ */
  padding: 30px 0;
}

/* 横幅900pxの箱を中央に */
.footer-inner-900 {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 10px;
}

/* 左側（ロゴ＋住所）を左寄せで縦に並べる */
.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ロゴ画像（ヘッダーと同じ画像を少し小さく） */
.footer-logo img {
  width: 260px;   /* 大きすぎたら 240px, 220px に調整 */
  height: auto;
  display: block;
  margin-bottom: 10px;
}

/* 住所・電話の文字 */
.footer-info {
  font-size: 14px;
  line-height: 1.6;
  color: #000; /* 黒文字 */
}

.footer-name {
  font-weight: bold;
  margin: 0 0 4px;
}

.footer-address,
.footer-tel {
  margin: 0;
}

.footer-name, 
.footer-address, 
.footer-tel { 
    color: #000; /* 黒文字 */ 
}

/* タブレット（768px〜426px）：PCと同じ横並びレイアウトを維持 */
@media screen and (max-width: 768px) and (min-width: 426px) {

    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
    }

    .header-right {
        text-align: right;
        margin-top: 0;
    }

    .global-nav {
        display: flex;
        justify-content: center;
    }
}

/* スマホ（425px以下）：ロゴ・住所・ナビを縦並び＆中央揃え */
@media screen and (max-width: 425px) {

    .header-inner {
        display: block;
        text-align: center;
    }

    .site-logo {
        margin: 0 auto 10px;
    }

    .header-right {
        text-align: center;
        margin: 10px 0;
    }

    .global-nav {
        display: block;
        text-align: center;
        margin-top: 15px;
    }

    .global-nav li {
        margin-bottom: 8px;
        border: none !important; /* スマホでは点線を消す */
        padding: 0 !important;
    }
}

/* スマホ（350px以下）：住所・電話を少し小さくして1行に収める */
@media screen and (max-width: 350px) {

    .header-right p {
        font-size: 12px !important;
        line-height: 1.3;
    }
}

/* =========================
   Contact Form 7：お問い合わせテーマのラジオボタン整列
========================= */

/* ラジオボタンの各項目を「1行ずつ縦並び」にする */
.wpcf7-list-item {
  display: block;
  margin: 4px 0;
}

/* 〇と文字の間に少し余白をつける */
.wpcf7-list-item input[type="radio"] {
  margin-right: 6px;
}

/* もし左に変なインデントがついていたら、ここでリセット */
.wpcf7-form .wpcf7-list-item {
  padding-left: 0;
}

/* Contact Form 7：お問い合わせテーマのラジオボタンを左に揃える */
.wpcf7-form p {
  display: block;
  margin: 0 0 10px;
}

/* ラジオボタンの各項目を横並びにして揃える */
.wpcf7-list-item {
  display: flex;
  align-items: center;
  margin: 6px 0;
}

/* 〇と文字の間に余白 */
.wpcf7-list-item input[type="radio"] {
  margin-right: 8px;
}

/* ラベルの文字を左に揃える */
.wpcf7-list-item-label {
  display: inline-block;
}
/* =========================
   Contact Form 7：ラジオボタン整列（決定版）
========================= */

/* ラジオボタンの1項目を横並びにする */
.wpcf7-list-item {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important; /* 〇と文字の間 */
    margin: 6px 0 !important;
}

/* 〇の位置を左に固定 */
.wpcf7-list-item input[type="radio"] {
    margin: 0 !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
}

/* ラベルの文字を左揃え */
.wpcf7-list-item-label {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Contact Form 7 が勝手に <br> を入れる場合の対策 */
.wpcf7-form br {
    display: none;
}

/* お問い合わせフォーム：ラジオボタンとチェックボックスの幅を元に戻す */
.inquiry input[type="radio"],
.inquiry input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin-right: 6px;
}

/* 交通アクセス：メニューリンクの下線を消す */
.access-menu a {
    text-decoration: none !important;
}

.access-menu a:hover {
    text-decoration: underline !important; /* ホバー時だけ下線 */
}

/* 無料送迎バス：PC・タブレットでは2つずつ横並び */
.bus-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bus-list p {
    box-sizing: border-box;
    width: calc(50% - 10px);   /* 2列にする */
    border: 1px solid #c8c8c8;
    padding: 8px 12px;
    margin: 0;
}

/* 最後のダミーの四角は非表示 */
.bus-list .bus-display-none {
    display: none;
}

/* スマホ（425px以下）は縦並びにする */
@media screen and (max-width: 425px) {
    .bus-list {
        display: block;
    }

    .bus-list p {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* 周辺地図（Yahoo地図）の大きさをそろえる：シンプル版 */
.embed-yahoo-map iframe,
.embed-yahoo-map img {
    width: 100% !important;
    height: 480px !important;   /* ここを変えれば高さも変えられる */
    object-fit: cover !important;
}

/* パンくずリスト */
.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 25px;
    color: #0cb596;
}

.breadcrumb a {
    color: #0cb596;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span.separator {
    margin: 0 4px;
}


/* 画面幅385px未満で採用ボタン（ブロックボタン）の文字を小さくする */
@media screen and (max-width: 385px) {
    .wp-block-button__link {
        font-size: 13px !important;
        padding: 10px 14px !important;
        white-space: nowrap !important;
    }
}
