/* 水流保険事務所 共通スタイル */
:root {
  --paper: #faf8f4;
  --ink: #111;
  --muted: #55514b;
  --line: rgba(17, 17, 17, .2);
  --accent: #a8341f;
  --mark: #ffe36e;
  --serif: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --brush: "Yuji Boku", "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  --gutter: clamp(16px, 3vw, 40px);
  --side: 290px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 2;
  letter-spacing: .04em;
  line-break: strict;
  overflow-wrap: anywhere;
}
img, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; padding: 0; }
h1, h2, h3 { font-weight: 500; }
ul, ol { list-style: none; }
b, strong { font-weight: 700; }
a { color: inherit; text-underline-offset: .28em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: fixed; left: -999px; top: 8px; background: #fff; padding: .3em 1em; z-index: 200; }
.skip:focus { left: 8px; }
.tate { writing-mode: vertical-rl; text-orientation: mixed; }

/* 確認用の表示。公開時に .draft-bar と mark.check と .draft-note をすべて消す */
.draft-bar { position: relative; z-index: 6; background: var(--mark); font-size: 13px; line-height: 1.5; padding: 3px var(--gutter); text-align: center; letter-spacing: 0; }
mark.check { background: var(--mark); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 0; line-height: 1.4; padding: .1em .5em; white-space: nowrap; margin-inline: .3em; }
.tate mark.check { writing-mode: horizontal-tb; }
.draft-note { background: #fff6c9; padding: .8em 1em; font-size: 15px; line-height: 1.8; margin-block: 1.4em; }

/* 右上の縦ナビと筆文字 */
.side { position: fixed; top: 36px; right: var(--gutter); z-index: 30; display: flex; flex-direction: row-reverse; gap: 28px; transition: color .3s; }
.on-dark .side { color: #fff; }
.side-logo { writing-mode: vertical-rl; font-family: var(--brush); font-size: 30px; line-height: 1; letter-spacing: .08em; text-decoration: none; color: inherit; transition: opacity .4s; }
.side-logo:hover { color: inherit; }
.at-top .side-logo { opacity: 0; pointer-events: none; }
.side-nav { writing-mode: vertical-rl; font-size: 14px; line-height: 1; letter-spacing: .16em; }
.side-nav li { margin-left: 13px; }
.side-nav a { text-decoration: none; }
.side-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .4em; }
.side-nav a:hover { color: inherit; text-decoration: underline; text-underline-offset: .4em; }
.menu-btn { display: none; }
.fix-tel { position: fixed; right: var(--gutter); bottom: 22px; z-index: 30; display: block; text-align: right; text-decoration: none; line-height: 1.5; font-size: 12px; letter-spacing: .06em; transition: color .3s; }
.fix-tel b { display: block; font-size: 19px; font-weight: 500; letter-spacing: .04em; }
.fix-tel:hover { color: inherit; }
.on-dark .fix-tel { color: #fff; }

/* スマホのメニュー */
.menu { position: fixed; inset: 0; z-index: 25; background: var(--paper); padding: 90px var(--gutter) 90px; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu ul { writing-mode: vertical-rl; font-size: 19px; line-height: 1; letter-spacing: .16em; width: max-content; max-width: 100%; margin-inline: auto; }
.menu li { margin-left: 26px; }
.menu a { text-decoration: none; }
.menu-sub { margin-top: 32px; font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.menu-open { overflow: hidden; }

/* 読み込み */
.loader { position: fixed; inset: 0; z-index: 100; display: none; place-content: center; background: var(--paper); transition: opacity .7s; }
.js-load .loader { display: grid; }
.loader b { writing-mode: vertical-rl; font-family: var(--brush); font-weight: 400; font-size: min(8vh, 64px); line-height: 1; letter-spacing: .1em; animation: loaderIn 1s ease both; }
.loader.done { opacity: 0; pointer-events: none; }
@keyframes loaderIn { from { opacity: 0; } to { opacity: .85; } }

/* 全画面の動画 */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: #1a1816; color: #fff; }
.hero img, .hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero video { opacity: 0; transition: opacity 1s; }
.hero video.playing { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .3); }
/* スマホの縦長の絵は、右寄りの船が切れないように少し右側を見せる */
@media (max-width: 700px) { .hero img, .hero video { object-position: 75% 50%; } }
.hero-title { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: row-reverse; justify-content: center; align-items: center; gap: min(2.4vh, 22px); }
.hero-title b { writing-mode: vertical-rl; font-family: var(--brush); font-weight: 400; font-size: min(9.2vh, 76px); line-height: 1; letter-spacing: .08em; }
.hero-title span { writing-mode: vertical-rl; font-size: 15px; line-height: 1.5; letter-spacing: .24em; }
.hero-news { position: absolute; z-index: 2; left: var(--gutter); bottom: 24px; font-size: 13px; line-height: 1.8; }
.hero-news a { font-size: 14px; }
.hero-line { position: absolute; z-index: 2; left: 50%; bottom: 0; width: 1px; height: 60px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.hero-line::after { content: ""; position: absolute; inset: 0; background: #fff; animation: lineDown 2.4s ease-in-out infinite; }
@keyframes lineDown { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* 本文の枠。右の縦ナビの分を空ける */
.main-col { padding-right: var(--side); padding-left: var(--gutter); }
.inner { max-width: 1120px; margin-inline: auto; }
.narrow { max-width: 780px; margin-inline: auto; }
.sec { padding-block: clamp(72px, 11vw, 150px); }
.mark { display: block; width: 44px; height: 44px; }
.fade { transition: opacity 1.2s ease; }
.js .fade:not(.in) { opacity: 0; }

/* 当事務所について */
.about-art { width: min(380px, 70%); margin-inline: auto; mix-blend-mode: multiply; }
.statement { display: flex; flex-direction: row-reverse; flex-wrap: wrap; justify-content: center; gap: 48px 72px; margin-top: clamp(56px, 8vw, 100px); }
.statement p { writing-mode: vertical-rl; line-height: 2.5; letter-spacing: .2em; font-size: 17px; }
.about-ship { width: min(720px, 100%); margin: clamp(56px, 8vw, 100px) auto 0; mix-blend-mode: multiply; }

/* 大切にしていること(縦書きのスライド) */
.feature-in { display: flex; flex-direction: row-reverse; justify-content: center; gap: clamp(28px, 6vw, 88px); }
.feature-head { display: flex; flex-direction: column; align-items: center; gap: 22px; flex: none; }
.feature-head h2 { writing-mode: vertical-rl; font-size: 22px; letter-spacing: .2em; line-height: 1.5; }
.slides { position: relative; min-height: 400px; width: min(560px, 100%); }
.slide { display: flex; flex-direction: row-reverse; gap: 28px; justify-content: flex-start; }
.slide h3 { writing-mode: vertical-rl; font-size: 19px; letter-spacing: .16em; line-height: 1.6; }
.slide p { writing-mode: vertical-rl; line-height: 2.4; letter-spacing: .16em; font-size: 16px; }
.js .slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s; }
.js .slide.active { opacity: 1; visibility: visible; }
.slide + .slide { margin-top: 48px; }
.js .slide + .slide { margin-top: 0; }
.slide-ctl { display: none; }
.js .slide-ctl { display: flex; align-items: center; gap: 20px; margin-top: 18px; font-size: 15px; }
.slide-ctl button { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; padding: 6px 8px; letter-spacing: 0; }
.slide-ctl .arrow { font-size: 22px; line-height: 1; }
.slide-ctl .num { opacity: .35; }
.slide-ctl .num[aria-current="true"] { opacity: 1; text-decoration: underline; text-underline-offset: .3em; }

/* 保険の一覧(黒地のグリッド) */
.sec-title { font-size: 20px; letter-spacing: .2em; text-align: center; line-height: 1.6; }
.sec-lead { max-width: 34em; margin: 1em auto 0; text-align: center; font-size: 16px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(32px, 4vw, 52px) clamp(16px, 2vw, 28px); margin-top: clamp(36px, 5vw, 60px); }
.tile { display: block; text-decoration: none; }
/* 一覧の絵はクレヨン画(白い紙)。黒地をやめ、細い線で紙の上の1枚に見せる */
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #fdfcf9; box-shadow: 0 0 0 1px rgba(17, 17, 17, .1); transition: opacity .3s; }
.tile:hover img { opacity: .82; }
.tile:hover { color: inherit; }
.tile-row { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 15px; line-height: 1.6; }
.tile em { display: inline-block; margin-top: 8px; padding: .1em 1em; border-radius: 60px; background: var(--ink); color: #fff; font-style: normal; font-size: 12px; line-height: 1.8; }

/* 事故 */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px clamp(16px, 2.4vw, 32px); margin-top: clamp(32px, 4vw, 48px); counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--ink); padding-top: 10px; }
.steps li::before { content: counter(s); display: block; font-size: 26px; line-height: 1.4; }
.steps b { display: block; font-weight: 500; line-height: 1.7; font-size: 17px; }
.steps span { display: block; font-size: 15px; line-height: 1.85; margin-top: .3em; color: var(--muted); }
.center-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(32px, 4vw, 48px); }

/* 黒いボタン */
.btn { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; min-height: 58px; min-width: 240px; padding: .5em 1.6em; background: var(--ink); color: #fff; border-radius: 3px; text-decoration: none; line-height: 1.45; text-align: center; letter-spacing: .12em; transition: background-color .25s; }
.btn:hover { background: #3a3733; color: #fff; }
.btn small { font-size: 12px; letter-spacing: .06em; }
.btn-tel { font-size: 21px; letter-spacing: .06em; }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }

/* 事務所(店舗の見せ方) */
.office-fig { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #1a1816; }
.office-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px clamp(32px, 6vw, 80px); margin-top: clamp(24px, 3vw, 36px); }
.office-name { font-size: 18px; line-height: 1.8; }
/* 「水流」の読みがな。名字の読みを伝えるためだけの小さな文字 */
rt { font-size: .5em; letter-spacing: .1em; }
.office-info > p { margin-bottom: 1em; }
.acc { border-top: 1px solid var(--line); margin-top: 1.4em; }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { display: flex; justify-content: space-between; align-items: center; padding-block: 16px; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 22px; line-height: 1; }
.acc details[open] summary::after { content: "−"; }
.acc details > div { padding-bottom: 16px; font-size: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn-row .btn { flex: 1 1 200px; min-width: 0; }

/* お知らせ */
.news { border-top: 1px solid var(--ink); margin-top: 24px; }
.news li { display: flex; flex-wrap: wrap; gap: 2px 28px; padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 16px; }

/* 下層の見出し */
.page-head { padding-block: clamp(90px, 10vw, 130px) clamp(36px, 5vw, 56px); }
.page-head .inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; align-items: start; }
.page-head h1 { grid-column: 2; grid-row: 1 / span 6; writing-mode: vertical-rl; font-size: clamp(23px, 2.4vw, 28px); letter-spacing: .24em; line-height: 1.5; min-height: 7em; }
.page-head .inner > :not(h1) { grid-column: 1; }
.page-head p { max-width: 36em; }
.page-head .mark { margin-bottom: 18px; }
.body-sec { padding-bottom: clamp(72px, 10vw, 130px); }
.sub-h { font-size: clamp(21px, 2.2vw, 25px); letter-spacing: .14em; line-height: 1.7; margin-bottom: .9em; }
.fine { font-size: 15px; color: var(--muted); line-height: 1.9; }

.ins-group + .ins-group { margin-top: clamp(64px, 8vw, 100px); }
.ins-item { display: grid; grid-template-columns: minmax(0, 12em) minmax(0, 1fr) 150px; gap: 12px clamp(20px, 4vw, 48px); padding-block: 28px; border-top: 1px solid var(--line); scroll-margin-top: 24px; align-items: start; }
.ins-item:first-of-type { border-top-color: var(--ink); }
.ins-item h3 { font-size: 20px; letter-spacing: .1em; line-height: 1.6; }
.ins-item .point { margin-top: .7em; padding-top: .7em; border-top: 1px dotted var(--line); color: var(--muted); font-size: 16px; }
.ins-item img { width: 150px; aspect-ratio: 1; object-fit: cover; background: #111; grid-column: 3; grid-row: 1; }

.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4em; }
.jump a { border: 1px solid currentColor; border-radius: 3px; padding: .35em 1em; text-decoration: none; font-size: 15px; line-height: 1.6; }
.flag-row { display: flex; align-items: center; gap: 12px; margin-top: 1.4em; font-size: 14px; line-height: 1.6; color: var(--muted); }
.flag { width: 42px; height: 28px; flex: none; border: 1px solid var(--line); }
.acc-sec { scroll-margin-top: 24px; }
.acc-sec + .acc-sec { margin-top: clamp(56px, 8vw, 88px); }
.flow { counter-reset: f; border-top: 1px solid var(--ink); }
.flow li { counter-increment: f; display: grid; grid-template-columns: 2.2em minmax(0, 1fr); column-gap: 8px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.flow li::before { content: counter(f); font-size: 26px; line-height: 1.3; grid-row: span 2; }
.flow b { font-weight: 500; font-size: 18px; line-height: 1.7; }
.flow p { grid-column: 2; margin-top: .2em; font-size: 16px; }
.warn { border: 1px solid var(--accent); padding: .9em 1.1em; margin-top: 20px; font-size: 16px; }
.warn b { color: var(--accent); }
.contact-box { background: var(--ink); color: #fff; padding: clamp(24px, 4vw, 40px); margin-top: clamp(56px, 8vw, 88px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; }
.contact-box h2 { font-size: 20px; letter-spacing: .12em; margin-bottom: .3em; }
.contact-box .btn { background: #fff; color: var(--ink); }
.contact-box .btn:hover { background: #e8e4dc; color: var(--ink); }
/* 営業時間外の受付先。黒地の上なので、番号は白で太く、補足は少し薄く */
.contact-box .after-tel { margin: 1em 0 0; display: grid; gap: 1.2em; }
.contact-box .after-tel dt { font-weight: 700; letter-spacing: .08em; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: .3em; margin-bottom: .4em; }
.contact-box .after-tel dd { margin: 0; display: grid; gap: .6em; }
.contact-box .after-tel span { display: flex; flex-direction: column; align-items: flex-start; font-size: 14px; opacity: .9; }
.contact-box .after-tel a, .contact-box .after-note a { color: #fff; }
.contact-box .after-tel span a { font-size: 20px; letter-spacing: .06em; white-space: nowrap; opacity: 1; }
.contact-box .after-tel small { font-size: 13px; opacity: .75; }
.contact-box .after-note { font-size: 14px; opacity: .85; margin-top: 1em; }
.contact-box .draft-note { color: var(--ink); }

.facts { border-top: 1px solid var(--ink); }
.facts > div { display: grid; grid-template-columns: minmax(0, 10em) minmax(0, 1fr); gap: 2px 20px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 15px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; }
.map { display: block; width: 100%; height: 400px; border: 0; background: #e9e5dc; }
.gap-top { margin-top: clamp(56px, 8vw, 88px); scroll-margin-top: 24px; }
.art-small { width: min(280px, 70%); margin-top: 24px; mix-blend-mode: multiply; }

.tel-panel { border: 1px solid var(--ink); padding: clamp(22px, 3vw, 36px); margin-bottom: clamp(44px, 6vw, 64px); }
.tel-panel .btn { margin-block: .6em .8em; font-size: clamp(23px, 4vw, 30px); }
.bring { border-top: 1px solid var(--ink); }
.bring li { padding-block: 9px; border-bottom: 1px solid var(--line); font-size: 16px; }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding-block: 14px; }
.faq summary { cursor: pointer; }
.faq p { margin-top: .5em; font-size: 16px; }

.policy-toc { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; margin-top: 1em; }
.policy-sec { scroll-margin-top: 24px; }
.policy-sec + .policy-sec { margin-top: clamp(48px, 7vw, 72px); }
.policy-sec p + p { margin-top: .8em; }
.policy-sec ol { counter-reset: p; }
.policy-sec ol li { counter-increment: p; display: grid; grid-template-columns: 1.7em minmax(0, 1fr); padding-block: .3em; }
.policy-sec ol li::before { content: counter(p) "."; }
.policy-sec ul li { padding-left: 1.1em; text-indent: -1.1em; padding-block: .2em; }
.policy-sec ul li::before { content: "・"; }

/* フッター */
.site-foot { padding-block: clamp(40px, 5vw, 64px) clamp(90px, 8vw, 90px); font-size: 14px; line-height: 1.9; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 2px 18px; max-width: 42em; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-legal { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

.tel-bar { display: none; }

@media (max-width: 1100px) {
  body { font-size: 16.5px; padding-bottom: 58px; }
  :root { --side: var(--gutter); }
  .side { position: relative; top: 0; right: 0; z-index: 6; display: block; height: 0; }
  .side-logo { position: absolute; top: 28px; left: var(--gutter); z-index: 6; writing-mode: horizontal-tb; font-size: 22px; white-space: nowrap; }
  .at-top .side-logo { display: none; }
  .side-nav { display: none; }
  .on-dark .side { color: inherit; }
  .menu-btn { display: block; position: fixed; top: 30px; right: var(--gutter); z-index: 31; background: var(--ink); color: #fff; border: 0; font: inherit; font-size: 14px; line-height: 1; letter-spacing: .1em; padding: 10px 12px; border-radius: 3px; cursor: pointer; }
  .fix-tel { display: none; }
  .hero-news { bottom: 74px; }
  .tile-row { font-size: 14px; letter-spacing: 0; }
  .hero-line { display: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .office-grid, .split, .contact-box { grid-template-columns: minmax(0, 1fr); }
  .ins-item { grid-template-columns: minmax(0, 1fr) 96px; }
  .ins-item > div { grid-column: 1 / -1; }
  .ins-item img { width: 96px; grid-column: 2; grid-row: 1; }
  .statement { gap: 40px; }
  .statement p { letter-spacing: .14em; line-height: 2.2; font-size: 16px; }
  .feature-in { gap: 18px; }
  .slides { min-height: 370px; flex: 1; width: auto; }
  .slide { gap: 14px; }
  .slide p { letter-spacing: .1em; line-height: 2.1; font-size: 15px; }
  .slide h3 { font-size: 17px; }
  .btn { min-width: 0; width: 100%; }
  .page-head { padding-top: 92px; }
  .map { height: 300px; }
  .tel-bar { display: grid; grid-template-columns: 1.7fr 1fr; position: fixed; inset: auto 0 0 0; z-index: 20; white-space: nowrap; }
  .tel-bar a { display: block; padding: 10px 6px calc(10px + env(safe-area-inset-bottom)); text-align: center; text-decoration: none; color: #fff; line-height: 1.6; }
  .tel-bar .bar-tel { background: var(--ink); }
  .tel-bar .bar-acc { background: var(--accent); }
  .site-foot { padding-bottom: 32px; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .fade:not(.in) { opacity: 1; }
}
@media print {
  .tel-bar, .draft-bar, .loader, .menu, .menu-btn, .side-nav, .fix-tel { display: none !important; }
  body { padding-bottom: 0; }
}
