/* ==========================================================================
   Variables & Reset
   ========================================================================== */
:root {
    /* Color Palette */
    --text-main: #3a3a3a;       /* 真っ黒ではない、上品な墨色 */
    --text-light: #7a7a7a;      /* 薄いグレー */
    --accent: #d48a8a;          /* やわらかい桃色・くすみピンク */
    --accent-light: #fdf5f5;    /* ほんのりピンクがかった背景色 */
    --bg-body: #ffffff;
    
    /* Font Settings */
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-serif: 'Shippori Mincho', serif;
    
    /* Layout */
    --padding-section: 140px;   /* PCでのセクション余白（広め） */
    --padding-section-sp: 80px; /* SPでのセクション余白 */
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 2.0;
    letter-spacing: 0.08em;
    -webkit-font-smoothing: antialiased;
    word-wrap: break-word;
}

h1, h2, h3 { margin: 0; font-weight: normal; }
p { margin: 0 0 1.5em; }
a { color: inherit; text-decoration: none; transition: 0.3s; }
img { max-width: 100%; height: auto; }

/* Utility Classes */
.serif { font-family: var(--font-serif); }
.d-block { display: block; }
.sp-only { display: none; }
@media (max-width: 768px) { .sp-only { display: block; } }

/* Container */
.container { width: 90%; max-width: 1100px; margin: 0 auto; }
.container-sm { max-width: 800px; }

/* ==========================================================================
   Animation (Fade Up)
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.0s ease, transform 1.0s ease;
}
.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    padding: 40px 5%;
    box-sizing: border-box;
    z-index: 10;
}
.logo {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: #fff; /* Hero画像上なので白 */
    text-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    /* 背景画像をCSSで指定する場合（imgタグを使わないパターン） */
    background-image: url('hero-img.jpg'); 
    background-size: cover;
    background-position: center;
}
/* 画像の上に薄く色を重ねて文字を読みやすく、かつトーンを整える */
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(30,30,40,0.3), rgba(150,80,80,0.15));
}
.hero-content {
    color: #fff;
    text-align: left;
    width: 90%;
    max-width: 1100px;
    padding-top: 60px; /* 視覚的バランス */
}
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.0rem, 5vw, 4.0rem); /* レスポンシブな文字サイズ */
    line-height: 1.4;
    margin-bottom: 40px;
    text-shadow: 0 2px 15px rgba(0,0,0,0.2);
}
.hero-sub {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.9;
}

/* ==========================================================================
   Common Section Styles
   ========================================================================== */
.section { padding: var(--padding-section) 0; }
.section-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    color: var(--accent);
    margin-bottom: 30px;
    font-weight: 500;
    text-align: center; /* 基本は中央揃え */
    position: relative;
}
/* ラベルの下に短い線 */
.section-label::after {
    content: '';
    display: block;
    width: 1px;
    height: 30px;
    background: var(--accent);
    margin: 15px auto 0;
}
.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 60px;
}

/* ==========================================================================
   Philosophy
   ========================================================================== */
.philosophy {
    background: linear-gradient(to bottom, #fff, var(--accent-light) 30%, #fff);
}
.section-body p {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2em;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services .section-label { text-align: left; }
.services .section-label::after { margin: 15px 0 0 5px; /* 左寄せ調整 */ }

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2列 */
    gap: 80px 60px;
    margin-top: 60px;
}
.service-card {
    border-top: 1px solid #eee;
    padding-top: 30px;
    transition: transform 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px); /* ホバーで少し浮く */
}
.service-num {
    font-family: var(--font-serif);
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-style: italic;
}
.service-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
}
.service-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    text-align: justify;
}

/* ==========================================================================
   Company
   ========================================================================== */
.company { background-color: #fafafa; }
.company-list {
    border-top: 1px solid #ddd;
}
.company-row {
    display: flex;
    border-bottom: 1px solid #ddd;
    padding: 25px 0;
}
.company-row dt {
    width: 25%;
    font-weight: 500;
    color: var(--text-light);
}
.company-row dd {
    width: 75%;
    margin: 0;
}
.marker {
    display: inline-block;
    font-size: 0.75rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0 8px;
    margin-right: 8px;
    line-height: 1.8;
    vertical-align: middle;
}

/* ==========================================================================
   Contact & Footer
   ========================================================================== */
.contact-msg { text-align: center; margin-bottom: 40px; }
.email-area { text-align: center; }
.email-link {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-main);
    padding-bottom: 5px;
    border-bottom: 1px solid var(--text-main);
}
.email-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}
.accent-text { color: var(--accent); }

.footer {
    padding: 60px 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
}
.footer-nav { margin-bottom: 20px; }
.hover-line { position: relative; display: inline-block; }
.hover-line::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 100%; height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.hover-line:hover::after { transform: scaleX(1); }

/* ==========================================================================
   News Section
   ========================================================================== */
.news-list {
    margin-top: 40px;
    border-top: 1px solid #eee;
}
.news-item {
    border-bottom: 1px solid #eee;
}
.news-link {
    display: flex;
    align-items: baseline; /* テキストのベースラインを揃える */
    padding: 25px 0;
    transition: background-color 0.3s ease, padding-left 0.3s ease;
}
.news-link:hover {
    color: var(--text-main); /* 色は変えず */
    padding-left: 15px; /* 右に少しズレる動きでクリック感を演出 */
    background-color: #fafafa; /* 背景を僅かに変える */
}
.news-meta {
    display: flex;
    align-items: center;
    min-width: 200px; /* 日付エリアの幅確保 */
}
.news-date {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-right: 15px;
}
.news-cat {
    font-size: 0.7rem;
    padding: 3px 8px;
    border: 1px solid var(--accent);
    color: var(--accent);
    display: inline-block;
    line-height: 1;
}
.news-title {
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
    flex: 1; /* 残りの幅を埋める */
}
.news-more {
    margin-top: 40px;
    text-align: right;
}
.btn-more {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--text-light);
    letter-spacing: 0.1em;
}
.external-icon {
    font-size: 0.8em;
    margin-left: 5px;
    color: var(--accent); /* 桃色にしてアクセントに */
    display: inline-block;
    vertical-align: middle;
}

/* ==========================================================================
   Footer External Links
   ========================================================================== */
.footer-external {
    margin-bottom: 30px; /* 下（セキュリティ方針）との隙間 */
    font-family: var(--font-serif); /* 明朝体で上品に */
    font-size: 1.1rem; /* 少しだけ大きくして存在感を出す */
}
.external-link {
    color: var(--text-main);
    display: inline-block;
    margin: 0 10px;
}
/* ホバーした時に、やわらかい桃色にする */
.external-link:hover {
    color: var(--accent);
}
.divider {
    color: var(--accent); /* 区切り線（スラッシュ）を桃色に */
    font-weight: 300;
}

/* スマホ対応（フッターリンク） */
@media (max-width: 768px) {
    .footer-external {
        display: flex;
        flex-direction: column; /* スマホでは縦並び */
        gap: 15px;
        margin-bottom: 40px;
    }
    .divider { display: none; /* スマホでは区切り線を消す */ }
}

/* スマホ対応（ニュース） */
@media (max-width: 768px) {
    .news-link {
        display: block; /* 縦積みに */
        padding: 20px 0;
    }
    .news-meta {
        margin-bottom: 10px;
    }
    .news-title {
        font-size: 1rem;
        line-height: 1.6;
    }
}


/* ==========================================================================
   Security Policy Page Styles
   ========================================================================== */

/* 方針リスト（番号付き）のデザイン */
.policy-list {
    margin: 60px 0;
    border-top: 2px solid var(--accent); /* 上にアクセントカラーの線 */
}
.policy-row {
    padding: 30px 0;
    border-bottom: 1px solid #eee; /* 薄い区切り線 */
}
.policy-row dt {
    font-family: var(--font-serif); /* 見出しは明朝体 */
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-main);
}
.policy-row dd {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* 署名エリア（右寄せ） */
.signature-area {
    text-align: right;
    margin: 40px 0 80px;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* SECURITY ACTION 専用ボックス */
.security-action-box {
    background-color: #fafafa; /* 薄いグレーの背景 */
    padding: 60px 40px;
    border-radius: 4px;
    margin-top: 60px;
    border: 1px solid #eee;
    text-align: center; /* 中身を中央揃えに */
}
.sa-logo img {
    max-width: 150px; /* ロゴが大きくなりすぎないように制限 */
    height: auto;
    margin-bottom: 20px;
}
.sa-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: var(--text-main);
    letter-spacing: 0.1em;
}
.security-action-box p {
    text-align: left; /* 文章は読みやすく左揃えに戻す */
    margin-bottom: 1.5em;
}
.security-action-box .signature-area {
    margin-bottom: 0; /* ボックス内の署名は下の余白なし */
}

/* スマホ対応（セキュリティページ） */
@media (max-width: 768px) {
    .policy-container { padding: 0 20px; }
    .security-action-box { padding: 40px 20px; }
}


/* ==========================================================================
   Responsive (Mobile & Tablet)
   ========================================================================== */
@media (max-width: 768px) {
    .section { padding: var(--padding-section-sp) 0; }
    
    .hero-content { text-align: center; }
    .hero-title { margin-bottom: 30px; }

    .service-grid {
        grid-template-columns: 1fr; /* 1列にする */
        gap: 60px;
    }
    .services .section-label { text-align: center; }
    .services .section-label::after { margin: 15px auto 0; }

    .company-row {
        display: block; /* 縦積みに */
        padding: 20px 0;
    }
    .company-row dt {
        width: 100%;
        margin-bottom: 10px;
        font-size: 0.9rem;
    }
    .company-row dd { width: 100%; }
    
    .email-link { font-size: 1.1rem; }
}

/* ==========================================================================
   Security Policy Page Styles
   ========================================================================== */

/* 方針リスト（番号付き）のデザイン */
.policy-list {
    margin: 60px 0;
    border-top: 2px solid var(--accent); /* 上にアクセントカラーの線 */
}
.policy-row {
    padding: 30px 0;
    border-bottom: 1px solid #eee; /* 薄い区切り線 */
}
.policy-row dt {
    font-family: var(--font-serif); /* 見出しは明朝体 */
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-main);
}
.policy-row dd {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* 署名エリア（右寄せ） */
.signature-area {
    text-align: right;
    margin: 40px 0 80px;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* SECURITY ACTION 専用ボックス */
.security-action-box {
    background-color: #fafafa; /* 薄いグレーの背景 */
    padding: 60px 40px;
    border-radius: 4px;
    margin-top: 60px;
    border: 1px solid #eee;
    text-align: center; /* 中身を中央揃えに */
}
.sa-logo img {
    max-width: 150px; /* ロゴが大きくなりすぎないように制限 */
    height: auto;
    margin-bottom: 20px;
}
.sa-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: var(--text-main);
    letter-spacing: 0.1em;
}
.security-action-box p {
    text-align: left; /* 文章は読みやすく左揃えに戻す */
    margin-bottom: 1.5em;
}
.security-action-box .signature-area {
    margin-bottom: 0; /* ボックス内の署名は下の余白なし */
}

/* スマホ対応（セキュリティページ） */
@media (max-width: 768px) {
    .policy-container { padding: 0 20px; }
    .security-action-box { padding: 40px 20px; }
}

/* 署名エリア内のpタグだけは、強制的に右揃えにする */
.security-action-box .signature-area p,
.signature-area p {
    text-align: right;
}

.name-kana {
    font-size: 0.7rem; /* 文字を小さく */
    color: var(--text-light); /* 色を薄く */
    display: block; /* 改行して表示 */
    margin-top: 3px; /* 少し隙間を空ける */
}