@charset "UTF-8";
/* このファイルは _static/_src/css から build.py で生成し、画像のパスをテーマ用に置き換えたものです。直接編集しないでください。 */
@layer reset, legacy, foundation, layout, component, project, utility;
@layer reset {
  /*! destyle.css v4.0.1 | MIT License | https://github.com/nicolas-cusan/destyle.css */

  /* Reset box-model and set borders */
  /* ============================================ */

  *,
  ::before,
  ::after {
    box-sizing: border-box;
    border-style: solid;
    border-width: 0;
    min-width: 0;
  }

  /* Document */
  /* ============================================ */

  /**
   * 1. Correct the line height in all browsers.
   * 2. Prevent adjustments of font size after orientation changes in iOS.
   * 3. Remove gray overlay on links for iOS.
   */

  html {
    line-height: 1.15; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
    -webkit-tap-highlight-color: transparent; /* 3*/
  }

  /* Sections */
  /* ============================================ */

  /**
   * Remove the margin in all browsers.
   */

  body {
    margin: 0;
  }

  /**
   * Render the `main` element consistently in IE.
   */

  main {
    display: block;
  }

  /* Vertical rhythm */
  /* ============================================ */

  p,
  table,
  blockquote,
  address,
  pre,
  iframe,
  form,
  figure,
  dl {
    margin: 0;
  }

  /* Headings */
  /* ============================================ */

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
  }

  /* Lists (enumeration) */
  /* ============================================ */

  ul,
  ol {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  /* Lists (definition) */
  /* ============================================ */

  dt {
    font-weight: bold;
  }

  dd {
    margin-left: 0;
  }

  /* Grouping content */
  /* ============================================ */

  /**
   * 1. Add the correct box sizing in Firefox.
   * 2. Show the overflow in Edge and IE.
   */

  hr {
    box-sizing: content-box; /* 1 */
    height: 0; /* 1 */
    overflow: visible; /* 2 */
    border-top-width: 1px;
    margin: 0;
    clear: both;
    color: inherit;
  }

  /**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */

  pre {
    font-family: monospace, monospace; /* 1 */
    font-size: inherit; /* 2 */
  }

  address {
    font-style: inherit;
  }

  /* Text-level semantics */
  /* ============================================ */

  /**
   * Remove the gray background on active links in IE 10.
   */

  a {
    background-color: transparent;
    text-decoration: none;
    color: inherit;
  }

  /**
   * 1. Remove the bottom border in Chrome 57-
   * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
   */

  abbr[title] {
    text-decoration: underline dotted; /* 2 */
  }

  /**
   * Add the correct font weight in Chrome, Edge, and Safari.
   */

  b,
  strong {
    font-weight: bolder;
  }

  /**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */

  code,
  kbd,
  samp {
    font-family: monospace, monospace; /* 1 */
    font-size: inherit; /* 2 */
  }

  /**
   * Add the correct font size in all browsers.
   */

  small {
    font-size: 80%;
  }

  /**
   * Prevent `sub` and `sup` elements from affecting the line height in
   * all browsers.
   */

  sub,
  sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }

  sub {
    bottom: -0.25em;
  }

  sup {
    top: -0.5em;
  }

  /* Replaced content */
  /* ============================================ */

  /**
   * Prevent vertical alignment issues.
   */

  svg,
  img,
  embed,
  object,
  iframe {
    vertical-align: bottom;
  }

  /* Forms */
  /* ============================================ */

  /**
   * Reset form fields to make them styleable.
   * 1. Make form elements stylable across systems iOS especially.
   * 2. Inherit text-transform from parent.
   */

  button,
  input,
  optgroup,
  select,
  textarea {
    -webkit-appearance: none; /* 1 */
    appearance: none;
    vertical-align: middle;
    color: inherit;
    font: inherit;
    background: transparent;
    padding: 0;
    margin: 0;
    border-radius: 0;
    text-align: inherit;
    text-transform: inherit; /* 2 */
  }

  /**
   * Correct cursors for clickable elements.
   */

  button,
  [type="button"],
  [type="reset"],
  [type="submit"] {
    cursor: pointer;
  }

  button:disabled,
  [type="button"]:disabled,
  [type="reset"]:disabled,
  [type="submit"]:disabled {
    cursor: default;
  }

  /**
   * Improve outlines for Firefox and unify style with input elements & buttons.
   */

  :-moz-focusring {
    outline: auto;
  }

  select:disabled {
    opacity: inherit;
  }

  /**
   * Remove padding
   */

  option {
    padding: 0;
  }

  /**
   * Reset to invisible
   */

  fieldset {
    margin: 0;
    padding: 0;
    min-width: 0;
  }

  legend {
    padding: 0;
  }

  /**
   * Add the correct vertical alignment in Chrome, Firefox, and Opera.
   */

  progress {
    vertical-align: baseline;
  }

  /**
   * Remove the default vertical scrollbar in IE 10+.
   */

  textarea {
    overflow: auto;
  }

  /**
   * Correct the cursor style of increment and decrement buttons in Chrome.
   */

  [type="number"]::-webkit-inner-spin-button,
  [type="number"]::-webkit-outer-spin-button {
    height: auto;
  }

  /**
   * Correct the outline style in Safari.
   */

  [type="search"] {
    outline-offset: -2px; /* 1 */
  }

  /**
   * Remove the inner padding in Chrome and Safari on macOS.
   */

  [type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  /**
   * 1. Correct the inability to style clickable types in iOS and Safari.
   * 2. Fix font inheritance.
   */

  ::-webkit-file-upload-button {
    -webkit-appearance: button; /* 1 */
    font: inherit; /* 2 */
  }

  /**
   * Fix appearance for Firefox
   */
  [type="number"] {
    -moz-appearance: textfield;
  }

  /**
   * Clickable labels
   */

  label[for] {
    cursor: pointer;
  }

  /* Interactive */
  /* ============================================ */

  /*
   * Add the correct display in Edge, IE 10+, and Firefox.
   */

  details {
    display: block;
  }

  /*
   * Add the correct display in all browsers.
   */

  summary {
    display: list-item;
  }

  /*
   * Remove outline for editable content.
   */

  [contenteditable]:focus {
    outline: auto;
  }

  /* Tables */
  /* ============================================ */

  /**
  1. Correct table border color inheritance in all Chrome and Safari.
  */

  table {
    border-color: inherit; /* 1 */
    border-collapse: collapse;
  }

  caption {
    text-align: left;
  }

  td,
  th {
    vertical-align: top;
    padding: 0;
  }

  th {
    text-align: left;
    font-weight: bold;
  }
}

@layer foundation {
  :root {
    --color-txt: #333333;
    --color-sub: #747474;
    --color-main: #2971af;
    --color-accent: #269cd1;
    --color-akashi: #f0831e;
    --color-akashi-light: #ffd7b2;
    --color-himeji: #3c9f4e;
    --color-himeji-light: #d9f2de;
    --color-bg: #f6f6f6;
    --color-bg-light: #f7f7f7;
    --color-line: #dbdbdb;
    --color-line-ftr: #a9b5c1;
    --color-line-white: rgb(255 255 255 / 40%);
    --color-white: #ffffff;
    --color-white-80: rgb(255 255 255 / 80%);
    --color-overlay: rgb(51 51 51 / 80%);
    --gradient-clinic: linear-gradient(90deg, #ffebda, #e1f5e5);
    --gradient-akashi: linear-gradient(rgb(255 166 44 / 90%), rgb(230 113 3 / 90%));
    --gradient-himeji: linear-gradient(rgb(71 181 91 / 90%), rgb(28 110 43 / 90%));
    --color-white-85: rgb(255 255 255 / 85%);
    --color-white-50: rgb(255 255 255 / 50%);
    --color-gray-overlay: rgb(92 92 92 / 70%);
    --font-base: "Noto Sans JP", sans-serif;
    --font-en: "Montserrat", sans-serif;
    --shadow-card: 0 10px 10px #e1e5ea;
    --shadow-bar: 0 5px 5px rgb(0 0 0 / 16%);
    --header-h: 60px;
    --cv-h: 40px;

    @media only screen and (min-width: 992px) {
      --header-h: 100px;
      --cv-h: 0px;
    }
  }

  html {
    scroll-padding-top: var(--header-h);
  }

  body {
    min-width: 0;
    padding-top: var(--header-h);
    padding-bottom: 0;
    color: var(--color-txt);
    font-family: var(--font-base);
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
    text-spacing-trim: space-all;
    -webkit-font-smoothing: antialiased;

    &:has(.is-menuOpen, .is-modalOpen) {
      overflow: hidden;
    }
  }

  /* 既存の固定ページの本文（.l-main）と既存のページ見出し（.c-pagehead）の中は除く（新しいページ見出し .p-pageHead は対象） */
  :where(*:not(.l-main, .l-main *, .c-pagehead, .c-pagehead *)),
  :where(*:not(.l-main *, .c-pagehead *))::before,
  :where(*:not(.l-main *, .c-pagehead *))::after,
  :where(.l-main .p-pageHead, .l-main .p-pageHead *),
  :where(.l-main .p-pageHead *)::before,
  :where(.l-main .p-pageHead *)::after {
    letter-spacing: 0.05em;
  }

  small {
    font-size: inherit;
  }

  img,
  svg {
    display: block;
    max-width: 100%;
    height: auto;
  }

  button {
    letter-spacing: inherit;
  }

  a {
    transition: opacity 0.2s;
  }

  @media (hover: hover) {
    a:hover,
    button:hover {
      opacity: 0.7;
    }
  }
}
@layer foundation {
  /* 既存の固定ページの本文（.l-main）と既存のページ見出し（.c-pagehead）を、既存の基本設定（文字サイズ・行の高さ・字間）に戻す */
  .l-main,
  .c-pagehead {
    font-size: 1.6rem;
    line-height: 1;
    letter-spacing: normal;
  }

  /* 既存の固定ページの本文は、既存の最小幅のまま */
  .l-main {
    @media only screen and (min-width: 769px) {
      min-width: 1080px;
    }
  }

  /* 画像・小さい文字の基本設定も、既存の本文と既存のページ見出しでは既存のまま（新しいページ見出しは除く） */
  :is(.l-main, .c-pagehead) :is(img, svg):not(.p-pageHead *) {
    display: revert-layer;
    max-width: revert-layer;
    height: revert-layer;
  }

  .l-main small {
    font-size: revert-layer;
  }
}

@layer layout {
  .l-container {
    width: min(345px, 100% - 30px);
    margin-inline: auto;

    @media only screen and (min-width: 576px) {
      width: min(600px, 100% - 30px);
    }

    @media only screen and (min-width: 992px) {
      width: min(1086px, 100% - 60px);
    }
  }

  .l-container--wide {
    @media only screen and (min-width: 992px) {
      width: min(1396px, 100% - 60px);
    }
  }
}
@layer layout {
  .l-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-h);
    background-color: var(--color-white);
  }

  .l-header__catch {
    position: absolute;
    top: -3.3px;
    left: 10px;
    font-size: 10px;
    letter-spacing: 0;

    @media only screen and (min-width: 992px) {
      top: 2.84px;
      left: 30px;
      font-size: 12px;
    }
  }

  .l-header__logo {
    position: absolute;
    top: 21px;
    left: 10px;
    width: 215px;

    @media only screen and (min-width: 992px) {
      top: 31px;
      left: 30px;
      width: 300px;
    }

    @media only screen and (min-width: 1280px) {
      width: 368.64px;
    }
  }

  .l-header__clinic {
    @media only screen and (min-width: 992px) {
      position: absolute;
      top: 30px;
      left: 360px;
      display: flex;
      gap: 5px;
    }

    @media only screen and (min-width: 1280px) {
      left: 429px;
    }
  }

  .l-header__cv {
    @media only screen and (min-width: 992px) {
      position: absolute;
      top: 15px;
      right: 30px;
    }
  }

  .l-header__nav {
    @media only screen and (min-width: 992px) {
      position: absolute;
      top: 59.98px;
      right: 29.3px;
    }
  }

  .l-header__navList {
    display: flex;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;

    & .is-current {
      color: var(--color-main);
    }

    @media only screen and (min-width: 1280px) {
      gap: 19.3px;
    }
  }

  .l-header__menuBtn {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--color-main);
  }

  .l-header__menuIcon {
    position: absolute;
    top: 22.25px;
    left: 10px;
    width: 25px;
    height: 1.5px;
    background-color: var(--color-white);
    transition: background-color 0.2s;

    &::before,
    &::after {
      position: absolute;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: var(--color-white);
      content: "";
      transition: transform 0.2s;
    }

    &::before {
      transform: translateY(-8px);
    }

    &::after {
      transform: translateY(8px);
    }
  }

  .l-header__menuBtn[aria-expanded="true"] .l-header__menuIcon {
    background-color: transparent;

    &::before {
      transform: rotate(45deg);
    }

    &::after {
      transform: rotate(-45deg);
    }
  }
}
@layer layout {
  .l-spMenu {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 99;
    overflow-y: auto;
    padding: 30px 15px 47px;
    background-color: var(--color-bg);

    &[hidden] {
      display: none;
    }

    @media only screen and (min-width: 992px) {
      display: none;
    }
  }

  .l-spMenu__clinic {
    display: grid;
    gap: 20px;
    padding-inline: 19px;
  }

  .l-spMenu__list {
    margin-top: 30px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;

    & li {
      border-bottom: 1px solid var(--color-line);

      &:first-child {
        border-top: 1px solid var(--color-line);
      }
    }

    & a {
      display: block;
      padding-block: 12px;
    }
  }
}
@layer layout {
  .l-footer {
    background:
      linear-gradient(var(--color-white-80), var(--color-white-80)),
      url("../../img/common/bg_01_sp.webp") center / cover no-repeat;

    @media only screen and (min-width: 992px) {
      background-image:
        linear-gradient(var(--color-white-80), var(--color-white-80)),
        url("../../img/common/bg_01.webp");
    }
  }

  .l-footer__inner {
    position: relative;
    display: grid;
    width: min(345px, 100% - 30px);
    margin-inline: auto;
    padding: 60px 0 55.16px;

    @media only screen and (min-width: 576px) {
      width: min(600px, 100% - 30px);
    }

    @media only screen and (min-width: 992px) {
      grid-template-columns: 440px 1fr;
      grid-template-rows: 179px auto;
      width: min(1396px, 100% - 60px);
      height: 459px;
      padding: 80px 0 0;
    }
  }

  .l-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;

    @media only screen and (min-width: 992px) {
      grid-row: 1 / 3;
      align-items: flex-start;
    }
  }

  .l-footer__logo {
    width: 305px;

    @media only screen and (min-width: 992px) {
      width: 400px;
    }
  }

  .l-footer__cv {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20.36px;

    @media only screen and (min-width: 992px) {
      align-items: flex-start;
      margin-top: 35px;
    }
  }

  .l-footer__copy {
    margin-top: 14.84px;
    font-size: 12px;
    line-height: 26px;
    text-align: center;

    & small {
      letter-spacing: 0;
    }

    @media only screen and (min-width: 992px) {
      position: absolute;
      top: 357.84px;
      left: 0;
      margin-top: 0;
    }
  }

  .l-footer__nav {
    display: grid;
    grid-template-rows: repeat(6, auto);
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: column;
    row-gap: 14px;
    margin-top: 30px;
    padding: 25.98px 0 27.02px 1px;
    border-block: 1px solid var(--color-line-ftr);
    font-size: 14px;
    line-height: 26px;

    @media only screen and (min-width: 992px) {
      grid-template-rows: none;
      grid-template-columns: repeat(3, 1fr);
      grid-auto-flow: row;
      column-gap: 19.67px;
      margin-top: 0;
      padding: 0;
      border-block: 0;
    }
  }

  .l-footer__navList {
    display: contents;

    @media only screen and (min-width: 992px) {
      display: grid;
      align-content: start;
      gap: 14px;
      padding-top: 15.98px;
      border-top: 1px solid var(--color-line-ftr);
    }
  }

  .l-footer__navNews {
    @media only screen and (max-width: 991px) {
      order: 1;
    }
  }

  .l-footer__clinic {
    display: grid;

    @media only screen and (min-width: 992px) {
      grid-template-columns: repeat(2, 1fr);
      column-gap: 20px;
      align-self: start;
    }
  }

  .l-footer__clinicItem {
    padding: 28.12px 0 27.02px 1px;
    border-bottom: 1px solid var(--color-line-ftr);

    @media only screen and (min-width: 992px) {
      padding: 18.12px 0 17.02px;
      border-top: 1px solid var(--color-line-ftr);
    }
  }

  .l-footer__clinicName {
    font-weight: 700;
    line-height: 26px;
  }

  .l-footer__clinicAddr {
    margin-top: 5.86px;
    font-size: 14px;
    line-height: 26px;
  }
}
@layer layout {
  .l-fixedCv {
    position: fixed;
    inset: auto 0 0;
    z-index: 98;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: var(--cv-h);
    background-color: var(--color-main);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 500;

    & img {
      width: 26px;
    }

    @media only screen and (min-width: 992px) {
      display: none;
    }
  }
}
@layer layout {
  /* 本文の幅（お知らせ詳細・固定ページ） */
  .l-narrow {
    width: min(345px, 100% - 30px);
    margin-inline: auto;

    @media only screen and (min-width: 576px) {
      width: min(600px, 100% - 30px);
    }

    @media only screen and (min-width: 992px) {
      width: min(1000px, 100% - 60px);
    }
  }
}

@layer component {
  .c-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    height: 55px;
    padding-left: 0.05em;
    border-radius: 30px;
    background-color: var(--color-main);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 500;

    &::after {
      position: absolute;
      top: 50%;
      right: 15px;
      width: 8px;
      height: 8px;
      margin-top: -4px;
      border-radius: 50%;
      background-color: var(--color-white);
      content: "";
    }

    @media only screen and (min-width: 992px) {
      width: 300px;
      height: 60px;
      font-size: 16px;
    }
  }

  .c-btn--sm {
    @media only screen and (min-width: 992px) {
      width: 200px;
      height: 40px;
      border-radius: 20px;
    }
  }

  .c-btn--lg {
    width: 171px;
    height: 50px;
    font-size: 16px;

    &::after {
      right: 10px;
    }

    @media only screen and (min-width: 992px) {
      width: 300px;
      height: 60px;
      font-size: 20px;

      &::after {
        right: 15px;
      }
    }
  }

  .c-btn--akashi {
    background-color: var(--color-akashi);
  }

  .c-btn--himeji {
    background-color: var(--color-himeji);
  }

  .c-btn--wide {
    width: 100%;
    height: 60px;
    font-size: 16px;

    @media only screen and (min-width: 992px) {
      width: 100%;
      font-size: 18px;
    }
  }
}
@layer component {
  .c-secTitle__en {
    color: var(--color-akashi);
    font-family: var(--font-en);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;

    @media only screen and (min-width: 992px) {
      font-size: 14px;
      letter-spacing: 0.05em;
    }
  }

  .c-secTitle__ja {
    margin-top: -7.5px;
    font-size: 24px;
    font-weight: 700;
    line-height: 35px;

    @media only screen and (min-width: 992px) {
      margin-top: 6.14px;
      font-size: 30px;
      line-height: 30px;
    }
  }

  .c-secTitle--himeji .c-secTitle__en {
    color: var(--color-himeji);
  }
}
@layer component {
  .c-clinicTag {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 40px;
    padding-left: 0.05em;
    border-radius: 10px;
    background-color: var(--color-white);
    box-shadow: inset 0 0 0 1px var(--tag-color);
    color: var(--tag-color);
    font-size: 16px;
    font-weight: 500;

    &::after {
      position: absolute;
      top: 50%;
      right: 10px;
      width: 6px;
      height: 6px;
      margin-top: -3px;
      border-radius: 50%;
      background-color: var(--tag-color);
      content: "";
    }
  }

  .c-clinicTag--akashi {
    --tag-color: var(--color-akashi);
  }

  .c-clinicTag--himeji {
    --tag-color: var(--color-himeji);
  }

  .c-clinicTag--fill {
    background-color: var(--tag-color);
    box-shadow: none;
    color: var(--color-white);

    &::after {
      background-color: var(--color-white);
    }
  }

  .c-clinicTag--lg {
    width: 100%;
    height: 50px;
  }

  .c-clinicTag--sm {
    display: inline-flex;
    width: auto;
    height: 20px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 10px;
    line-height: 20px;
    letter-spacing: 0;

    &::after {
      display: none;
    }

    @media only screen and (min-width: 992px) {
      height: 22px;
      border-radius: 11px;
      font-size: 12px;
      line-height: 22px;
    }
  }

  .c-catTag {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 10px;
    border-radius: 10px;
    background-color: var(--color-white);
    box-shadow: inset 0 0 0 1px var(--color-akashi);
    font-size: 10px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0;

    @media only screen and (min-width: 992px) {
      height: 22px;
      border-radius: 11px;
      font-size: 12px;
      line-height: 22px;
    }
  }

  .c-catTag--himeji {
    box-shadow: inset 0 0 0 1px var(--color-himeji);
  }
}
@layer component {
  .c-newsList {
    border-top: 1px solid var(--color-line);

    & > li {
      border-bottom: 1px solid var(--color-line);
    }

    @media only screen and (min-width: 992px) {
      margin-inline: 1px;
    }
  }

  .c-newsList__link {
    position: relative;
    display: grid;
    grid-template-areas:
      "tags"
      "date"
      "title";
    padding: 14px 0 12.02px;
    font-size: 14px;
    line-height: 26px;

    &::before,
    &::after {
      position: absolute;
      top: 50%;
      content: "";

      @media only screen and (max-width: 991px) {
        display: none;
      }
    }

    &::before {
      right: 0;
      width: 24px;
      height: 24px;
      margin-top: -12px;
      border-radius: 50%;
      background-color: var(--color-main);
    }

    &::after {
      right: 10.5px;
      width: 5px;
      height: 5px;
      margin-top: -2.5px;
      border-top: 1px solid var(--color-white);
      border-right: 1px solid var(--color-white);
      transform: rotate(45deg);
    }

    @media only screen and (min-width: 992px) {
      grid-template-columns: 220px 97px 1fr;
      grid-template-areas: "tags date title";
      align-items: center;
      column-gap: 0;
      height: 63px;
      padding: 0 34px 0 0;
      font-size: 16px;
      line-height: 30px;

      &::before {
        right: -1px;
      }

      &::after {
        right: 9.5px;
      }
    }
  }

  .c-newsList__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    grid-area: tags;
  }

  .c-newsList__date {
    grid-area: date;
    margin-top: 7.98px;

    @media only screen and (min-width: 992px) {
      margin-top: 0;
    }
  }

  .c-newsList__title {
    grid-area: title;
    margin-top: -2px;

    @media only screen and (min-width: 992px) {
      margin-top: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }

  .c-newsList--clinic .c-newsList__link {
    @media only screen and (min-width: 992px) {
      grid-template-columns: 88px 97px 1fr;
    }
  }

  .c-newsList--clinic .c-newsList__date {
    margin-top: 6.98px;

    @media only screen and (min-width: 992px) {
      margin-top: 0;
    }
  }

  .c-newsList--clinic .c-newsList__title {
    margin-top: -1px;

    @media only screen and (min-width: 992px) {
      margin-top: 0;
    }
  }
}
@layer component {
  .c-newsTicker {
    display: flex;
    align-items: center;
    height: 34px;
    background-color: var(--color-white);
    box-shadow: var(--shadow-bar);
    font-size: 14px;

    @media only screen and (min-width: 992px) {
      width: 694px;
      font-size: 16px;
    }
  }

  .c-newsTicker__tag {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 60px;
    padding-left: 0.05em;
    background-color: var(--ticker-color, var(--color-akashi));
    box-shadow: var(--shadow-bar);
    color: var(--color-white);
    font-size: 12px;

    @media only screen and (min-width: 992px) {
      font-size: 14px;
    }
  }

  .c-newsTicker--himeji {
    --ticker-color: var(--color-himeji);
  }

  .c-newsTicker__date {
    flex-shrink: 0;
    width: 97px;
    margin-left: 20px;
  }

  .c-newsTicker__title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .c-newsTicker--plain {
    @media only screen and (min-width: 992px) {
      width: 634px;
      height: 44px;
    }
  }
}
@layer component {
  .c-hours {
    --hours-color: var(--color-akashi);
    --hours-light: var(--color-akashi-light);
  }

  .c-hours--himeji {
    --hours-color: var(--color-himeji);
    --hours-light: var(--color-himeji-light);
  }

  .c-hours__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
    text-align: center;

    & th,
    & td {
      text-align: center;
      vertical-align: middle;
    }

    & thead th {
      height: 40px;
      padding-top: 6.98px;
      padding-bottom: 3.02px;
      background-color: var(--hours-light);
      font-weight: 500;
      vertical-align: top;
    }

    & tbody tr {
      height: 50px;
      border-bottom: 1px solid var(--color-line);
      background-color: var(--color-white);

      &:first-child {
        height: 51px;
      }
    }

    & tbody th {
      padding-top: 0.98px;
      font-weight: 400;
      vertical-align: top;
    }

    & td {
      font-weight: 700;
    }

    @media only screen and (min-width: 992px) {
      font-size: 16px;

      & thead th {
        padding-top: 6.12px;
        padding-bottom: 3.88px;
      }

      & tbody tr {
        height: 51px;
      }

      & tbody th {
        padding-top: 0.12px;
      }
    }
  }

  .c-hours__colTime {
    width: 91.75px;

    @media only screen and (min-width: 992px) {
      width: 183.5px;
    }
  }

  .c-hours__mark {
    color: var(--hours-color);
  }

  .c-hours__time {
    display: block;
  }

  .c-hours__recept {
    display: block;
    margin-top: -12.28px;
    margin-bottom: -10px;
    color: var(--color-sub);
    font-size: 10px;
    letter-spacing: 0;
    white-space: nowrap;

    @media only screen and (min-width: 992px) {
      margin-top: -8.14px;
      font-size: 14px;
      letter-spacing: 0.05em;
    }
  }

  .c-hours__notes {
    margin-top: 7.7px;
    font-size: 10px;
    line-height: 20px;

    & li {
      letter-spacing: 0;
      white-space: nowrap;
    }

    @media only screen and (min-width: 992px) {
      margin-top: 6px;
      font-size: 14px;
      line-height: 26px;

      & li {
        letter-spacing: 0.05em;
      }
    }
  }

  .c-hours--wide .c-hours__table {
    & thead th {
      height: 50px;
      padding-top: 11.98px;
      padding-bottom: 8.02px;
    }

    & tbody th {
      padding-top: 1.98px;
    }

    & td {
      font-weight: 400;
    }

    @media only screen and (min-width: 992px) {
      font-size: 18px;

      & thead th {
        padding-top: 10.26px;
        padding-bottom: 9.74px;
      }

      & tbody tr {
        height: 70px;

        &:nth-child(2):not(:last-child) {
          height: 71px;
        }
      }

      & tbody th {
        padding-top: 7.26px;
      }
    }
  }

  .c-hours--wide .c-hours__colTime {
    width: 104px;

    @media only screen and (min-width: 992px) {
      width: 325.67px;
    }
  }

  .c-hours--wide .c-hours__recept {
    margin-top: -10.28px;
    color: var(--color-txt);

    @media only screen and (min-width: 992px) {
      margin-top: -3.14px;
      margin-bottom: 0;
      font-size: 16px;
    }
  }

  .c-hours--wide .c-hours__notes {
    margin-top: 5.34px;
    font-size: 12px;
    line-height: 26px;

    & li {
      white-space: normal;
    }

    @media only screen and (min-width: 992px) {
      margin-top: 17.49px;
      font-size: 14px;

      & li {
        white-space: nowrap;
      }
    }
  }
}
@layer component {
  /* 高さは最低値のみ指定し、タイトルが2行以上になったら縦に伸ばす */
  .c-noticeBar {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 10px;
    background-color: var(--color-bg-light);
    box-shadow: var(--shadow-bar);
    font-size: 14px;
    line-height: 1.5;

    @media only screen and (min-width: 992px) {
      min-height: 44px;
      padding-left: 20px;
      font-size: 16px;
    }
  }

  .c-noticeBar__date {
    flex-shrink: 0;
    width: 86px;

    @media only screen and (min-width: 992px) {
      width: 97px;
    }
  }

  .c-noticeBar--white {
    min-height: 44px;
    padding-left: 20px;
    background-color: var(--color-white);
  }
}
@layer component {
  .c-clinicCard {
    --card-color: var(--color-akashi);

    display: flex;
    flex-direction: column;
    border-radius: 20px;
    background-color: var(--color-white);
    box-shadow: var(--shadow-card);

    @media only screen and (min-width: 992px) {
      height: 1115px;
    }
  }

  .c-clinicCard--himeji {
    --card-color: var(--color-himeji);
  }

  .c-clinicCard__name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 50px;
    padding-top: 2px;
    border-radius: 20px 20px 0 0;
    background-color: var(--card-color);
    box-shadow: var(--shadow-card);
    color: var(--color-white);
    font-size: 20px;
    font-weight: 700;

    & img {
      width: 29px;
    }

    @media only screen and (min-width: 992px) {
      height: 80px;
      padding-top: 1.4px;
      font-size: 24px;

      & img {
        width: 35px;
      }
    }
  }

  .c-clinicCard__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0 20px 50px;

    @media only screen and (min-width: 992px) {
      padding: 0 40px 40px;
    }
  }

  .c-clinicCard__info {
    margin-top: 21px;
    font-size: 14px;
    line-height: 26px;

    & > div {
      padding: 5.98px 0 7.02px;
      border-bottom: 1px solid var(--color-line);
    }

    & dt {
      color: var(--card-color);
      font-weight: 500;
    }

    & dd {
      margin-top: -1px;
    }

    @media only screen and (min-width: 992px) {
      margin-top: 20.62px;
      font-size: 16px;
      line-height: 30px;

      & > div {
        display: flex;
        padding: 6.5px 0;
      }

      & dt {
        flex-shrink: 0;
        width: 86px;
      }

      & dd {
        margin-top: 0;
      }
    }
  }

  .c-clinicCard__map {
    margin-top: 29px;

    & iframe {
      display: block;
      width: 100%;
      height: auto;
      aspect-ratio: 305 / 199;
      border: 0;
    }

    @media only screen and (min-width: 992px) {
      & iframe {
        aspect-ratio: 608.5 / 292;
      }
    }
  }

  .c-clinicCard .c-hours {
    margin-top: 30px;

    @media only screen and (min-width: 992px) {
      margin-top: 30px;
    }
  }

  .c-clinicCard .c-noticeBar {
    margin-top: 17.3px;

    @media only screen and (min-width: 992px) {
      margin-top: auto;
    }
  }

  .c-clinicCard__btn {
    margin: 20px auto 0;

    @media only screen and (max-width: 991px) {
      width: 100%;
    }

    @media only screen and (min-width: 992px) {
      margin-top: 30px;
    }
  }

  /* 診療日時の変更のお知らせが無いときも、ボタンをカードの下端にそろえる */
  .c-clinicCard .c-hours + .c-clinicCard__btn {
    @media only screen and (min-width: 992px) {
      margin-top: auto;
    }
  }
}
@layer component {
  .c-infoBnr {
    display: grid;
    gap: 20px;

    & img {
      width: 100%;
    }

    @media only screen and (min-width: 992px) {
      grid-template-columns: repeat(2, minmax(0, 520px));
      justify-content: space-between;
      margin-inline: 1px;
    }
  }

  .c-infoBnr__survey {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    border-radius: 10px;
    background-color: var(--color-white);
    box-shadow: inset 0 0 0 1px var(--color-akashi-light);
    text-align: center;

    @media only screen and (min-width: 992px) {
      flex-direction: row;
      width: min(900px, 100%);
      height: 100px;
      margin-inline: auto;
      text-align: left;
    }
  }

  .c-infoBnr__surveyIcon {
    width: 57.62px;
    margin-top: 20px;

    @media only screen and (min-width: 992px) {
      flex-shrink: 0;
      width: 92.19px;
      margin: 0 0 0 40px;
    }
  }

  .c-infoBnr__surveyBody {
    display: block;
    padding: 0 15px;

    @media only screen and (min-width: 992px) {
      align-self: flex-start;
      padding: 21.17px 0 0 19.81px;
    }
  }

  .c-infoBnr__surveyTitle {
    display: block;
    margin-top: 6.04px;
    font-size: 22px;
    font-weight: 700;
    line-height: 31px;

    & em {
      color: var(--color-akashi);
      font-style: normal;
    }

    @media only screen and (min-width: 992px) {
      margin-top: 0;
      font-size: 27px;

      & em {
        font-size: 31px;
      }
    }
  }

  .c-infoBnr__surveyText {
    display: block;
    margin-top: 7.8px;
    font-size: 12px;
    line-height: 22px;
    letter-spacing: 0;

    @media only screen and (min-width: 992px) {
      margin-top: 5.23px;
      font-size: 16px;
      line-height: 30px;
      letter-spacing: 0.05em;
    }
  }

  .c-infoBnr__surveyArrow {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    height: 30px;
    margin-top: 17.16px;
    background-color: var(--color-akashi);

    @media only screen and (min-width: 992px) {
      width: 60px;
      height: auto;
      margin: 0 0 0 auto;
    }
  }

  .c-infoBnr__survey--half {
    @media only screen and (min-width: 992px) {
      width: 100%;
      height: 116px;
      margin-inline: 0;
    }
  }

  .c-infoBnr__survey--half .c-infoBnr__surveyIcon {
    @media only screen and (min-width: 992px) {
      align-self: flex-start;
      width: 80px;
      margin: 23px 0 0 10px;
    }
  }

  .c-infoBnr__survey--half .c-infoBnr__surveyBody {
    @media only screen and (min-width: 992px) {
      padding: 15.32px 0 0 5px;
    }
  }

  .c-infoBnr__survey--half .c-infoBnr__surveyTitle {
    @media only screen and (min-width: 992px) {
      font-size: 26px;

      & em {
        font-size: 26px;
      }
    }
  }

  .c-infoBnr__survey--half .c-infoBnr__surveyText {
    @media only screen and (min-width: 992px) {
      width: 353px;
      margin-top: 6.8px;
      line-height: 26px;
    }
  }

  /* アンケートと同じ大きさの、書面掲示事項のバナー（青） */
  .c-infoBnr__doc {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 10px;
    background-color: var(--color-white);
    box-shadow: inset 0 0 0 1px var(--color-main);

    @media only screen and (min-width: 992px) {
      flex-direction: row;
      height: 116px;
    }
  }

  .c-infoBnr__docBody {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 15px;

    @media only screen and (min-width: 992px) {
      padding: 0;
    }
  }

  .c-infoBnr__docIcon {
    flex-shrink: 0;
    width: 40px;

    @media only screen and (min-width: 992px) {
      width: 53px;
    }
  }

  .c-infoBnr__docTitle {
    color: var(--color-main);
    font-size: 22px;
    font-weight: 700;
    line-height: 31px;

    @media only screen and (min-width: 992px) {
      font-size: 26px;
    }
  }

  .c-infoBnr__surveyArrow--main {
    margin-top: 0;
    background-color: var(--color-main);
  }
}
@layer component {
  .c-extBnr {
    padding: 40px 0 40px;

    @media only screen and (min-width: 992px) {
      padding: 80px 0;
    }
  }

  .c-extBnr__list {
    display: grid;
    justify-content: center;
    gap: 20px;

    & img {
      width: 305px;

      @media only screen and (min-width: 992px) {
        width: auto;
      }
    }

    /* 3つのバナーを同じ高さで並べる（列の比率は各画像の縦横比から算出） */
    @media only screen and (min-width: 992px) {
      grid-template-columns: 440fr 440fr 529fr;
      width: min(1396px, 100% - 60px);
      margin-inline: auto;

      & img {
        width: 100%;
      }
    }
  }
}
@layer component {
  .c-reserveModal {
    position: fixed;
    inset: 0;
    z-index: 200;
    overflow-y: auto;
    overscroll-behavior: contain;

    &[hidden] {
      display: none;
    }
  }

  .c-reserveModal__overlay {
    position: fixed;
    inset: 0;
    background-color: var(--color-overlay);
  }

  .c-reserveModal__dialog {
    position: relative;
    width: 345px;
    margin: 51px auto 30px;
    padding: 27.68px 20px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-card);
    background-color: var(--color-white);

    @media only screen and (min-width: 992px) {
      width: min(1000px, 100% - 40px);
      margin: 81px auto 50px;
      padding: 47.1px 40px 40px;
      border-radius: 20px;
      box-shadow: var(--shadow-card);
    }
  }

  .c-reserveModal__close {
    position: absolute;
    top: -28.87px;
    right: -1.87px;
    width: 21px;
    height: 21px;
  }

  .c-reserveModal__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 40px;
    text-align: center;

    @media only screen and (min-width: 992px) {
      font-size: 30px;
      line-height: 30px;
    }
  }

  .c-reserveModal__notes {
    margin-top: 5.3px;
    font-size: 14px;
    line-height: 26px;

    & li {
      position: relative;
      padding-left: 19px;

      &::before {
        position: absolute;
        left: 0;
        content: "●";
      }
    }

    @media only screen and (min-width: 992px) {
      width: fit-content;
      margin: 24.02px auto 0;
      font-size: 16px;
      line-height: 30px;
    }
  }

  .c-reserveModal__clinics {
    display: grid;
    gap: 20px;
    margin-top: 17.02px;

    @media only screen and (min-width: 992px) {
      grid-template-columns: repeat(2, 1fr);
      margin-top: 26.88px;
    }
  }

  .c-reserveModal__clinic {
    --modal-color: var(--color-akashi);

    overflow: hidden;
    border-radius: 10px;
    background-color: var(--modal-color);
    box-shadow: var(--shadow-card);
    color: var(--color-white);

    @media only screen and (min-width: 992px) {
      height: 445.03px;
    }
  }

  .c-reserveModal__clinic--himeji {
    --modal-color: var(--color-himeji);
  }

  .c-reserveModal__toggle {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 59px;
    padding: 0 19px;
    color: var(--color-white); /* 既存テーマの button の文字色（#333）を上書きする */
    font-size: 20px;
    font-weight: 700;

    &::before,
    &::after {
      position: absolute;
      top: 50%;
      right: 20px;
      width: 16px;
      height: 2px;
      margin-top: -1px;
      background-color: var(--color-white);
      content: "";
    }

    &::after {
      transform: rotate(90deg);
      transition: transform 0.2s;
    }

    &[aria-expanded="true"]::after {
      transform: rotate(0deg);
    }

    @media only screen and (min-width: 992px) {
      justify-content: center;
      height: auto;
      padding: 22.68px 0 0;
      font-size: 24px;
      pointer-events: none;

      &::before,
      &::after {
        display: none;
      }
    }
  }

  .c-reserveModal__body {
    padding: 0 0 14px;

    @media only screen and (max-width: 991px) {
      &:not(.is-open) {
        display: none;
      }
    }

    @media only screen and (min-width: 992px) {
      padding: 0;
    }
  }

  .c-reserveModal__list {
    padding-inline: 10px;

    & > li {
      padding: 19px 0 20px;
      border-bottom: 1px solid var(--color-line-white);

      &:first-child {
        padding-top: 5px;
      }
    }

    & > .c-reserveModal__tel {
      padding-top: 16.98px;

      &:last-child {
        padding-top: 13.98px;
      }
    }

    @media only screen and (min-width: 992px) {
      margin-top: 2.32px;
      padding-inline: 20px;

      & > li {
        padding-block: 0;
        border-top: 0;
        border-bottom: 1px solid var(--color-line-white);
      }

      & > .c-reserveModal__tel {
        padding-top: 18.4px;
      }
    }
  }

  .c-reserveModal__btn,
  .c-reserveModal__telNum {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 250px;
    height: 50px;
    justify-content: flex-start;
    margin-inline: auto;
    padding-top: 2.12px;
    border-radius: 25px;
    background-color: var(--color-white);
    color: var(--color-txt);
    font-size: 16px;
    font-weight: 500;

    & small {
      margin-top: -9.28px;
      font-size: 12px;
      letter-spacing: 0;
    }

    &::after {
      position: absolute;
      top: 50%;
      right: 14px;
      width: 8px;
      height: 8px;
      margin-top: -4px;
      border-radius: 50%;
      background-color: var(--modal-color);
      content: "";
    }
  }

  .c-reserveModal__btn {
    @media only screen and (min-width: 992px) {
      margin-block: 20px;
      padding-top: 1.26px;
      font-size: 18px;

      & small {
        font-size: 14px;
        letter-spacing: 0.05em;
      }

      &::after {
        right: 15px;
      }
    }
  }

  .c-reserveModal__tel {
    text-align: center;

    @media only screen and (min-width: 992px) {
      position: relative;
      height: 91px;
    }
  }

  .c-reserveModal__telLabel {
    display: block;
    font-size: 14px;
    line-height: 24px;

    .c-reserveModal__tel:last-child & {
      line-height: 30px;

      @media only screen and (min-width: 992px) {
        top: 19.12px;
      }
    }

    @media only screen and (min-width: 992px) {
      position: absolute;
      top: 21.12px;
      left: 1px;
      font-size: 16px;
      line-height: 24px;
      text-align: left;
    }
  }

  .c-reserveModal__telNum {
    margin-top: 8.02px;
    font-weight: 900;

    & small {
      font-weight: 500;
    }

    @media only screen and (max-width: 991px) {
      .c-reserveModal__tel:last-child & {
        margin-top: 5.02px;
      }
    }

    @media only screen and (min-width: 992px) {
      margin-top: 0;
      width: auto;
      height: auto;
      background-color: transparent;
      color: var(--color-white);
      font-size: 20px;
      font-weight: 700;
      line-height: 30px;

      & small {
        margin-top: -3.42px;
        font-size: 14px;
        font-weight: 400;
        line-height: 30px;
      }

      &::after {
        display: none;
      }
    }
  }
}
@layer component {
  /* 「AIに質問」は実際には既存のチャットボット（nomoca）が表示する。静的版では位置確認のため画像で代用する（仮） */
  .c-aiBtn {
    position: fixed;
    right: 15px;
    bottom: 55px;
    z-index: 90;
    width: 131px;

    @media only screen and (min-width: 992px) {
      right: 30px;
      bottom: 24.72px;
    }
  }

  /* SP では、メニューか予約・ご連絡のポップアップを開いている間「AIに質問」（nomoca のボタン）を隠す（メニューなどの上に重なるため） */
  html:has(.is-menuOpen, .is-modalOpen) :is(iframe[src*="nomoca-ai.com/chatbot-button"], .c-aiBtn) {
    @media only screen and (max-width: 991px) {
      visibility: hidden;
      opacity: 0;
    }
  }
}
@layer component {
  .c-clinicBadge {
    --badge-bg: var(--gradient-akashi);

    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 110.1px;
    height: 110.1px;
    padding-top: 20.55px;
    border-radius: 50%;
    background: var(--badge-bg);
    color: var(--color-white);
    font-size: 11.74px;
    font-weight: 700;
    line-height: 19.08px;
    text-align: center;

    &::before {
      position: absolute;
      inset: 3.67px;
      border: 1px dashed var(--color-white-50);
      border-radius: 50%;
      content: "";
    }

    & img {
      width: 29.36px;
    }

    & span {
      margin-top: 3.03px;
    }

    @media only screen and (min-width: 992px) {
      width: 150px;
      height: 150px;
      padding-top: 28px;
      font-size: 16px;
      line-height: 26px;

      &::before {
        inset: 5px;
      }

      & img {
        width: 40px;
      }

      & span {
        margin-top: 4.12px;
      }
    }
  }

  .c-clinicBadge--himeji {
    --badge-bg: var(--gradient-himeji);
  }
}
@layer component {
  .c-reserve {
    --reserve-color: var(--color-akashi);
    --reserve-light: var(--color-akashi-light);

    padding: 34.98px 20px 40px;
    border-radius: 20px;
    background-color: var(--color-white);
    box-shadow: inset 0 0 0 2px var(--reserve-color);

    @media only screen and (min-width: 992px) {
      width: min(900px, 100%);
      margin-inline: auto;
      padding: 48.26px 77px 50px;
      text-align: center;
    }
  }

  .c-reserve--himeji {
    --reserve-color: var(--color-himeji);
    --reserve-light: var(--color-himeji-light);
  }

  .c-reserve__heading {
    color: var(--reserve-color);
    font-size: 14px;
    font-weight: 700;
    text-align: center;

    &::after {
      display: block;
      width: 30px;
      height: 2px;
      margin: 5.02px auto 0;
      background-color: var(--reserve-color);
      content: "";
    }

    @media only screen and (min-width: 992px) {
      font-size: 18px;

      &::after {
        margin-top: 6.74px;
      }
    }
  }

  .c-reserve__title {
    margin-top: 18.4px;
    font-size: 20px;
    font-weight: 500;
    text-align: center;

    & strong {
      color: var(--reserve-color);
      font-weight: 500;
    }

    @media only screen and (min-width: 992px) {
      height: 51.72px;
      margin-top: 21.68px;
      font-size: 22px;
      line-height: 50px;

      & strong {
        font-size: 24px;
        font-weight: 700;
      }
    }
  }

  .c-reserve__titleSub {
    @media only screen and (min-width: 992px) {
      font-size: 20px;
    }
  }

  .c-reserve__text {
    margin-top: 16.58px;
    font-size: 14px;
    line-height: 26px;

    @media only screen and (min-width: 992px) {
      margin-top: 7.72px;
      font-size: 16px;
      line-height: 30px;
    }
  }

  .c-reserve__btns {
    display: grid;
    gap: 20px;
    margin-top: 37.02px;

    @media only screen and (min-width: 992px) {
      grid-template-columns: repeat(2, 1fr);
      gap: 60px;
      margin-top: 26.88px;
    }
  }

  .c-reserve__btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 60px;
    padding-top: 5.26px;
    border-radius: 30px;
    background-color: var(--reserve-color);
    color: var(--color-white);
    font-size: 18px;
    font-weight: 500;

    & img {
      position: absolute;
      top: 15px;
      left: 15px;
      width: 30px;
      height: 30px;
      object-fit: contain;
    }

    & small {
      margin-top: -7.28px;
      font-size: 14px;
    }

    &::after {
      position: absolute;
      top: 50%;
      right: 15px;
      width: 8px;
      height: 8px;
      margin-top: -4px;
      border-radius: 50%;
      background-color: var(--color-white);
      content: "";
    }
  }

  .c-reserve__tels {
    display: grid;
    gap: 19.02px;
    margin-top: 15.84px;

    @media only screen and (min-width: 992px) {
      grid-template-columns: repeat(2, 1fr);
      gap: 60px;
      margin-top: 24.98px;
    }
  }

  .c-reserve__tel {
    display: grid;
    grid-template-columns: 50px auto;
    column-gap: 10px;
    justify-self: start;
    text-align: left;

    @media only screen and (min-width: 992px) {
      justify-self: center;
    }
  }

  .c-reserve__telIcon {
    grid-row: 1 / 3;
    box-sizing: content-box;
    width: 22px;
    height: 22px;
    margin-top: 6.16px;
    padding: 14px;
    border-radius: 50%;
    background-color: var(--reserve-light);

    @media only screen and (min-width: 992px) {
      margin-top: 7.02px;
    }
  }

  .c-reserve__telLabel {
    font-size: 12px;
    letter-spacing: 0;

    @media only screen and (min-width: 992px) {
      font-size: 14px;
      font-weight: 500;
      letter-spacing: 0.05em;
    }
  }

  .c-reserve__telNum {
    margin-top: -3.02px;
    font-size: 26px;
    font-weight: 500;
    letter-spacing: 0.1em;

    @media only screen and (min-width: 992px) {
      margin-top: -1.16px;
    }
  }

  .c-reserve__links {
    display: grid;
    gap: 20px;
    margin-top: 32.68px;
    padding-top: 29.5px;
    border-top: 1px solid var(--color-line);

    @media only screen and (min-width: 992px) {
      grid-template-columns: repeat(2, 1fr);
      gap: 60px;
    }
  }
}
@layer component {
  /* パンくず（XD に指定なし：暫定） */
  .c-breadcrumb {
    font-size: 12px;
    line-height: 20px;

    & ol {
      display: flex;
      flex-wrap: wrap;
    }

    & li {
      color: var(--color-sub);
    }

    & li + li::before {
      margin: 0 0.5em;
      content: ">";
    }

    & a {
      color: var(--color-sub);
    }

    @media only screen and (min-width: 992px) {
      font-size: 14px;
      line-height: 26px;
    }
  }
}
@layer component {
  /* ページ・記事のタイトル（日付＋タイトル＋オレンジの下線） */
  .c-pageTitle {
    padding-bottom: 1.82px;
    border-bottom: 1px solid var(--color-akashi);
  }

  .c-pageTitle__date {
    display: block;
    color: var(--color-akashi);
    font-size: 14px;
    font-weight: 700;

    @media only screen and (min-width: 992px) {
      font-size: 16px;
    }
  }

  .c-pageTitle__text {
    font-size: 20px;
    font-weight: 700;
    line-height: 32px;

    @media only screen and (min-width: 992px) {
      font-size: 24px;
      line-height: 40px;
    }
  }

  .c-pageTitle__date + .c-pageTitle__text {
    margin-top: 2px;

    @media only screen and (min-width: 992px) {
      margin-top: 4.56px;
    }
  }
}
@layer component {
  /* 本文の書式（お知らせ詳細・固定ページの本文） */
  .c-richText {
    font-size: 14px;
    line-height: 26px;
    overflow-wrap: anywhere;

    & > * + * {
      margin-top: 14px;
    }

    & strong {
      font-weight: 700;
    }

    & a:not(.c-btn) {
      color: var(--color-main);
      font-weight: 500;
      text-decoration: underline;
      text-decoration-thickness: 1px;
      text-underline-offset: 7px;
    }

    & img {
      max-width: 100%;
      height: auto;
      margin-inline: auto;
    }

    & ul > li {
      position: relative;
      padding-left: 1em;

      &::before {
        position: absolute;
        left: 0;
        content: "・";
      }
    }

    & ol {
      counter-reset: richtext;
    }

    & ol > li {
      position: relative;
      padding-left: 30px;
      counter-increment: richtext;

      &::before {
        position: absolute;
        top: 3px;
        left: 0;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background-color: var(--color-accent);
        color: var(--color-white);
        font-size: 12px;
        font-weight: 500;
        line-height: 20px;
        text-align: center;
        content: counter(richtext);
      }
    }

    & li + li {
      margin-top: 3px;
    }

    & table {
      width: 100%;
      border-collapse: collapse;
    }

    & th,
    & td {
      padding: 8px 12px;
      border: 1px solid var(--color-line);
      text-align: left;
    }

    & th {
      background-color: var(--color-bg);
      font-weight: 500;
    }

    @media only screen and (min-width: 992px) {
      font-size: 16px;
      line-height: 30px;

      & a:not(.c-btn) {
        text-underline-offset: 10px;
      }

      & ol > li {
        padding-left: 33px;

        &::before {
          top: 4.88px;
          left: 1px;
          width: 22px;
          height: 22px;
          font-size: 16px;
          line-height: 22px;
        }
      }
    }
  }

  .c-richText > figure,
  .c-richText > .c-richText__btn + * {
    margin-top: 40px;

    @media only screen and (min-width: 992px) {
      margin-top: 80px;
    }
  }

  .c-richText > .c-richText__btn {
    margin-top: 30px;

    @media only screen and (min-width: 992px) {
      margin-top: 41.88px;
    }
  }

  .c-richText > figure + * {
    margin-top: 20px;

    @media only screen and (min-width: 992px) {
      margin-top: 27.12px;
    }
  }

  .c-richText > h2 {
    margin-top: 50px;
    padding: 6px 15px;
    border-radius: 5px;
    background-color: var(--color-akashi);
    color: var(--color-white);
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
    letter-spacing: 0.1em;

    @media only screen and (min-width: 992px) {
      margin-top: 76.88px;
      padding: 7.68px 20px 7.32px;
      font-size: 24px;
      line-height: 30px;
    }
  }

  .c-richText > h3 {
    position: relative;
    margin-top: 30px;
    padding-left: 18px;
    font-size: 17px;
    font-weight: 700;
    line-height: 28px;
    letter-spacing: 0.1em;

    &::before {
      position: absolute;
      top: 1px;
      left: 0;
      width: 8px;
      height: 26px;
      background-color: var(--color-accent);
      content: "";
    }

    @media only screen and (min-width: 992px) {
      margin-top: 36.28px;
      padding-left: 20px;
      font-size: 20px;
      line-height: 30px;

      &::before {
        top: 0.6px;
        width: 10px;
        height: 29px;
      }
    }
  }

  .c-richText > h4 {
    margin-top: 28px;
    padding-bottom: 2.74px;
    background: radial-gradient(circle, var(--color-accent) 1.5px, transparent 1.5px) -4.5px 100% / 9px 3px repeat-x;
    font-size: 16px;
    font-weight: 700;
    line-height: 30px;
    letter-spacing: 0.1em;

    @media only screen and (min-width: 992px) {
      margin-top: 32.64px;
      font-size: 18px;
      line-height: 35px;
    }
  }

  .c-richText > h5 {
    margin-top: 28px;
    color: var(--color-accent);
    font-weight: 700;

    @media only screen and (min-width: 992px) {
      margin-top: 34px;
    }
  }

  .c-richText > h2 + * {
    margin-top: 14px;

    @media only screen and (min-width: 992px) {
      margin-top: 17.12px;
    }
  }

  .c-richText > h3 + * {
    margin-top: 14px;

    @media only screen and (min-width: 992px) {
      margin-top: 16.72px;
    }
  }

  .c-richText > h4 + * {
    margin-top: 12px;

    @media only screen and (min-width: 992px) {
      margin-top: 14.62px;
    }
  }

  .c-richText > h5 + * {
    margin-top: 10px;

    @media only screen and (min-width: 992px) {
      margin-top: 14px;
    }
  }
}
@layer component {
  /* 記事の前後・一覧に戻る */
  .c-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    font-weight: 500;

    @media only screen and (min-width: 992px) {
      gap: 50px;
    }
  }

  .c-pager__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--color-main);

    & img {
      width: 20px;
    }
  }

  .c-pager__arrow--none {
    visibility: hidden;
  }

  /* 一覧のページ番号 */
  .c-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    font-weight: 500;

    & a,
    & span {
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 36px;
      height: 36px;
      padding: 0 6px;
      border-radius: 18px;
      background-color: var(--color-white);
      box-shadow: inset 0 0 0 1px var(--color-main);
      color: var(--color-main);
    }

    & .current {
      background-color: var(--color-main);
      color: var(--color-white);
    }

    & .dots {
      box-shadow: none;
    }
  }
}

@layer project {
  /* 共通TOP */
  .p-topHero {
    position: relative;
    padding-top: 369px;
    background-color: var(--color-bg);

    @media only screen and (min-width: 992px) {
      height: 764px;
      padding-top: 0;
      background-color: transparent;
    }
  }

  .p-topHero__photos {
    position: absolute;
    inset: 0 0 auto;
    height: 369px;
    overflow: hidden;

    @media only screen and (min-width: 992px) {
      height: 100%;
    }
  }

  .p-topHero__photo {
    position: absolute;
    top: 0;
    width: calc(50% - 2.5px);
    height: 376px;
    object-fit: cover;

    @media only screen and (min-width: 992px) {
      width: 617px;
      height: 100%;
    }
  }

  .p-topHero__photo--1 {
    left: 0;

    @media only screen and (min-width: 992px) {
      right: 635px;
      left: auto;
    }
  }

  .p-topHero__photo--2 {
    right: 0;
  }

  .p-topHero__wave {
    position: absolute;
    top: 294.05px;
    left: -143.51px;
    width: 696.77px;
    height: 77.81px;
    background: url("../../img/top/bg_01_sp.svg") 0 0 / 100% 100% no-repeat;

    @media only screen and (min-width: 992px) {
      top: 456.19px;
      left: -587.06px;
      width: 2850.3px;
      height: 318.3px;
      background-image: url("../../img/top/bg_01.svg");
    }
  }

  .p-topHero__content {
    @media only screen and (min-width: 992px) {
      position: absolute;
      inset: 0;
    }
  }

  .p-topHero__logo {
    width: 82.34px;
    margin: 20px auto 0;

    @media only screen and (min-width: 992px) {
      position: absolute;
      top: -185px; /* 白い帯を 20px 下げたうえで、ロゴマークは XD より 15px 下げた（課題管理表 No.27） */
      left: 0;
      width: 127.44px;
      margin: 0;
    }
  }

  .p-topHero__nameBox {
    position: absolute;
    top: 97px;
    left: calc(50% - 163.5px);
    width: 328px;
    height: 230.18px;
    border-radius: 10px;
    background-color: var(--color-white-80);
    text-align: center;

    @media only screen and (min-width: 992px) {
      text-align: left;
      position: absolute;
      top: 333px; /* XD は 313px。写真のロゴにかからないよう 20px 下げた（課題管理表 No.27） */
      left: 80px;
      width: 630px;
      height: 123px;
      padding-top: 8.26px;
      border-radius: 10px;
      background-color: var(--color-white-80);
    }
  }

  .p-topHero__corp {
    margin-top: 14.98px;
    font-size: 14px;
    font-weight: 500;

    @media only screen and (min-width: 992px) {
      margin-top: 0;
      font-size: 18px;
    }
  }

  .p-topHero__name {
    margin-top: 2.7px;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.1em;

    @media only screen and (min-width: 992px) {
      margin-top: 24.24px;
      font-size: 50px;
    }
  }

  .p-topHero__lead {
    position: relative;
    margin-top: -15.02px;
    font-size: 14px;
    line-height: 26px;
    text-align: center;

    @media only screen and (min-width: 992px) {
      position: absolute;
      top: 473.12px;
      left: 80px;
      margin-top: 0;
      font-size: 16px;
      line-height: 30px;
      text-align: left;
    }
  }

  .p-topHero__clinics {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-top: 17.02px;

    @media only screen and (min-width: 992px) {
      position: absolute;
      top: 570px;
      left: 80px;
      gap: 10px;
      margin-top: 0;
    }
  }

  .p-topHero__news {
    display: none;

    @media only screen and (min-width: 992px) {
      position: absolute;
      top: 665px;
      left: 80px;
      display: grid;
      gap: 10px;
    }
  }

  .p-topInfo {
    padding: 111px 0 80px;
    background-color: var(--color-bg);

    @media only screen and (min-width: 992px) {
      padding: 60px 0 80px;
    }
  }

  .p-topInfo .c-infoBnr__survey {
    margin-top: 20px;

    @media only screen and (min-width: 992px) {
      margin-top: 45px;
    }
  }

  .p-topFeature {
    margin-top: 72.68px;

    @media only screen and (min-width: 992px) {
      margin-top: 73.96px;
    }
  }

  .p-topFeature__list {
    display: grid;
    gap: 20px;
    margin-top: 19.82px;

    @media only screen and (min-width: 992px) {
      grid-template-columns: repeat(3, minmax(0, 348px));
      column-gap: 20.5px;
      margin: 36.9px 0 0 -1px;
    }
  }

  .p-topFeature__item {
    padding: 23.2px 20px 17.02px;

    @media only screen and (min-width: 992px) and (max-width: 1279px) {
      padding-inline: 15px;
    }

    border-radius: 20px;
    background-color: var(--color-white);
    box-shadow: var(--shadow-card);

    @media only screen and (min-width: 992px) {
      height: 308px;
      padding: 39.6px 20px 0;
    }
  }

  .p-topFeature__num {
    position: relative;
    display: block;
    width: fit-content;
    color: transparent;
    font-family: var(--font-en);
    font-size: 30px;
    font-weight: 700;
    -webkit-text-stroke: 1px var(--color-himeji);

    &::after {
      position: absolute;
      top: 33.8px;
      left: 1px;
      width: calc(100% - 4px);
      height: 1px;
      background-color: var(--color-himeji);
      content: "";
    }

    @media only screen and (min-width: 992px) {
      font-size: 40px;

      &::after {
        top: 39.4px;
      }
    }
  }

  .p-topFeature__title {
    display: block;
    margin-top: 13.2px;
    color: var(--color-himeji);
    font-size: 20px;
    font-weight: 700;

    @media only screen and (min-width: 992px) {
      margin-top: 22.94px;
      font-size: 22px;
      letter-spacing: 0.1em;
    }
  }

  .p-topFeature__text {
    margin-top: 11.58px;
    font-size: 14px;
    line-height: 26px;

    @media only screen and (min-width: 992px) {
      margin-top: 18.58px;
      font-size: 16px;
      line-height: 30px;
    }
  }

  .p-topWide img {
    width: 100%;
    height: 188px;
    object-fit: cover;

    @media only screen and (min-width: 992px) {
      height: 400px;
    }
  }

  .p-topAbout {
    overflow-x: clip;
    padding: 74px 0 80px;

    @media only screen and (min-width: 992px) {
      padding: 80px 0;
    }
  }

  .p-topAbout__inner {
    display: flex;
    flex-direction: column;

    @media only screen and (min-width: 992px) {
      position: relative;
      height: 510px;
    }
  }

  .p-topAbout__photo {
    order: -1;
    margin-bottom: 12.68px;

    & img {
      width: 100%;
      aspect-ratio: 345 / 213;
      object-fit: cover;

      @media only screen and (min-width: 992px) {
        aspect-ratio: auto;
      }
    }

    @media only screen and (min-width: 992px) {
      position: absolute;
      top: 0;
      right: calc(-1 * min(146px, (100vw - 100%) / 2));
      width: calc(100% - 277px + min(146px, (100vw - 100%) / 2));
      margin-bottom: 0;
    }
  }

  .p-topAbout__body {
    display: contents;

    @media only screen and (min-width: 992px) {
      position: absolute;
      top: 209px;
      left: -1px;
      display: block;
      width: min(472px, 50%);
      height: 301px;
      padding: 22.96px 0 0 1px;
      background-color: var(--color-white);
    }
  }

  .p-topAbout__text {
    order: 2;
    margin-top: 6.8px;
    font-size: 14px;
    line-height: 26px;

    @media only screen and (min-width: 992px) {
      width: min(440px, 100%);
      margin-top: 34.02px;
      font-size: 16px;
      line-height: 30px;
    }
  }

  .p-topAbout .c-btn {
    order: 3;
    margin: 27.02px auto 0;

    @media only screen and (min-width: 992px) {
      margin: 26.88px 0 0;
    }
  }

  .p-topNews {
    padding: 72.68px 0 80px;
    background-color: var(--color-bg);

    @media only screen and (min-width: 992px) {
      padding: 73.96px 0 80px;
    }

    & .c-newsList {
      margin-top: 19.82px;

      @media only screen and (min-width: 992px) {
        margin-top: 36.9px;
      }
    }
  }

  .p-topNews__btn {
    margin: 29px auto 0;

    @media only screen and (min-width: 992px) {
      margin-top: 32px;
    }
  }

  .p-topClinic {
    padding: 72.68px 0 80px;
    background: var(--gradient-clinic);

    @media only screen and (min-width: 992px) {
      padding: 73.96px 0 39px;
    }
  }

  .p-topClinic__list {
    display: grid;
    gap: 30px;
    margin-top: 19.82px;

    @media only screen and (min-width: 992px) {
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
      margin-top: 36.9px;
    }
  }

  /* SP では、TOP のメインビジュアルが見えている間「AIに質問」（nomoca のボタン）を隠す（院の選択ボタンと重なるため）。
     クラス is-topHeroVisible は main.js が html に付け外しする */
  .is-topHeroVisible :is(iframe[src*="nomoca-ai.com/chatbot-button"], .c-aiBtn) {
    @media only screen and (max-width: 991px) {
      visibility: hidden;
      opacity: 0;
    }
  }

  :is(iframe[src*="nomoca-ai.com/chatbot-button"], .c-aiBtn) {
    transition: opacity 0.2s, visibility 0.2s;
  }
}
@layer project {
  /* 院ページ（明石・姫路） */
  .p-clinic {
    --clinic-color: var(--color-akashi);
    --clinic-other: var(--color-himeji);
  }

  .p-clinic--himeji {
    --clinic-color: var(--color-himeji);
    --clinic-other: var(--color-akashi);
  }

  /* ヒーロー */
  .p-clinicHero {
    position: relative;
    background-color: var(--color-bg);

    @media only screen and (min-width: 992px) {
      height: 764px;
      background-color: transparent;
    }
  }

  .p-clinicHero__photo {
    position: relative;
    height: 446px;
    overflow: hidden;

    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    @media only screen and (min-width: 992px) {
      position: absolute;
      inset: 0;
      height: auto;
    }
  }

  /* 写真が2枚以上のとき：重ねて、is-active の1枚だけを表示する（切り替えは main.js） */
  .p-clinicHero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s;

    @media (prefers-reduced-motion: reduce) {
      transition: none;
    }
  }

  .p-clinicHero__slide.is-active {
    opacity: 1;
  }

  .p-clinicHero__wave {
    position: absolute;
    top: 371.05px;
    left: -143.51px;
    width: 696.77px;
    height: 77.81px;
    background: url("../../img/top/bg_01_sp.svg") 0 0 / 100% 100% no-repeat;

    @media only screen and (min-width: 992px) {
      top: 544.01px;
      left: -587.06px;
      width: 2850.3px;
      height: 227.48px;
      background-image: url("../../img/akashi/bg_01.svg");
    }
  }

  .p-clinicHero__box {
    position: absolute;
    top: 73px;
    right: 0;
    left: 0;
    width: min(328px, 100% - 30px);
    margin-inline: auto;
    padding: 27.12px 0 2.2px;
    border-radius: 10px;
    background-color: var(--color-white-80);
    text-align: center;

    @media only screen and (min-width: 992px) {
      top: 140px;
      right: 75px; /* XD は左 75px。院内写真のロゴにかからないよう右に寄せた（課題管理表 No.27） */
      left: auto;
      width: fit-content;
      height: 254px;
      padding: 18.26px 25.6px 0 35px;
      background-color: var(--color-white-85);
      text-align: left;
    }
  }

  .p-clinicHero__catch {
    color: var(--clinic-color);
    font-weight: 700;

    &::after {
      display: block;
      width: 30px;
      height: 2px;
      margin: 6.88px auto 0;
      background-color: var(--clinic-color);
      content: "";
    }

    @media only screen and (min-width: 992px) {
      font-size: 18px;

      &::after {
        margin: 6.74px 0 0;
      }
    }
  }

  .p-clinicHero__name {
    margin-top: 6.82px;
    font-size: 26px;
    font-weight: 500;
    line-height: 60px;

    @media only screen and (min-width: 992px) {
      margin-top: 11.08px;
      font-size: 44px;
      letter-spacing: 0.1em;
      white-space: nowrap;
    }
  }

  .p-clinic--himeji .p-clinicHero__name {
    @media only screen and (max-width: 991px) {
      font-size: 22px;
      letter-spacing: 0.04em;
    }
  }

  .p-clinicHero__label {
    width: fit-content;
    height: 34px;
    margin: 8.18px auto 0;
    padding: 1.4px 34px 0 35px;
    border-radius: 17px;
    background-color: var(--clinic-color);
    color: var(--color-white);
    font-size: 20px;
    font-weight: 700;

    @media only screen and (min-width: 992px) {
      height: 45px;
      margin: 16.92px 0 0;
      padding: 6.96px 32px 0 35px;
      border-radius: 23px;
      font-size: 28px;
      letter-spacing: 0.1em;
    }
  }

  .p-clinicHero__lead {
    margin-top: 16.98px;
    font-size: 14px;
    font-weight: 500;
    line-height: 26px;

    @media only screen and (min-width: 992px) {
      margin: 17.12px 0 0 -5px;
      font-size: 16px;
      line-height: 30px;
    }
  }

  .p-clinicHero__badges {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 7.34px;
    margin-top: -44px;

    @media only screen and (min-width: 992px) {
      position: absolute;
      top: 520px;
      left: 80px;
      gap: 10px;
      margin-top: 0;
    }
  }

  .p-clinicHero__news {
    @media only screen and (max-width: 991px) {
      display: none;
    }

    @media only screen and (min-width: 992px) {
      position: absolute;
      top: 700px;
      left: 80px;
    }
  }

  /* 案内・診療時間・予約 */
  .p-clinicInfo {
    padding: 123.9px 0 80px;
    background-color: var(--color-bg);

    @media only screen and (min-width: 992px) {
      padding: 60px 0 80px;
    }
  }

  .p-clinicInfo__bnrs {
    display: grid;
    gap: 20px;
    margin-top: 20px;

    @media only screen and (min-width: 992px) {
      grid-template-columns: repeat(2, minmax(0, 520px));
      justify-content: space-between;
      margin: 40px 1px 0;
    }

    @media only screen and (min-width: 992px) and (max-width: 1279px) {
      grid-template-columns: minmax(0, 520px);
      justify-content: center;
    }
  }

  .p-clinicInfo__hours {
    margin-top: 40px;

    @media only screen and (min-width: 992px) {
      margin: 80px -1px 0 1px;
    }
  }

  .p-clinicInfo__notice {
    margin-top: 15.16px;

    @media only screen and (min-width: 992px) {
      margin-top: 27.02px;
    }
  }

  .p-clinicInfo .c-reserve {
    margin-top: 40px;

    @media only screen and (min-width: 992px) {
      margin-top: 47px;
    }
  }

  /* お知らせ */
  .p-clinicNews {
    padding: 72.68px 0 80px;

    @media only screen and (min-width: 992px) {
      padding: 73.96px 0 80px;
    }

    & .c-newsList {
      margin-top: 19.82px;

      @media only screen and (min-width: 992px) {
        margin-top: 36.9px;
      }
    }
  }

  .p-clinicNews--himeji {
    @media only screen and (min-width: 992px) {
      padding-top: 78.96px;
    }
  }

  .p-clinicNews__btn {
    margin: 29px auto 0;

    @media only screen and (min-width: 992px) {
      margin-top: 32px;
    }
  }

  /* 当院について */
  .p-clinicAbout {
    --about-over: min(106px, max(30px, (100vw - 1086px) / 2));

    overflow-x: clip;
    padding: 72.68px 0 80px;
    background-color: var(--color-bg);

    @media only screen and (min-width: 992px) {
      padding: 73.96px 0 78.74px;
    }
  }

  .p-clinicAbout--himeji {
    @media only screen and (min-width: 992px) {
      padding-bottom: 77.74px;
    }
  }

  .p-clinicAbout__inner {
    display: flex;
    flex-direction: column;

    @media only screen and (min-width: 992px) {
      display: grid;
      grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
      grid-template-areas:
        "title photo"
        "body photo";
      grid-template-rows: auto 1fr;
      align-items: start;
      column-gap: 40px;
    }
  }

  .p-clinicAbout--himeji .p-clinicAbout__inner {
    @media only screen and (min-width: 992px) {
      grid-template-columns: 348px minmax(0, 677px);
      grid-template-areas:
        "title title"
        "photo body";
      column-gap: 60px;
    }
  }

  .p-clinicAbout__title {
    grid-area: title;
  }

  .p-clinicAbout__photo {
    grid-area: photo;
    margin-top: 19.82px;

    & img {
      width: 100%;
      aspect-ratio: 345 / 215.14;
      object-fit: cover;
    }

    @media only screen and (min-width: 992px) {
      width: calc(100% + var(--about-over));
      margin-top: 6.04px;

      & img {
        aspect-ratio: 712 / 444;
      }
    }
  }

  .p-clinicAbout--himeji .p-clinicAbout__photo {
    & img {
      aspect-ratio: 345 / 300;
      object-position: 50% 15%;
    }

    @media only screen and (min-width: 992px) {
      width: 100%;
      margin-top: 36.9px;

      & img {
        aspect-ratio: 348 / 464;
      }
    }
  }

  .p-clinicAbout__director {
    display: flex;
    flex-direction: column;
    margin-top: 3.7px;

    @media only screen and (min-width: 992px) {
      flex-direction: row;
      align-items: flex-end;
      justify-content: flex-end;
      gap: 9.6px;
      margin-top: 8.26px;
    }
  }

  .p-clinicAbout--himeji .p-clinicAbout__director {
    @media only screen and (min-width: 992px) {
      justify-content: flex-start;
    }
  }

  .p-clinicAbout__role {
    color: var(--clinic-color);
    font-size: 12px;
    line-height: 20px;
    letter-spacing: 0;

    @media only screen and (min-width: 992px) {
      font-size: 14px;
      line-height: 26px;
      letter-spacing: 0.05em;
    }
  }

  .p-clinicAbout__name {
    margin-top: 0.28px;
    font-weight: 500;

    @media only screen and (min-width: 992px) {
      margin-top: 0;
      font-size: 18px;
    }
  }

  .p-clinicAbout__body {
    grid-area: body;
  }

  .p-clinicAbout__catch {
    margin-top: 15.7px;
    color: var(--clinic-color);
    font-size: 26px;
    font-weight: 700;
    line-height: 40px;

    @media only screen and (min-width: 992px) {
      margin-top: 36.28px;
      font-size: 34px;
      line-height: 50px;
    }
  }

  .p-clinicAbout--himeji .p-clinicAbout__catch {
    font-size: 20px;
    line-height: 34px;

    @media only screen and (min-width: 992px) {
      line-height: 50px;
      margin-top: 34px;
      font-size: 30px;
    }
  }

  .p-clinicAbout__text {
    margin-top: 15.16px;
    font-size: 14px;
    line-height: 26px;

    @media only screen and (min-width: 992px) {
      margin-top: 16.74px;
      font-size: 16px;
      line-height: 30px;
    }
  }

  .p-clinicAbout--himeji .p-clinicAbout__text {
    @media only screen and (min-width: 992px) {
      margin-top: 14.02px;
    }
  }

  .p-clinicAbout__btns {
    display: grid;
    justify-content: center;
    gap: 20px;
    margin-top: 27.02px;

    @media only screen and (min-width: 992px) {
      justify-content: start;
      margin-top: 36.88px;
    }
  }

  /* 診療時間・アクセス */
  .p-clinicAccess {
    padding: 80px 0;
    background: var(--gradient-clinic);
  }

  .p-clinicAccess__card {
    width: min(345px, 100% - 30px);
    margin-inline: auto;
    padding: 32.68px 20px 45.16px;
    border-radius: 20px;
    background-color: var(--color-white);
    box-shadow: var(--shadow-card);

    @media only screen and (min-width: 576px) {
      width: min(600px, 100% - 30px);
    }

    @media only screen and (min-width: 992px) {
      display: grid;
      grid-template-columns: minmax(0, 513px) minmax(0, 532px);
      grid-template-areas:
        "title map"
        "guide map"
        "info map"
        "label map"
        "cols cols";
      align-items: start;
      justify-content: space-between;
      column-gap: 40px;
      width: min(1306px, 100% - 60px);
      margin-left: max(30px, (100% - 1306px) / 2 - 4px);
      padding: 53.96px 107px 56.88px 114px;
    }

    @media only screen and (min-width: 992px) and (max-width: 1279px) {
      padding-inline: 40px;
    }
  }

  .p-clinicAccess__card > .c-secTitle {
    grid-area: title;
  }

  .p-clinicAccess__guide {
    grid-area: guide;
    justify-self: start;
    width: fit-content;
    height: 34px;
    margin-top: 14.82px;
    padding: 2.12px 29px 0 30px;
    border-radius: 30px;
    background-color: var(--clinic-color);
    color: var(--color-white);
    font-size: 16px;
    font-weight: 700;

    @media only screen and (min-width: 992px) {
      height: 39px;
      margin-top: 36.9px;
      padding-top: 4.4px;
      font-size: 20px;
    }
  }

  .p-clinicAccess__info {
    grid-area: info;
    margin-top: 1px;
    font-size: 14px;
    line-height: 26px;

    & > div {
      padding: 5.98px 0 7.02px;
      border-bottom: 1px solid var(--color-line);
    }

    & dt {
      color: var(--clinic-color);
      font-weight: 500;
    }

    & dd {
      margin-top: -1px;
    }

    @media only screen and (min-width: 992px) {
      margin-top: 10.62px;
      font-size: 16px;
      line-height: 30px;

      & > div {
        display: flex;
        padding: 6.5px 0;
      }

      & dt {
        flex-shrink: 0;
        width: 86px;
      }

      & dd {
        margin-top: 0;
      }
    }
  }

  .p-clinicAccess__map {
    grid-area: map;
    margin-top: 29px;

    & iframe {
      display: block;
      width: 100%;
      height: auto;
      aspect-ratio: 305 / 199;
      border: 0;
    }

    @media only screen and (min-width: 992px) {
      margin-top: 6.04px;

      & iframe {
        aspect-ratio: 532 / 329;
      }
    }
  }

  .p-clinicAccess__label {
    grid-area: label;
    margin-top: 26.98px;
    color: var(--clinic-color);
    font-size: 14px;
    font-weight: 500;
    line-height: 26px;

    @media only screen and (min-width: 992px) {
      margin-top: 61.5px;
      font-size: 16px;
      line-height: 30px;
    }
  }

  .p-clinicAccess__cols {
    display: grid;
    grid-area: cols;
    gap: 17.02px;
    margin-top: 7.02px;

    @media only screen and (min-width: 992px) {
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      margin-top: 6.88px;
    }
  }

  .p-clinicAccess__colTitle {
    padding: 1.98px 0 2.02px;
    border-radius: 5px;
    background-color: var(--color-bg-light);
    font-size: 14px;
    font-weight: 500;
    text-align: center;

    @media only screen and (min-width: 992px) {
      padding: 2px 0;
      font-size: 16px;
    }
  }

  .p-clinicAccess__colTitle--2line {
    padding: 5px 0;
    line-height: 24px;

    @media only screen and (min-width: 992px) {
      padding: 9.12px 0 7.88px;
      line-height: 26px;
    }
  }

  .p-clinicAccess__list {
    margin-top: 6.98px;
    font-size: 14px;
    line-height: 26px;

    & li {
      position: relative;
      padding-left: 19px;

      &::before {
        position: absolute;
        top: 0;
        left: 0;
        color: var(--clinic-other);
        content: "●";
      }
    }

    @media only screen and (min-width: 992px) {
      margin-top: 7.12px;
      font-size: 16px;
      line-height: 30px;

      & li {
        padding-left: 21px;
      }
    }
  }

  .p-clinicAccess__text {
    margin-top: 6.98px;
    font-size: 14px;
    line-height: 26px;

    @media only screen and (min-width: 992px) {
      margin-top: 7.12px;
      font-size: 16px;
      line-height: 30px;
    }
  }

  .p-clinicAccess__note {
    margin-top: 4.86px;
    font-size: 12px;
    line-height: 22px;

    @media only screen and (min-width: 992px) {
      margin-top: 3.86px;
      font-size: 14px;
      line-height: 26px;
    }
  }
}
@layer project {
  /* お知らせ詳細・固定ページ・お知らせ一覧 */
  .p-post {
    padding: 15px 0 80px;

    @media only screen and (min-width: 992px) {
      padding: 15px 0 80px; /* XD は 0。フッターとの間隔を空ける（先方からの追加要望 2026-11-19） */
    }
  }

  .p-post .c-pageTitle {
    margin-top: 20px;

    @media only screen and (min-width: 992px) {
      margin-top: 16.12px;
    }
  }

  .p-post__body {
    margin-top: 20px;

    @media only screen and (min-width: 992px) {
      margin-top: 26.62px;
    }
  }

  .p-post__pager {
    margin-top: 50px;

    @media only screen and (min-width: 992px) {
      margin: 56.88px 0 0;
    }
  }

  /* 固定ページの見出し（パンくず・タイトル・説明文・写真） */
  .p-pageHead {
    padding: 15px 0 50px;

    @media only screen and (min-width: 992px) {
      padding-bottom: 80px;
    }
  }

  .p-pageHead .c-pageTitle {
    margin-top: 20px;

    @media only screen and (min-width: 992px) {
      margin-top: 16.12px;
    }
  }

  .p-pageHead__lead {
    margin-top: 20px;
    font-size: 14px;
    line-height: 26px;

    @media only screen and (min-width: 992px) {
      margin-top: 26.62px;
      font-size: 16px;
      line-height: 30px;
    }
  }

  .p-pageHead__photo {
    margin-top: 30px;

    & img {
      width: 100%;
      aspect-ratio: 345 / 160;
      object-fit: cover;
    }

    @media only screen and (min-width: 992px) {
      margin-top: 40px;

      & img {
        aspect-ratio: 1000 / 360;
      }
    }
  }

  /* 既存のページ見出し（.c-pagehead）の下に続く本文（お知らせ一覧・よくあるご質問の詳細）。間隔は既存の本文と同じ */
  .l-content > .c-pagehead + * {
    margin-top: 40px;

    @media only screen and (min-width: 769px) {
      margin-top: 80px;
    }
  }

  .c-pagehead + .p-post {
    padding-top: 0;
  }

  .c-pagehead + .p-post .c-pageTitle {
    margin-top: 0;
  }

  /* お知らせ一覧 */
  .p-newsArchive {
    padding-bottom: 80px;
  }

  .p-newsArchive__pagination {
    margin-top: 40px;
  }
}
@layer project {
  /* 既存の固定ページ（.l-main）の見出し・ボタン・パンくずを、新しいデザインの見た目にそろえる。配置（余白）は既存のまま */
  .l-main .c-titA {
    padding: 6px 15px;
    border-radius: 5px;
    background-color: var(--color-akashi);
    color: var(--color-white);
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0.1em;

    &::after {
      content: none;
    }

    @media only screen and (min-width: 769px) {
      padding: 7.68px 20px 7.32px;
      font-size: 24px;
      line-height: 30px;
    }
  }

  .l-main .c-titE {
    position: relative;
    padding: 0 0 0 18px;
    border-bottom: 0;
    font-size: 17px;
    line-height: 28px;
    letter-spacing: 0.1em;

    &::before {
      position: absolute;
      top: 1px;
      left: 0;
      width: 8px;
      height: 26px;
      background-color: var(--color-accent);
      content: "";
    }

    @media only screen and (min-width: 769px) {
      padding-left: 20px;
      font-size: 20px;
      line-height: 30px;

      &::before {
        top: 0.6px;
        width: 10px;
        height: 29px;
      }
    }
  }

  .l-main .c-titF {
    display: block;
    padding-bottom: 2.74px;
    background: radial-gradient(circle, var(--color-accent) 1.5px, transparent 1.5px) -4.5px 100% / 9px 3px repeat-x;
    font-size: 16px;
    line-height: 30px;
    letter-spacing: 0.1em;

    &::before {
      content: none;
    }

    @media only screen and (min-width: 769px) {
      font-size: 18px;
      line-height: 35px;
    }
  }

  .l-main .c-titC {
    color: var(--color-accent);
    font-size: 16px;
    line-height: 30px;
    letter-spacing: 0.05em;
  }

  .l-main .c-btnA {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 250px;
    min-height: 55px;
    padding: 0 40px;
    border: 0;
    border-radius: 30px;
    background-color: var(--color-main);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;

    & img,
    & svg {
      display: none;
    }

    &::after {
      position: absolute;
      top: 50%;
      right: 15px;
      width: 8px;
      height: 8px;
      margin-top: -4px;
      border-radius: 50%;
      background-color: var(--color-white);
      content: "";
    }

    @media only screen and (min-width: 769px) {
      min-width: 300px;
      min-height: 60px;
      font-size: 16px;
    }
  }

  /* ページ見出し（.c-pagehead）の中のパンくずは既存のまま */
  .l-main .c-pankuzu:not(.c-pagehead *) {
    & ul {
      text-align: left;
    }

    & li a,
    & li span {
      color: var(--color-sub);
      font-size: 12px;
      line-height: 20px;
    }

    & li + li::before {
      margin: 0 0.5em;
      color: var(--color-sub);
      content: ">";
    }

    @media only screen and (min-width: 769px) {
      & li a,
      & li span {
        font-size: 14px;
        line-height: 26px;
      }
    }
  }

  /* 既存の固定ページの本文とフッターの間隔。旧フッターの上余白（SP 40px／769px 以上 80px）と同じ値を本文側に付ける（先方からの追加要望 2026-11-19） */
  .l-main {
    padding-bottom: 40px;

    @media only screen and (min-width: 769px) {
      padding-bottom: 80px;
    }
  }
}

@layer utility {
  .c-pcOnly {
    @media only screen and (max-width: 991px) {
      display: none;
    }
  }

  .c-spOnly {
    @media only screen and (min-width: 992px) {
      display: none;
    }
  }

  .c-visuallyHidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
