/*
 * Isaribi Ocean Design
 * Shonan sea, fishing fire, and seasonal seafood visual system.
 */

:root {
  --isaribi-ink: #082a3a;
  --isaribi-deep: #06445a;
  --isaribi-sea: #087f91;
  --isaribi-foam: #edf8f6;
  --isaribi-sand: #f5eddd;
  --isaribi-paper: #fffdf8;
  --isaribi-coral: #d9583b;
  --isaribi-gold: #bd8b3a;
  --isaribi-text: #18343c;
  --isaribi-muted: #63787d;
  --isaribi-line: rgba(8, 68, 90, .16);
  --isaribi-shadow: 0 18px 50px rgba(6, 52, 69, .12);
  --isaribi-radius: 18px;
}

html {
  scroll-behavior: smooth;
  background: var(--isaribi-ink);
}

body {
  color: var(--isaribi-text);
  background:
    radial-gradient(circle at 8% 10%, rgba(8, 127, 145, .08), transparent 26rem),
    linear-gradient(180deg, var(--isaribi-paper) 0%, #f8f3e8 100%);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: .035em;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: #fff;
  background: var(--isaribi-coral);
}

a {
  color: var(--isaribi-deep);
  text-decoration-color: rgba(8, 127, 145, .35);
  text-underline-offset: .22em;
  transition: color .25s ease, opacity .25s ease;
}

a:hover,
a:focus-visible {
  color: var(--isaribi-coral);
}

h1, h2, h3, h4, h5, h6,
.site-title {
  color: var(--isaribi-ink);
  font-family: "Shippori Mincho", serif;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.45;
  text-wrap: balance;
}

#site-header.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(22px, 5vw, 76px);
  border: 0;
  background: rgba(255, 253, 248, .9);
  box-shadow: 0 1px 0 var(--isaribi-line), 0 12px 35px rgba(6, 52, 69, .07);
  backdrop-filter: blur(16px) saturate(140%);
}

#site-header::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 9px;
  content: "";
  opacity: .55;
  background: radial-gradient(18px 8px at 50% 0, transparent 68%, var(--isaribi-sea) 71%, transparent 76%) 0 0 / 36px 9px repeat-x;
  pointer-events: none;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-branding .custom-logo {
  width: auto;
  max-height: 58px;
}

.site-title {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.site-title a {
  color: var(--isaribi-ink);
  text-decoration: none;
}

.site-description {
  max-width: 22rem;
  margin: 2px 0 0;
  color: var(--isaribi-sea);
  font-family: "Shippori Mincho", serif;
  font-size: .72rem;
  letter-spacing: .16em;
}

.site-navigation ul.menu {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
}

.site-navigation ul.menu li a {
  position: relative;
  padding: 10px 0;
  color: var(--isaribi-ink);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-decoration: none;
}

.site-navigation ul.menu li a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--isaribi-sea), var(--isaribi-coral));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}

.site-navigation ul.menu li a:hover::after,
.site-navigation ul.menu .current-menu-item > a::after {
  transform: scaleX(1);
  transform-origin: left;
}

main,
.site-main {
  min-height: 60vh;
}

.page-header,
.entry-header {
  width: min(1120px, calc(100% - 40px));
  margin: 48px auto 20px;
}

.entry-title,
.page-title {
  position: relative;
  margin-bottom: 38px;
  padding: 0 0 22px;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
}

.entry-title::after,
.page-title::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 92px;
  height: 4px;
  content: "";
  border-radius: 9px;
  background: linear-gradient(90deg, var(--isaribi-coral), var(--isaribi-gold));
}

.post,
.page,
.elementor-location-single {
  overflow: clip;
}

.post .entry-content,
.page .entry-content {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  padding-bottom: 80px;
}

.entry-content > p,
.elementor-widget-text-editor {
  color: var(--isaribi-text);
}

.entry-content > p:first-child strong,
.elementor-widget-text-editor p:first-child strong {
  font-family: "Shippori Mincho", serif;
  font-size: 1.08em;
}

.entry-content img,
.elementor-widget-image img,
.elementor-widget-image-carousel img {
  border-radius: var(--isaribi-radius);
  box-shadow: var(--isaribi-shadow);
}

.elementor-section,
.e-con {
  --padding-top: clamp(48px, 7vw, 92px);
  --padding-bottom: clamp(48px, 7vw, 92px);
}

.elementor-widget-heading .elementor-heading-title {
  color: var(--isaribi-ink);
  font-family: "Shippori Mincho", serif;
  letter-spacing: .075em;
  line-height: 1.45;
}

.elementor-widget-button .elementor-button,
button,
input[type="submit"],
.wp-element-button {
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--isaribi-deep), var(--isaribi-sea));
  box-shadow: 0 10px 24px rgba(6, 68, 90, .22);
  font-weight: 700;
  letter-spacing: .08em;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.elementor-widget-button .elementor-button:hover,
button:hover,
input[type="submit"]:hover,
.wp-element-button:hover {
  color: #fff;
  box-shadow: 0 15px 30px rgba(6, 68, 90, .28);
  filter: saturate(1.1);
  transform: translateY(-2px);
}

.elementor-widget-text-editor,
.elementor-widget-image,
.elementor-widget-google_maps,
.elementor-widget-shortcode,
.entry-content > figure,
.entry-content > table {
  animation: isaribi-rise .65s ease both;
}

.elementor-widget-text-editor {
  border-radius: 14px;
}

.elementor-widget-text-editor h2,
.entry-content h2 {
  margin-top: 2.2em;
  margin-bottom: .9em;
  padding: .55em .8em .55em 1em;
  border-left: 5px solid var(--isaribi-coral);
  background: linear-gradient(90deg, rgba(8, 127, 145, .1), transparent 75%);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.elementor-widget-text-editor h3,
.entry-content h3 {
  margin-top: 1.9em;
  padding-bottom: .45em;
  border-bottom: 1px solid var(--isaribi-line);
  color: var(--isaribi-deep);
}

.entry-content ul,
.elementor-widget-text-editor ul {
  padding-left: 1.4em;
}

.entry-content li::marker,
.elementor-widget-text-editor li::marker {
  color: var(--isaribi-coral);
}

table {
  overflow: hidden;
  width: 100%;
  border-collapse: separate;
  border: 1px solid var(--isaribi-line);
  border-spacing: 0;
  border-radius: 14px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 12px 35px rgba(6,52,69,.07);
}

th {
  color: #fff;
  background: var(--isaribi-deep);
  font-family: "Shippori Mincho", serif;
}

th, td {
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid var(--isaribi-line);
}

tr:last-child td {
  border-bottom: 0;
}

blockquote {
  margin: 2rem 0;
  padding: 1.4rem 1.8rem;
  border: 0;
  border-left: 4px solid var(--isaribi-gold);
  color: var(--isaribi-deep);
  background: rgba(189,139,58,.08);
  font-family: "Shippori Mincho", serif;
}

#site-footer {
  position: relative;
  margin-top: 72px;
  padding: 68px clamp(22px, 5vw, 76px) 42px;
  border: 0;
  color: rgba(255,255,255,.76);
  background:
    radial-gradient(circle at 80% -30%, rgba(8,127,145,.65), transparent 45%),
    linear-gradient(145deg, #062c3c, #041e2a);
}

#site-footer::before {
  position: absolute;
  top: -15px;
  right: 0;
  left: 0;
  height: 16px;
  content: "";
  background: radial-gradient(32px 15px at 50% 100%, var(--isaribi-ink) 69%, transparent 72%) 0 0 / 64px 16px repeat-x;
}

#site-footer a,
#site-footer .site-title {
  color: #fff;
}

#site-footer .copyright {
  opacity: .7;
}

body.single-post .entry-content {
  padding: clamp(26px, 4vw, 52px);
  border: 1px solid rgba(8,68,90,.1);
  border-radius: 24px;
  background: rgba(255,253,248,.86);
  box-shadow: var(--isaribi-shadow);
}

body.single-post .entry-content img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 28px auto;
}

body.home .elementor-section:first-child,
body.home .e-con:first-child {
  position: relative;
}

body.home .elementor-section:first-child::after,
body.home .e-con:first-child::after {
  position: absolute;
  right: -8vw;
  bottom: -10vw;
  width: 32vw;
  height: 32vw;
  content: "";
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255,255,255,.06), 0 0 0 44px rgba(255,255,255,.035);
  pointer-events: none;
}

@keyframes isaribi-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 900px) {
  #site-header.site-header {
    position: relative;
    flex-direction: column;
    gap: 12px;
    padding-block: 16px 22px;
  }

  .site-branding {
    justify-content: center;
    text-align: center;
  }

  .site-navigation {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 4px;
  }

  .site-navigation ul.menu {
    width: max-content;
    min-width: 100%;
    justify-content: center;
    gap: 20px;
  }

  .site-navigation ul.menu li a {
    white-space: nowrap;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
    line-height: 1.85;
  }

  #site-header.site-header {
    align-items: stretch;
  }

  .site-description {
    display: none;
  }

  .site-navigation ul.menu {
    justify-content: flex-start;
    gap: 18px;
  }

  .site-navigation ul.menu li a {
    font-size: .78rem;
  }

  .page-header,
  .entry-header,
  .post .entry-content,
  .page .entry-content {
    width: min(100% - 28px, 1120px);
  }

  .entry-title,
  .page-title {
    margin-bottom: 26px;
    font-size: clamp(1.7rem, 9vw, 2.45rem);
  }

  body.single-post .entry-content {
    padding: 24px 18px 38px;
    border-radius: 16px;
  }

  .elementor-widget-text-editor h2,
  .entry-content h2 {
    padding-left: .75em;
  }

  th, td {
    padding: 11px 10px;
  }

  /* Mobile containment: neutralize legacy fixed widths and 100px paddings. */
  html,
  body {
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
  }

  #page,
  .site,
  main,
  .site-main,
  article,
  .entry-content,
  .elementor,
  .elementor-section,
  .elementor-container,
  .e-con,
  .e-con-inner,
  .elementor-column,
  .elementor-widget,
  .elementor-widget-container,
  .elementor-widget-text-editor {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .elementor-section,
  .elementor-container,
  .e-con,
  .e-con-inner,
  .elementor-column,
  .elementor-widget,
  .elementor-widget-container {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .elementor-section,
  .elementor-container,
  .e-con,
  .e-con-inner {
    width: 100% !important;
  }

  .elementor-widget-text-editor,
  .elementor-widget-text-editor > .elementor-widget-container,
  .entry-content > div,
  .entry-content p,
  .entry-content strong {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .elementor-widget-text-editor > .elementor-widget-container,
  .elementor-widget-html > .elementor-widget-container {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  body.single-post .entry-content {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
    margin-right: 10px !important;
    margin-left: 10px !important;
    padding: 20px 12px 34px !important;
  }

  body.single-post .entry-content .elementor {
    width: 100% !important;
  }

  body.single-post .entry-content .e-con,
  body.single-post .entry-content .elementor-section {
    padding-right: 8px !important;
    padding-left: 8px !important;
  }

  body.single-post .entry-content .elementor-widget-text-editor {
    width: 100% !important;
    padding: 0 !important;
  }

  body.single-post .entry-content .elementor-widget-text-editor p,
  body.single-post .entry-content .elementor-widget-text-editor div {
    max-width: 100% !important;
  }

  .entry-content img,
  .elementor img,
  .elementor-widget-image img {
    width: auto;
    max-width: 100% !important;
    height: auto !important;
  }

  .entry-content table {
    display: block;
    overflow-x: auto;
    width: 100% !important;
    max-width: 100% !important;
    -webkit-overflow-scrolling: touch;
  }

  iframe,
  video,
  embed,
  object {
    max-width: 100% !important;
  }
}

@media (max-width: 390px) {
  body {
    font-size: 14px;
  }

  body.single-post .entry-content {
    width: calc(100% - 12px) !important;
    max-width: calc(100% - 12px) !important;
    margin-right: 6px !important;
    margin-left: 6px !important;
    padding-right: 8px !important;
    padding-left: 8px !important;
  }

  body.single-post .entry-content .e-con,
  body.single-post .entry-content .elementor-section {
    padding-right: 4px !important;
    padding-left: 4px !important;
  }
}

/* Drinks page: legacy HTML widgets contain hard-coded pixel widths. */
@media (max-width: 600px) {
  body.postid-57 .elementor-widget-html {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  body.postid-57 .elementor-widget-html > .elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.postid-57 .image-background,
  body.postid-57 .square,
  body.postid-57 .yellow-text-rectangle,
  body.postid-57 .color {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
  }

  body.postid-57 .image-background {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    height: auto !important;
    min-height: 420px;
    margin-right: auto !important;
    margin-left: auto !important;
    padding: 42px 12px 28px !important;
    background-position: center;
  }

  body.postid-57 .image-background br:first-child,
  body.postid-57 .image-background br:nth-child(2),
  body.postid-57 .image-background br:nth-child(3) {
    display: none;
  }

  body.postid-57 .image-background h5 {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    font-size: clamp(12px, 3.5vw, 15px) !important;
    line-height: 2 !important;
    letter-spacing: 0 !important;
    overflow-wrap: anywhere;
  }

  body.postid-57 .elementor-widget-html .elementor-widget-container {
    overflow: hidden;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.postid-57 .elementor-element-1a22ec3 > .e-con-inner > strong {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.postid-57 .elementor-element-24e7053 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    align-self: stretch !important;
  }

  body.postid-57 .elementor-element-0c3b3b1 {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  body.postid-57 .elementor-element-0c3b3b1 > .elementor-widget-container {
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.postid-57 .elementor-element-0c3b3b1 strong {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    font-size: clamp(12px, 3.7vw, 14px);
    letter-spacing: 0;
  }
}

/* Drinks page mobile composition: consistent cards, rhythm and readability. */
@media (max-width: 600px) {
  body.postid-57 .elementor-57 {
    padding: 12px 14px 36px;
  }

  body.postid-57 .elementor-57 > .e-con {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 12px 0 !important;
    gap: 12px !important;
    flex-direction: column !important;
  }

  body.postid-57 .elementor-57 > .e-con > .e-con-inner {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 12px !important;
    flex-direction: column !important;
  }

  body.postid-57 .elementor-57 .e-child {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
  }

  body.postid-57 .elementor-57 .elementor-widget-html {
    width: 100% !important;
    max-width: 323px !important;
    margin: 0 auto !important;
  }

  body.postid-57 .elementor-57 .elementor-widget-html > .elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    padding: 14px 16px !important;
    border: 1px solid rgba(8, 127, 145, .2);
    border-radius: 12px;
    color: var(--isaribi-ink);
    background: linear-gradient(135deg, #e6f7f8, #d3eef2) !important;
    box-shadow: 0 7px 20px rgba(6, 68, 90, .08);
    font-size: 14px;
    line-height: 1.9;
  }

  body.postid-57 .elementor-57 .elementor-widget-html:has(.square) > .elementor-widget-container,
  body.postid-57 .elementor-57 .elementor-widget-html:has(.yellow-text-rectangle) > .elementor-widget-container,
  body.postid-57 .elementor-57 .elementor-widget-html:has(.image-background) > .elementor-widget-container {
    padding: 0 !important;
    border: 0;
    background: transparent !important;
    box-shadow: none;
  }

  body.postid-57 .square,
  body.postid-57 .yellow-text-rectangle {
    display: flex !important;
    width: 100% !important;
    max-width: 323px !important;
    height: 58px !important;
    min-height: 58px !important;
    margin: 0 auto !important;
    padding: 0 18px !important;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--isaribi-ink), var(--isaribi-deep)) !important;
    box-shadow: 0 10px 24px rgba(6, 52, 69, .16);
    font-family: "Shippori Mincho", serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .07em;
    line-height: 1.4;
    text-align: center;
  }

  body.postid-57 .color,
  body.postid-57 .bold-text {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.postid-57 .bold-text u {
    display: inline-block;
    margin: 2px 4px 2px 0 !important;
    padding: 1px 5px !important;
    border-radius: 4px;
    color: #fff4ca !important;
    background: var(--isaribi-coral) !important;
    font-size: 13px !important;
    line-height: 1.5;
    text-decoration: none !important;
  }

  body.postid-57 .image-background {
    position: relative;
    width: 100% !important;
    max-width: 323px !important;
    min-height: 330px !important;
    margin: 0 auto !important;
    padding: 34px 20px !important;
    border-radius: 14px;
    opacity: 1 !important;
    color: var(--isaribi-ink) !important;
    background-color: rgba(255, 253, 248, .58) !important;
    background-blend-mode: screen;
    background-position: center;
    box-shadow: 0 14px 32px rgba(6, 52, 69, .16);
  }

  body.postid-57 .image-background h5 {
    margin: 0 !important;
    padding: 12px !important;
    border-radius: 10px;
    color: var(--isaribi-ink) !important;
    background: rgba(255, 253, 248, .72);
    box-shadow: 0 5px 16px rgba(6, 52, 69, .1);
    font-family: "Noto Sans JP", sans-serif;
    font-size: clamp(12px, 3.45vw, 14px) !important;
    font-weight: 700;
    line-height: 1.9 !important;
    text-shadow: 0 1px 0 rgba(255,255,255,.8);
  }

  body.postid-57 .elementor-widget-image {
    width: 100% !important;
    max-width: 323px !important;
    margin: 0 auto !important;
  }

  body.postid-57 .elementor-widget-image img {
    display: block;
    width: 100% !important;
    max-width: 323px !important;
    max-height: 323px;
    margin: 0 auto !important;
    object-fit: cover;
    border-radius: 14px;
  }
}
