/* ==================================================
   responsive.css
   共通レスポンシブ
================================================== */



@media (max-width: 1200px) {
    .container { width: 95%; }
    main { padding-inline: 20px; }
}

@media (max-width: 992px) {
    main { gap: 20px; }
    aside { width: 280px; }
    .logo img { width: 220px; }
    .mein-nav { gap: 20px; }
    .mein-nav a { font-size: 18px; }
    .glid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
    }

    .page-header {
        height: 70px;
    }

    .page-header { padding: 0 15px; }

    .logo img {
        width: 220px;
        height: 70px;
    }

    .mein-nav { display: none; }
    .toggle-btn { display: block; }

    main {
        display: block;
        margin-top: 0;
        padding: 10px 10px 90px;
    }

    article {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    aside {
        width: 100%;
        margin: 20px 0 0;
    }

    section {
        width: 100%;
        margin: 0;
    }

    .flex {
        flex-direction: column;
        gap: 20px;
    }

    .glid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    img,
    iframe,
    video {
        max-width: 100%;
        height: auto;
    }

    .map iframe { height: 300px; }
    .botann { width: 100%; }

    .footer,
    #footer,
    #footer img {
        height: 60px;
    }

    .footer {
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 9999;
        width: 100%;
        background: rgba(71, 118, 60, 0.7);
    }

    #footer {
        display: flex;
        justify-content: space-between;
    }

    #footer img {
        width: 100%;
        object-fit: cover;
    }

    .footer h2 { display: none; }
    .as { padding: 5px; }
    .senn { margin: 60px 0 40px; }
}

@media (max-width: 480px) {
    body { font-size: 16px; }
    h1 { font-size: 26px; }
    h2 { font-size: 22px; }
    h3 { font-size: 18px; }
    .logo img { width: 200px; }
    .page-header { padding: 0 10px; }
    .toggle-btn { right: 15px; }
    .waku,
    .point-body,
    .qa { padding: 15px; }
    .botann {
        padding: 15px;
        font-size: 16px;
    }
    table th,
    table td {
        padding: 10px;
        font-size: 15px;
    }
    .before {
        padding-left: 35px;
        background-size: 20px;
    }
}

@media (max-width: 360px) {
    .logo img { width: 150px; }
    h1 { font-size: 22px; }
    h2 { font-size: 20px; }
    h3 { font-size: 17px; }
    .botann { font-size: 15px; }
    table { font-size: 14px; }
}

img,
iframe {
    display: block;
}

* {
    word-break: break-word;
}

/* ==================================================
   たとみ整骨院 レイアウト修正用CSS
   responsive.cssの一番下に追加
================================================== */

/* 横方向へのはみ出しを防止 */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

img,
video,
iframe {
  max-width: 100%;
}

/* 要素の幅にpadding・borderを含める */
*,
*::before,
*::after {
  box-sizing: border-box;
}


/* ==================================================
   PC表示の修正
================================================== */
@media screen and (min-width: 769px) {

  /* --------------------------------
     1. 横方向に並んでしまう問題を修正
  -------------------------------- */

  .top {
    display: block !important;
    width: 100% !important;
    max-width: 1200px !important;
    min-width: 0 !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  /* .top直下の区画を縦方向に並べる */
  .top > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-right: auto;
    margin-left: auto;
  }

  .top .as,
  .top .lp,
  .top section,
  .si-contact {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* 文章やURLが横幅を押し広げるのを防止 */
  .top p,
  .top h1,
  .top h2,
  .top h3,
  .top a {
    overflow-wrap: anywhere;
    word-break: normal;
  }


  /* --------------------------------
     2. PCヘッダーメニューを横並びで表示
  -------------------------------- */

  .page-header.wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 70px;
    padding-right: 30px;
    padding-left: 30px;
    z-index: 3000;
  }

  .page-header > a {
    flex: 0 0 auto;
  }

  .page-header > a img {
    display: block;
    width: auto;
    max-height: 70px;
  }

  .page-header .page-nav {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    display: block !important;
    width: auto !important;
    height: auto !important;

    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: transparent !important;
  }

  .page-header .page-nav .inner {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
  }

  .page-header .nav-list {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px;

    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .page-header .nav-list li {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .page-header .nav-list li a {
    display: block !important;
    width: auto !important;
    padding: 12px 10px !important;
    white-space: nowrap;
  }

  /* PCではハンバーガーボタンを非表示 */
  .page-header .toggle-btn {
    display: none !important;
  }


  /* --------------------------------
     3. PC固定フッターの重なりを修正
  -------------------------------- */

  footer.footer,
  .footer {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    width: 100% !important;
    height: auto !important;
    min-height: 60px;
    transform: none !important;
  }

  body {
    padding-bottom: 0 !important;
  }
}


/* ==================================================
   スマホ表示
   固定予約ボタンに本文が隠れないようにする
================================================== */
@media screen and (max-width: 768px) {

  body {
    padding-bottom: 70px;
  }

  footer.footer,
  .footer {
    z-index: 3000;
  }
}

/* ==================================================
   たとみ整骨院 トップページ専用ファーストビュー
================================================== */

.tatomi-fv,
.tatomi-fv *,
.tatomi-fv *::before,
.tatomi-fv *::after {
    box-sizing: border-box;
}

.tatomi-fv {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    min-height: 650px;
    margin: 0;
    background: #f6f9f3;
}

/* 院長写真 */
.tatomi-fv__photo {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 43%;
}

.tatomi-fv__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* 写真から文章部分へのグラデーション */
.tatomi-fv__photo::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(
        90deg,
        #f6f9f3 0%,
        rgba(246, 249, 243, 0.96) 8%,
        rgba(246, 249, 243, 0.38) 40%,
        rgba(246, 249, 243, 0) 65%
    );
}

/* 院長名 */
.tatomi-fv__doctor {
    position: absolute;
    z-index: 2;
    right: 4%;
    bottom: 6%;
    margin: 0;
    padding: 10px 15px;
    color: #174d34;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.6;
}

.tatomi-fv__doctor strong {
    font-size: 20px;
}

/* 内容の横幅 */
.tatomi-fv__inner {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    width: min(100% - 40px, 1200px);
    min-height: 650px;
    margin: 0 auto;
}

.tatomi-fv__copy {
    width: 58%;
    max-width: 690px;
    padding: 55px 0;
}

/* 地域表示 */
.tatomi-fv__area {
    display: inline-block;
    margin: 0 0 24px;
    padding: 8px 22px;
    color: #fff;
    background: #549e38;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
}

/* メイン見出し */
.tatomi-fv__title {
    margin: 0 0 18px;
    color: #123d29;
    font-size: clamp(36px, 4.2vw, 60px);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.02em;
}

/* 施術の特徴 */
.tatomi-fv__method {
    margin: 0 0 17px;
    color: #4e9d39;
    font-size: clamp(27px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.45;
}

/* 説明文 */
.tatomi-fv__lead {
    margin: 0 0 25px;
    color: #35443b;
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 600;
    line-height: 1.9;
}

/* 国家資格など */
.tatomi-fv__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 0;
    margin-bottom: 28px;
    color: #174d34;
    font-size: 15px;
    font-weight: 700;
}

.tatomi-fv__trust span {
    display: inline-flex;
    align-items: center;
}

.tatomi-fv__trust span:not(:last-child)::after {
    margin: 0 14px;
    color: #80a98b;
    content: "|";
}

/* 予約ボタン */
.tatomi-fv__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tatomi-fv__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 165px;
    min-height: 58px;
    padding: 13px 22px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.tatomi-fv__button:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

.tatomi-fv__button--line {
    color: #fff;
    background: #06c755;
}

.tatomi-fv__button--web {
    color: #fff;
    background:  #4f9d55;
}

.tatomi-fv__button--tel {
    color: #fff;
      background: #e88b2e;
}


/* ==================================================
   タブレット
================================================== */

@media screen and (max-width: 1000px) {

    .tatomi-fv {
        min-height: 610px;
    }

    .tatomi-fv__photo {
        left: 40%;
    }

    .tatomi-fv__inner {
        min-height: 610px;
    }

    .tatomi-fv__copy {
        width: 62%;
    }

    .tatomi-fv__button {
        min-width: 145px;
    }
}


/* ==================================================
   スマートフォン
================================================== */

@media screen and (max-width: 768px) {

    .tatomi-fv {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    /* スマホでは写真を上、文章を下にする */
    .tatomi-fv__photo {
        position: relative;
        inset: auto;
        order: 1;
        width: 100%;
        height: 320px;
    }

    .tatomi-fv__photo::after {
        background: linear-gradient(
            0deg,
            rgba(246, 249, 243, 0.8) 0%,
            rgba(246, 249, 243, 0) 38%
        );
    }

    .tatomi-fv__doctor {
        right: 12px;
        bottom: 12px;
        padding: 7px 11px;
        font-size: 12px;
    }

    .tatomi-fv__doctor strong {
        font-size: 16px;
    }

    .tatomi-fv__inner {
        order: 2;
        display: block;
        width: 100%;
        min-height: 0;
        padding: 30px 18px 35px;
    }

    .tatomi-fv__copy {
        width: 100%;
        max-width: none;
        padding: 0;
        text-align: center;
    }

    .tatomi-fv__area {
        margin-bottom: 16px;
        padding: 7px 18px;
        font-size: 14px;
    }

    .tatomi-fv__title {
        margin-bottom: 13px;
        font-size: clamp(29px, 8vw, 38px);
    }

    .tatomi-fv__method {
        margin-bottom: 14px;
        font-size: clamp(23px, 6.5vw, 30px);
    }

    .tatomi-fv__lead {
        font-size: 15px;
    }

    .tatomi-fv__trust {
        justify-content: center;
        font-size: 13px;
    }

    .tatomi-fv__buttons {
        flex-direction: column;
        width: 100%;
    }

    .tatomi-fv__button {
        width: 100%;
        min-height: 56px;
    }

    .tatomi-fv__pc-break {
        display: none;
    }
}
/* =====================================
   隠れ家だからできる5つのこと
===================================== */

.hideaway-feature {
    width: 100%;
    box-sizing: border-box;
    padding: 50px 20px;
    margin: 40px auto;
    background: #f7fbf6;
}

.hideaway-feature *,
.hideaway-feature *::before,
.hideaway-feature *::after {
    box-sizing: border-box;
}

.hideaway-feature__heading {
    max-width: 900px;
    margin: 0 auto 35px;
    text-align: center;
}

.hideaway-feature__sub {
    margin: 0 0 8px;
    padding: 0;
    color: #6d9f66;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
}

.hideaway-feature__heading h2 {
    margin: 0 0 15px;
    padding: 0;
    color: #333;
    font-size: 28px;
    line-height: 1.5;
    font-weight: 700;
}

.hideaway-feature__lead {
    max-width: 650px;
    margin: 0 auto;
    padding: 0;
    color: #555;
    font-size: 15px;
    line-height: 1.9;
}

.hideaway-feature__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.hideaway-feature__item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    min-width: 0;
    padding: 25px;
    background: #fff;
    border: 1px solid #e4eee1;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.hideaway-feature__number {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #eef7eb;
    color: #67a75d;
    font-size: 15px;
    font-weight: 700;
}

.hideaway-feature__content {
    min-width: 0;
}

.hideaway-feature__content h3 {
    margin: 0 0 5px;
    padding: 0;
    color: #4c8b43;
    font-size: 20px;
    line-height: 1.5;
}

.hideaway-feature__content h4 {
    margin: 0 0 10px;
    padding: 0;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 700;
}

.hideaway-feature__content p {
    margin: 0;
    padding: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.9;
}

/* 5番目のみ中央に配置 */
.hideaway-feature__item:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 10px);
    justify-self: center;
}

/* =========================
   スマホ
========================= */

@media screen and (max-width: 767px) {

    .hideaway-feature {
        padding: 35px 15px;
        margin: 25px auto;
    }

    .hideaway-feature__heading {
        margin-bottom: 25px;
    }

    .hideaway-feature__heading h2 {
        font-size: 23px;
    }

    .hideaway-feature__lead {
        font-size: 14px;
        text-align: left;
    }

    .hideaway-feature__list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hideaway-feature__item,
    .hideaway-feature__item:last-child {
        grid-column: auto;
        width: 100%;
        padding: 20px 17px;
        gap: 14px;
    }

    .hideaway-feature__number {
        width: 42px;
        height: 42px;
        font-size: 13px;
    }

    .hideaway-feature__content h3 {
        font-size: 18px;
    }

    .hideaway-feature__content h4 {
        font-size: 15px;
    }

    .hideaway-feature__content p {
        font-size: 14px;
        line-height: 1.8;
    }
}

/* =========================================
   当院までの道順動画
========================================= */

.access-movie {
    width: 100%;
    max-width: 900px;
    margin: 50px auto;
    padding: 40px 20px;
    box-sizing: border-box;
    background: #f8fbf5;
    border-radius: 18px;
}

.access-movie *,
.access-movie *::before,
.access-movie *::after {
    box-sizing: border-box;
}


/* 見出し */

.access-movie__heading {
    text-align: center;
    margin-bottom: 25px;
}

.access-movie__sub {
    margin: 0 0 5px;
    color: #789e62;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.18em;
    text-align: center;
}

.access-movie__heading h2 {
    margin: 0 0 5px;
    padding: 0;
    color: #333;
    font-size: 28px;
}

.access-movie__heading h3 {
    margin: 0 0 15px;
    padding: 0;
    color: #668c50;
    font-size: 21px;
}

.access-movie__heading p {
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.9;
}


/* 動画エリア */

.access-movie__video {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    background: #000;
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}

.access-movie__video video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}


/* 再生ボタン */

.access-movie__play {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    border: 0;
    cursor: pointer;

    color: #fff;
    background: rgba(0,0,0,0.25);

    font-size: 15px;
    font-weight: bold;
}

.access-movie__play-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 70px;
    height: 70px;

    margin-bottom: 12px;

    padding-left: 5px;

    border-radius: 50%;

    background: rgba(105, 150, 76, 0.95);

    font-size: 28px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.access-movie__play:hover .access-movie__play-icon {
    transform: scale(1.08);
}


/* 補足 */

.access-movie__note {
    margin: 15px 0 0;
    text-align: center;
    color: #666;
    font-size: 13px;
}


/* ================================
   スマホ
================================ */

@media screen and (max-width: 767px) {

    .access-movie {
        margin: 30px auto;
        padding: 30px 15px;
        border-radius: 12px;
    }

    .access-movie__heading h2 {
        font-size: 23px;
    }

    .access-movie__heading h3 {
        font-size: 18px;
    }

    .access-movie__heading p {
        font-size: 14px;
        text-align: left;
    }

    .access-movie__play-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .access-movie__play {
        font-size: 14px;
    }
}

/* ACCESS MOVIE 見出し部分をすべて中央揃え */
.access-movie__heading {
    text-align: center;
}

.access-movie__heading .access-movie__sub,
.access-movie__heading h2,
.access-movie__heading h3,
.access-movie__heading p {
    text-align: center;
}

.akeru{
  margin-bottom: 20px;
}

/* ==================================================
   症状ページ専用の上部画像
   tatomi-subhero以外には影響しません
================================================== */

.tatomi-subhero {
    overflow: hidden;
    width: min(100% - 40px, 1100px);
    margin: 30px auto 45px;
    background: #f3f8f1;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(29, 76, 48, 0.1);
}

.tatomi-subhero img {
    display: block;
    width: 100%;
    height: clamp(300px, 42vw, 550px);
    margin: 0;
    object-fit: cover;
    object-position: center;
}


/* スマートフォン */
@media screen and (max-width: 768px) {

    .tatomi-subhero {
        width: calc(100% - 20px);
        margin: 15px auto 30px;
        border-radius: 12px;
    }

    .tatomi-subhero img {
        height: 260px;
        object-fit: cover;
    }
}

/* ========================================
   たとみ整骨院：症例紹介
======================================== */

.tatomi-case {
  width: min(100% - 30px, 800px);
  margin: 30px auto;
  padding: 0;
  overflow: hidden;
  font-family: "Noto Sans JP", sans-serif;
  color: #26352a;
  background: #ffffff;
  border: 1px solid #dbe8d8;
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(31, 83, 46, 0.08);
}

.tatomi-case *,
.tatomi-case *::before,
.tatomi-case *::after {
  box-sizing: border-box;
}

.tatomi-case__header {
  padding: 22px 24px;
  background: linear-gradient(135deg, #347a43, #5a9c54);
  color: #ffffff;
}

.tatomi-case__label {
  margin: 0 0 6px;
  color: #e8f5e5;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.tatomi-case__title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(20px, 4vw, 26px);
  line-height: 1.5;
  text-align: left;
}

.tatomi-case__list {
  margin: 0;
  padding: 24px;
}

.tatomi-case__item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid #e2ebe0;
}

.tatomi-case__item:first-child {
  padding-top: 0;
}

.tatomi-case__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.tatomi-case__item dt {
  margin: 0;
  color: #347a43;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
}

.tatomi-case__item dd {
  margin: 0;
  color: #3f4841;
  font-size: 15px;
  line-height: 1.9;
}

.tatomi-case__notice {
  margin: 0;
  padding: 16px 24px;
  color: #657067;
  background: #f5f8f4;
  border-top: 1px solid #dbe8d8;
  font-size: 12px;
  line-height: 1.7;
}

/* スマートフォン */
@media (max-width: 600px) {
  .tatomi-case {
    width: calc(100% - 20px);
    margin: 20px auto;
    border-radius: 12px;
  }

  .tatomi-case__header {
    padding: 18px;
  }

  .tatomi-case__list {
    padding: 18px;
  }

  .tatomi-case__item {
    display: block;
    padding: 15px 0;
  }

  .tatomi-case__item dt {
    margin-bottom: 5px;
    font-size: 14px;
  }

  .tatomi-case__item dt::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 15px;
    margin-right: 8px;
    vertical-align: -2px;
    background: #5a9c54;
    border-radius: 3px;
  }

  .tatomi-case__item dd {
    padding-left: 12px;
    font-size: 14px;
    line-height: 1.85;
  }

  .tatomi-case__notice {
    padding: 14px 18px;
  }
}
/* ========================================
 症例紹介の写真
======================================== */

.tatomi-case__photo {
margin: 0;
padding: 0;
background: #f4f8f3;
}

.tatomi-case__photo img {
display: block;
width: 100%;
height: auto;
max-width: none;
margin: 0;
object-fit: cover;
}

.tatomi-case__photo figcaption {
margin: 0;
padding: 10px 20px;
color: #526056;
background: #f4f8f3;
border-bottom: 1px solid #dbe8d8;
font-size: 13px;
line-height: 1.7;
text-align: center;
}

@media (max-width: 600px) {
.tatomi-case__photo figcaption {
  padding: 9px 14px;
  font-size: 12px;
}
}
