:root {
  --blue: #0f5fb8;
  --blue-dark: #08437f;
  --blue-light: #eaf4ff;
  --yellow: #ffd84d;
  --orange: #ff9f1c;
  --line-green: #06c755;
  --text: #263238;
  --muted: #667085;
  --bg: #f7fbff;
  --white: #ffffff;
  --line: #d8e7f5;
  --shadow: 0 12px 30px rgba(15, 95, 184, 0.12);
  --radius: 20px;
}

body.season-enabled.theme-month-1 { --season-main: #2f80ed; --season-accent: #f2f7ff; --season-highlight: #dbeafe; --season-emoji: "🎍"; }
body.season-enabled.theme-month-2 { --season-main: #c05621; --season-accent: #fff4ed; --season-highlight: #fed7aa; --season-emoji: "☕"; }
body.season-enabled.theme-month-3 { --season-main: #16a34a; --season-accent: #f0fdf4; --season-highlight: #bbf7d0; --season-emoji: "🌱"; }
body.season-enabled.theme-month-4 { --season-main: #db7093; --season-accent: #fff1f5; --season-highlight: #fbcfe8; --season-emoji: "🌸"; }
body.season-enabled.theme-month-5 { --season-main: #2e7d32; --season-accent: #f1f8e9; --season-highlight: #c8e6c9; --season-emoji: "🌿"; }
body.season-enabled.theme-month-6 { --season-main: #3b82f6; --season-accent: #eff6ff; --season-highlight: #bfdbfe; --season-emoji: "☔"; }
body.season-enabled.theme-month-7 { --season-main: #f59e0b; --season-accent: #fffbeb; --season-highlight: #fde68a; --season-emoji: "🌻"; }
body.season-enabled.theme-month-8 { --season-main: #0284c7; --season-accent: #f0f9ff; --season-highlight: #bae6fd; --season-emoji: "🎐"; }
body.season-enabled.theme-month-9 { --season-main: #b45309; --season-accent: #fff7ed; --season-highlight: #fed7aa; --season-emoji: "🍁"; }
body.season-enabled.theme-month-10 { --season-main: #ea580c; --season-accent: #fff7ed; --season-highlight: #fdba74; --season-emoji: "🎃"; }
body.season-enabled.theme-month-11 { --season-main: #92400e; --season-accent: #fffbeb; --season-highlight: #fde68a; --season-emoji: "🍂"; }
body.season-enabled.theme-month-12 { --season-main: #2563eb; --season-accent: #eff6ff; --season-highlight: #bfdbfe; --season-emoji: "⛄"; }

body.theme-standard .season-message { display: none; }
body.theme-standard .hero::after { content: "⚡"; }


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.top-bar { background: var(--blue-dark); color: var(--white); font-size: 14px; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.top-file-link,
.top-webmail-link { display: inline-block; padding: 2px 8px; border-radius: 999px; color: var(--white); font-size: 12px; font-weight: 800; line-height: 1.5; }
.top-file-link { background: rgba(255,255,255,0.16); }
.top-file-link:hover { background: rgba(255,255,255,0.28); }
.top-webmail-link { background: #2f80ed; box-shadow: 0 2px 8px rgba(47,128,237,0.25); }
.top-webmail-link:hover { background: #1f6fd1; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); box-shadow: 0 2px 14px rgba(0,0,0,0.06); }
.header-inner { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--blue-dark); letter-spacing: 0.03em; min-width: 0; flex: 0 1 auto; }
.logo-text { min-width: 0; }
.logo-mark { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, var(--yellow), var(--orange)); display: grid; place-items: center; color: var(--blue-dark); font-size: 24px; box-shadow: 0 8px 18px rgba(255,159,28,0.28); }
.logo small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; line-height: 1.2; white-space: nowrap; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 13px; font-weight: 700; font-size: 14px; flex: 0 0 auto; }
.nav a { position: relative; white-space: nowrap; word-break: keep-all; line-height: 1.2; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 3px; border-radius: 999px; background: var(--yellow); transition: 0.2s; }
.nav a:hover::after { width: 100%; }
.tel-button, .line-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; border-radius: 999px; color: var(--white); font-weight: 800; font-size: 14px; box-shadow: 0 8px 20px rgba(15,95,184,0.25); white-space: nowrap; }
.tel-button { background: var(--blue); }
.line-button { background: var(--line-green); box-shadow: 0 8px 20px rgba(6,199,85,0.24); }
.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.hero { position: relative; overflow: hidden; background: radial-gradient(circle at 15% 18%, rgba(255,216,77,0.38), transparent 26%), radial-gradient(circle at 82% 10%, color-mix(in srgb, var(--season-main, #0f5fb8) 18%, transparent), transparent 24%), linear-gradient(135deg, #ffffff 0%, var(--season-accent, #edf7ff) 100%); padding: 78px 0 72px; }
.hero::before { content: ""; position: absolute; right: -120px; bottom: -170px; width: 420px; height: 420px; border-radius: 50%; background: color-mix(in srgb, var(--season-main, #0f5fb8) 10%, transparent); }
.hero::after { content: var(--season-emoji, "⚡"); position: absolute; right: clamp(18px, 5vw, 78px); top: 86px; font-size: clamp(42px, 7vw, 86px); opacity: 0.12; line-height: 1; transform: rotate(8deg); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; background: var(--white); border: 1px solid color-mix(in srgb, var(--season-main, #0f5fb8) 24%, var(--line)); color: var(--blue-dark); font-weight: 800; padding: 7px 14px; box-shadow: 0 8px 18px rgba(15,95,184,0.08); }
.hero h1 { margin: 22px 0 18px; font-size: clamp(34px, 5vw, 58px); line-height: 1.25; color: var(--blue-dark); letter-spacing: 0.02em; }
.hero-copy-line { display: block; }
.hero-copy-accent { display: inline-block; background: linear-gradient(transparent 62%, rgba(255,216,77,0.85) 62%); }
.hero-copy-keep { display: inline-block; white-space: nowrap; }
.hero-copy-keep + .hero-copy-keep { margin-left: .15em; }
.hero-lead { font-size: clamp(17px, 2vw, 20px); color: #3f4f5f; margin: 0 0 16px; max-width: 680px; }
.service-area-box { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 16px; border-radius: 18px; background: rgba(255,255,255,0.88); border: 1px solid color-mix(in srgb, var(--season-main, #0f5fb8) 22%, var(--line)); box-shadow: 0 8px 18px rgba(15,95,184,0.08); max-width: 680px; }
.service-area-title { flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; background: var(--season-highlight, var(--blue-light)); color: var(--blue-dark); font-size: 13px; font-weight: 900; white-space: nowrap; }
.service-area-text { color: #344054; font-size: 15px; font-weight: 800; line-height: 1.65; }
.pc-only { display: none; }
.season-message { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; padding: 10px 15px; border-radius: 999px; background: rgba(255,255,255,0.82); border: 1px solid color-mix(in srgb, var(--season-main, #0f5fb8) 26%, var(--line)); color: #344054; font-weight: 800; box-shadow: 0 8px 18px rgba(15,95,184,0.08); }
.season-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: var(--season-highlight, var(--blue-light)); color: var(--season-main, var(--blue-dark)); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.primary-button, .secondary-button, .line-cta-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 13px 22px; border-radius: 999px; font-weight: 900; transition: transform 0.2s, box-shadow 0.2s; border: 0; cursor: pointer; font-family: inherit; font-size: 16px; }
.primary-button { background: linear-gradient(135deg, var(--orange), #ffbd45); color: #3b2600; box-shadow: 0 10px 24px rgba(255,159,28,0.28); }
.secondary-button { background: var(--white); color: var(--blue-dark); border: 2px solid var(--line); }
.line-cta-button { background: var(--line-green); color: var(--white); box-shadow: 0 10px 24px rgba(6,199,85,0.24); }
.primary-button:hover, .secondary-button:hover, .line-cta-button:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(15,95,184,0.14); }
.hero-card { background: var(--white); border-radius: 28px; padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero-illustration { min-height: 310px; border-radius: 24px; overflow: hidden; box-shadow: 0 10px 26px rgba(8,67,127,0.14); }
.hero-illustration img { width: 100%; height: 100%; min-height: 310px; object-fit: cover; object-position: center; }
.info-list { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.info-list li { display: flex; gap: 10px; align-items: flex-start; color: #435466; font-weight: 700; }

.section { padding: 78px 0; }
.section-white { background: var(--white); }
.section-title { text-align: center; margin-bottom: 38px; }
.section-title .en { display: inline-block; color: var(--season-main, var(--blue)); font-weight: 900; letter-spacing: 0.08em; font-size: 13px; margin-bottom: 8px; }
.section-title h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); color: var(--blue-dark); line-height: 1.35; }
.section-title p { margin: 12px auto 0; color: var(--muted); max-width: 720px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); padding: 26px; box-shadow: 0 8px 22px rgba(15,95,184,0.08); transition: transform 0.2s, box-shadow 0.2s; }
.section-white .service-card { background: #fbfdff; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: var(--blue-light); color: var(--blue-dark); font-size: 28px; margin-bottom: 16px; }
.service-card h3 { margin: 0 0 8px; font-size: 21px; color: var(--blue-dark); }
.service-card p { margin: 0; color: #536475; }
.service-example { margin-top: 12px !important; padding-top: 12px; border-top: 1px dashed var(--line); color: #344054 !important; font-size: 14px; font-weight: 700; line-height: 1.75; }
.about-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 34px; align-items: center; }
.about-photo-gallery { display: grid; grid-template-columns: 1fr; gap: 18px; }

.line-consult-section { padding-top: 0; background: var(--white); }
.line-consult-box { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; background: linear-gradient(135deg, #f0fff6 0%, #ffffff 100%); border: 1px solid rgba(6,199,85,0.22); border-radius: 28px; padding: 28px; box-shadow: 0 10px 26px rgba(6,199,85,0.10); }
.line-consult-icon { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; background: var(--line-green); color: #fff; font-weight: 900; letter-spacing: .02em; box-shadow: 0 10px 22px rgba(6,199,85,0.22); }
.line-consult-box .en { display: inline-block; color: #048d3c; font-weight: 900; letter-spacing: .08em; font-size: 12px; margin-bottom: 4px; }
.line-consult-box h2 { margin: 0 0 8px; color: var(--blue-dark); font-size: clamp(24px, 3vw, 34px); line-height: 1.35; }
.line-consult-box p { margin: 0; color: #435466; }

.about-photo { min-height: 330px; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--white); }
.about-photo img { width: 100%; height: 100%; min-height: 330px; object-fit: cover; object-position: center; }
.about-text { background: var(--white); border-radius: 26px; padding: 34px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.about-text h2 { margin: 0 0 14px; font-size: clamp(26px, 4vw, 38px); color: var(--blue-dark); line-height: 1.35; }
.about-text p { margin: 0 0 18px; color: #4a5b6c; }
.point-list { padding: 0; margin: 20px 0 0; list-style: none; display: grid; gap: 12px; }
.point-list li { background: var(--blue-light); border-radius: 16px; padding: 12px 14px; font-weight: 800; color: var(--blue-dark); }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.flow-card { position: relative; background: var(--white); border-radius: var(--radius); padding: 26px 22px; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(15,95,184,0.08); }
.flow-card::before { counter-increment: step; content: "0" counter(step); display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--yellow); color: var(--blue-dark); font-weight: 900; margin-bottom: 14px; }
.flow-card h3 { margin: 0 0 8px; color: var(--blue-dark); font-size: 20px; }
.flow-card p { margin: 0; color: #536475; }
.company-box { background: var(--white); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; }
.company-info { padding: 34px; }
.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td { padding: 16px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.company-table th { width: 110px; color: var(--blue-dark); font-weight: 900; }
.map-placeholder { min-height: 360px; background: var(--blue-light); }
.map-placeholder iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.contact { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: var(--white); border-radius: 32px; padding: 44px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; box-shadow: 0 18px 44px rgba(15,95,184,0.28); }
.contact h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 42px); line-height: 1.35; }
.contact p { margin: 0; opacity: 0.92; }
.contact-actions { display: grid; gap: 12px; min-width: 280px; }
.contact .primary-button { background: var(--yellow); color: #2f2500; }
.contact .secondary-button { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.12); color: var(--white); }
.contact .line-cta-button { background: var(--line-green); color: var(--white); }
.site-footer { background: #072f59; color: var(--white); padding: 34px 0; text-align: center; }
.footer-logo { font-weight: 900; font-size: 20px; margin-bottom: 8px; }
.copyright { color: rgba(255,255,255,0.7); font-size: 13px; margin-top: 18px; }
.mobile-contact-bar { display: none; }

.blog-list-card, .blog-detail-card, .admin-card { background: var(--white); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); padding: 28px; }
.latest-blog-list, .blog-index-list { list-style: none; padding: 0; margin: 0; }
.latest-blog-list li, .blog-index-list li { border-bottom: 1px solid var(--line); }
.latest-blog-list li:last-child, .blog-index-list li:last-child { border-bottom: 0; }
.latest-blog-list a, .blog-index-list a { display: flex; gap: 18px; align-items: center; padding: 16px 4px; font-weight: 800; color: var(--blue-dark); }
.latest-blog-list time, .blog-index-list time { color: var(--muted); font-size: 14px; min-width: 104px; font-weight: 700; }
.blog-more { margin-top: 22px; text-align: center; }
.blog-admin-link { margin-top: 18px; text-align: right; }
.blog-admin-link a { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 6px 13px; border-radius: 999px; background: #f2f4f7; color: #475467; font-size: 13px; font-weight: 800; border: 1px solid #d0d5dd; }
.blog-admin-link a:hover { background: #e4e7ec; color: var(--blue-dark); }
.blog-admin-link-bottom { margin-top: 24px; }
.table-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.muted-button { background: #f2f4f7; color: #475467; border: 1px solid #d0d5dd; }
.publish-button { background: #ecfdf3; color: #027a48; border: 1px solid #abefc6; }

.empty-message { text-align: center; color: var(--muted); margin: 0; }
.page-hero { background: linear-gradient(135deg, #ffffff 0%, #edf7ff 100%); padding: 54px 0; text-align: center; }
.page-hero h1 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 44px); color: var(--blue-dark); }
.page-hero p { margin: 0; color: var(--muted); }
.blog-detail-card h1 { margin: 0 0 8px; color: var(--blue-dark); line-height: 1.4; }
.blog-date { color: var(--muted); font-weight: 700; margin-bottom: 24px; }
.blog-body { white-space: pre-wrap; font-size: 17px; line-height: 2; }
.back-link { margin-top: 26px; }

.admin-page { padding: 56px 0; }
.admin-header { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.admin-header h1 { margin: 0; color: var(--blue-dark); }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form-grid { display: grid; gap: 16px; }
.form-row label { display: block; font-weight: 900; color: var(--blue-dark); margin-bottom: 6px; }
.input, .textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-family: inherit; font-size: 16px; background: #fbfdff; }
.textarea { min-height: 260px; resize: vertical; }
.checkbox-row { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--blue-dark); }
.validation { color: #b42318; font-weight: 700; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.admin-table th { color: var(--blue-dark); font-weight: 900; }
.admin-table .status { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 900; background: var(--blue-light); color: var(--blue-dark); }
.admin-table .status.private { background: #fff1f3; color: #b42318; }
.small-button, .danger-button { display: inline-flex; min-height: 38px; padding: 7px 12px; border-radius: 999px; align-items: center; justify-content: center; font-weight: 900; border: 0; font-family: inherit; cursor: pointer; }
.small-button { background: var(--blue-light); color: var(--blue-dark); }
.danger-button { background: #fff1f3; color: #b42318; }
.login-wrap { max-width: 520px; margin: 0 auto; }
.login-note { color: var(--muted); font-size: 14px; }


.theme-setting-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.theme-setting-card { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fbfdff; cursor: pointer; transition: box-shadow .2s, transform .2s, border-color .2s; }
.theme-setting-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--blue-light); }
.theme-setting-card input { margin-top: 6px; transform: scale(1.2); }
.theme-setting-card strong { display: block; color: var(--blue-dark); font-size: 18px; margin-bottom: 4px; }
.theme-setting-card small { display: block; color: var(--muted); line-height: 1.7; }

@media (max-width: 1040px) {
  .nav { display: none; }
}
@media (max-width: 1120px) {
  .container { width: min(1120px, calc(100% - 24px)); }
  .header-inner { gap: 12px; }
  .nav { gap: 10px; font-size: 13px; }
  .logo { gap: 9px; }
  .logo-mark { width: 40px; height: 40px; font-size: 22px; border-radius: 12px; }
  .logo-text { font-size: 15px; }
  .logo small { font-size: 10.5px; }
  .tel-button, .line-button { padding: 8px 11px; font-size: 13px; }
  .header-actions { gap: 6px; }
}

@media (max-width: 980px) {
  .nav { display: none; }
}

@media (max-width: 900px) {
  .line-consult-box { grid-template-columns: 1fr; align-items: start; }
  .line-consult-box .line-cta-button { width: fit-content; }
  .hero-grid, .about-grid, .company-box, .contact { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .contact-actions { min-width: 0; }
}
@media (max-width: 640px) {
  .line-consult-box { padding: 22px; }
  .line-consult-box .line-cta-button { width: 100%; }
  body { padding-bottom: 74px; }
  .season-message { align-items: flex-start; border-radius: 18px; padding: 10px 12px; }
  .hero::after { top: 52px; right: 18px; }
  .top-bar { font-size: 12px; }
  .top-bar .container { justify-content: center; text-align: center; }
  .header-inner { min-height: 66px; }
  .logo-mark { width: 40px; height: 40px; }
  .logo-text { font-size: 15px; }
  .header-actions { display: none; }
  .hero { padding: 48px 0 54px; }
  .hero h1 { font-size: clamp(28px, 8vw, 38px); line-height: 1.35; }
  .hero-copy-accent { display: block; width: fit-content; max-width: 100%; }
  .hero-card { padding: 18px; }
  .hero-illustration, .hero-illustration img { min-height: 230px; }
  .about-photo-gallery { gap: 14px; }
  .about-photo, .about-photo img { min-height: 240px; }
  .section { padding: 56px 0; }
  .service-grid, .flow { grid-template-columns: 1fr; }
  .about-text, .company-info, .contact { padding: 24px; }
  .company-table th, .company-table td { display: block; width: 100%; padding: 10px 0; }
  .company-table th { padding-bottom: 0; }
  .mobile-contact-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; background: rgba(255,255,255,0.96); box-shadow: 0 -6px 18px rgba(0,0,0,0.12); }
  .mobile-contact-bar a { display: grid; place-items: center; min-height: 48px; border-radius: 14px; font-weight: 900; }
  .mobile-contact-bar .call { background: var(--orange); color: #332000; }
  .mobile-contact-bar .line { background: var(--line-green); color: var(--white); }
  .mobile-contact-bar .map { background: var(--blue); color: var(--white); }
  .latest-blog-list a, .blog-index-list a { align-items: flex-start; flex-direction: column; gap: 2px; }
  .latest-blog-list time, .blog-index-list time { min-width: 0; }
  .admin-table { display: block; overflow-x: auto; white-space: nowrap; }
}

.admin-lead { margin: 0 0 20px; color: #536475; }
.validation-summary { color: #b42318; font-weight: 800; margin-bottom: 16px; }
.success-message { margin-bottom: 16px; padding: 14px 16px; border-radius: 16px; background: #ecfdf3; color: #027a48; font-weight: 900; border: 1px solid #abefc6; }

.form-help { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.blog-image-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0 28px; }
.blog-image-button { width: 100%; aspect-ratio: 4 / 3; padding: 0; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(15,95,184,0.10); background: #fff; overflow: hidden; cursor: zoom-in; display: flex; align-items: center; justify-content: center; }
.blog-image-button img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; background: #fff; }
.blog-image-button:hover { box-shadow: 0 14px 28px rgba(15,95,184,0.18); transform: translateY(-1px); }
.image-lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 0, 0, 0.78); }
.image-lightbox.is-open { display: flex; }
.image-lightbox img { max-width: min(1100px, 96vw); max-height: 86vh; object-fit: contain; border-radius: 18px; background: #fff; box-shadow: 0 18px 48px rgba(0,0,0,0.28); }
.image-lightbox-close { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border: 0; border-radius: 999px; background: rgba(255,255,255,0.95); color: #111827; font-size: 28px; line-height: 1; cursor: pointer; font-weight: 900; }
.image-lightbox-close:hover { background: #fff; }

.registered-images { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.registered-images h2 { margin: 0 0 14px; color: var(--blue-dark); font-size: 20px; }
.admin-image-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.admin-image-card { border: 1px solid var(--line); border-radius: 18px; padding: 10px; background: #fbfdff; }
.admin-image-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 12px; margin-bottom: 10px; background: #fff; }
.admin-image-card .danger-button { width: 100%; }

@media (max-width: 1120px) {
  .container { width: min(1120px, calc(100% - 24px)); }
  .header-inner { gap: 12px; }
  .nav { gap: 10px; font-size: 13px; }
  .logo { gap: 9px; }
  .logo-mark { width: 40px; height: 40px; font-size: 22px; border-radius: 12px; }
  .logo-text { font-size: 15px; }
  .logo small { font-size: 10.5px; }
  .tel-button, .line-button { padding: 8px 11px; font-size: 13px; }
  .header-actions { gap: 6px; }
}

@media (max-width: 980px) {
  .nav { display: none; }
}

@media (max-width: 900px) {
  .line-consult-box { grid-template-columns: 1fr; align-items: start; }
  .line-consult-box .line-cta-button { width: fit-content; }
  .admin-image-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .line-consult-box { padding: 22px; }
  .line-consult-box .line-cta-button { width: 100%; }
  .blog-image-gallery { grid-template-columns: 1fr; }
  .admin-image-grid { grid-template-columns: 1fr; }
}



.blog-preview-modal { position: fixed; inset: 0; z-index: 260; display: none; align-items: center; justify-content: center; padding: 22px; background: rgba(7, 47, 89, 0.72); backdrop-filter: blur(4px); }
.blog-preview-modal.is-open { display: flex; }
.blog-preview-dialog { position: relative; width: min(860px, 96vw); max-height: 90vh; overflow: auto; background: #fff; border-radius: 28px; padding: 28px; box-shadow: 0 24px 70px rgba(0,0,0,0.28); border: 1px solid var(--line); }
.blog-preview-close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border: 0; border-radius: 999px; background: #f2f4f7; color: #344054; font-size: 26px; line-height: 1; cursor: pointer; font-weight: 900; }
.blog-preview-close:hover { background: #e4e7ec; }
.blog-preview-head { padding-right: 48px; margin-bottom: 18px; }
.preview-label { display: inline-flex; padding: 4px 11px; border-radius: 999px; background: var(--blue-light); color: var(--blue-dark); font-size: 13px; font-weight: 900; margin-bottom: 8px; }
.blog-preview-head h2 { margin: 0 0 8px; color: var(--blue-dark); font-size: clamp(25px, 4vw, 36px); line-height: 1.4; overflow-wrap: anywhere; }
.preview-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--muted); font-weight: 800; }
.preview-status { display: inline-flex; align-items: center; justify-content: center; padding: 3px 10px; border-radius: 999px; background: #ecfdf3; color: #027a48; font-size: 13px; font-weight: 900; }
.preview-status.private { background: #fff1f3; color: #b42318; }
.preview-image-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 18px 0; }
.preview-image-item { aspect-ratio: 4 / 3; border-radius: 18px; border: 1px solid var(--line); background: #fbfdff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.preview-image-item img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.preview-no-image { margin: 12px 0; color: var(--muted); font-weight: 700; }
.preview-body { margin-top: 18px; padding: 20px; border-radius: 20px; background: #fbfdff; border: 1px solid var(--line); white-space: pre-wrap; font-size: 16px; line-height: 2; overflow-wrap: anywhere; }
.preview-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .line-consult-box { padding: 22px; }
  .line-consult-box .line-cta-button { width: 100%; }
  .blog-preview-dialog { padding: 22px; border-radius: 22px; }
  .preview-image-grid { grid-template-columns: 1fr; }
  .preview-actions { justify-content: stretch; }
  .preview-actions .primary-button, .preview-actions .secondary-button { width: 100%; }
}

.access-log-filter { margin-bottom: 18px; }
.access-log-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  align-items: end;
}
.access-log-form .form-group label { display: block; font-weight: 900; color: var(--blue-dark); margin-bottom: 6px; }
.access-log-form input { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; font-family: inherit; font-size: 15px; background: #fbfdff; }
.access-log-keyword { grid-column: span 2; }
.suspicious-check { min-width: 170px; }
.form-actions-inline {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding-top: 2px;
}
.hint-text { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.table-scroll { width: 100%; overflow-x: auto; }
.access-log-table { min-width: 1320px; table-layout: fixed; }
.access-log-table th, .access-log-table td { vertical-align: top; }
.access-log-table th:nth-child(1), .access-log-table td:nth-child(1) { width: 190px; min-width: 190px; }
.access-log-table th:nth-child(2), .access-log-table td:nth-child(2) { width: 175px; min-width: 175px; }
.access-log-table th:nth-child(3), .access-log-table td:nth-child(3) { width: 385px; }
.access-log-table th:nth-child(4), .access-log-table td:nth-child(4) { width: 70px; min-width: 70px; text-align: center; }
.access-log-table th:nth-child(5), .access-log-table td:nth-child(5) { width: auto; }
.access-log-table td.nowrap { overflow: hidden; text-overflow: ellipsis; }
.nowrap { white-space: nowrap; }
.access-url { overflow-wrap: anywhere; word-break: break-word; }
.method-badge { display: inline-block; margin-right: 8px; padding: 2px 7px; border-radius: 999px; background: var(--blue-light); color: var(--blue-dark); font-size: 12px; font-weight: 900; }
.referer { margin-top: 5px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.user-agent { color: #536475; font-size: 13px; overflow-wrap: anywhere; word-break: break-word; line-height: 1.55; }


@media (max-width: 1120px) {
  .container { width: min(1120px, calc(100% - 24px)); }
  .header-inner { gap: 12px; }
  .nav { gap: 10px; font-size: 13px; }
  .logo { gap: 9px; }
  .logo-mark { width: 40px; height: 40px; font-size: 22px; border-radius: 12px; }
  .logo-text { font-size: 15px; }
  .logo small { font-size: 10.5px; }
  .tel-button, .line-button { padding: 8px 11px; font-size: 13px; }
  .header-actions { gap: 6px; }
}

@media (max-width: 980px) {
  .nav { display: none; }
}

@media (max-width: 900px) {
  .line-consult-box { grid-template-columns: 1fr; align-items: start; }
  .line-consult-box .line-cta-button { width: fit-content; }
  .access-log-form { grid-template-columns: 1fr 1fr; }
  .access-log-keyword, .form-actions-inline { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .line-consult-box { padding: 22px; }
  .line-consult-box .line-cta-button { width: 100%; }
  .access-log-form { grid-template-columns: 1fr; }
  .access-log-keyword, .form-actions-inline { grid-column: auto; }
  .form-actions-inline { justify-content: stretch; }
  .form-actions-inline .primary-button,
  .form-actions-inline .secondary-button { width: 100%; }
}

.admin-bottom-section { padding: 22px 0 36px; background: var(--white); text-align: right; }
.admin-bottom-button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 16px; border-radius: 999px; background: #f2f4f7; color: #475467; font-size: 13px; font-weight: 800; border: 1px solid #d0d5dd; }
.admin-bottom-button:hover { background: #e4e7ec; color: var(--blue-dark); }
.admin-menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.admin-menu-card { display: flex; flex-direction: column; gap: 8px; min-height: 170px; padding: 24px; border-radius: 24px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--blue-dark); transition: transform .2s, box-shadow .2s; }
.admin-menu-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(15,95,184,.16); }
.admin-menu-card strong { font-size: 20px; }
.admin-menu-card small { color: var(--muted); font-weight: 700; line-height: 1.6; }
.admin-menu-icon { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: var(--blue-light); font-size: 26px; }
@media (max-width: 1120px) {
  .container { width: min(1120px, calc(100% - 24px)); }
  .header-inner { gap: 12px; }
  .nav { gap: 10px; font-size: 13px; }
  .logo { gap: 9px; }
  .logo-mark { width: 40px; height: 40px; font-size: 22px; border-radius: 12px; }
  .logo-text { font-size: 15px; }
  .logo small { font-size: 10.5px; }
  .tel-button, .line-button { padding: 8px 11px; font-size: 13px; }
  .header-actions { gap: 6px; }
}

@media (max-width: 980px) {
  .nav { display: none; }
}

@media (max-width: 900px) {
  .line-consult-box { grid-template-columns: 1fr; align-items: start; }
  .line-consult-box .line-cta-button { width: fit-content; } .admin-menu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .line-consult-box { padding: 22px; }
  .line-consult-box .line-cta-button { width: 100%; } .admin-bottom-section { text-align: center; padding-bottom: 86px; } .admin-menu-grid { grid-template-columns: 1fr; } }


.admin-section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.admin-section-title-row h2 {
  margin: 0 0 4px;
  color: var(--blue-dark);
  font-size: 22px;
}
.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-weight: 900;
  white-space: nowrap;
}
.inline-form {
  display: inline-flex;
  margin: 0;
}
.blocked-ip-card {
  border-left: 5px solid var(--orange);
}
.blocked-ip-table td,
.blocked-ip-table th {
  vertical-align: middle;
}


/* External application log tables */
.external-log-table {
  table-layout: fixed;
}
.external-log-table th,
.external-log-table td {
  vertical-align: top;
}
.external-log-table td.nowrap {
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-exchange-log-table {
  min-width: 1280px;
}
.file-exchange-log-table th:nth-child(1),
.file-exchange-log-table td:nth-child(1) { width: 185px; min-width: 185px; }
.file-exchange-log-table th:nth-child(2),
.file-exchange-log-table td:nth-child(2) { width: 120px; min-width: 120px; }
.file-exchange-log-table th:nth-child(3),
.file-exchange-log-table td:nth-child(3) { width: 64px; min-width: 64px; text-align: center; }
.file-exchange-log-table th:nth-child(4),
.file-exchange-log-table td:nth-child(4) { width: 175px; min-width: 175px; }
.file-exchange-log-table th:nth-child(5),
.file-exchange-log-table td:nth-child(5) { width: 470px; }
.file-exchange-log-table th:nth-child(6),
.file-exchange-log-table td:nth-child(6) { width: auto; }
.webmail-log-table {
  min-width: 1360px;
}
.webmail-log-table th:nth-child(1),
.webmail-log-table td:nth-child(1) { width: 185px; min-width: 185px; }
.webmail-log-table th:nth-child(2),
.webmail-log-table td:nth-child(2) { width: 165px; min-width: 165px; }
.webmail-log-table th:nth-child(3),
.webmail-log-table td:nth-child(3) { width: 105px; min-width: 105px; text-align: center; }
.webmail-log-table th:nth-child(4),
.webmail-log-table td:nth-child(4) { width: 390px; }
.webmail-log-table th:nth-child(5),
.webmail-log-table td:nth-child(5) { width: 80px; min-width: 80px; text-align: center; }
.webmail-log-table th:nth-child(6),
.webmail-log-table td:nth-child(6) { width: auto; }
.success-cell,
.status-code-cell {
  font-weight: 900;
  color: var(--blue-dark);
}
.access-log-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 15px;
  background: #fbfdff;
}

@media (max-width: 640px) {
  .line-consult-box { padding: 22px; }
  .line-consult-box .line-cta-button { width: 100%; }
  .theme-setting-options { grid-template-columns: 1fr; }
}

/* Works */
.works-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 8px 22px rgba(15,95,184,0.08); transition: transform .2s, box-shadow .2s; }
.work-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.work-card-link { display: block; height: 100%; }
.work-card-image { aspect-ratio: 4 / 3; background: var(--blue-light); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.work-card-image img { width: 100%; height: 100%; object-fit: cover; }
.work-card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 46px; color: var(--blue-dark); background: repeating-linear-gradient(135deg, #ffffff 0 18px, #f1f8ff 18px 36px); }
.work-card-body { padding: 20px; }
.work-card-meta, .work-detail-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.work-card-meta span, .work-detail-meta span { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 9px; background: var(--blue-light); color: var(--blue-dark); }
.work-card h2, .work-card h3 { margin: 0 0 8px; color: var(--blue-dark); font-size: 20px; line-height: 1.45; }
.work-card p { margin: 0; color: #536475; }
.work-location { font-weight: 800; color: #435466 !important; margin-bottom: 6px !important; }
.work-detail-card h1 { margin: 0 0 18px; color: var(--blue-dark); line-height: 1.4; }
.two-column-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

@media (max-width: 1120px) {
  .container { width: min(1120px, calc(100% - 24px)); }
  .header-inner { gap: 12px; }
  .nav { gap: 10px; font-size: 13px; }
  .logo { gap: 9px; }
  .logo-mark { width: 40px; height: 40px; font-size: 22px; border-radius: 12px; }
  .logo-text { font-size: 15px; }
  .logo small { font-size: 10.5px; }
  .tel-button, .line-button { padding: 8px 11px; font-size: 13px; }
  .header-actions { gap: 6px; }
}

@media (max-width: 980px) {
  .nav { display: none; }
}

@media (max-width: 900px) {
  .line-consult-box { grid-template-columns: 1fr; align-items: start; }
  .line-consult-box .line-cta-button { width: fit-content; }
  .works-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .line-consult-box { padding: 22px; }
  .line-consult-box .line-cta-button { width: 100%; }
  .works-card-grid, .two-column-form { grid-template-columns: 1fr; }
}

@media (max-width: 640px){ .service-area-box{ display:grid; gap:8px; width:100%; margin-bottom:14px; padding:12px 14px;} .service-area-title{width:fit-content;} .service-area-text{font-size:14px;} }

.forwarded-for { margin-top: 4px; color: #98a2b3; font-size: 12px; white-space: normal; overflow-wrap: anywhere; line-height: 1.45; }

.homepage-image-button {
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 0;
  border: 0;
  background: transparent;
  display: block;
  cursor: zoom-in;
}
.homepage-image-button img {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-illustration .homepage-image-button img {
  min-height: 310px;
  object-fit: cover;
  object-position: center;
}
.about-photo .homepage-image-button img {
  min-height: 330px;
  object-fit: cover;
  object-position: center;
}
.homepage-image-button:hover img {
  filter: brightness(1.04);
}
@media (max-width: 640px) {
  .hero-illustration .homepage-image-button img {
    min-height: 230px;
  }
  .about-photo .homepage-image-button img {
    min-height: 240px;
  }
}
