/* ============================================================
    徳永良雄行政書士事務所 - 統合完成版スタイルシート
    スマホ崩れ修正版
   ============================================================ */

/* --- 1. 変数・リセット・ベース --- */
:root {
    --primary: #1f2f3a;
    --accent: #b89b5e;
    --bg-light: #f3f4f5;
    --text-main: #1a1a1a;
    --white: #ffffff;
    --line-color: #06C755;
    --fb-color: #1877f2;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    padding-top: 60px;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    background: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    transition: 0.3s;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* --- 2. レイアウト共通 --- */

section {
    padding: 20px 0 50px;
    width: 100%;
    clear: both;
    scroll-margin-top: 80px;
}

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

h2 {
    font-size: 2rem;
    margin: 0 0 1.5rem 0;
    color: var(--primary);
    text-align: center !important;
    width: 100%;
    line-height: 1.3;
}

.container {
    max-width: 1100px;
    margin: 0 auto !important;
    padding: 0 20px;
    text-align: center;
    width: 100%;
}

/* グリッド・カード */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
    align-items: stretch;
}

.card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-table {
    width: 100%;
    max-width: 960px;
    margin: 30px auto 0;
    border-top: 2px solid #1f2f3a;
}

/* ボタン共通 */
.cta-button {
    display: inline-block;
    padding: 10px 45px;
    background: var(--accent);
    color: white;
    border-radius: 50px;
    font-weight: 700;
}

.btn-white {
    display: inline-block;
    margin-top: 20px;
}

/* --- 3. ヘッダー・ナビゲーション --- */
header {
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 40px;
    background: var(--primary);
    color: white;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
}

.header-logo img {
    height: 40px;
    flex-shrink: 0;
}

.header-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.header-nav a {
    font-size: 1rem;
    color: white;
    font-weight: 600;
}

.header-nav a,
.header-nav span,
.header-nav div {
    cursor: pointer;
}

.header-contact {
    background: #b89b5e;
    padding: 8px 16px;
    border-radius: 6px;
    color: white !important;
    font-weight: 700;
}

.header-contact:hover {
    background: #a5894f;
}

/* 言語切替ボタン */
.lang-dropdown {
    position: relative;
    flex-shrink: 0;
}

.lang-btn {
    background: #ffffff;
    border: 1px solid #ffffff;
    color: #3498db;
    padding: 4px 10px;
    font-size: 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.lang-btn:hover {
    background: #f0f7ff;
    color: #2980b9;
}

.lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 300;
}

.lang-dropdown:hover .lang-menu {
    display: block;
}

.lang-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    flex-shrink: 0;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: white;
}

/* --- 4. ヒーローセクション --- */
.hero {
    background: linear-gradient(135deg, #1f2f3a 0%, #2c3e50 100%);
    color: white;
    min-height: 650px;
    width: 100%;
    padding-top: 10px;
    border-top: 3px solid rgba(255, 255, 255, 0.35);
    position: relative;
}

.hero-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px 80px 20px;
    position: relative;
}

.hero-left {
    flex: 1.8;
    text-align: left;
    padding-top: 30px;
    padding-right: 30px;
    min-width: 0;
}

.hero-right-boxes {
    flex: 0 0 380px;
    width: 380px;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-left: auto;
    margin-right: -80px;
    margin-top: 0;
    padding-top: 0;
    align-self: flex-start;
    transform: translateY(10px);
}

.hero-news-box {
    width: 100%;
    background: linear-gradient(145deg, #ffffff 0%, #fcfaf5 100%);
    color: #333;
    padding: 16px 20px 18px;
    border-radius: 16px;
    border: 1px solid rgba(184, 155, 94, 0.3);
    border-top: 6px solid var(--accent);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.hero-news-box h3 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.hero-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 175px;
    overflow-y: auto;
    scrollbar-width: thin;
    border-top: 1px solid #eee;
}

.hero-list li {
    font-size: 0.88rem;
    line-height: 1.2;
    border-bottom: 1px solid #eee;
    padding: 5px 0;
}

.hero-list li:last-child {
    border-bottom: none;
}

.hero-list::-webkit-scrollbar {
    width: 6px;
}

.hero-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.hero-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 注釈・リンク */
.hero-notice {
    margin-top: 10px;
    line-height: 1.8;
    font-size: 0.95rem;
}

.hero-notice .text-white {
    color: #ffffff !important;
}

.hero-links {
    display: flex;
    gap: 20px;
    margin: 1rem 0;
}

.hero-link-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 0;
}

.hero-link-box h3 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.hero-link-box a,
.hero-link-box p,
.hero-link-box li {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
}

.hero-link-box a:hover {
    color: var(--accent) !important;
}

/* お知らせ/ニュース：見出し行 */
.hero-news-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 10px 0;
}

.hero-news-box .all-news-link {
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
}

.hero-news-box .hero-all-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}

.hero-news-box .hero-all-link:hover {
    color: var(--accent);
}

.news-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-link:hover .news-text {
    color: var(--accent);
}

.news-date {
    display: inline-block;
    color: #b89b5e;
    font-weight: 700;
    margin-right: 6px;
    white-space: nowrap;
}

.news-text {
    color: #333;
}

.announcement-item {
    color: #333;
}

.hero-news-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ============================================================
   5a. 選ばれる6つの理由セクション
   ============================================================ */

.why-choose-section {
    background: var(--bg-light);
    padding: 70px 20px 80px;
}

.why-choose-eyecatch {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 3px;
    margin-bottom: 8px;
    text-align: center;
}

.why-choose-heading {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 8px;
    text-align: center !important;
}

.why-choose-accent {
    color: #c0392b;
}

.why-choose-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 48px;
    text-align: center;
    line-height: 1.8;
}

/* カードグリッド */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

/* カード共通 */
.why-choose-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-align: left;
    border-top: 4px solid transparent;
    transition: transform 0.3s, box-shadow 0.3s;
}

.why-choose-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* カード上部カラー */
.why-choose-card--red {
    border-top-color: #c0392b;
}

.why-choose-card--blue {
    border-top-color: #2980b9;
}

.why-choose-card--green {
    border-top-color: #27ae60;
}

.why-choose-card--purple {
    border-top-color: #8e44ad;
}

.why-choose-card--orange {
    border-top-color: #e67e22;
}

.why-choose-card--teal {
    border-top-color: #16a085;
}

/* アイコン */
.why-choose-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    line-height: 1;
}

.why-choose-card--red .why-choose-icon {
    color: #c0392b;
}

.why-choose-card--blue .why-choose-icon {
    color: #2980b9;
}

.why-choose-card--green .why-choose-icon {
    color: #27ae60;
}

.why-choose-card--purple .why-choose-icon {
    color: #8e44ad;
}

.why-choose-card--orange .why-choose-icon {
    color: #e67e22;
}

.why-choose-card--teal .why-choose-icon {
    color: #16a085;
}

.why-choose-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.4;
}

.why-choose-card-desc {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.8;
}

/* 結論バー */
.why-choose-conclusion {
    margin-top: 48px;
    background: linear-gradient(135deg, var(--primary), #2980b9);
    border-radius: 12px;
    padding: 28px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.why-choose-conclusion-text {
    text-align: left;
}

.why-choose-conclusion-sub {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.why-choose-conclusion-main {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.why-choose-conclusion-highlight {
    color: #f1c40f;
}

.why-choose-cta {
    display: inline-block;
    background: #c0392b;
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none !important;
    white-space: nowrap;
    transition: 0.3s;
}

.why-choose-cta:hover {
    background: #a93226;
    transform: translateY(-2px);
}

/* --- 5b. サービス・コンテンツ詳細 --- */

.service-intro-box {
    background: #f4f7fb;
    border-left: 6px solid #1f2f3a;
    padding: 28px;
    margin: 30px 0 40px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.service-intro-box h3 {
    margin-top: 0;
    font-size: 22px;
    color: #1f2f3a;
}

.support-lead {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
}

.support-list {
    margin-top: 15px;
    padding-left: 20px;
    text-align: left;
}

.support-list li {
    margin-bottom: 6px;
}

.service-header {
    background: #f4f7fb;
    font-weight: 700;
    border-bottom: 2px solid #1f2f3a;
}

.service-row {
    display: grid;
    grid-template-columns: 140px 1.5fr 2fr 120px;
    gap: 20px;
    padding: 16px 10px;
    border-bottom: 1px solid #ddd;
    align-items: center;
}

.service-category {
    font-weight: 700;
    color: #1f2f3a;
}

.sp-link-blue {
    color: #3498db;
    text-decoration: underline;
    font-weight: bold;
}

.sp-link-blue:hover {
    color: #5dade2;
}

.accordion {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
}

.accordion-header {
    width: 100%;
    padding: 18px 20px;
    background: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover {
    background: #f7f7f7;
}

.accordion-content {
    display: none;
    padding: 15px 20px 25px;
    background: #fafafa;
}

.accordion-content ul {
    padding-left: 20px;
}

.accordion-content li {
    margin-bottom: 12px;
}

.accordion-title {
    font-weight: 600;
    color: #1f2f3a;
}

.accordion-desc {
    font-size: 14px;
    color: #555;
    text-align: left;
}

/* お客様の声 */
.testimonial-item {
    max-width: 850px;
    margin: 0 auto 40px;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 8px solid var(--accent);
    text-align: left;
}

.testimonial-name {
    display: block;
    text-align: right;
    font-weight: bold;
    margin-top: 20px;
}

.one-stop-support-strong {
    max-width: 1000px;
    margin: 80px auto;
    padding: 60px 40px;
    background: #fff;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

/* ニュース詳細 */
.news-article {
    max-width: 800px;
    margin: auto;
    padding: 80px 20px;
    background: #fff;
    text-align: left;
}

.news-article p {
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 15px;
}

.news-article h1 {
    font-size: 28px;
    line-height: 1.4;
    margin-bottom: 20px;
}

.news-article h2 {
    margin-top: 40px;
    font-size: 20px;
}

/* --- 6. 事務所紹介・地図 --- */
.profile-container {
    display: flex;
    gap: 60px;
    align-items: center;
    text-align: left;
}

.profile-photo img {
    width: 100%;
    max-width: 350px;
    border-radius: 15px;
}

.profile-compact-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.office-wrapper {
    display: flex;
    gap: 60px;
    text-align: left;
}

.office-left,
.office-right {
    flex: 1;
    min-width: 0;
}

.office-info {
    text-align: left;
}

.office-info li {
    margin-bottom: 20px;
}

.office-info strong {
    display: block;
    color: var(--primary);
}

iframe {
    border-radius: 15px;
    width: 100%;
    height: 450px;
    border: 0;
}

/* --- 7. お問い合わせ・フォーム --- */
.contact-cta {
    text-align: center;
}

.phone-link {
    color: #3498db;
    text-decoration: underline;
    font-weight: 600;
}

.phone-link:hover {
    color: #1f78d1;
}

.google-form-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.google-form-wrapper iframe {
    width: 100%;
    min-height: 900px;
    border: 0;
}

.contact-form {
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #b89b5e;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: #b89b5e;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.submit-btn:hover {
    background: #a5894f;
}

.privacy-note {
    font-size: 13px;
    margin-top: 15px;
    color: #666;
    text-align: center;
}

/* --- 電話ボタンセクション --- */

.contact-cta-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.cta-content-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cta-subtext {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-main);
}

.btn-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: var(--primary);
    color: #ffffff !important;
    padding: 18px 45px;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.btn-phone:hover {
    background-color: #2c3e50;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-phone i {
    font-size: 1.1rem;
}

/* --- 8. SNS・固定要素・フッター --- */
.sns-fixed {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sns-btn-wide {
    padding: 10px 26px;
    border-radius: 50px;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.line-btn {
    background: var(--line-color);
}

.facebook-btn {
    background: var(--fb-color);
}

.back-to-top {
    position: fixed;
    right: 20px;
    top: 80px;
    background: #1f2f3a;
    color: #fff;
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 14px;
    z-index: 9999;
}

.back-to-top:hover {
    background: #34495e;
}

footer {
    background: var(--primary);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

/* --- 9. Q&A --- */

.qa-section {
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
}

.qa-section h3 {
    margin-top: 40px;
    font-size: 22px;
    color: #1f2f3a;
    border-left: 5px solid #b89b5e;
    padding-left: 12px;
}

.qa-item {
    background: #ffffff;
    padding: 20px;
    margin-top: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.qa-item h4 {
    font-size: 18px;
    margin: 0;
}

/* --- 10. その他の付加要素 --- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

#services,
#company-services,
#country-services,
#worker-services {
    scroll-margin-top: 80px;
}

.section-title {
    margin-bottom: 10px;
}

/* ============================================================
   11. 特定技能支援プランBOX & フィリピン登録BOX
   ============================================================ */

/* --- 特定技能支援プランBOX --- */
.sp-plan-box {
    color: #3498db;
    background: linear-gradient(135deg, #1f2f3a 0%, #2c4a5e 100%);
    border-radius: 16px;
    padding: 40px;
    margin: 0 auto 40px;
    max-width: 960px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    text-align: left;
}

.sp-plan-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.sp-plan-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
    line-height: 1.4;
}

.sp-plan-lead {
    font-size: 1rem;
    line-height: 1.9;
    color: #dde8f0;
    margin-bottom: 28px;
}

.sp-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.sp-plan-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
}

.sp-plan-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.sp-plan-item-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--accent);
}

.sp-plan-item-desc {
    font-size: 0.87rem;
    color: #ccd8e2;
    line-height: 1.7;
}

.sp-plan-price-box {
    background: #fff;
    color: var(--text-main);
    border-radius: 12px;
    padding: 28px 32px;
    text-align: center;
}

.sp-plan-price-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

.sp-plan-price-main {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 16px;
}

.sp-plan-price-unit {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
}

.sp-plan-includes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
    list-style: none;
    padding: 0;
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c4a5e;
}

.sp-plan-note {
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 18px;
}

.sp-plan-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff !important;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none !important;
    transition: 0.3s;
}

.sp-plan-btn:hover {
    background: #a5894f;
    transform: translateY(-2px);
}

/* --- フィリピン求職者 登録BOX --- */
.ph-register-box {
    background: #fff8ee;
    border: 2px solid var(--accent);
    border-radius: 16px;
    padding: 36px 40px;
    margin: 0 auto 40px;
    max-width: 960px;
    text-align: center;
}

.ph-register-badge {
    display: inline-block;
    background: #d4380d;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.ph-register-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.ph-register-lead {
    font-size: 1rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 24px;
}

.ph-register-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.ph-step {
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.ph-step-num {
    background: var(--accent);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.ph-step-arrow {
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 700;
}

.ph-register-support {
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 18px;
}

.ph-register-btn {
    display: inline-block;
    background: #d4380d;
    color: #fff !important;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none !important;
    transition: 0.3s;
}

.ph-register-btn:hover {
    background: #b02e0a;
    transform: translateY(-2px);
}

/* --- ニュース統合一覧 --- */
.all-news-section {
    padding: 30px 0 50px;
}

.all-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 20px;
    flex-wrap: wrap;
}

.all-news-header h2 {
    margin: 0;
    text-align: left !important;
    flex: 1;
}

.all-news-link {
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: underline;
}

.all-news-link:hover {
    color: #a5894f;
}

.all-news-box {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    text-align: left;
}

.all-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.all-news-list li {
    border-bottom: 1px solid #eee;
    padding: 8px 0;
    line-height: 1.35;
    font-size: 0.95rem;
}

.all-news-list li:last-child {
    border-bottom: none;
}

/* ============================================================
   12. レスポンシブ：タブレット (769px〜1024px)
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .sp-plan-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-right-boxes {
        flex: 0 0 300px;
        width: 300px;
        max-width: 300px;
        margin-right: -40px;
    }
}

/* ============================================================
   13. レスポンシブ：スマホ (768px以下) ★統合版★
   ============================================================ */
@media (max-width: 768px) {

    /* ---------- ベース ---------- */
    body {
        padding-top: 60px;
        font-size: 15px;
    }

    /* ---------- ヘッダー ---------- */
    header {
        height: 60px;
        padding: 0 12px;
    }

    .header-logo {
        font-size: 0.85rem;
        gap: 8px;
    }

    .header-logo img {
        height: 32px;
    }

    .hamburger {
        display: flex;
    }

    .header-nav {
        display: none;
    }

    .header-nav.show {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--primary);
        padding: 20px;
        gap: 15px;
        z-index: 300;
    }

    /* ---------- ヒーロー ---------- */
    .hero {
        padding: 0 0 30px;
        min-height: auto;
    }

    .hero-inner {
        flex-direction: column !important;
        padding: 0 16px 30px;
    }

    .hero-left {
        flex: unset;
        width: 100%;
        padding-top: 20px;
        padding-right: 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 1.3rem !important;
        line-height: 1.5 !important;
    }

    .hero-sub {
        font-size: 0.9rem;
    }

    .hero-badge {
        font-size: 0.85rem;
        margin: 0 auto 1rem auto !important;
        display: table !important;
        text-align: center;
    }

    /* ヒーロー右側ボックス */
    .hero-right-boxes {
        flex: unset !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        margin-top: 20px;
        transform: none !important;
    }

    .hero-news-box {
        position: static;
        width: 100% !important;
        margin: 10px 0 0 0 !important;
        border-radius: 12px;
    }

    .hero-news-box::after {
        content: "▼ スクロールできます";
        display: block;
        text-align: center;
        font-size: 11px;
        color: #b89b5e;
        margin-top: 6px;
    }

    .hero-list {
        max-height: 140px;
    }

    /* ヒーローリンクカード */
    .hero-links {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        margin: 20px 0 !important;
    }

    .hero-link-box {
        flex: unset !important;
        width: 100% !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        padding: 16px !important;
        text-align: left;
    }

    .hero-link-box h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .hero-link-box a {
        text-decoration: none !important;
        color: #ffffff !important;
    }

    .hero-notice {
        font-size: 0.85rem;
        text-align: center;
    }

    /* ---------- 選ばれる6つの理由 ---------- */
    .why-choose-section {
        padding: 40px 16px 50px;
    }

    .why-choose-heading {
        font-size: 1.5rem;
    }

    .why-choose-subtitle {
        font-size: 0.88rem;
        margin-bottom: 28px;
    }

    .why-choose-subtitle br {
        display: none;
    }

    .why-choose-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    .why-choose-card {
        padding: 22px 18px;
    }

    .why-choose-icon {
        font-size: 1.6rem;
    }

    .why-choose-card-title {
        font-size: 1rem;
    }

    .why-choose-card-desc {
        font-size: 0.85rem;
    }

    .why-choose-conclusion {
        flex-direction: column;
        text-align: center;
        padding: 22px 18px;
        gap: 14px;
        margin-top: 30px;
    }

    .why-choose-conclusion-text {
        text-align: center;
    }

    .why-choose-conclusion-main {
        font-size: 1.05rem;
    }

    .why-choose-cta {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }

    /* ---------- サービス行 ---------- */
    .service-row {
        grid-template-columns: 1fr !important;
        gap: 4px;
        padding: 14px 8px;
    }

    .service-category {
        font-size: 0.8rem;
        color: var(--accent);
    }

    .service-title {
        font-size: 1rem;
        font-weight: 700;
    }

    .service-desc {
        font-size: 0.88rem;
    }

    .service-price {
        text-align: left;
        font-weight: 700;
        color: var(--primary);
    }

    .service-intro-box {
        padding: 18px 14px;
        margin: 20px 0 30px;
    }

    .support-lead {
        font-size: 16px;
    }

    /* ---------- 特定技能プランBOX ---------- */
    .sp-plan-box {
        padding: 22px 16px;
        border-radius: 12px;
    }

    .sp-plan-title {
        font-size: 1.15rem;
    }

    .sp-plan-lead {
        font-size: 0.9rem;
    }

    .sp-plan-lead br {
        display: none;
    }

    .sp-plan-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .sp-plan-item {
        padding: 16px;
    }

    .sp-plan-price-box {
        padding: 22px 16px;
    }

    .sp-plan-price-main {
        font-size: 1.8rem;
    }

    .sp-plan-includes {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 10px;
        gap: 6px;
    }

    .cta-button {
        padding: 10px 30px;
        font-size: 0.95rem;
    }

    /* ---------- フィリピン登録BOX ---------- */
    .ph-register-box {
        padding: 22px 16px;
    }

    .ph-register-title {
        font-size: 1.15rem;
    }

    .ph-register-lead {
        font-size: 0.9rem;
    }

    .ph-register-lead br {
        display: none;
    }

    .ph-register-steps {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .ph-step {
        justify-content: center;
    }

    .ph-step-arrow {
        transform: rotate(90deg);
        align-self: center;
        font-size: 1rem;
    }

    .ph-register-btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }

    /* ---------- お客様の声 ---------- */
    .testimonial-item {
        padding: 22px 16px;
        margin: 0 auto 24px;
    }

    /* ---------- ワンストップ強調 ---------- */
    .one-stop-support-strong {
        margin: 40px auto;
        padding: 30px 18px;
    }

    .one-stop-support-strong h2 {
        font-size: 1.3rem;
    }

    /* ---------- 事務所・プロフィール ---------- */
    .office-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .profile-container {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .profile-photo {
        order: -1;
        margin-bottom: 10px;
    }

    .profile-photo img {
        width: 100%;
        max-width: 280px;
        border-radius: 16px;
        object-fit: cover;
    }

    .profile-compact-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .profile-main {
        text-align: left;
    }

    iframe {
        height: 280px !important;
    }

    /* ---------- 電話ボタンセクション ---------- */
    .contact-cta-section {
        padding: 40px 16px;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .btn-phone {
        width: 100%;
        max-width: 320px;
        padding: 15px 20px;
        font-size: 1.1rem;
    }

    /* ---------- Q&A ---------- */
    .qa-section {
        margin: 20px auto;
        padding: 0 4px;
    }

    .qa-section h3 {
        font-size: 18px;
    }

    .qa-item {
        padding: 16px;
    }

    .qa-item h4 {
        font-size: 16px;
    }

    /* ---------- フォーム ---------- */
    .contact-form {
        padding: 24px 16px;
        margin: 20px auto;
    }

    /* ---------- リンク集 ---------- */
    .grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* ---------- SNS固定ボタン ---------- */
    .sns-fixed {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 10px;
        width: auto;
        flex-direction: row;
        gap: 8px;
    }

    .sns-btn-wide {
        flex: 1;
        padding: 10px 12px;
        font-size: 13px;
        justify-content: center;
        text-align: center;
    }

    /* ---------- TOPボタン ---------- */
    .back-to-top {
        right: 12px;
        top: 70px;
        bottom: auto;
        left: auto;
        padding: 8px 12px;
        font-size: 12px;
    }

    /* ---------- フッター ---------- */
    footer {
        padding: 40px 16px 120px;
    }

    /* ---------- 汎用テキスト ---------- */
    h2 {
        font-size: 1.5rem;
    }

    p,
    li,
    .service-desc,
    .accordion-desc,
    .support-list,
    .office-info,
    .testimonial-item,
    .profile-container {
        text-align: left;
    }

    /* ---------- ニュース一覧 ---------- */
    .all-news-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .all-news-header h2 {
        text-align: left !important;
    }

    .all-news-box {
        padding: 14px 12px;
    }

    .all-news-list li {
        padding: 6px 0;
        line-height: 1.3;
        font-size: 0.9rem;
    }

    /* ---------- ニュース記事 ---------- */
    .news-article {
        padding: 30px 16px;
    }

    .news-article h1 {
        font-size: 20px;
    }
      }

/* ─── News & Announcement 共通リスト ─── */
#newsList li,
#announcementList li {
  display: flex;
  align-items: baseline;
  gap: 0;
  padding: 6px 0;          /* 上下を詰める（元が大きければ調整） */
  margin: 0;
  border-bottom: 1px solid #e8e8e8;
  line-height: 1.5;
}

#newsList li:last-child,
#announcementList li:last-child {
  border-bottom: none;
}

/* 日付 */
.news-date {
  flex-shrink: 0;
  font-size: 0.82rem;
  color: #888;
  margin-right: 12px;
  white-space: nowrap;
}

/* テキスト（ニュース・お知らせ共通） */
.news-text,
.announcement-text {
  flex: 1;
  font-size: 0.92rem;
  color: #333;
}

/* 詳しく→ リンク（ニュース・お知らせ共通） */
.news-detail-btn {
  display: inline-block;
  margin-left: 14px;
  color: #1a56a0 !important;
  text-decoration: underline !important;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.88rem;
  white-space: nowrap;
}

.news-detail-btn:hover {
  color: #0d3a7a !important;
  opacity: 0.85;
}
/* ============================================================
   ヒーローボックス内 詳しく→リンク
   ============================================================ */

/* hero-list内のリンクを左詰め・折り返し対応に */
.hero-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
  font-size: 0.88rem;
  line-height: 1.4;
  border-bottom: 1px solid #eee;
  padding: 5px 0;
}

.hero-list li:last-child {
  border-bottom: none;
}

/* ヒーローボックス内の日付 */
.hero-list .news-date {
  flex-shrink: 0;
  color: #b89b5e;
  font-weight: 700;
  font-size: 0.82rem;
  margin-right: 6px;
  white-space: nowrap;
}

/* ヒーローボックス内のテキスト */
.hero-list .news-text,
.hero-list .announcement-text {
  flex: 1;
  color: #333;
  font-size: 0.85rem;
  min-width: 0;
}

/* ヒーローボックス内 詳しく→ */
.hero-list .news-detail-btn {
  display: inline;
  margin-left: 8px;
  color: #1a56a0 !important;
  text-decoration: underline !important;
  font-size: 0.82rem;
  white-space: nowrap;
  font-weight: 600;
}

.hero-list .news-detail-btn:hover {
  color: #0d3a7a !important;
}
