/* 行政書士渡辺敏之事務所 watanabetoshiyuki.com
   旧サイト（WordPressテーマ Radiate ＋カスタマイズ）の見た目を再現 */

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, ul, li, table, td, th { margin: 0; padding: 0; }

body {
  background: #fff;
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: #444;
}
h1, h2, h3 { font-family: 'Roboto', sans-serif; font-weight: 300; clear: both; }
a { color: #4cb1ff; text-decoration: none; }
a:focus-visible { outline: 2px dotted #4cb1ff; outline-offset: 2px; }
img { max-width: 100%; height: auto; }

.screen-reader-text {
  position: absolute !important; clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  clip: auto; width: auto; height: auto; z-index: 1000000;
  top: 5px; left: 5px; padding: 12px 20px; background: #fff; color: #444; font-size: 14px;
}

/* ===== ヘッダー画像（パララックス） ===== */
#parallax-bg {
  position: fixed; top: 0; left: 0; right: 0; height: 100vh;
  z-index: 1;
  /* 神戸港の夜景（ポートタワー・海洋博物館）モノクロ。Photo: Weichao Tang / Unsplash（Unsplashライセンス） */
  background: url('/img/header-kobe-night.webp') repeat-x center top;
  will-change: transform;
}
#page { position: relative; z-index: 888; }
#masthead { margin-bottom: 450px; }

.header-wrap {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 999999;
  background-color: #fff;
  opacity: .9;
  border-bottom: 1px solid #e1e4e6;
}
.header-wrap::after { content: ''; display: table; clear: both; }

.site-branding { float: left; margin-right: 30px; max-width: 100%; }
.site-title {
  float: left;
  font-family: 'Roboto', sans-serif; font-weight: 300;
  font-size: 36px; line-height: 1.5;
  padding: 5px 20px 5px 25px;
}
.site-title a { color: #444; }
.site-title a:hover { color: #4cb1ff; }

/* ===== メニュー ===== */
.main-navigation { float: right; max-width: 100%; }
.main-navigation ul { list-style: none; }
.main-navigation li {
  float: left; position: relative;
  font-family: 'Roboto', sans-serif;
  font-size: 18px; line-height: 64px;
  border-left: 1px solid #e1e4e6;
}
.main-navigation a { display: block; padding: 0 25px; color: #444; }
.main-navigation a:hover,
.main-navigation a[aria-current="page"] { background-color: #4cb1ff; color: #fff; }

.menu-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 48px; height: 44px; padding: 10px;
  color: #4cb1ff;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block; width: 26px; height: 3px; background: currentColor; position: relative;
}
.menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; left: 0; }
.menu-toggle span::before { top: -8px; }
.menu-toggle span::after { top: 8px; }

/* ===== 本文 ===== */
#content { background-color: #eaeaea; padding-top: 45px; }
.inner-wrap { max-width: 1218px; margin: 0 auto; }
.inner-wrap::after { content: ''; display: table; clear: both; }

.hentry { background-color: #fff; padding: 30px; margin-bottom: 40px; }
.entry-title { font-size: 30px; line-height: 1.5; color: #444; }
.entry-title a { color: #444; }
.entry-content { margin: 15px 0 0; }
.entry-content p { line-height: 1.5; margin-bottom: 15px; }
.entry-content h2 { font-size: 28px; line-height: 34px; margin: 30px 0 10px; }
.entry-content h2:first-child { margin-top: 0; }
.entry-content ul { list-style: none; margin: 0 0 15px; }
.entry-content li::before { content: '– '; }
.entry-content a:hover { text-decoration: underline; }
.em { color: #ff0000; }
.right { text-align: right; }
.indent { padding-left: 30px; }
.small { font-size: 14px; }

/* 表（旧サイトの表をそのまま再現） */
.entry-content table {
  border-collapse: collapse; border-spacing: 0;
  width: 100%; margin: 0 0 24px;
  background-color: #fff;
}
.entry-content td, .entry-content th {
  border: 1px solid #eaeaea; padding: 6px 10px;
  text-align: left; font-weight: 300; vertical-align: top;
}
.entry-content td p { margin: 0; }
.entry-content td p + p { margin-top: 15px; }
.table-office th { width: 26%; background-color: #05f8fc; }
.table-fees thead th { text-align: center; background-color: #00f7ff; }
.table-fees .item { width: 29%; }
.table-fees .kind { width: 21%; }
.table-fees .price { width: 50%; text-align: center; }

.related-links { margin-top: 30px; font-size: 14px; }
.related-links p { margin-bottom: 6px; }
.contact-list { margin: 0 0 24px; }
.contact-list dt { font-family: 'Roboto', sans-serif; font-size: 18px; margin-top: 18px; }
.contact-list dd { margin: 4px 0 0; font-size: 18px; }
.contact-list dd small { font-size: 14px; }
.tel-link { color: #444; }
.link-blue { color: #0000ff; }

/* お問い合わせフォーム（Radiateの入力欄・ボタンの見た目に合わせる） */
.fm { margin: 10px 0 30px; }
.fm-row { margin: 0 0 18px; border: 0; padding: 0; }
.fm-row > label, .fm-row legend { display: block; margin-bottom: 6px; font-weight: 400; }
.fm input:not([type="radio"]), .fm select, .fm textarea {
  width: 100%; max-width: 560px; padding: 8px 10px;
  font: inherit; font-size: 16px; color: #444;
  border: 1px solid #ddd; border-radius: 0; background: #fff;
}
.fm textarea { max-width: 100%; resize: vertical; }
.fm input:focus, .fm select:focus, .fm textarea:focus { outline: 2px solid #4cb1ff; outline-offset: 0; border-color: #4cb1ff; }
.fm .ck { display: inline-flex; align-items: center; gap: 6px; margin: 0 24px 0 0; cursor: pointer; }
.fm .ck input { width: 18px; height: 18px; margin: 0; accent-color: #4cb1ff; }
.rq, .op { display: inline-block; margin-left: 8px; padding: 0 6px; font-size: 12px; line-height: 20px; vertical-align: 2px; font-family: 'Roboto', sans-serif; }
.rq { background: #ff0000; color: #fff; }
.op { background: #ddd; color: #444; }
.hpx { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fm .cf-turnstile { margin: 0 0 12px; min-height: 65px; }
.fm-n { font-size: 14px; }
.fm-err { color: #ff0000; font-weight: 400; min-height: 1em; }
.fm button {
  font: inherit; font-family: 'Roboto', sans-serif; font-size: 18px;
  background: #4cb1ff; color: #fff; border: 0; padding: 12px 40px; cursor: pointer;
}
.fm button:hover { background: #3a9de8; }
.fm button:disabled { opacity: .6; cursor: default; }
.fm-done { border: 1px solid #4cb1ff; padding: 20px; }
.fm-done h3 { font-size: 22px; margin-bottom: 10px; }
.fm-done p { margin: 6px 0; }

/* ===== フッター ===== */
#colophon { border-top: 1px solid #e1e4e6; padding: 20px 0; background-color: #fff; }
#colophon .site-info { text-align: center; font-size: 14px; }
#colophon .site-info a { color: #4cb1ff; }

/* トップへ戻る（旧サイトの右下ボタン） */
#page-top {
  position: fixed; right: 25px; bottom: 24px; z-index: 999;
  width: 40px; height: 38px;
  background: rgba(0, 0, 0, .8);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
#page-top.show { opacity: 1; visibility: visible; }
#page-top:hover { background: rgba(0, 0, 0, .6); }
#page-top::before {
  content: ''; width: 12px; height: 12px; margin-top: 6px;
  border-top: 2px solid #fff; border-left: 2px solid #fff; transform: rotate(45deg);
}

/* ===== レスポンシブ ===== */
@media screen and (max-width: 1308px) {
  .inner-wrap { width: 96%; }
}
@media screen and (max-width: 768px) {
  .site-branding { margin-right: 0; max-width: calc(100% - 80px); }
  .main-navigation { margin: 10px 25px 0 0; position: static; }
  .menu-toggle { display: block; }
  .main-navigation ul {
    display: none;
    position: absolute; top: 100%; right: 60px; width: 200px;
    background-color: #fff;
  }
  .main-navigation.toggled ul { display: block; }
  .main-navigation li { float: none; width: 100%; line-height: 40px; border-left: 0; border-top: 1px solid #e1e4e6; }
  .main-navigation a { padding: 0 22px; }
}
@media screen and (max-width: 600px) {
  #masthead { margin-bottom: 382px; }
  /* スマホではポートタワーと海洋博物館が入る位置を切り出す */
  #parallax-bg { background-position: -490px top; }
  .site-title { font-size: 22px; padding: 16px 10px 12px 16px; }
  .main-navigation { margin: 10px 8px 0 0; }
  .main-navigation ul { right: 0; width: 100%; max-width: 260px; }
  .hentry { padding: 24px 20px; margin-bottom: 30px; }
  .entry-title { font-size: 26px; }
  .table-fees .item { width: 30%; }
  .table-fees .kind { width: 36%; }
  .table-fees .price { width: 34%; }
  .entry-content h2 { font-size: 21px; line-height: 1.5; }
  #content { padding-top: 24px; }
  /* 表：見出し列を上、内容を下に積む */
  .table-office th, .table-office td { display: block; width: 100%; }
  .table-office tr { display: block; margin-bottom: 0; }
  .table-office td { border-top: 0; }
  .indent { padding-left: 0; }
  .table-fees td, .table-fees th { padding: 6px 6px; font-size: 14px; }
  #page-top { right: 12px; bottom: 12px; }
  .fm button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #parallax-bg { transform: none !important; }
  html { scroll-behavior: auto; }
}
