/* =================================================
   1. 基本設定 / リセット
   ================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #fff;
    color: #444;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
    font-optical-sizing: auto;
    font-style: normal;
}

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

/* =================================================
   2. レイアウト構造
   ================================================= */
.container {
    display: flex;
    max-width: 720px;
    margin: 50px auto 0;
}

.main-content {
    flex: 1;
    padding: 0 20px;
}

.sidebar {
    width: 240px;
    padding: 0 20px;
}

/* =================================================
   3. ヘッダー / フッター
   ================================================= */
.site-header {
    margin-top: 80px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 680px;
    margin: 0 auto;
}

.logo img {
    width: 200px;
    margin-bottom: 10px;
}

.header-img img {
    width: 300px;
}

@media screen and (max-width: 767px) {
    .header-img img { width: 100%;}
}

.header-text {
    font-size: 12px;
    line-height: 1.5;
}

.site-footer {
    margin: 50px 0 80px;
    text-align: center;
    font-size: 12px;
}

/* =================================================
   4. ナビゲーション
   ================================================= */
.nav ul {
    list-style: none;
    text-align: right;
    padding-right: 40px;
}

.nav ul li {
    margin-bottom: 10px;
    font-family: "Roboto", sans-serif;
}

.nav ul li a {
    display: inline-block;
    position: relative;
    color: #222;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.2;
    text-decoration: none;
}

.nav ul li a span {
    display: block;
    font-size: 11px;
    font-weight: 400;
}

/* 右側のドット装飾 */
.nav ul li a::after {
    content: "";
    position: absolute;
    right: -20px;
    top: 7px;
    width: 10px;
    height: 10px;
    background-color: #000;
    border-radius: 50%;
    transition: all 0.1s;
}

.nav ul li a.active::after,
.nav ul li a:hover::after {
    background-color: #ff0000;
}

/* =================================================
   5. 各セクション（News / Staff / Portfolio / Access）
   ================================================= */

/* --- News --- */
.news-item {
    margin-bottom: 40px;
}

.news-title {
    display: block;
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.4;
}

.news-title a {
    color: #0076b4;
    text-decoration: none;
}

.news-title a:hover {
    color: #ff0000;
}

.news-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent #0076b4;
}

.news-title:hover::before {
    border-color: transparent transparent transparent #ff0000;
}

.news-body {
    padding-left: 20px;
}

/* --- Staff --- */
.staff-item { margin-bottom: 25px; }
.role { margin: 0 0 4px 0; }
.name { font-size: 16px; font-weight: bold; }
.description { margin: 0; }

.alliance-section { margin-top: 60px; }
.section-title { font-size: 18px; font-weight: bold; margin-bottom: 20px; }

.staff-link { margin-top: 8px; padding-left: 1em; }
.staff-link a {
    color: #0076b4;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}

/* --- Portfolio --- */
.portfolio-tabs ul {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    margin-bottom: 0;
    border-bottom: 2px solid #eee;
}

.portfolio-tabs li {
    display: flex;
    align-items: center;
    margin-left: 20px;
    padding-bottom: 8px;
    font-size: 14px;
    font-weight: bold;
}

.portfolio-tabs li a {
    color: #444;
    text-decoration: none;
}

.dot.red {
    width: 10px;
    height: 10px;
    margin-right: 5px;
    background-color: #ff0000;
    border-radius: 50%;
    display: inline-block;
}

.portfolio-list { list-style: none; }
.portfolio-list li { border-bottom: 1px solid #ddd; }
.portfolio-list a {
    display: block;
    position: relative;
    padding: 10px 0 10px 20px;
    color: #444;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}

.portfolio-list a:hover { background-color: #ececec; }

.portfolio-list a::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid #0076b4;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.new-tag { color: #ff0000; font-weight: bold; font-size: 10px; margin-left: 5px; }

/* --- Portfolio Detail --- */
.detail-header { border-bottom: 1px solid #ccc; margin-bottom: 30px; padding-bottom: 10px; }
.detail-header h2 { font-size: 16px; margin-bottom: 10px; }
.meta-info p { font-size: 14px; margin: 0; }

.image-box {
    background-color: #d1d1ca;
    padding: 10px;
    margin-bottom: 15px;
    text-align: center;
}
.image-box img {
    margin: 0 auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.detail-description { font-size: 14px; margin-bottom: 15px; }
.detail-description a { color: #333; text-decoration: underline; }

.external-link { border-bottom: 1px solid #d1d1ca; padding-bottom: 15px; }
.external-link a { color: #0076b4; font-weight: bold; text-decoration: none; }

.back-link {
    display: inline-block;
    margin-top: 15px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
}
.back-link::before {
    content: "◀";
    color: #0076b4;
    font-size: 10px;
    margin-right: 5px;
    position: relative;
    top: -1px;
}
.back-link:hover,
.back-link:hover::before {
    color: #ff0000;
    transition: all 0.1s;
}

/* --- Access / Analog --- */
.BlogMds { border-bottom: 1px solid #ddd; }
.access-map { width: 100%; margin-bottom: 30px; }
.access-map iframe { width: 100%; height: 450px; display: block; }
.access-info address { font-style: normal; font-size: 14px; line-height: 1.8; }

/* --- Utility --- */
.info-row { display: flex; padding: 12px 0; border-top: 1px solid #ccc; }
.info-row:last-child { border-bottom: 1px solid #ccc; }
dt { width: 100px; font-weight: bold; flex-shrink: 0; }
dd { margin: 0; flex-grow: 1; }

/* =================================================
   6. レスポンシブ (Mobile / Tablet)
   ================================================= */
.menu-toggle { display: none; }

@media screen and (max-width: 767px) {
    /* Layout */
    .container { flex-direction: column; margin-top: 30px; }

    /* Header */
    .site-header { margin-top: 10px; padding: 20px; }
    .header-inner { flex-direction: column; align-items: flex-start; position: relative; }
    .logo { width: 100%; }
    .logo h1 img { max-width: 180px; }
    .header-text { font-size: 11px; }
    .header-img { display: none !important; }
    .home .header-img { display: block !important; margin-top: 20px; }

    /* Hamburger Menu */
    .menu-toggle {
        display: block;
        position: fixed;
        top: 35px;
        right: 20px;
        z-index: 10001;
        width: 30px;
        height: 24px;
        background: none;
        border: none;
        cursor: pointer;
    }
    .menu-toggle span {
        display: block;
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: #333;
        transition: 0.3s;
    }
    .menu-toggle span:nth-child(1) { top: 0; }
    .menu-toggle span:nth-child(2) { top: 11px; }
    .menu-toggle span:nth-child(3) { top: 22px; }

    .menu-toggle.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

    /* Sidebar (Fullscreen Menu) */
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        z-index: 10000;
        width: 100%;
        height: 100%;
        background: #fff;
        padding-top: 80px;
        display: flex;
        justify-content: center;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .sidebar.active { left: 0; }
    .sidebar .nav { min-width: 170px; }
    .sidebar .nav ul { padding-right: 30px; }
    .sidebar .nav ul li { margin-bottom: 20px; }
    .sidebar .nav ul li a { font-size: 22px; }
    .sidebar .nav ul li a span { font-size: 12px; }
    .sidebar .nav ul li a::after { right: -30px; width: 12px; height: 12px; }

    /* Sections Adjustment */
    .access-container { padding: 0 15px; }
    .info-row { flex-direction: column; }
    dt { width: 100%; margin-bottom: 4px; }
    dd { padding-left: 10px; }
    .site-footer { margin: 30px 0; }
}

@media (max-width: 600px) {
    .staff-container { padding: 0 20px; }
    .description { padding-left: 0; }
}

@media (max-width: 480px) {
    .portfolio-tabs ul { flex-wrap: wrap; }
    .portfolio-tabs li { margin: 5px 10px; }
}