:root {
    --primary: #ffc107;
    --primary-dark: #e0a800;
    --text: #222222;
    --text-soft: #374151;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --dark: #1f2933;
    --dark-soft: #334155;
    --shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
    --radius: 14px;
    --header-height: 88px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.8;
    background: var(--bg);
    overflow-x: hidden;
}

body.has-fixed-header {
    padding-top: 0;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(12px);
}

.home-header {
    position: fixed;
    right: 0;
    left: 0;
    background: /*rgba(255, 255, 255, 0.9)*/#fff;
}

.site-header.is-fixed {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.header-inner {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    color: var(--primary-dark);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.logo img {
    width: 230px;
    height: auto;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 700;
}

.nav a {
    position: relative;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
    color: #111827;
}

.nav a.active::after,
.nav a:not(.nav-contact):hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -11px;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.nav-contact,
.nav a.nav-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--primary);
    color: #111827;
    box-shadow: 0 8px 18px rgba(255, 193, 7, 0.24);
}

.nav-contact:hover {
    color: #111827;
    background: #ffca2c;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 64px;
    background: #fff;
}

.hero-full {
    min-height: 100svh;
    padding: calc(var(--header-height) + 80px) 0 92px;
    display: flex;
    align-items: center;
    color: #fff;
    background: #111827;
}

.hero-full::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.82) 0%, rgba(17, 24, 39, 0.46) 48%, rgba(17, 24, 39, 0.7) 100%),
        radial-gradient(circle at 78% 24%, rgba(255, 193, 7, 0.28), transparent 34%);
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url("../img/tella-hero-visual.png") center / cover no-repeat;
}

.hero-bg-panel {
    display: none;
}

.hero-bg-panel::before {
    content: "Image Area";
    position: absolute;
    inset: 22px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(255, 255, 255, 0.34);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.44);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-bg-left {
    background:
        linear-gradient(160deg, rgba(31, 41, 55, 0.88), rgba(17, 24, 39, 0.68)),
        linear-gradient(45deg, #111827, #374151);
}

.hero-bg-center {
    background:
        linear-gradient(150deg, rgba(255, 193, 7, 0.46), rgba(17, 24, 39, 0.6)),
        linear-gradient(45deg, #374151, #111827);
}

.hero-bg-right {
    background:
        linear-gradient(145deg, rgba(255, 193, 7, 0.58), rgba(17, 24, 39, 0.62)),
        linear-gradient(45deg, #1f2937, #111827);
}

.hero-full-inner {
    position: relative;
    z-index: 2;
}

.hero-full .hero-copy {
    max-width: 680px;
}

.hero-full .section-label {
    color: var(--primary);
}

.hero-full h1 {
    color: #fff;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.18;
}

.hero-full p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.84);
}

.hero-full .hero-description {
    color: #fff;
}

.hero-outline {
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.hero-outline:hover {
    border-color: var(--primary);
}

.hero-large-word {
    position: absolute;
    right: 3vw;
    bottom: 12vh;
    z-index: 1;
    color: rgba(255, 255, 255, 0.1);
    font-size: clamp(90px, 17vw, 240px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.02em;
    pointer-events: none;
}

.scroll-guide {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    font-weight: 700;
    transform: translateX(-50%);
}

.scroll-guide::after {
    content: "";
    width: 1px;
    height: 52px;
    background: var(--primary);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
    align-items: center;
    gap: 54px;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin: 0;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.35;
    letter-spacing: 0;
}

.hero p {
    max-width: 520px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.hero-visual {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-triangle {
    position: absolute;
    right: -64px;
    bottom: -48px;
    width: 82%;
    aspect-ratio: 1 / 0.72;
    background: linear-gradient(135deg, #ffd54f 0%, var(--primary) 70%);
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
    z-index: 0;
}

.image-placeholder {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    border: 1px dashed #d1d5db;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    color: #9ca3af;
    font-size: 13px;
    font-weight: 700;
}

/* Sections */
.section {
    padding: 72px 0;
}

.section-soft {
    background: var(--bg-soft);
}

.section-head {
    margin-bottom: 34px;
}

.section-head-center {
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.section-label,
.badge {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title,
.section h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.45;
    letter-spacing: 0;
}

.section-text,
.lead {
    max-width: 720px;
    margin: 14px 0 0;
    color: var(--muted);
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 118px 0 72px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.84) 58%, rgba(255, 193, 7, 0.2) 100%),
        linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--line);
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -90px;
    width: min(420px, 46vw);
    aspect-ratio: 1 / 0.76;
    background: linear-gradient(135deg, #ffd54f 0%, var(--primary) 72%);
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
    opacity: 0.92;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(30px, 3.4vw, 42px);
    line-height: 1.45;
}

.page-hero p {
    max-width: 680px;
    margin: 14px 0 0;
    color: var(--muted);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.breadcrumb a {
    color: var(--text-soft);
}

.breadcrumb span::before {
    content: ">";
    margin-right: 8px;
    color: #cbd5e1;
}

/* Layout helpers */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.card {
    height: 100%;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.business-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 22px;
}

.business-card:first-child {
    background: linear-gradient(180deg, #fff 0%, #fff9df 100%);
    border-color: rgba(255, 193, 7, 0.42);
}

.about-layout {
    align-items: center;
}

.service-card {
    position: relative;
    overflow: hidden;
}

.service-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #fff7d6;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 900;
}

.card-kicker {
    margin: 0 0 10px;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.card-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
}

.card-text {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    margin-top: 18px;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 800;
}

.card-link::after {
    content: ">";
    margin-left: 8px;
}

.image-frame {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.image-frame img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.image-frame .image-placeholder {
    width: 100%;
    border: 0;
    border-radius: 0;
    background: #f9fafb;
}

.content-band {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.content-band p:first-child {
    margin-top: 0;
}

.content-band p:last-child {
    margin-bottom: 0;
}

.number-list {
    display: grid;
    gap: 16px;
    counter-reset: item;
}

.number-item {
    position: relative;
    padding: 24px 24px 24px 76px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.number-item::before {
    counter-increment: item;
    content: counter(item, decimal-leading-zero);
    position: absolute;
    top: 24px;
    left: 24px;
    color: var(--primary-dark);
    font-size: 18px;
    font-weight: 900;
}

.number-item h3 {
    margin: 0;
    font-size: 18px;
}

.number-item p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.timeline {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}

.timeline-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 22px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.timeline-date {
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 900;
}

.timeline-title {
    margin: 0;
    font-weight: 800;
}

.timeline-text {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.policy-block {
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.policy-block:first-child {
    padding-top: 0;
}

.policy-block h2 {
    font-size: 20px;
}

.policy-block p,
.policy-block li {
    color: var(--muted);
}

.policy-section {
    padding-top: 54px;
}

.policy-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 54px;
    align-items: start;
    min-width: 0;
}

.policy-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    min-width: 0;
    max-width: 100%;
}

.policy-menu {
    display: grid;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.policy-menu a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
    transition: background 0.2s ease, color 0.2s ease;
}

.policy-menu a:hover,
.policy-menu a:focus {
    background: #fff7d6;
    color: #111827;
}

.policy-content {
    min-width: 0;
    max-width: 100%;
    padding: 44px 48px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    overflow-wrap: anywhere;
}

.policy-content.reveal {
    opacity: 1;
    transform: none;
}

.policy-content .policy-block {
    scroll-margin-top: calc(var(--header-height) + 28px);
    padding: 0 0 64px;
    margin: 0 0 64px;
}

.policy-content .policy-block:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.policy-content h2 {
    margin: 0 0 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: clamp(24px, 2.7vw, 32px);
    line-height: 1.45;
}

.policy-content h3 {
    margin: 42px 0 14px;
    padding-left: 14px;
    border-left: 3px solid var(--primary);
    color: var(--text);
    font-size: 18px;
    line-height: 1.65;
}

.policy-content p {
    margin: 0 0 18px;
    color: var(--text-soft);
    line-height: 2;
}

.policy-content ol,
.policy-content ul {
    margin: 0 0 22px;
    padding-left: 1.45em;
    color: var(--text-soft);
    line-height: 1.95;
}

.policy-content li {
    padding-left: 0.25em;
    margin-bottom: 8px;
}

.policy-content li::marker {
    color: var(--primary-dark);
    font-weight: 800;
}

.policy-content .a-blue {
    color: #2563eb;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.policy-content .confirm-table-wrap {
    width: 100%;
    max-width: 100%;
    margin: 24px 0 34px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.policy-content .confirm-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    table-layout: fixed;
}

.policy-content .confirm-table th,
.policy-content .confirm-table td {
    padding: 17px 18px;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

.policy-content .confirm-table tr:last-child th,
.policy-content .confirm-table tr:last-child td {
    border-bottom: none;
}

.policy-content .confirm-head {
    width: 210px;
    background: #f8fafc;
    color: var(--text);
    font-weight: 800;
    text-align: left;
    border-right: 1px solid var(--line);
}

.policy-content .confirm-input {
    color: var(--text-soft);
    line-height: 1.85;
    word-break: break-word;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary);
    color: #111827;
    box-shadow: 0 10px 22px rgba(255, 193, 7, 0.22);
}

.btn-primary:hover {
    background: #ffca2c;
}

.btn-outline {
    background: #fff;
    border-color: var(--line);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
}

/* Tables */
.info-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid var(--line);
}

.info-table th,
.info-table td {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    text-align: left;
}

.info-table th {
    width: 180px;
    color: var(--text);
    font-weight: 800;
}

.info-table td {
    color: var(--muted);
}

/* Forms */
.form {
    padding: 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 22px;
}

.form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 800;
}

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form textarea {
    min-height: 180px;
    resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.16);
}

.form-note {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

/* News */
.news-list {
    display: grid;
    gap: 14px;
}

.news-item {
    display: grid;
    grid-template-columns: 120px 110px 1fr;
    gap: 18px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.news-date {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.news-category {
    display: inline-flex;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff7d6;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
}

.news-title {
    font-weight: 700;
}

/* Error pages */
.error-panel {
    max-width: 780px;
    padding: 44px 48px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.error-code {
    margin: 0 0 8px;
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.error-panel h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
}

.error-panel p:not(.error-code) {
    max-width: 620px;
    margin: 14px 0 0;
    color: var(--muted);
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: #e5e7eb;
}

.footer-main {
    padding: 54px 0 42px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

.footer-copy {
    max-width: 360px;
    margin: 0;
    color: #cbd5e1;
    font-size: 14px;
}

.footer-title {
    margin: 0 0 14px;
    color: #fff;
    font-size: 14px;
}

.footer-links {
    display: grid;
    gap: 8px;
    font-size: 13px;
}

.footer-links a {
    color: #cbd5e1;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 12px;
}

.footer-bottom-inner,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #f8fafc;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.footer-social-link:hover {
    border-color: var(--primary);
    color: #111827;
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Page top */
.page-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 40;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: #111827;
    font-weight: 900;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.page-top.is-show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
    .nav {
        position: fixed;
        top: var(--header-height);
        right: 20px;
        left: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: #fff;
        box-shadow: var(--shadow);
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        padding: 12px 10px;
    }

    .nav a.active::after,
    .nav a:not(.nav-contact):hover::after {
        display: none;
    }

    .nav-contact,
    .nav a.nav-contact {
        margin-top: 8px;
    }

    .menu-toggle {
        display: block;
    }

    .hero-inner,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .hero-bg-panel {
        display: none;
    }

    .hero-bg-center {
        display: none;
    }

    .business-layout {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 300px;
    }

    .grid-3,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .policy-layout {
        grid-template-columns: 1fr;
        gap: 28px;
        min-width: 0;
    }

    .policy-sidebar {
        position: relative;
        top: auto;
        z-index: 5;
        width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .policy-menu {
        display: flex;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px;
        border-radius: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .policy-menu a {
        flex: 0 0 auto;
        white-space: nowrap;
        max-width: calc(100vw - 58px);
    }
}

@media (max-width: 640px) {
    body {
        font-size: 14px;
    }

    .container {
        width: min(100% - 28px, 1120px);
    }

    .header-inner {
        height: 68px;
    }

    :root {
        --header-height: 68px;
    }

    .logo img {
        width: 184px;
    }

    .hero {
        padding: 52px 0 48px;
    }

    .hero-full {
        min-height: 100svh;
        padding: calc(var(--header-height) + 56px) 0 86px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-full h1 {
        font-size: 40px;
    }

    .hero-large-word {
        right: -10vw;
        bottom: 16vh;
    }

    .scroll-guide {
        display: none !important;
    }

    .hero-visual {
        min-height: 240px;
    }

    .section {
        padding: 56px 0;
    }

    .page-hero {
        padding: 54px 0 40px;
    }

    .page-hero h1 {
        font-size: clamp(28px, 8.8vw, 36px);
        line-height: 1.35;
    }

    .page-hero p {
        font-size: 14px;
        line-height: 1.8;
    }

    .content-band,
    .number-item {
        padding: 24px 20px;
    }

    .policy-section {
        padding-top: 28px;
    }

    .policy-menu {
        padding: 8px;
    }

    .policy-menu a {
        padding: 10px 12px;
        font-size: 13px;
        line-height: 1.45;
    }

    .policy-content {
        padding: 24px 18px;
        border-radius: 12px;
        overflow: hidden;
    }

    .policy-content .policy-block {
        scroll-margin-top: calc(var(--header-height) + 86px);
        padding-bottom: 42px;
        margin-bottom: 42px;
    }

    .policy-content h2 {
        margin-bottom: 22px;
        padding-bottom: 14px;
        font-size: 24px;
    }

    .policy-content h3 {
        margin-top: 34px;
        font-size: 16px;
    }

    .policy-content p,
    .policy-content ol,
    .policy-content ul {
        font-size: 15px;
        line-height: 1.85;
    }

    .policy-content li {
        margin-bottom: 10px;
    }

    .policy-content .confirm-table {
        min-width: 620px;
    }

    .policy-content .confirm-table th,
    .policy-content .confirm-table td {
        padding: 14px 15px;
    }

    .policy-content .confirm-head {
        width: 180px;
    }

    .number-item {
        padding-left: 62px;
    }

    .number-item::before {
        left: 20px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .grid-3,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .card,
    .form,
    .error-panel {
        padding: 24px 20px;
    }

    .news-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
        padding: 12px 0;
    }

    .info-table th {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .footer-bottom-inner,
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
