/*
Theme Name: みるつぼ
Theme URI: https://mirutsubo.com/
Author: 株式会社ツヨシオカ
Description: 配信と映画館の観かたガイド。公式データに基づく映画館案内を備えたクラシックテーマ。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mirutsubo
読みやすさの決まりは デジタル庁デザインシステムウェブサイト https://design.digital.go.jp/dads/ をもとに株式会社ツヨシオカが当てはめた
*/

:root {
    --color-navy: #16253d;
    --color-navy-soft: #263c5b;
    --color-yellow: #f5cc60;
    --color-yellow-soft: #fff4d6;
    --color-paper: #fffdf8;
    --color-white: #ffffff;
    --color-text: #243247;
    --color-muted: #586476;
    --color-line: #d6dce3;
    --color-line-strong: #7d8794;
    --color-link: #244f7c;
    --color-link-visited: #5a3d7a;
    --color-focus: #ba4b0c;
    --content-width: 68rem;
    --radius: 0.65rem;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
    margin: 0;
    background: var(--color-paper);
    color: var(--color-text);
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}
a { color: var(--color-link); text-underline-offset: 0.22em; }
a:visited:where(:not(.cta-button, .entrance, .city-links a, .main-nav a, .site-brand, .site-header a, .site-footer a)) { color: var(--color-link-visited); }
a:hover { text-decoration-thickness: 0.15em; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--color-yellow); }
h1, h2, h3 { color: var(--color-navy); line-height: 1.4; }
h1 { font-size: clamp(1.65rem, 4vw, 2.55rem); margin: 0.4rem 0 1rem; }
h2 { font-size: clamp(1.3rem, 3vw, 1.65rem); margin: 0 0 1.1rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1.2rem; }
small { font-size: 0.875rem; }
li + li { margin-top: 0.45rem; }
ul, ol { padding-left: 1.5rem; }
section + section { margin-top: 3.5rem; }
.container { width: min(var(--content-width), calc(100% - 2rem)); margin-inline: auto; }
.skip-link { position: absolute; top: -10rem; left: 1rem; padding: 0.75rem 1rem; background: var(--color-yellow); z-index: 10; }
.skip-link:focus { top: 0.5rem; }
.site-header { background: var(--color-navy); color: var(--color-white); border-top: 5px solid var(--color-yellow); }
.header-inner { padding-block: 1.25rem 0.5rem; }
.site-brand { display: inline-flex; flex-direction: column; color: var(--color-white); text-decoration: none; }
.site-name { font-size: 2rem; font-weight: 800; letter-spacing: 0.1em; line-height: 1.4; }
.site-tagline { font-size: 0.875rem; letter-spacing: 0.04em; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.main-nav li { margin: 0; }
.main-nav a { display: block; padding: 0.65rem 0; color: var(--color-white); font-size: 1rem; text-decoration: none; }
.main-nav a:hover { color: var(--color-yellow); text-decoration: underline; }
.pr-disclosure { padding-block: 0.65rem; background: var(--color-yellow-soft); font-size: 0.875rem; border-bottom: 1px solid var(--color-line); }
.pr-disclosure a { display: inline-block; padding-block: 0.65rem; margin-left: 0.5rem; }
.main-content { min-height: 45vh; padding-block: 2.2rem 4.5rem; }
.page-heading { margin-bottom: 1.75rem; }
.eyebrow { color: var(--color-muted); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.lead { font-size: 1.1rem; max-width: 48rem; }
.hero { padding-block: 1rem 0; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); letter-spacing: 0.04em; }
.entrance-grid { display: grid; gap: 1rem; margin-top: 2rem; }
.entrance { position: relative; display: block; padding: 1.6rem; border: 1px solid var(--color-line-strong); border-top: 5px solid var(--color-yellow); border-radius: var(--radius); background: var(--color-white); color: var(--color-text); text-decoration: none; }
.entrance:hover { border-color: var(--color-link); }
.entrance h2 { margin-bottom: 0.5rem; }
.entrance p { margin: 0; }
.entrance > span:last-child { display: block; color: var(--color-link); font-size: 1.5rem; text-align: right; }
.city-links { display: flex; flex-wrap: wrap; gap: 0.65rem; list-style: none; padding: 0; }
.city-links li { margin: 0; }
.city-links a { display: block; padding: 0.65rem 1.2rem; border: 1px solid var(--color-line-strong); border-radius: var(--radius); background: var(--color-white); }
.breadcrumbs { font-size: 0.875rem; color: var(--color-muted); margin-bottom: 1.5rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; gap: 0 0.6rem; align-items: center; }
.breadcrumbs li { margin: 0; }
.breadcrumbs a { display: inline-block; padding-block: 0.65rem; }
.breadcrumbs li + li::before { content: "／"; margin-right: 0.6rem; }
.information-notice { padding: 1rem 1.2rem; border-left: 4px solid var(--color-yellow); background: var(--color-yellow-soft); font-size: 1rem; }
.virtual-page > section { margin-top: 3rem; }
table { width: 100%; border-collapse: collapse; background: var(--color-white); font-size: 1rem; }
caption { text-align: left; color: var(--color-muted); font-size: 1rem; padding-bottom: 0.65rem; }
th, td { line-height: 1.6; padding: 1rem; border: 1px solid var(--color-line); text-align: left; vertical-align: top; }
th { background: var(--color-yellow-soft); font-weight: 700; }
thead th { border-bottom: 2px solid var(--color-navy); }
tbody th[scope="row"] { border-right: 2px solid var(--color-navy); }
.conditions-table th { width: 29%; }
.theater-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.theater-table, .theater-table tbody, .theater-table tr, .theater-table td, .theater-table tbody th { display: block; }
.theater-table { background: transparent; }
.theater-table caption { display: block; }
.theater-table tr { margin-bottom: 1rem; border: 1px solid var(--color-line-strong); border-radius: var(--radius); background: var(--color-white); overflow: hidden; }
.theater-table td, .theater-table tbody th { border: 0; padding: 0.6rem 1rem; }
.theater-table tbody th { background: var(--color-yellow-soft); border-bottom: 2px solid var(--color-navy); }
.theater-table td::before { content: attr(data-label); display: inline-block; min-width: 4.5em; font-size: 0.875rem; font-weight: 700; color: var(--color-muted); margin-right: 0.7rem; }
.theater-table .theater-city { position: relative; padding: 0; }
.theater-city::before { position: absolute; top: 0; left: 1rem; padding-block: 0.6rem; pointer-events: none; }
.theater-city a { display: block; padding: 0.6rem 1rem 0.6rem 6rem; }
.company-list { display: grid; gap: 0.8rem; }
.company-list li { margin: 0; }
.steps { display: grid; gap: 1.3rem; list-style: none; padding: 0; counter-reset: step; }
.steps li { position: relative; margin: 0; padding: 1.25rem; border-radius: var(--radius); background: var(--color-navy); color: var(--color-white); counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; color: var(--color-yellow); font-size: 1.4rem; font-weight: 800; }
.steps li + li::after { content: "↓"; position: absolute; top: -1.65rem; left: calc(50% - 0.5em); color: var(--color-muted); }
.steps h3 { color: var(--color-white); margin: 0.4rem 0; }
.steps p { font-size: 1rem; margin: 0; }
.evidence { border-top: 1px solid var(--color-line); padding-top: 2rem; font-size: 1rem; }
.source-links { font-size: 0.875rem; }
.source-links a { display: inline-block; padding-block: 0.65rem; }
.source-domain { font-size: 0.875rem; color: var(--color-muted); }
summary { cursor: pointer; color: var(--color-link); padding-block: 0.75rem; font-weight: 700; }
.preparing, .empty-state { padding: 1.5rem; background: var(--color-white); border: 1px solid var(--color-line-strong); border-radius: var(--radius); }
.preparing > p:first-child { font-size: 1.4rem; font-weight: 700; }
.post-summary { padding-block: 1.5rem; border-bottom: 1px solid var(--color-line); }
.post-date, .article-list time { font-size: 0.875rem; color: var(--color-muted); }
.article-list { padding-left: 1.25rem; }
.article-list li { padding-block: 0.5rem; }
.entry-content { max-width: 50rem; }
.entry-content p { margin-bottom: 1.75rem; }
.table-scroll {
    max-width: 100%;
    overflow-x: auto;
    /* The local white cover hides the right-hand shadow at the scroll end. */
    background:
        linear-gradient(to left, var(--color-white) 30%, transparent) right / 3rem 100% no-repeat local,
        linear-gradient(to left, var(--color-line-strong), transparent) right / 0.75rem 100% no-repeat scroll;
}
.table-scroll table { background: transparent; }
.entry-content h2 { margin-top: 2.5rem; }
.entry-content img, .entry-content video { max-width: 100%; height: auto; }
.alignwide { max-width: var(--content-width); }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 0.875rem; color: var(--color-muted); }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.entry-content::after { content: ""; display: block; clear: both; }
.screen-reader-text, .theater-table caption.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.pagination, .post-navigation, .page-links { margin-top: 2rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.site-footer { padding-block: 2.5rem; color: var(--color-white); background: var(--color-navy); font-size: 0.875rem; }
.site-footer a { display: inline-block; padding-block: 0.65rem; color: var(--color-white); }
.footer-brand { font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; padding: 0; }
.footer-links li { margin: 0; }

@media (max-width: 47.999rem) {
    .wpcf7 .wpcf7-submit { width: 100%; }
    .conditions-table th { width: 7em; }
    .conditions-table th, .conditions-table td { padding: 0.75rem; }
}

@media (min-width: 48rem) {
    .header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1.25rem; }
    .main-nav ul { margin: 0; }
    .main-content { padding-block: 3rem 5rem; }
    .entrance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .company-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .steps li + li::after { content: "→"; top: 45%; left: -1.35rem; }
    .theater-table { display: table; background: var(--color-white); }
    .theater-table caption { display: table-caption; }
    .theater-table thead { display: table-header-group; position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
    .theater-table tbody { display: table-row-group; }
    .theater-table tr { display: table-row; }
    .theater-table td, .theater-table tbody th { display: table-cell; padding: 1rem; border: 1px solid var(--color-line); background: var(--color-white); }
    .theater-table thead th { border-bottom: 2px solid var(--color-navy); }
    .theater-table tbody th { background: var(--color-yellow-soft); border-right: 2px solid var(--color-navy); }
    .theater-table .theater-city { display: table-cell; padding: 0; }
    .theater-city a { padding: 1rem; }
    .theater-table td::before { content: none; }
}

.mirutsubo-cta { margin: 2rem 0; }
.mirutsubo-cta small { display: block; margin-bottom: .4rem; }
.cta-button, .wpcf7 .wpcf7-submit { display: inline-flex; align-items: center; min-height: 44px; border: 2px solid var(--color-navy); font-size: 1rem; padding: .9rem 1.2rem; background: var(--color-yellow); color: var(--color-navy); border-radius: .4rem; font-weight: bold; }

/* Keep CF7's own validation and visibility styles; override presentation only. */
.wpcf7 label { display: block; font-weight: 700; }
.wpcf7 form p { margin-bottom: 1.75rem; }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 0.5rem; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0.75rem;
    border: 2px solid var(--color-line-strong);
    border-radius: var(--radius);
    background: var(--color-white);
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.75;
    font-weight: 400;
}
.wpcf7 textarea { height: 16rem; min-height: 16rem; resize: vertical; }
.wpcf7 input:focus-visible, .wpcf7 textarea:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 4px;
}
.wpcf7 .wpcf7-submit {
    min-height: 48px;
    justify-content: center;
    font-family: inherit;
    line-height: 1.75;
    cursor: pointer;
}
.wpcf7 .wpcf7-submit:hover { background: var(--color-yellow-soft); }
.wpcf7 .wpcf7-submit:disabled { cursor: not-allowed; border-style: dashed; }
.wpcf7 input.wpcf7-not-valid, .wpcf7 textarea.wpcf7-not-valid { border-style: dashed; }
.wpcf7 .wpcf7-not-valid-tip {
    margin-top: 0.5rem;
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 700;
}
.wpcf7 .wpcf7-not-valid-tip::before { content: "入力の確認："; }
.wpcf7 form .wpcf7-response-output {
    margin: 1.5rem 0;
    padding: 1rem;
    border-width: 2px;
    border-left-width: 6px;
    background: var(--color-white);
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.75;
}
.wpcf7 .wpcf7-response-output::before { content: "送信結果："; font-weight: 700; }
.wpcf7 .wpcf7-turnstile, .wpcf7 .cf-turnstile { margin-block: 1rem 1.75rem; }
.guide-sources { margin-top: 2rem; border-top: 1px solid currentColor; padding-top: 1rem; overflow-wrap: anywhere; }

/* Optional media photos retain the theme's spacing and corner shape. */
.site-image { margin: 1.5rem 0; }
.site-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.guide-thumbnail { float: left; width: 160px; margin: 0 1rem 0.75rem 0; }
.article-list li:has(.guide-thumbnail), .post-summary:has(.guide-thumbnail) { display: flow-root; }
@media (max-width: 480px) {
    .guide-thumbnail { float: none; width: 120px; margin-bottom: 0.75rem; }
}
