@font-face {
  font-family: 'Misaki Rounded';
  src: url('../fonts/RoundedMplus1c-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/*
 * Desktop and tablet layout for Misaki Drive-in.
 * The original mobile composition remains the source of truth below 768px.
 */

.desktop-hero-content {
  display: none;
}

@media (max-width: 767px) {
  .hero {
    min-height: 0;
    padding: 0;
    border-radius: 22px 22px 0 0;
    background: #56bfe9;
  }

  .hero-art {
    width: 100%;
    aspect-ratio: 4 / 5;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 58%), url('../images/hero/hero-mobile-open-v1.png');
    background-size: cover;
    background-position: center;
  }

  .site:is([data-state='closed'], [data-state='inactive']) .hero-art {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 58%), url('../images/hero/hero-mobile-closed-v2.png');
    background-size: cover;
    background-position: center;
  }

  .logo-cap,
  .brand-link {
    display: none;
  }

  .desktop-hero-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
    padding: 16px;
    pointer-events: none;
  }

  .desktop-hero-logo {
    position: absolute;
    top: 3.5%;
    left: 50%;
    width: 42%;
    max-height: 31%;
    object-fit: contain;
    transform: translateX(-50%);
  }

  .desktop-hero-kicker {
    position: absolute;
    top: 29%;
    left: 5%;
    margin: 0;
    color: #074d72;
    font-size: clamp(12px, 3.4vw, 15px);
    font-family: 'Misaki Rounded', 'Hiragino Maru Gothic ProN', 'Yu Gothic', sans-serif;
    font-weight: 800;
    letter-spacing: .02em;
    text-shadow: 0 1px 0 #fff, 0 0 8px #ffffffd9;
  }

  .desktop-hero-content h1 {
    position: absolute;
    top: 33%;
    left: 5%;
    margin: 0;
    color: var(--navy);
    font-family: 'Misaki Rounded', 'Hiragino Maru Gothic ProN', 'Yu Gothic', sans-serif;
    font-size: clamp(25px, 7.6vw, 34px);
    line-height: 1.22;
    letter-spacing: -.06em;
    text-shadow: 0 2px 0 #fff, 0 0 12px #ffffffd9;
  }

  .desktop-hero-content h1 strong {
    display: inline-block;
    margin-top: 2px;
    font-size: 1.28em;
    text-decoration: underline;
    text-decoration-color: #22b8df;
    text-decoration-thickness: 4px;
    text-underline-offset: 5px;
  }

  .desktop-hero-status {
    display: none;
  }

  .site:is([data-state='closed'], [data-state='inactive']) .desktop-status-closed {
    position: absolute;
    top: 51%;
    left: 5%;
    display: block;
    width: 54%;
    padding: 8px 11px;
    border-radius: 15px;
    background: rgba(255, 255, 255, .94);
    color: var(--navy);
    font-size: clamp(10px, 2.7vw, 13px);
    line-height: 1.45;
    font-weight: 900;
    box-shadow: 0 5px 18px rgba(0, 38, 67, .14);
  }
}

@media (min-width: 768px) {
  body {
    background: #f2f6f7;
  }

  .site {
    max-width: none;
    box-shadow: none;
    container-type: normal;
    overflow: hidden;
  }

  .hero {
    min-height: clamp(520px, 54vw, 690px);
    padding: 0;
    border-radius: 0;
    background: #56bfe9;
  }

  .hero-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    background-image: linear-gradient(90deg, rgba(235, 249, 255, .95) 0%, rgba(235, 249, 255, .77) 28%, rgba(235, 249, 255, .1) 53%, rgba(235, 249, 255, 0) 68%), url('../images/hero/hero-desktop-v1.png');
    background-size: cover;
    background-position: center;
    opacity: 1 !important;
  }

  .site:is([data-state='closed'], [data-state='inactive']) .hero-art {
    background-image: linear-gradient(90deg, rgba(235, 249, 255, .95) 0%, rgba(235, 249, 255, .77) 28%, rgba(235, 249, 255, .1) 53%, rgba(235, 249, 255, 0) 68%), url('../images/hero/hero-desktop-closed-v1.png');
    background-size: cover;
    background-position: center;
  }

  .logo-cap,
  .brand-link {
    display: none;
  }

  .desktop-hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(1180px, calc(100% - 72px));
    min-height: inherit;
    margin: 0 auto;
    padding: 64px 0 84px;
  }

  .desktop-hero-logo {
    width: clamp(170px, 18vw, 260px);
    height: auto;
    max-height: 190px;
    object-fit: contain;
    object-position: left center;
    margin: 0 0 8px;
  }

  .desktop-hero-kicker {
    margin: 0 0 14px;
    color: #074d72;
    font-size: clamp(14px, 1.25vw, 18px);
    font-family: 'Misaki Rounded', 'Hiragino Maru Gothic ProN', 'Yu Gothic', sans-serif;
    font-weight: 800;
    letter-spacing: .08em;
  }

  .desktop-hero-content h1 {
    margin: 0;
    color: var(--navy);
    font-family: 'Misaki Rounded', 'Hiragino Maru Gothic ProN', 'Yu Gothic', sans-serif;
    font-size: clamp(34px, 4vw, 62px);
    line-height: 1.18;
    letter-spacing: -.05em;
    text-shadow: 0 2px 0 rgba(255, 255, 255, .8);
  }

  .desktop-hero-content h1 strong {
    display: inline-block;
    margin-top: 4px;
    font-size: 1.24em;
    text-decoration: underline;
    text-decoration-color: #22b8df;
    text-decoration-thickness: 6px;
    text-underline-offset: 8px;
  }

  .desktop-hero-status {
    width: fit-content;
    max-width: min(560px, 46vw);
    margin-top: 30px;
    padding: 13px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--navy);
    font-size: clamp(13px, 1.25vw, 17px);
    font-weight: 900;
    box-shadow: 0 10px 30px rgba(0, 41, 73, .16);
  }

  .desktop-status-open,
  .desktop-status-closed {
    display: none;
  }

  .site[data-state='open'] .desktop-status-loading,
  .site[data-state='closed'] .desktop-status-loading,
  .site[data-state='inactive'] .desktop-status-loading {
    display: none;
  }

  .site[data-state='open'] .desktop-status-open {
    display: block;
    background: var(--red);
    color: #fff;
  }

  .site:is([data-state='closed'], [data-state='inactive']) .desktop-status-closed {
    display: block;
  }

  .hamburger {
    z-index: 8;
    top: 28px;
    right: max(32px, calc((100vw - 1180px) / 2));
    width: 58px;
    height: 58px;
    padding: 16px;
  }

  .hero nav {
    top: 94px;
    right: max(32px, calc((100vw - 1180px) / 2));
  }

  main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 590px));
    justify-content: center;
    background: var(--paper);
  }

  main > .location,
  main > .questions,
  main > .menu-section,
  main > .quick-links,
  main > .ai-band,
  main > .news-section,
  main > .story-section,
  main > .footer-visual,
  main > .site-footer {
    grid-column: 1 / -1;
  }

  main > .location,
  main > .questions,
  main > .menu-section,
  main > .quick-links,
  main > .news-section,
  main > .home-block,
  main > .story-section,
  main > .ai-band {
    width: min(1180px, calc(100% - 64px));
    margin-left: auto;
    margin-right: auto;
  }

  .location {
    z-index: 5;
    margin-top: -54px;
    padding: 28px 34px;
    border-radius: 28px;
    min-height: 210px;
    box-shadow: 0 16px 45px rgba(0, 40, 75, .16);
  }

  .location-body {
    min-height: 100px;
  }

  .location-details {
    padding-right: 250px;
  }

  .location h2,
  .site:is([data-state='closed'], [data-state='inactive']) .location-details h2 {
    font-size: clamp(24px, 2.4vw, 34px);
  }

  .location h2 .icon,
  .site:is([data-state='closed'], [data-state='inactive']) .location-details h2 .icon {
    width: 34px;
    height: 40px;
  }

  #location-address,
  .site:is([data-state='closed'], [data-state='inactive']) #location-address {
    margin-left: 44px;
    font-size: 15px;
  }

  .hours,
  .site:is([data-state='closed'], [data-state='inactive']) .hours {
    font-size: clamp(26px, 2.8vw, 38px);
  }

  .hours .icon,
  .site:is([data-state='closed'], [data-state='inactive']) .hours .icon {
    width: 34px;
    height: 34px;
  }

  .location-photo,
  .site:is([data-state='closed'], [data-state='inactive']) .location-photo {
    width: 220px;
    height: 140px;
    top: 0;
  }

  .badge {
    min-height: 36px;
    font-size: 17px;
  }

  .status-notice {
    width: min(520px, 48%);
  }

  .status-notice strong {
    font-size: 21px;
  }

  .status-notice span {
    font-size: 15px;
  }

  .actions {
    max-width: 760px;
    margin-top: 18px;
  }

  .button,
  .site:is([data-state='closed'], [data-state='inactive']) #schedule-button,
  .site:is([data-state='closed'], [data-state='inactive']) #line-button {
    min-height: 46px;
    font-size: 14px;
  }

  .questions {
    gap: 14px;
    margin-top: 18px;
  }

  .questions button,
  .questions a {
    min-height: 88px;
    font-size: 16px;
  }

  .questions .icon {
    width: 38px;
    height: 38px;
  }

  .menu-section,
  .home-block,
  .news-section {
    padding: 64px 0;
  }

  main > .home-block {
    width: auto;
    margin: 0;
    padding: 56px 28px;
  }

  .home-booking-contact > .home-block {
    min-width: 0;
    width: auto;
    margin: 0;
    padding: 42px 28px;
  }

  .home-booking-contact .contact-form-section {
    padding-left: 34px;
  }

  .calendar-section,
  .gallery-section,
  .line-stamp-section {
    grid-column: 1;
  }

  .places-section,
  .voice-section,
  .goods-section {
    grid-column: 2;
  }

  .calendar-section,
  .gallery-section,
  .line-stamp-section {
    border-right: 1px solid #eee8dd;
  }

  .voice-section {
    border-top: 0;
  }

  .section-heading h2,
  .block-heading h2 {
    font-size: clamp(28px, 2.5vw, 38px);
  }

  .section-heading .icon,
  .section-heading .cutlery,
  .block-heading h2 .icon {
    width: 42px;
    height: 42px;
  }

  .block-heading p {
    margin-left: 52px;
    font-size: 15px;
  }

  .text-link {
    font-size: 14px;
  }

  .news-row {
    grid-template-columns: 100px 110px 1fr;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
  }

  .news-tag {
    font-size: 13px;
  }

  .menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .menu-card h3,
  .menu-card .price {
    font-size: 16px;
  }

  .quick-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 12px 0 56px;
  }

  .quick-links button,
  .quick-links a {
    min-height: 150px;
    border-radius: 22px;
    font-size: 15px;
  }

  .quick-links .icon,
  .line-icon,
  .ai-avatar {
    width: 54px;
    height: 54px;
    font-size: 12px;
  }

  .home-calendar-places,
  .home-story-gallery,
  .home-voice-line,
  .home-goods-media {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
  }

  .places-grid,
  .gallery-grid {
    gap: 14px;
  }

  .places-grid h3,
  .goods-grid h3,
  .goods-grid p,
  .voice-list p,
  .media-cards span {
    font-size: 14px;
  }

  .line-heading-icon {
    width: 54px;
    height: 54px;
    font-size: 14px;
  }

  .voice-list small {
    font-size: 12px;
  }

  .calendar-nav strong {
    font-size: 24px;
  }

  .calendar-week,
  .calendar-days,
  .calendar-legend {
    font-size: 14px;
  }

  .calendar-days span {
    width: 42px;
    height: 42px;
  }

  .wide-button {
    min-height: 48px;
    font-size: 15px;
  }

  .story-section {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    padding: 72px 0;
  }

  .story-visual {
    border-radius: 28px;
  }

  .story-copy {
    padding: 30px 0 30px 52px;
  }

  .story-copy h2 {
    font-size: clamp(36px, 4vw, 58px);
  }

  .story-copy p {
    font-size: 16px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .goods-grid {
    gap: 24px 14px;
  }

  .booking-grid button {
    min-height: 112px;
    font-size: 15px;
  }

  .footer-visual {
    max-height: 560px;
  }

  .footer-message {
    font-size: clamp(26px, 3.2vw, 50px);
  }

  .site-footer {
    padding-bottom: 42px;
  }

  .site-footer nav a,
  .site-footer nav button,
  .site-footer small {
    font-size: 13px;
  }

  .ai-band {
    min-height: 0;
    aspect-ratio: 2070 / 760;
    background-position: center;
  }

  .ai-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 40%;
    min-height: 100%;
    padding: 4.5% 3.2% 4.2% 0;
  }

  .ai-content h2 {
    margin-bottom: 20px;
    font-size: clamp(34px, 3.15vw, 50px);
    line-height: 1.12;
    letter-spacing: -.035em;
  }

  .ai-prompts {
    gap: 10px;
    margin-bottom: 24px;
  }

  .ai-prompts button,
  .ai-prompts a {
    min-height: 56px;
    padding: 10px 12px;
    font-size: clamp(15px, 1.45vw, 21px);
    border-width: 2px;
  }

  .ai-content > .button {
    width: 72%;
    min-height: 72px;
    margin: 0 auto;
    font-size: clamp(20px, 2vw, 29px);
  }

  .bottom-nav {
    display: none;
  }
}

@media (min-width: 1200px) {
  .hero-art {
    background-position: center center;
  }

  .menu-photo {
    min-height: 190px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  main {
    grid-template-columns: minmax(0, 1fr);
  }

  main > .home-block {
    grid-column: 1;
    width: min(704px, calc(100% - 64px));
    margin-right: auto;
    margin-left: auto;
    border-right: 0;
  }

  .actions {
    width: calc(100% - 205px);
  }

  .location-photo,
  .site:is([data-state='closed'], [data-state='inactive']) .location-photo {
    width: 180px;
    height: 125px;
  }
}

/* PC版：本文は1180px、フッターだけ画面幅100% */
@media (min-width: 1024px) {
  main {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 590px)
      minmax(0, 590px)
      minmax(0, 1fr);
  }

  main > .location,
  main > .questions,
  main > .menu-section,
  main > .quick-links,
  main > .ai-band,
  main > .news-section,
  main > .story-section {
    grid-column: 2 / 4;
    width: 100%;
  }

  main > .calendar-section,
  main > .gallery-section,
  main > .line-stamp-section,
  main > .media-section {
    grid-column: 2;
  }

  main > .places-section,
  main > .voice-section,
  main > .goods-section,
  main > .booking-section {
    grid-column: 3;
  }

  main > .footer-visual,
  main > .site-footer {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
  }
}
