@charset "UTF-8";

/* ==========================================================================
   サニーストンホテル（江坂）共通スタイル
   レイアウトの切り替えは 1200px / 1040px / 800px の3段階
   ========================================================================== */

:root {
  --color-navy: #165686;
  --color-blue: #247ab6;
  --color-gold: #d0a746;
  --color-taupe: #a6937c;
  --color-ink: #000;
  --color-link: #383940;
  --color-gray: #505050;
  --color-dark: #292921;
  --color-cream: #fcfaf6;
  --color-ivory: #fcfbf8;
  --color-mist: #ededed;
  --color-line: #c1beb8;

  /* ホテルごとに差し替える色。第2は theme で上書きする */
  --color-brand: var(--color-navy);
  --color-reserve: var(--color-taupe);
  --color-menu: var(--color-blue);

  --font-serif: "Noto Serif JP", serif;
  --font-sans: "Noto Sans JP", sans-serif;
  --font-latin: var(--font-sans); /* 英字・数字もNotoにそろえる */
  --font-tel: "Roboto", var(--font-sans); /* 右上の電話番号だけは元の Roboto */

  --header-height-sp: 52px;
  --container: 1120px;
  --container-narrow: 1000px;
  --container-wide: 1500px;
}

/* --- reset ---------------------------------------------------------------- */

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}

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

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

img,
picture,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

table {
  border-collapse: collapse;
}

button {
  font: inherit;
  color: inherit;
}

/* --- base ----------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 160px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  line-height: 1.78;
  letter-spacing: 0.1em;
  color: var(--color-ink);
  background: #fff;
  overflow-wrap: break-word;
  word-break: auto-phrase; /* 日本語を文節で折り返す（対応ブラウザのみ） */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: opacity 0.5s;
}

a:hover {
  opacity: 0.7;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

/* PC/スマホの出し分け */
@media (max-width: 800px) {
  .pc-only {
    display: none !important;
  }
}

@media (min-width: 801px) {
  .sp-only {
    display: none !important;
  }
}

/* --- section ---------------------------------------------------------------- */

.section {
  padding: 80px 0;
}

.section--cream {
  background-color: var(--color-cream);
}

.section--mist {
  background-color: var(--color-mist);
}

.section-title {
  margin-bottom: 50px;
  color: var(--color-brand);
  font-size: 2.375rem;
  line-height: 1.3;
  text-align: center;
}

.section-title span {
  display: block;
  margin-top: 12px;
  color: var(--color-ink);
  font-size: 1.125rem;
}

.lead {
  margin-bottom: 20px;
  color: var(--color-gray);
  font-size: 1.125rem;
  line-height: 1.8;
  text-align: center;
}

@media (max-width: 1200px) {
  .section {
    padding: 60px 30px;
  }
}

@media (max-width: 800px) {
  html {
    scroll-padding-top: var(--header-height-sp);
  }

  .section {
    padding: 30px 10px;
  }

  .section-title {
    margin-bottom: 20px;
    font-size: 1.75rem;
    letter-spacing: 0.05em;
  }

  .lead {
    font-size: 1rem;
  }
}

/* --- button ----------------------------------------------------------------
   左右から開くアニメーション付きのボタン。--button-color で色を変える
   -------------------------------------------------------------------------- */

.button-row {
  margin-top: 20px;
  text-align: center;
}

.button {
  --button-color: var(--color-dark);
  display: inline-block;
  width: 200px;
  padding: 10px 24px;
  border: 1px solid var(--button-color);
  background:
    linear-gradient(var(--button-color), var(--button-color)) left / 50% 100% no-repeat,
    linear-gradient(var(--button-color), var(--button-color)) right / 50% 100% no-repeat,
    #fff;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  transition: background-size 0.2s, color 0.2s, opacity 0.5s;
}

.button:hover {
  background-size: 0 100%, 0 100%, auto;
  color: var(--button-color);
}

.button--brand {
  --button-color: var(--color-brand);
}

.button--light {
  --button-color: #bfbfbf;
}

@media (max-width: 800px) {
  .button-row {
    margin-top: 10px;
  }
}

/* --- header (PC) ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 20px;
  background-color: var(--color-brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.site-header__bar ul {
  display: flex;
  gap: 10px;
}

.site-header__bar a {
  color: #fff;
}

.site-header__bar a::before {
  content: "> ";
}

.site-header__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background-color: #fff;
  filter: drop-shadow(10px 10px 10px rgb(0 0 0 / 0.05));
  line-height: 1;
}

.site-header__start {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-logo {
  display: block;
  flex: none;
  width: 330px;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.header-actions a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 25px;
  color: #fff;
  font-size: 1rem;
}

.header-actions img {
  width: 18px;
}

.header-actions__reserve {
  background-color: var(--color-reserve);
}

.header-actions__contact {
  background-color: var(--color-brand);
}

.header-contact {
  text-align: right;
}

.header-contact__label {
  font-size: 1rem;
}

.header-contact__tel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 5px 0;
  color: var(--color-brand);
  font-family: var(--font-tel);
  font-size: 2.375rem;
  font-weight: 700;
}

.header-contact__tel img {
  width: 24px;
}

.language-list {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  font-size: 0.875rem;
}

.language-list li {
  flex: none;
}

.language-list a {
  display: flex;
  white-space: nowrap;
  align-items: center;
  gap: 5px;
}

.language-list img {
  width: 15px;
}

@media (max-width: 1040px) {
  .site-header__bar {
    font-size: 0.625rem;
  }

  .site-header__start {
    flex-wrap: wrap;
    gap: 10px 20px;
  }

  .site-logo {
    width: 230px;
  }

  .header-actions a {
    padding: 8px 20px;
    font-size: 0.875rem;
  }

  .header-actions img {
    width: 16px;
  }

  .header-contact__label {
    font-size: 0.875rem;
  }

  .header-contact__tel {
    font-size: 1.875rem;
  }

  .header-contact__tel img {
    width: 20px;
  }
}

/* --- global navigation (PC) ------------------------------------------------- */

.global-nav {
  background-color: var(--color-ivory);
}

.global-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.global-nav li {
  white-space: nowrap;
}

/* 区切り線の間隔は画面幅に合わせて縮める */
.global-nav li:not(:last-child)::after {
  content: "|";
  margin: 0 clamp(8px, 2.8vw, 40px);
}

.global-nav a {
  display: inline-block;
  padding: 15px 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.global-nav a:hover,
.global-nav a[aria-current="page"] {
  color: var(--color-brand);
  opacity: 1;
}

@media (max-width: 1040px) {
  .global-nav a {
    padding: 10px 0 15px;
    font-size: 0.875rem;
  }
}

/* --- header (スマホ) + ドロワー -------------------------------------------- */

.sp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height-sp);
  padding-left: 15px;
  background-color: #fff;
}

.sp-header .site-logo {
  width: auto;
}

.sp-header .site-logo img {
  width: auto;
  height: 35px;
}

.menu-button {
  position: relative;
  width: var(--header-height-sp);
  height: var(--header-height-sp);
  padding: 0;
  border: 0;
  background-color: var(--color-menu);
  cursor: pointer;
}

.menu-button span,
.menu-button span::before,
.menu-button span::after {
  position: absolute;
  left: 11px;
  width: 30px;
  height: 2px;
  background-color: #fff;
  transition: transform 0.3s, background-color 0.3s;
}

.menu-button span {
  top: 25px;
}

.menu-button span::before,
.menu-button span::after {
  content: "";
  left: 0;
}

.menu-button span::before {
  top: -10px;
}

.menu-button span::after {
  top: 10px;
}

body:has(.drawer:popover-open) .menu-button span {
  background-color: transparent;
}

body:has(.drawer:popover-open) .menu-button span::before {
  transform: translateY(10px) rotate(-45deg);
}

body:has(.drawer:popover-open) .menu-button span::after {
  transform: translateY(-10px) rotate(45deg);
}

.drawer {
  inset: var(--header-height-sp) 0 0 auto;
  width: 100%;
  height: calc(100dvh - var(--header-height-sp));
  margin: 0;
  padding: 0;
  border: 0;
  overflow-y: auto;
  background-color: #fff;
  color: var(--color-link);
  transform: translateX(100%);
  transition: transform 0.4s, overlay 0.4s allow-discrete, display 0.4s allow-discrete;
}

.drawer:popover-open {
  transform: none;
}

@starting-style {
  .drawer:popover-open {
    transform: translateX(100%);
  }
}

.drawer::backdrop {
  background-color: rgb(0 0 0 / 0.2);
}

.drawer-actions {
  display: flex;
}

.drawer-actions a {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  color: #fff;
}

.drawer-actions img {
  width: 17px;
}

.drawer-contact {
  padding: 20px 15px;
  background-color: var(--color-ivory);
}

.drawer-contact__tel {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--color-navy);
  font-family: var(--font-tel);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.drawer-contact__tel img {
  width: 26px;
}

.drawer-contact .language-list {
  justify-content: flex-start;
  gap: 12px;
  margin-top: 20px;
}

.drawer-contact .language-list img {
  width: 17px;
}

.drawer-menu a {
  position: relative;
  display: block;
  padding: 0.7em 20px 0.7em 30px;
  border-top: 1px solid #eee;
  font-weight: 500;
}

.drawer-menu a::before {
  content: "";
  position: absolute;
  top: 1.4em;
  left: 15px;
  width: 5px;
  height: 5px;
  border-top: 2px solid #ccc;
  border-right: 2px solid #ccc;
  transform: rotate(45deg);
}

.drawer-menu--sub a {
  border-top-color: #ddd;
  background-color: #eee;
}

@media (max-width: 400px) {
  .sp-header {
    padding-left: 10px;
  }

  .sp-header .site-logo img {
    height: 32px;
  }
}

/* --- お問い合わせ ------------------------------------------------------------ */

.contact__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 10px;
}

.contact__buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 0;
  border-radius: 10px;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
}

.contact__buttons img {
  width: 25px;
}

.contact__mail {
  background-color: var(--color-brand);
}

.contact__tel {
  background-color: var(--color-gray);
}

.contact__reserve {
  grid-column: 1 / -1;
  background-color: var(--color-gold);
}

@media (max-width: 800px) {
  .contact__buttons {
    grid-template-columns: 1fr;
  }

  .contact__buttons a {
    padding-inline: 10px;
    font-size: 1rem;
  }
}

@media (max-width: 400px) {
  .contact__buttons a {
    font-size: 0.875rem;
    letter-spacing: 0.05em;
  }
}

/* --- footer ------------------------------------------------------------------- */

.site-footer {
  padding: 50px 30px;
  background-color: var(--color-brand);
  color: #fff;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.site-footer__tagline {
  font-size: 0.75rem;
}

.site-footer__logo {
  display: block;
  width: 340px;
  margin: 7px 0 20px;
}

.site-footer address {
  font-size: 0.875rem;
  font-style: normal;
  line-height: 1.8;
}

.footer-links ul {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.footer-links li:not(:last-child)::after {
  content: "　｜　";
}

.footer-links a {
  color: #fff;
}

.copyright {
  padding: 15px 10px;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  text-align: center;
}

@media (max-width: 1040px) {
  .site-footer {
    padding: 30px 15px;
  }

  .site-footer__inner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .footer-links ul {
    justify-content: center;
    margin: 20px 0 10px;
  }
}

@media (max-width: 800px) {
  .site-footer__logo {
    width: auto;
  }

  .site-footer address {
    font-size: 0.8125rem;
    letter-spacing: 0;
  }

  .footer-links ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
    margin: 0;
  }

  .footer-links li::after {
    display: none;
  }

  .footer-links a {
    font-size: 0.75rem;
    letter-spacing: 0;
  }
}

/* --- ページ先頭へ ------------------------------------------------------------ */

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 60px;
  height: 60px;
  background: #000 url("/esaka_1/assets/img/common/scrollup.webp") center no-repeat;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
}

.to-top:hover {
  opacity: 1;
  transform: scale(1.2);
}

/* 少しスクロールしてから表示（対応ブラウザのみ） */
@supports (animation-timeline: scroll()) {
  .to-top {
    animation: to-top-reveal linear both;
    animation-timeline: scroll();
    animation-range: 0 100px;
  }

  @keyframes to-top-reveal {
    from {
      visibility: hidden;
      translate: 0 100px;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
