/* island-cave-board.html only (after service-board-preview/island-featured.css, which stays shared and unchanged).
   Feedback of 2026-12-02: the header's fade, the sheet's glide and the 制作 picker (island-featured.js in this folder),
   the blog byline, the blue special sidebar in the two-colour mode, and the colour reveal (ph-public-color.js here). */

/* --- Header (wide screens): the large transparent header (the PH logo) stays where it is and cross-fades into SWELL's
   white compact copy on the first scroll, and back at the top. Nothing slides or moves. The switch is
   :root[data-ph-head=compact], set by island-featured.js in the same frame as the scroll (SWELL's own data-scrolled
   comes later), which also stops counting the large header for the island's top band as soon as it starts to fade.
   SWELL's loaded-animation.css leaves a finished FadeIn (fill: both) on the large header, and Chrome starts no opacity
   transition on a property an animation holds: the header popped out and back while the white bar faded, the stutter
   on a quick reversal. The large header therefore fades with filter: opacity(), which no animation touches, so both
   fades run (and reverse mid-way) together; its opacity stays at 1 (!important outranks the animation's fill). */
/* 2026-12-04: the large header fades where it stands (x and y frozen: no transform, the overview's centred logo kept by
   :root[data-ph-logo] until the header is back) with a light blur, and the white bar follows a moment later; a reversal
   runs both back from where they are. The copy that is fading out or hidden takes no pointer or hover (here, for every
   descendant, whatever SWELL's menu rules say) and no focus or Tab stop (island-featured.js makes it inert). */
@media (min-width: 960px) {
  #body_wrap > #header.l-header {
    position: fixed !important;
    -webkit-transform: none !important;
    transform: none !important;
    translate: none !important;
    opacity: 1 !important;
    filter: opacity(1) blur(0);
    visibility: visible;
    transition: filter .4s ease, visibility 0s;
  }
  :root[data-ph-head=compact] #body_wrap > #header.l-header {
    filter: opacity(0) blur(3px);
    visibility: hidden;
    pointer-events: none;
    transition: filter .4s ease, visibility 0s linear .4s;
  }
  :root[data-ph-head=compact] #body_wrap > #header.l-header *,
  :root:not([data-ph-head=compact]) #body_wrap > #fix_header.l-fixHeader,
  :root:not([data-ph-head=compact]) #body_wrap > #fix_header.l-fixHeader * { pointer-events: none !important; }
  #body_wrap > #fix_header.l-fixHeader {
    -webkit-transform: none !important;
    transform: none !important;
    opacity: 0 !important;
    visibility: hidden;
    transition: opacity .25s ease, visibility 0s linear .25s;
  }
  :root[data-ph-head=compact] #body_wrap > #fix_header.l-fixHeader[data-ready] {
    opacity: 1 !important;
    visibility: visible;
    transition: opacity .4s ease .18s, visibility 0s;
  }
  /* The white bar's logo and navigation stand where the large header's do at every width: full width with the same side
     padding, instead of SWELL's centred 1200px container (which moved them inwards on wide windows). */
  #body_wrap > #fix_header .l-fixHeader__inner { max-width: 100%; }
  /* 2026-12-04: at the overview (the whole island, :root[data-ph-overview], island-featured.js) the large header's PH
     logo stands in the middle of the window, the navigation still at the right; a narrower window lets the logo give
     way to the left rather than meet the navigation. Every other stop, and the white compact bar, keep SWELL's header. */
  /* The middle is the visible client area's (the fixed header spans it, never under the scroll bar), and the logo's box
     is the logo alone: SWELL's -series header gives .c-headLogo a 16px right margin (room for a catchphrase), which
     put the logo 8px left of the middle. */
  /* data-ph-logo follows data-ph-overview, but stays while the header fades out and is hidden (island-featured.js,
     syncLogo). There the logo is also moderately smaller (80px instead of SWELL's 100px). */
  :root[data-ph-logo] #body_wrap > #header.l-header { left: 0; right: 0; width: auto; }
  :root[data-ph-logo] #body_wrap > #header .l-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
  }
  :root[data-ph-logo] #body_wrap > #header .l-header__logo { grid-column: 2; margin-inline: 0; padding-inline: 0; justify-content: center; }
  :root[data-ph-logo] #body_wrap > #header .l-header__logo > .c-headLogo { margin-inline: 0; height: 80px; }
  :root[data-ph-logo] #body_wrap > #header .l-header__logo .c-headLogo__img { height: 100%; width: auto; }
  :root[data-ph-logo] #body_wrap > #header .l-header__gnav { grid-column: 3; justify-self: end; margin-left: 0; }
}
@media (min-width: 960px) and (prefers-reduced-motion: reduce) {
  #body_wrap > #header.l-header,
  :root[data-ph-head=compact] #body_wrap > #header.l-header,
  #body_wrap > #fix_header.l-fixHeader,
  :root[data-ph-head=compact] #body_wrap > #fix_header.l-fixHeader[data-ready] { transition: none; }
}

/* --- The sheet: one background colour that its sticky parts share; the leaving copy never takes the pointer. */
#ph-island .ph-featured-sheet { --ph-sheet-bg: var(--color_bg, #fff); background: var(--ph-sheet-bg); }
#ph-island .ph-featured-sheet.ph-sheet-ghost { pointer-events: none; }
/* Beside the island the service board's and the blog's body keeps no top padding of its own (its first part carries
   it), so the 制作 photo stands still exactly at the top of what scrolls. */
#ph-island .stage > .ph-featured-sheet[data-bare] > .ph-featured-sheet__body { padding-top: 0; }
#ph-island .stage > .ph-featured-sheet[data-bare] > .ph-featured-sheet__body > #deck { padding-top: 1em; }
/* Touch on a wide screen: at the end of the sheet the page scrolls on (the island's next stop), as on phones. */
@media (pointer: coarse) {
  #ph-island .stage > .ph-featured-sheet > .ph-featured-sheet__body { overscroll-behavior-y: auto; }
}

/* --- 制作: the photo stays at the top of what scrolls while the project rows pass under it (island-featured.js). The
   caption keeps at least two lines, so ordinary titles never move the rows; a longer name wraps in full. On phones the page is
   what scrolls: SWELL's #body_wrap clips sideways with overflow hidden, which would make it a scroll box of its own and
   keep the photo from sticking; clip cuts the same overflow without that (browsers without clip keep SWELL's rule). */
#body_wrap { overflow-x: clip; overflow-y: visible; }
#ph-island .ph-featured-sheet .ph-board-cases__preview {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1;
  padding: .6em 0 .45em;
  background: var(--ph-sheet-bg, #fff);
  box-shadow: 0 1px 0 var(--color_border, #ddd);
}
#ph-island .ph-featured-sheet .ph-board-cases__preview .ph-board-preview__figure { max-height: 36vh; }
/* The chosen project's title is never cut: a long proper name wraps (at phrase breaks where the browser can) instead of
   ending in an ellipsis. */
#ph-island .ph-featured-sheet .ph-board-cases__title {
  display: block;
  min-height: 3em;
  margin: .45em 0 0;
  overflow-wrap: anywhere;
  word-break: auto-phrase;
  text-wrap: pretty;
}
/* Photo and title are one link to the project (no separate details line), the title ending on the small brand arrow;
   the rows below only choose. The arrow is left out of what is read. */
#ph-island .ph-featured-sheet .ph-board-cases__link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: var(--swl-radius--8, 8px);
}
#ph-island .ph-featured-sheet .ph-board-cases__link .ph-board-cases__title > span:first-child::after {
  content: "\00a0»";
  content: "\00a0»" / "";
  color: var(--color_main, #2517c8);
}
#ph-island .ph-featured-sheet .ph-board-cases__link:focus-visible { outline: 2px solid var(--color_main, #2517c8); outline-offset: 3px; }
@media (hover: hover) {
  #ph-island .ph-featured-sheet .ph-board-cases__link:hover .ph-board-cases__title > span:first-child { text-decoration: underline; text-underline-offset: .2em; }
  #ph-island .ph-featured-sheet .ph-board-cases__link:hover img { opacity: .9; }
}
#ph-island .ph-featured-sheet .ph-board-cases__label { margin-top: .9em; }
/* The photo's frame: a hairline instead of the site's heavy thumbnail border. */
#ph-island .ph-featured-sheet .ph-board-preview__figure.c-postThumb::after { border-width: 1px !important; border-color: rgba(37, 23, 200, .16) !important; }
/* Rows: a small picture and the title; the chosen row keeps the brand bar (island-featured.css). */
#ph-island .ph-featured-sheet .ph-board-cases__item {
  display: flex;
  align-items: center;
  gap: .7em;
  padding-left: .55em;
}
#ph-island .ph-featured-sheet .ph-board-cases__thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 40px;
  object-fit: cover;
  border-radius: 3px;
  background: var(--color_gray, #f2f2f2);
}
#ph-island .ph-featured-sheet .ph-board-cases__thumb[data-missing] { visibility: hidden; }
#ph-island .ph-featured-sheet .ph-board-cases__name { min-width: 0; }
@media (max-width: 380px) {
  #ph-island .ph-featured-sheet .ph-board-cases__thumb { flex-basis: 48px; width: 48px; height: 30px; }
}
:root[data-bh-alt] #ph-island .ph-featured-sheet .ph-board-cases__thumb { filter: url(#ph-island-duo); }

/* --- Blog byline as SWELL prints it (date, views where the site has them), with the author's avatar alone, no name, in
   the post's bottom right corner (both widths; also beside the first post's picture, whose body is shorter than it).
   The body keeps the avatar's width free on the right, so no text runs under it. */
#ph-island .ph-featured-sheet #deck[data-kind=blog] .p-postList__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .15em .9em;
  min-width: 0;
}
#ph-island .ph-featured-sheet #deck[data-kind=blog] .p-postList__link { position: relative; }
#ph-island .ph-featured-sheet #deck[data-kind=blog] .p-postList__link:has(.p-postList__author) .p-postList__body { position: static; padding-right: 34px; }
#ph-island .ph-featured-sheet #deck[data-kind=blog] .p-postList__link:has(.p-postList__author) .p-postList__meta { position: static; }
#ph-island .ph-featured-sheet #deck[data-kind=blog] .p-postList__author {
  position: absolute;
  right: 2px;
  bottom: 6px;
  display: block;
  margin: 0;
  line-height: 0;
}
#ph-island .ph-featured-sheet #deck[data-kind=blog] .c-postAuthor__figure {
  width: 26px;
  height: 26px;
  margin: 0;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--color_border, #ddd);
}
#ph-island .ph-featured-sheet #deck[data-kind=blog] .c-postAuthor__figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
#ph-island .ph-featured-sheet #deck[data-kind=blog] .p-postList__views { font-size: .75rem; }

/* --- The end of the stops (island-featured.js, wide screens): a clean angular chevron in PH blue, no disc or frame, at
   the bottom middle of the screen while About is reached (the script keeps it clear of the side sheet, page-top and the
   island's buttons); it fades in gently, then bobs slowly by a few pixels, and only then takes focus. The 52px box is
   the press target; only the chevron is drawn (a square mitred corner, a thin white halo to read on the sea and sky). */
.ph-end-cue {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color_main, #2517c8);
  box-shadow: none;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s, color .25s;
}
.ph-end-cue.is-shown {
  opacity: .85;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity .7s ease .15s, transform .7s ease .15s, visibility 0s, color .25s;
}
.ph-end-cue.is-shown:is(:hover, :focus-visible) { opacity: 1; color: var(--color_main_dark, #1c1196); }
.ph-end-cue:focus-visible { outline: 2px solid var(--color_main, #2517c8); outline-offset: 2px; border-radius: 4px; }
.ph-end-cue__icon {
  display: block;
  width: 18px;
  height: 18px;
  margin-top: -9px; /* the chevron's point, not its box, at the middle */
  box-sizing: border-box;
  border: solid currentColor;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, .95));
  pointer-events: none;
}
/* Only the line is ever drawn, in every state and mode (wide and split, ordinary and two-colour): no theme or older
   button rule (.c-plainBtn, a round icon button, a pseudo-element badge) may paint a disc, frame or shadow behind it. */
.ph-end-cue,
.ph-end-cue:is(:hover, :focus, :focus-visible, :active),
:root[data-bh-alt] .ph-end-cue {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.ph-end-cue:focus-visible,
:root[data-bh-alt] .ph-end-cue:focus-visible { border-radius: 4px !important; } /* the keyboard ring's corners only */
.ph-end-cue::before,
.ph-end-cue::after,
.ph-end-cue__icon::before,
.ph-end-cue__icon::after { content: none !important; display: none !important; }
.ph-end-cue__icon { background: transparent !important; border-radius: 0 !important; box-shadow: none !important; }
/* Two-colour split view: the chevron stands on the blue sheet, so the line turns white (with a blue halo). */
:root[data-bh-alt] #ph-island #route[data-split=stop] ~ .ph-end-cue,
:root[data-bh-alt] #ph-island #route[data-split=stop] ~ .ph-end-cue.is-shown:is(:hover, :focus-visible) { color: #fff; }
:root[data-bh-alt] #ph-island #route[data-split=stop] ~ .ph-end-cue .ph-end-cue__icon { filter: drop-shadow(0 0 1.5px rgba(37, 23, 200, .95)); }
/* 2026-12-04: the stroke itself is white there, whatever colour the button inherits or a theme rule gives it (the line
   read blue on the blue sheet at 390x844); data-on-sheet is set by island-featured.js in the split view. */
:root[data-bh-alt] .ph-end-cue[data-on-sheet] .ph-end-cue__icon,
:root[data-bh-alt] #route[data-split=stop] ~ .ph-end-cue .ph-end-cue__icon {
  border-color: #fff !important;
  filter: drop-shadow(0 0 1.5px rgba(37, 23, 200, .95)) !important;
}
.ph-end-cue.is-shown .ph-end-cue__icon { animation: ph-end-cue-bob 2.8s ease-in-out .9s infinite; }
@keyframes ph-end-cue-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 4px; }
}
@media (min-width: 620px) {
  /* Shown only where the island has its scroll stops (the script never shows it elsewhere). */
  .ph-end-cue { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-end-cue, .ph-end-cue.is-shown { transform: translate(-50%, 0); transition: none; }
  .ph-end-cue.is-shown .ph-end-cue__icon { animation: none; }
}
#footer:focus { outline: none; } /* the chevron moves the keyboard here (tabindex -1); the next Tab goes into its links */

/* --- The two-colour mode: the sheet beside (or below) the island is the special sidebar, PH blue with white type;
   its pictures keep the island's duotone, its buttons turn white with blue type, focus rings turn lemon. */
:root[data-bh-alt] #ph-island .ph-featured-sheet {
  --ph-sheet-bg: #2517c8;
  --color_text: #fff;
  --color_link: #fff;
  --color_border: rgba(255, 255, 255, .3);
  --color_gray: rgba(255, 255, 255, .1);
  --color_main_thin: rgba(255, 255, 255, .14);
  background: #2517c8;
  color: #fff;
  border-color: #2517c8;
}
:root[data-bh-alt] #ph-island .ph-featured-sheet > .cap_box_ttl { background: #2517c8; color: #fff; }
:root[data-bh-alt] #ph-island .ph-featured-sheet :is(a, h2, p, li, time, span, strong, .ph-panel-heading, .p-postList__title,
  .c-postTimes__posted, .ph-board-cases__item, .ph-board-cases__link, .ph-board-hill, .ph-board-preview__title) { color: #fff; }
:root[data-bh-alt] #ph-island .ph-featured-sheet .ph-board-cases__item[aria-current=true] {
  background: rgba(255, 255, 255, .14);
  border-left-color: #e1ec3a;
}
:root[data-bh-alt] #ph-island .ph-featured-sheet .ph-board-preview[href] .ph-board-preview__title::after { color: #e1ec3a; }
/* The tabs (drawn below from --ph-tab-*): the public lemon fields with blue type stay, but their frames turn white so the
   row stands apart from the blue panel; the chosen tab (blue in the ordinary mode, which would vanish into the panel) is
   white with blue type (8.6:1) and a white pointer; focus a lemon ring. */
:root[data-bh-alt] #ph-island .ph-featured-sheet .ph-board__tabs {
  --ph-tab-bg: #e1ec3a;
  --ph-tab-ink: #2517c8;
  --ph-tab-line: #fff;
  --ph-tab-hover: #ecf283;
  --ph-tab-on-bg: #fff;
  --ph-tab-on-ink: #2517c8;
  --ph-tab-on-line: #fff;
  --ph-tab-ring: #e1ec3a;
}
:root[data-bh-alt] #ph-island .ph-featured-sheet .ph-board__tabs .c-tabList__button > strong { color: inherit; }
/* SWELL paints the caption box's body and caption with !important in --color_content_bg (white): scoped to the sheet
   here, so Blog, Illustration, About and the caption read white on blue instead of white on white. */
#ph-island .ph-featured-sheet { --color_content_bg: var(--ph-sheet-bg); }
:root[data-bh-alt] #ph-island .ph-featured-sheet { --color_content_bg: #2517c8; }
/* NEW keeps the site's shape and timing; on its lemon it reads in blue (the sheet's white type would vanish). */
:root[data-bh-alt] #ph-island .ph-featured-sheet :is(.ph-inline-new, .ph-thumbnail-new)[data-ph-island] { color: #2517c8 !important; }
/* The 制作 rows: hover shows on the blue too (the ordinary blue hover type would vanish), the line buttons underline. */
@media (hover: hover) {
  :root[data-bh-alt] #ph-island .ph-featured-sheet .ph-board-cases__item:not([aria-current=true]):hover { background: rgba(255, 255, 255, .1); color: #fff; }
  :root[data-bh-alt] #ph-island .ph-featured-sheet .swell-block-button__link:hover { text-decoration: underline; text-underline-offset: .2em; }
}
:root[data-bh-alt] #ph-island .ph-featured-sheet .swell-block-button__link,
:root[data-bh-alt] #ph-island .ph-featured-sheet .ph-board-more,
:root[data-bh-alt] #ph-island .ph-featured-sheet .ph-deck__retry {
  background: #fff !important;
  color: #2517c8 !important;
  border-color: #fff !important;
}
:root[data-bh-alt] #ph-island .ph-featured-sheet .swell-block-button__link span { color: inherit; }
:root[data-bh-alt] #ph-island .ph-featured-sheet :focus-visible { outline-color: #e1ec3a !important; }

/* --- The colour reveal (ph-public-color.js, both ways): the new colours open as a circle from the middle of the screen
   over the old ones, the island's canvas, the sheet and the header included. No blur and no cross-fade; with reduced
   motion (or without View Transitions) the switch is instant and this never runs. */
@keyframes ph-bh-reveal {
  from { clip-path: circle(0px at 50% 50%); }
  to { clip-path: circle(72vmax at 50% 50%); }
}
:root[data-bh-reveal]::view-transition-group(root) { animation: none; }
:root[data-bh-reveal]::view-transition-old(root) { animation: none; mix-blend-mode: normal; }
:root[data-bh-reveal]::view-transition-new(root) { animation: ph-bh-reveal .75s cubic-bezier(.45, 0, .2, 1) both; mix-blend-mode: normal; }

/* ===== Third feedback round (2026-12-02 night) ===================================================================== */

/* --- Clouds. 3D draws its own banks in the sky behind the island (scene.jsx), so the page's two CSS banks stand down
   there (fading with the canvas). In 2D island-featured.js sets them in the poster's own sky (translate, width) and they
   move with the poster's framing, on its transition; their slow drift stays the page's own animation. */
#ph-island .stage > .cloud-bank[data-placed] {
  transition: translate .6s cubic-bezier(.3, .7, .2, 1), width .6s cubic-bezier(.3, .7, .2, 1), opacity .35s ease;
}
#ph-island .stage[data-mode="3d"] > .cloud-bank { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  #ph-island .stage > .cloud-bank[data-placed] { transition: none; }
}

/* --- Sheets beside the island: a softer frame (a pale brand hairline and a light shadow instead of the full-strength
   line). */
#ph-island .stage > .ph-featured-sheet {
  border-color: rgba(37, 23, 200, .22);
  box-shadow: 0 6px 22px rgba(24, 20, 70, .09);
}

/* --- The service board as index tabs on a white panel. The four tabs are slim PH-blue index tabs standing on the
   panel's top edge; the chosen one turns white and overlaps that edge, so it reads as the front page of the panel (no
   balloon pointer). The sheet itself has no frame here: the tabs stand over the island, the panel and the offerings
   under it are one white sheet with a hairline. */
#ph-island .ph-featured-sheet[data-kind=service] { background: transparent; border: 0; box-shadow: none; }
/* SWELL's caption box paints its body white with a stronger rule; the board's body stays clear (panel and offerings
   carry the white). */
#ph-island .ph-featured-sheet[data-kind=service] > .ph-featured-sheet__body { background: transparent !important; }
#ph-island .stage > .ph-featured-sheet[data-kind=service] > .ph-featured-sheet__body { padding: 0; }
#ph-island .ph-featured-sheet[data-kind=service][data-bare] > .ph-featured-sheet__body > #deck { padding-top: 0; }
#ph-island .ph-featured-sheet .ph-board__tabs { position: relative; z-index: 2; margin: 0; }
#ph-island .ph-featured-sheet .ph-board__tabs > .c-tabList {
  gap: 4px;
  margin: 0;
  padding: 0 .6em;
  justify-content: flex-start;
  align-items: stretch;
  border: 0;
}
/* 2026-12-04: the tabs as the public top draws its own (swell_custom_css on public-home.html, the ph-recent-tabs block):
   lemon fields with PH-blue type in a 3px PH-blue frame, 10px top corners and a square foot, set edge to edge so
   neighbouring frames read as one line; the chosen tab turns PH blue with white type and points down into the panel with
   the frame's own triangle. Bold type at line-height 1.2. Colours, frame and corners read the site's --tab-* values, so
   the board follows the site if they change. Hover only tints the field (no lift, unlike the public 1px rise); keyboard
   focus is a ring outside the tab. Only the padding is smaller than the public 12px 18px, to keep four tabs on one line
   beside the island; it gives way further in a narrow sheet (container queries below). */
#ph-island .ph-featured-sheet .ph-board__tabs {
  --ph-tab-bw: var(--tab-bw, 3px);
  --ph-tab-br: var(--tab-br, 10px);
  --ph-tab-bg: var(--tab-bg, #e1ec3a);
  --ph-tab-ink: var(--tab-txt, #2517c8);
  --ph-tab-line: var(--tab-border, #2517c8);
  --ph-tab-hover: #ecf283;
  --ph-tab-on-bg: var(--tab-bg-act, #2517c8);
  --ph-tab-on-ink: var(--tab-txt-act, #fff);
  --ph-tab-on-line: var(--tab-border, #2517c8);
  --ph-tab-ring: var(--color_main, #2517c8);
}
#ph-island .ph-featured-sheet .ph-board__tabs > .c-tabList { gap: 0; padding: 0; flex-wrap: nowrap; }
/* One row of four, every label on one line and whole: a tab is never narrower than its label (創作イラスト takes what it
   needs, the short ones share the rest equally) and all four stretch to one height, so tops, feet and labels line up
   whichever is chosen (before, 創作|イラスト folded in a quarter of a narrow sheet and stood taller than the row). */
#ph-island .ph-featured-sheet .ph-board__tabs .c-tabList__item { flex: 1 1 0; min-width: max-content; margin: 0; padding: 0; }
/* One frame between neighbours (the public rule's intent: its button + button never meets here, each tab has its li). */
#ph-island .ph-featured-sheet .ph-board__tabs .c-tabList__item + .c-tabList__item { margin-left: calc(-1 * var(--ph-tab-bw)); }
#ph-island .ph-featured-sheet .ph-board__tabs .c-tabList__button {
  position: relative;
  min-height: 0;
  margin: 0;
  padding: 9px 12px;
  background: var(--ph-tab-bg) !important;
  color: var(--ph-tab-ink) !important;
  border: var(--ph-tab-bw) solid var(--ph-tab-line) !important;
  border-radius: var(--ph-tab-br) var(--ph-tab-br) 0 0 !important;
  box-shadow: none !important;
  font-size: .875em;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 1;
  transform: none !important;
  transition: background-color .2s ease, color .2s ease;
}
#ph-island .ph-featured-sheet .ph-board__tabs .c-tabList__button > strong { color: inherit; font-weight: 700; }
@media (hover: hover) {
  #ph-island .ph-featured-sheet .ph-board__tabs .c-tabList__button:not([aria-selected=true]):hover { background: var(--ph-tab-hover) !important; }
}
#ph-island .ph-featured-sheet .ph-board__tabs .c-tabList__button[aria-selected=true] {
  z-index: 2;
  background: var(--ph-tab-on-bg) !important;
  color: var(--ph-tab-on-ink) !important;
  border-color: var(--ph-tab-on-line) !important;
}
#ph-island .ph-featured-sheet .ph-board__tabs .c-tabList__button::before,
#ph-island .ph-featured-sheet .ph-board__tabs .c-tabList__button:not([aria-selected=true])::after { display: none !important; content: none !important; }
/* The chosen tab's pointer, as public: 16px wide, 10px deep, in the frame's colour, just under the tab's foot. */
#ph-island .ph-featured-sheet .ph-board__tabs .c-tabList__button[aria-selected=true]::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  left: 50%;
  bottom: -10px;
  top: auto;
  width: 0;
  height: 0;
  margin: 0;
  transform: translateX(-50%);
  border-style: solid;
  border-width: 10px 8px 0;
  border-color: var(--ph-tab-on-line) transparent transparent;
  background: none;
  pointer-events: none;
}
#ph-island .ph-featured-sheet .ph-board__tabs .c-tabList__button:focus-visible { z-index: 3; outline: 2px solid var(--ph-tab-ring) !important; outline-offset: 2px; }
@container (max-width: 420px) {
  #ph-island .ph-featured-sheet .ph-board__tabs .c-tabList__button { padding-left: 7px; padding-right: 7px; }
}
@container (max-width: 330px) {
  #ph-island .ph-featured-sheet .ph-board__tabs .c-tabList__button { padding-left: 4px; padding-right: 4px; font-size: .8125em; }
}
/* Only a board too narrow for four one-line labels (below 320px windows, or a large text setting) lets 創作|イラスト
   fold at its <wbr>; the row still stretches to one height, so nothing sticks up or is cut. */
@container (max-width: 18.5em) {
  #ph-island .ph-featured-sheet .ph-board__tabs .c-tabList__item { min-width: min-content; }
  #ph-island .ph-featured-sheet .ph-board__tabs .c-tabList__button { white-space: normal; }
}
#ph-island .ph-featured-sheet[data-kind=service] .ph-board__panel,
#ph-island .ph-featured-sheet[data-kind=service] #guide {
  background: var(--ph-sheet-bg, #fff);
  border: 1px solid rgba(37, 23, 200, .22);
}
/* The tabs span the panel's width, so their blue feet are its top edge (no hairline there, square corners), and the
   panel keeps the chosen tab's pointer (10px) clear of its first line. */
#ph-island .ph-featured-sheet[data-kind=service] .ph-board__panel {
  border-top: 0;
  border-bottom: 0;
  border-radius: 0;
  padding: calc(.75em + 6px) .9em .5em;
}
#ph-island .ph-featured-sheet[data-kind=service] #deck:not([hidden]) + #guide {
  margin: 0;
  padding: .7em .9em .8em;
  border-top: 1px solid var(--color_border, #e6e6ef);
  border-radius: 0 0 8px 8px;
}
#ph-island .stage > .ph-featured-sheet[data-kind=service] .ph-board__panel,
#ph-island .stage > .ph-featured-sheet[data-kind=service] #guide { box-shadow: 0 6px 22px rgba(24, 20, 70, .09); }
#ph-island .ph-featured-sheet[data-kind=service] .ph-board-actions { margin-top: .6em; }
#ph-island .ph-featured-sheet[data-kind=service] #guide .ph-guide-actions { gap: .45em .6em; }
/* Two-colour mode: as in the ordinary one the tabs stand on the panel's edge with nothing behind them. */
:root[data-bh-alt] #ph-island .ph-featured-sheet[data-kind=service] { background: transparent; }
:root[data-bh-alt] #ph-island .ph-featured-sheet[data-kind=service] :is(.ph-board__panel, #guide) { background: #2517c8; border-color: rgba(255, 255, 255, .4); }

/* --- Wide screens (beside the island, tall enough): the board fits one screen, the offerings (tabs, the services
   under the panel) and the chosen project's photo and title all in view with the island beside them. Only the project
   rows scroll, in their own box (island-featured.js finds it and walks it; its end passes the wheel on, see the wheel
   handler), and the photo stands above them instead of sticking. Shorter windows keep the sheet scrolling as before. */
@media (min-height: 560px) {
  #ph-island .stage > .ph-featured-sheet[data-kind=service] > .ph-featured-sheet__body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  #ph-island .stage > .ph-featured-sheet[data-kind=service] #deck,
  #ph-island .stage > .ph-featured-sheet[data-kind=service] .ph-board,
  #ph-island .stage > .ph-featured-sheet[data-kind=service] .ph-board__panel,
  #ph-island .stage > .ph-featured-sheet[data-kind=service] .ph-board-cases {
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    min-height: 0;
  }
  #ph-island .stage > .ph-featured-sheet[data-kind=service] .ph-board__panel { overflow-y: auto; overscroll-behavior: contain; }
  #ph-island .stage > .ph-featured-sheet[data-kind=service] .ph-board__tabs,
  #ph-island .stage > .ph-featured-sheet[data-kind=service] #guide,
  #ph-island .stage > .ph-featured-sheet[data-kind=service] .ph-board-actions,
  #ph-island .stage > .ph-featured-sheet[data-kind=service] .ph-board-cases__label { flex: none; }
  #ph-island .stage > .ph-featured-sheet[data-kind=service] .ph-board-cases__preview {
    position: static;
    flex: none;
    padding: 0;
    box-shadow: none;
  }
  #ph-island .stage > .ph-featured-sheet[data-kind=service] .ph-board-preview__figure { max-height: min(30vh, 250px); }
  #ph-island .stage > .ph-featured-sheet[data-kind=service] .ph-board-cases__title { min-height: 1.5em; }
  #ph-island .stage > .ph-featured-sheet[data-kind=service] .ph-board-cases__label { margin: .6em 0 .25em; }
  #ph-island .stage > .ph-featured-sheet[data-kind=service] .ph-board-cases__list {
    flex: 0 1 auto;
    min-height: 120px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-bottom: 1px solid var(--color_border, #e6e6ef);
  }
  #ph-island .stage > .ph-featured-sheet[data-kind=service] .ph-board-cases__item { min-height: 40px; padding-top: .35em; padding-bottom: .35em; }
}
@media (pointer: coarse) {
  #ph-island .stage > .ph-featured-sheet[data-kind=service] :is(.ph-board-cases__list, .ph-board__panel) { overscroll-behavior-y: auto; }
}

/* --- Blog: the site's NEW mark, compact; the topic (the post's own category or tag) on the lead post's picture at its
   lower left (SWELL's category label, moved off the art's lettering at the top), and as a small label on the others. */
#ph-island .ph-featured-sheet #deck[data-kind=blog] .ph-inline-new[data-ph-island] {
  display: inline-block;
  margin: 0 0 0 .4em !important;
  padding: 0 4px !important;
  font-size: 9px !important;
  line-height: 13px !important;
  letter-spacing: .04em;
  vertical-align: 1px;
  transform: none !important;
}
#ph-island .ph-featured-sheet #deck[data-kind=blog] .ph-topic {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .02em;
}
#ph-island .ph-featured-sheet #deck[data-kind=blog] .ph-topic--meta {
  padding: 0 .55em;
  border-radius: 3px;
  background: var(--color_main_thin, rgba(46, 29, 250, .05));
  color: var(--color_main, #2517c8);
}
#ph-island .ph-featured-sheet #deck[data-kind=blog] .c-postThumb__cat.ph-topic--thumb {
  position: absolute;
  top: auto !important;
  right: auto;
  bottom: 0;
  left: 0;
  max-width: calc(100% - .8em);
  margin: .4em !important;
  padding: 0 7px !important;
  border-radius: 10px;
  background: rgba(37, 23, 200, .9) !important;
  background-image: none !important;
  color: #fff;
  font-size: 10px;
}
:root[data-bh-alt] #ph-island .ph-featured-sheet #deck[data-kind=blog] .ph-topic--meta { background: rgba(255, 255, 255, .16); color: #fff; }
/* 2026-12-04: the posts' topics as one compact row of links under them (island-featured.js, blogTags), each to its
   WordPress archive, in SWELL's tag-list markup with its folder / tag icons. Small pills in PH blue on the pale brand
   tint (10:1); hover only deepens the tint and underlines (nothing moves); keyboard focus a ring. */
#ph-island .ph-featured-sheet #deck[data-kind=blog] .ph-blog-tags { margin: .7em 0 0; }
#ph-island .ph-featured-sheet #deck[data-kind=blog] .ph-blog-tags .c-tagList {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#ph-island .ph-featured-sheet #deck[data-kind=blog] .ph-blog-tags .c-tagList__item { margin: 0; padding: 0; }
#ph-island .ph-featured-sheet #deck[data-kind=blog] .ph-blog-tags .c-tagList__item::before { content: none; }
#ph-island .ph-featured-sheet #deck[data-kind=blog] .ph-blog-tags .c-tagList__link {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  max-width: 100%;
  min-height: 24px;
  margin: 0;
  padding: 1px 9px;
  border: 1px solid rgba(37, 23, 200, .28);
  border-radius: 12px;
  background: var(--color_main_thin, rgba(46, 29, 250, .05));
  color: var(--color_main, #2517c8);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 1;
  transform: none;
  transition: background-color .2s ease;
}
#ph-island .ph-featured-sheet #deck[data-kind=blog] .ph-blog-tags .c-tagList__link::before { font-size: .95em; opacity: .8; }
@media (hover: hover) {
  #ph-island .ph-featured-sheet #deck[data-kind=blog] .ph-blog-tags .c-tagList__link:hover {
    background: rgba(37, 23, 200, .12);
    text-decoration: underline;
    text-underline-offset: .18em;
  }
}
#ph-island .ph-featured-sheet #deck[data-kind=blog] .ph-blog-tags .c-tagList__link:focus-visible { outline: 2px solid var(--color_main, #2517c8); outline-offset: 2px; }
:root[data-bh-alt] #ph-island .ph-featured-sheet #deck[data-kind=blog] .ph-blog-tags .c-tagList__link {
  border-color: rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .12);
  color: #fff;
}
@media (hover: hover) {
  :root[data-bh-alt] #ph-island .ph-featured-sheet #deck[data-kind=blog] .ph-blog-tags .c-tagList__link:hover { background: rgba(255, 255, 255, .22); }
}
:root[data-bh-alt] #ph-island .ph-featured-sheet #deck[data-kind=blog] .ph-blog-tags .c-tagList__link:focus-visible { outline-color: #e1ec3a; }
@media (prefers-reduced-motion: reduce) {
  #ph-island .ph-featured-sheet #deck[data-kind=blog] .ph-blog-tags .c-tagList__link { transition: none; }
}
/* Secret mode: the post link never fades (its hover opacity times the byline's dropped the lemon NEW and the date below
   AA on the blue); hover and keyboard focus underline the title instead, and focus gets the lemon ring. The thumbnail
   NEW stays above SWELL's hover tint on the picture. SWELL also fades the text column under a hovered link (its
   .p-postList__body), which dropped the NEW and the date the same way: it stays at full strength too. */
:root[data-bh-alt] #ph-island .ph-featured-sheet #deck[data-kind=blog] .p-postList__link,
:root[data-bh-alt] #ph-island .ph-featured-sheet #deck[data-kind=blog] .p-postList__link .p-postList__body { opacity: 1 !important; }
:root[data-bh-alt] #ph-island .ph-featured-sheet #deck[data-kind=blog] .p-postList__link:focus-visible {
  outline: 2px solid #e1ec3a;
  outline-offset: 2px;
}
:root[data-bh-alt] #ph-island .ph-featured-sheet #deck[data-kind=blog] .p-postList__link:focus-visible .p-postList__title {
  text-decoration: underline;
  text-underline-offset: .2em;
}
@media (hover: hover) {
  :root[data-bh-alt] #ph-island .ph-featured-sheet #deck[data-kind=blog] .p-postList__link:hover .p-postList__title {
    text-decoration: underline;
    text-underline-offset: .2em;
  }
}
:root[data-bh-alt] #ph-island .ph-featured-sheet #deck[data-kind=blog] .ph-thumbnail-new[data-ph-island] { z-index: 2; }
/* The list link, short and to the right under the posts (its full name is its accessible name). */
#ph-island .ph-featured-sheet[data-kind=blog] #guide .ph-guide-actions { justify-content: flex-end; }
#ph-island .ph-featured-sheet #guide .ph-guide-short .swell-block-button__link {
  min-width: 0;
  padding: .3em 1.1em;
  font-size: .8125em;
}

/* --- About: the site's own short overview, then one "もっと見る". */
#ph-island .ph-featured-sheet .ph-about p { margin: 0 0 .65em; font-size: .875em; line-height: 1.75; }
#ph-island .ph-featured-sheet .ph-about p:last-child { margin-bottom: 0; }
#ph-island .ph-featured-sheet .ph-about + .ph-guide-actions { margin-top: .9em; }

/* ===== UI round (2026-12-03) ======================================================================================= */

/* --- The board's printed sheets and the tabs beside the island, one set (island-featured.js, markPaper). A paper marked
   from its tab (keyboard focus, a tap for a moment; never hover) gets a still hairline frame in PH blue with a soft
   shadow; it fades in and never moves, and no tab moves with it. Under the sheet and the island's buttons, never takes
   the pointer. With reduced motion it shows at once. */
#ph-island .stage > .ph-board-paper {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
}
#ph-island .stage > .ph-board-paper[data-shown] { opacity: 1; }
#ph-island .stage[data-back] > .ph-board-paper { display: none; }
#ph-island .stage > .ph-board-paper > polygon {
  fill: rgba(255, 255, 255, .1);
  stroke: var(--color_main, #2517c8);
  stroke-width: 1.5px;
  stroke-linejoin: round;
  filter: drop-shadow(0 3px 4px rgba(24, 20, 70, .3));
  transform: none;
}
:root[data-bh-alt] #ph-island .stage > .ph-board-paper > polygon { stroke: #e1ec3a; }
@media (prefers-reduced-motion: reduce) {
  #ph-island .stage > .ph-board-paper,
  #ph-island .ph-featured-sheet .ph-board__tabs .c-tabList__button { transition: none; }
}

/* --- 制作: the row in the photo is marked by its brand rail on the left and bold type (with the tint), not by colour
   alone, and by aria-current for assistive technology; no extra words. A row is a choice on this page, the photo's
   title is the link that opens the project. */
#ph-island .ph-featured-sheet .ph-board-cases__name { flex: 1 1 auto; overflow-wrap: anywhere; }
:root[data-bh-alt] #ph-island .ph-featured-sheet .ph-board-cases__link .ph-board-cases__title > span:first-child::after { color: #e1ec3a; }
/* Beside the island, the photo has a floor: when a long name takes more lines, island-featured.js (fitRows) lowers the
   photo towards it so three rows stay in view; the picture is never cropped (contain), only framed smaller. */
#ph-island .stage > .ph-featured-sheet[data-kind=service] .ph-board-cases__preview .ph-board-preview__figure { min-height: 108px; }
/* Short windows (the sheet scrolls, the photo sticks at its top): the photo stands beside the title, as in SWELL's list
   cards, so the whole name and three rows under them fit without shrinking either the picture or the type. */
@media (max-height: 559px) {
  #ph-island .stage > .ph-featured-sheet[data-kind=service] .ph-board-cases__link {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    column-gap: .8em;
    align-items: start;
  }
  #ph-island .stage > .ph-featured-sheet[data-kind=service] .ph-board-cases__preview .ph-board-preview__figure { max-height: none; min-height: 0; }
  /* In the narrow column, phrase breaks would leave ragged short lines: the name fills its lines instead. */
  #ph-island .stage > .ph-featured-sheet[data-kind=service] .ph-board-cases__title { min-height: 0; margin-top: 0; word-break: normal; }
  #ph-island .stage > .ph-featured-sheet[data-kind=service] .ph-board-cases__label { margin-top: .6em; }
}

/* --- The split view (one column: phones and portrait windows; island-featured.js, sizeSplit). The overview and the back
   beach keep the whole island under the header. A stop fills exactly the visible height: the island in the upper half
   of what the header leaves (--ph-split-map, the header included), the same sheet as beside the island in the lower half,
   its body the one box that scrolls (no inner scroll boxes, no page scroll under it). Its end keeps room (76px) for the
   angular chevron (52px, 12px up), which leads on to the footer. */
#ph-island #route[data-split] > .stage { position: relative; top: auto; }
#ph-island #route[data-split=overview] { height: auto; }
/* 2026-12-04 (portrait sheet round): the island's scenery is one picture to the bottom edge at every stop. The stage
   (and its canvas) keeps the overview's full height (--ph-split-h, so the canvas is never resized between stops); the
   sheet floats over its lower 60 % with about 5 % of scenery showing on either side (--ph-split-gutter; was 10 %), down
   to the bottom. The map is the upper 40 % (--ph-split-map, the header included); the island is framed there (clearBand).
   The swipe zone stays about 10 % per side: the sheet's outer strips walk the stops too (island-featured.js, EDGE). */
#ph-island #route[data-split] > .stage { height: var(--ph-split-h, 100vh); min-height: 0; }
#ph-island #route[data-split=stop] {
  --ph-split-gutter: max(5%, 12px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  display: block;
  position: relative;
  height: var(--ph-split-h, 100vh);
}
#ph-island #route[data-split=stop] > .ph-featured-sheet {
  position: absolute;
  z-index: 3;
  top: calc(var(--ph-split-map, 40vh) + var(--ph-sheet-cap));
  bottom: 0;
  left: var(--ph-split-gutter);
  right: var(--ph-split-gutter);
  width: auto;
  max-width: none;
  min-height: 0;
  max-height: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  box-shadow: 0 -2px 14px rgba(24, 20, 70, .14);
}
/* The island under the sheet's top edge and the gutters: vertical moves there are the island's (one stop per swipe,
   island-featured.js); sideways pans and pinch zoom stay the browser's own. */
#ph-island #route[data-split] > .stage { touch-action: pan-x pinch-zoom; }
/* Under Safari's translucent bars: the scenery's sea colour goes on past the route's bottom (only while in place). */
#ph-island #route[data-split=stop]:not([data-hold])::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(120px + env(safe-area-inset-bottom, 0px));
  background: var(--ph-split-sea, #58bdc8); /* the sea at the canvas bottom (sampled, 2026-12-04) */
  pointer-events: none;
}
#ph-island #route[data-split=stop] > .ph-featured-sheet > .ph-featured-sheet__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: calc(1em + 76px + env(safe-area-inset-bottom, 0px));
}
/* Away from the aligned view (the footer open, the page on its way back) the body keeps its place and does not scroll:
   a wheel or a finger over it moves the page (island-featured.js, data-hold). A body that had a scroll bar keeps its
   gutter, so nothing rewraps under the held place. */
#ph-island #route[data-split=stop] > .ph-featured-sheet[data-hold] > .ph-featured-sheet__body {
  overflow-y: hidden;
  overscroll-behavior: auto;
}
#ph-island #route[data-split=stop] > .ph-featured-sheet[data-hold=scroll] > .ph-featured-sheet__body { scrollbar-gutter: stable; }
#ph-island #route[data-split=stop] ~ .ph-end-cue { display: flex; margin-bottom: env(safe-area-inset-bottom, 0px); }
/* The service board: one framed sheet in the panel's colour; the four tabs stay at its top edge while the board scrolls
   under them (a band in the sheet's colour behind them), the 制作 photo sticks just below the tabs. */
#ph-island #route[data-split=stop] > .ph-featured-sheet[data-kind=service] {
  background: var(--ph-sheet-bg, #fff);
  border: 1px solid rgba(37, 23, 200, .22);
}
:root[data-bh-alt] #ph-island #route[data-split=stop] > .ph-featured-sheet[data-kind=service] { background: #2517c8; border-color: rgba(255, 255, 255, .4); }
#ph-island #route[data-split=stop] > .ph-featured-sheet[data-kind=service] > .ph-featured-sheet__body {
  padding-top: 0;
  padding-left: .6em;
  padding-right: .6em;
  background: var(--ph-sheet-bg, #fff) !important;
}
#ph-island #route[data-split=stop] .ph-board__tabs {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 -.6em;
  /* The band holds the chosen tab's pointer (10px), so the photo that sticks under it (--ph-tabs-h) never meets it. */
  padding: .55em .6em 10px;
  background: var(--ph-sheet-bg, #fff);
}
#ph-island #route[data-split=stop] > .ph-featured-sheet[data-kind=service] :is(.ph-board__panel, #guide) { box-shadow: none; }
#ph-island #route[data-split=stop] > .ph-featured-sheet[data-kind=service] .ph-board__panel {
  border-width: 0;
  border-radius: 0;
  padding: .3em 0 .5em;
}
#ph-island #route[data-split=stop] > .ph-featured-sheet[data-kind=service] #deck:not([hidden]) + #guide {
  border-width: 1px 0 0;
  border-radius: 0;
  padding: .7em 0 .8em;
}
/* 制作 in the half-height panel: the photo beside the title (as SWELL's list cards, and the short wide windows above),
   so the whole name and the rows under it share the panel; a panel too low for that lets the photo scroll away. */
#ph-island #route[data-split=stop] .ph-board-cases__preview { top: var(--ph-tabs-h, 0px); }
/* The stuck preview sits right under the tabs' own band: a tighter frame (about 5px less) leaves a third whole row below. */
#ph-island #route[data-split=stop] > .ph-featured-sheet[data-kind=service] .ph-board-cases__preview { padding: .4em 0 .3em; }
#ph-island #route[data-split=stop] .ph-featured-sheet[data-low] .ph-board-cases__preview { position: static; box-shadow: none; }
#ph-island #route[data-split=stop] .ph-board-cases__link {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  column-gap: .8em;
  align-items: start;
}
#ph-island #route[data-split=stop] .ph-board-cases__preview .ph-board-preview__figure { max-height: none; min-height: 100px; }
#ph-island #route[data-split=stop] .ph-board-cases__title { min-height: 0; margin-top: 0; word-break: normal; }
#ph-island #route[data-split=stop] .ph-board-cases__label { margin-top: .6em; }
/* The four tabs in a narrow split (320 to 619px): the one-line, one-height row above (never a second row, which left
   a tab out of line), at least 44px tall for a finger, the chosen one marked by its colour and pointer. Here each tab
   keeps its own whole frame with an even 5px between neighbours (separate finger targets), instead of the shared
   frames of the wider board. */
@media (max-width: 619px) {
  #ph-island #route[data-split=stop] > .ph-featured-sheet[data-kind=service] .ph-board__tabs > .c-tabList { padding-inline: 0; gap: 5px; }
  #ph-island #route[data-split=stop] > .ph-featured-sheet[data-kind=service] .ph-board__tabs .c-tabList__item + .c-tabList__item { margin-left: 0; }
  #ph-island #route[data-split=stop] > .ph-featured-sheet[data-kind=service] .ph-board__tabs .c-tabList__button {
    min-height: 44px;
    padding-inline: 6px;
    font-size: 14px;
  }
  /* The 44px tabs stand 5-8px taller than before; the gaps around them give it back (about 11px under the stuck tabs and
     photo, about 20px at the top of the board), so a six-line name still leaves three whole rows below. The band keeps
     its 10px for the chosen tab's pointer. */
  #ph-island #route[data-split=stop] > .ph-featured-sheet[data-kind=service] .ph-board__tabs { padding-top: 4px; }
  #ph-island #route[data-split=stop] > .ph-featured-sheet[data-kind=service] .ph-board__panel { padding-top: 0; }
  #ph-island #route[data-split=stop] > .ph-featured-sheet[data-kind=service] .ph-board-cases__preview { padding: 3px 0 2px; }
  #ph-island #route[data-split=stop] > .ph-featured-sheet[data-kind=service] .ph-board-cases__label { margin-top: .35em; }
}

/* ===== Phone portrait / Safari round (2026-12-04) ================================================================== */

/* --- The 2D / 3D switch on a working phone 3D: the island is the whole first screen, so the switch stands down while 3D
   loads and runs on a touch screen in the split view. A 3D that fails, is too slow or times out comes back to 2D by
   itself (data-mode=2d), and there the switch shows again (「3Dで見る」). Mouse windows (also narrowed ones) keep it. */
@media (pointer: coarse) {
  #ph-island #route[data-split] > .stage:is([data-mode="3d"], [data-mode=loading]) .mode-bar > #mode { display: none; }
}

/* --- The first scene only (the overview in the split view, not the back beach): one quiet line at the bottom middle
   that the island goes on by scrolling, with a small chevron under it; it fades in after a moment and leaves with the
   first stop (every other scene has its own way on). Not read aloud (the island's menu names the stops). */
#ph-island #route[data-split=overview] > .stage[data-stop=overview] .ph-bottom::before {
  content: "スクロールで島をめぐる";
  content: "スクロールで島をめぐる" / "";
  display: block;
  align-self: center; /* the switch's row starts at the left; the line stands in the middle, over its chevron */
  text-align: center;
  padding: 0 0 17px;
  color: var(--color_main, #2517c8);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 6px #fff;
  pointer-events: none;
  animation: ph-scroll-cue-in .8s ease 1.2s both;
}
/* The chevron under the line (the label is the element's ::before; the HUD's own ::after is free). */
#ph-island #route[data-split=overview] > .stage[data-stop=overview] .ph-bottom { position: relative; }
#ph-island #route[data-split=overview] > .stage[data-stop=overview] .ph-bottom::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 9px;
  height: 9px;
  margin: 26px 0 0 -4.5px;
  box-sizing: border-box;
  border: solid var(--color_main, #2517c8);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  filter: drop-shadow(0 0 1.5px #fff);
  pointer-events: none;
  animation: ph-scroll-cue-in .8s ease 1.2s both, ph-scroll-cue-bob 2.8s ease-in-out 2s infinite;
}
@keyframes ph-scroll-cue-in { from { opacity: 0; } to { opacity: .85; } }
@keyframes ph-scroll-cue-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 3px; } }
:root[data-bh-alt] #ph-island #route[data-split=overview] > .stage[data-stop=overview] .ph-bottom::before { text-shadow: 0 0 3px #e1ec3a, 0 0 3px #e1ec3a; }
@media (prefers-reduced-motion: reduce) {
  #ph-island #route[data-split=overview] > .stage[data-stop=overview] .ph-bottom::before,
  #ph-island #route[data-split=overview] > .stage[data-stop=overview] .ph-bottom::after { animation: none; opacity: .85; }
}

/* --- The sheet's end in the split view. Only About leads on to the footer (its chevron keeps the room it needs); the
   other sheets end after their last line, the safe area (the home bar) and a little air, with no blank band. */
#ph-island #route[data-split=stop] > .ph-featured-sheet:not([data-kind=about]) > .ph-featured-sheet__body {
  padding-bottom: calc(1.25em + env(safe-area-inset-bottom, 0px));
}
/* Safari draws its bars over the page's bottom edge (translucent; on iOS 26 a floating glass bar): what shows through
   there is the sheet going on in its own colour and frame, never the footer below the route. Only while the view is
   in place: from About's chevron on (data-hold, the page moving towards the footer) it is gone, so it never covers the
   footer. */
#ph-island #route[data-split=stop] > .ph-featured-sheet:not([data-hold])::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 100%;
  left: -1px;
  right: -1px;
  height: calc(120px + env(safe-area-inset-bottom, 0px));
  border: inherit;
  border-top: 0;
  border-bottom: 0;
  border-radius: 0;
  background: var(--ph-sheet-bg, #fff);
  pointer-events: none;
}

/* ===== Portrait sheet round (2026-12-04 night, Claude Code) ======================================================== */

/* The sheet's copy that sinks away when the island stands alone again is placed by script (island-featured.js). */
#ph-island #route[data-split] { position: relative; }
/* The island's own buttons (the 2D / 3D switch on a fallback) stand on the map, just above the sheet's top edge. */
#ph-island #route[data-split=stop] > .stage .ph-hud {
  padding-bottom: calc(10px + var(--ph-split-h, 100vh) - var(--ph-split-map, 40vh));
}

/* --- The sheet's spacing in the split view: one inner margin on both sides (14px) for every kind, a little more air
   at the top under the rounded edge; the board's tab band and panel follow the same line. */
#ph-island #route[data-split=stop] > .ph-featured-sheet > .ph-featured-sheet__body { padding: 14px 14px 1em; }
#ph-island #route[data-split=stop] > .ph-featured-sheet[data-kind=about] > .ph-featured-sheet__body { padding-bottom: calc(1em + 76px + env(safe-area-inset-bottom, 0px)); }
#ph-island #route[data-split=stop] > .ph-featured-sheet:not([data-kind=about]) > .ph-featured-sheet__body { padding-bottom: calc(1.25em + env(safe-area-inset-bottom, 0px)); }
#ph-island #route[data-split=stop] > .ph-featured-sheet[data-kind=service] { border-radius: 10px 10px 0 0; overflow: visible; }
#ph-island #route[data-split=stop] > .ph-featured-sheet[data-kind=service] > .ph-featured-sheet__body {
  padding-top: 0;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 10px 10px 0 0;
}
#ph-island #route[data-split=stop] .ph-board__tabs { margin: 0 -12px; padding: 10px 12px 10px; border-radius: 10px 10px 0 0; }

/* --- The board's tabs in the split view: white fields with a PH-blue outline and blue type (no lemon), the chosen tab
   solid PH blue with white type (9.6:1) and its pointer. Two-colour mode (blue sheet): clear fields with a white outline
   and white type, the chosen one white with blue type. Every label on one line, at least 44px tall; the row fills the
   sheet's width (the long label takes what it needs). */
#ph-island #route[data-split=stop] .ph-board__tabs {
  --ph-tab-bw: 2px;
  --ph-tab-bg: #fff;
  --ph-tab-ink: #2517c8;
  --ph-tab-line: #2517c8;
  --ph-tab-hover: #eeedfb;
  --ph-tab-on-bg: #2517c8;
  --ph-tab-on-ink: #fff;
  --ph-tab-on-line: #2517c8;
  --ph-tab-ring: #2517c8;
}
:root[data-bh-alt] #ph-island #route[data-split=stop] .ph-board__tabs {
  --ph-tab-bg: transparent;
  --ph-tab-ink: #fff;
  --ph-tab-line: #fff;
  --ph-tab-hover: rgba(255, 255, 255, .16);
  --ph-tab-on-bg: #fff;
  --ph-tab-on-ink: #2517c8;
  --ph-tab-on-line: #fff;
  --ph-tab-ring: #e1ec3a;
}
#ph-island #route[data-split=stop] > .ph-featured-sheet[data-kind=service] .ph-board__tabs > .c-tabList { gap: 5px; padding: 0; }
#ph-island #route[data-split=stop] > .ph-featured-sheet[data-kind=service] .ph-board__tabs .c-tabList__item { flex: 1 1 auto; }
#ph-island #route[data-split=stop] > .ph-featured-sheet[data-kind=service] .ph-board__tabs .c-tabList__item + .c-tabList__item { margin-left: 0; }
#ph-island #route[data-split=stop] > .ph-featured-sheet[data-kind=service] .ph-board__tabs .c-tabList__button {
  width: 100%;
  min-height: 44px;
  padding: 6px 8px;
  border-radius: 8px 8px 0 0 !important;
  font-size: 14px;
  letter-spacing: .02em;
}

/* --- Japanese names on the board break between phrases (island-featured.js marks them with <wbr>), never inside a word
   or a client's name; a run too long for a line still breaks. */
#ph-island #route[data-split=stop] :is(.ph-board-cases__title, .ph-board-cases__name) {
  word-break: keep-all;
  overflow-wrap: break-word; /* only a run longer than a whole line breaks inside (not anywhere: Chrome then broke before ｜) */
  line-break: strict;
}
#ph-island #route[data-split=stop] .ph-board-cases__title { line-height: 1.5; }
/* The 制作 photo beside its title in the narrower sheet: the photo keeps its column (16:10, never wider than it), so it
   never runs under the title. */
#ph-island #route[data-split=stop] .ph-board-cases__link { grid-template-columns: minmax(0, 44%) minmax(0, 1fr); column-gap: 10px; }
#ph-island #route[data-split=stop] .ph-board-cases__preview .ph-board-preview__figure { min-height: 0; width: 100%; }
/* Every label stays on one line in the split view (the board's fold below 18.5em is for the wide board only); on the
   narrowest phones (under 360px, the sheet about 256px wide) the tabs and the sheet's inner margin tighten so the four
   still fit inside the sheet. */
#ph-island #route[data-split=stop] > .ph-featured-sheet[data-kind=service] .ph-board__tabs .c-tabList__item { min-width: max-content; }
#ph-island #route[data-split=stop] > .ph-featured-sheet[data-kind=service] .ph-board__tabs .c-tabList__button { white-space: nowrap; }
@media (max-width: 359px) {
  #ph-island #route[data-split=stop] > .ph-featured-sheet > .ph-featured-sheet__body { padding-left: 10px; padding-right: 10px; }
  #ph-island #route[data-split=stop] > .ph-featured-sheet[data-kind=service] > .ph-featured-sheet__body { padding-left: 10px; padding-right: 10px; }
  #ph-island #route[data-split=stop] .ph-board__tabs { margin: 0 -10px; padding-left: 10px; padding-right: 10px; }
  #ph-island #route[data-split=stop] > .ph-featured-sheet[data-kind=service] .ph-board__tabs .c-tabList__button { padding: 6px 5px; font-size: 12px; letter-spacing: 0; }
}
#ph-island #route[data-split=stop] .ph-phrase { white-space: nowrap; }
